/* Enhanced responsive image and text adjustments */

/* Improve image responsiveness globally */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Image container enhancements */
.hero-image-container {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 90%;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
  transform: scale(1.03);
}

.image-frame {
  border-width: 3px;
  transition: all 0.3s ease;
}

.hero-image-container:hover .image-frame {
  border-color: var(--secondary-color);
}

/* Text adjustments for the top part */
.hero-content {
  padding: 1.5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(193, 162, 111, 0.2);
}

.hero-badge i {
  margin-right: 8px;
  font-size: 1rem;
}

.title-row {
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: center;
}

.title-highlight, .title-main {
  color: #f5f5f5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  padding: 0 0.2rem;
}

/* Enhanced responsive behavior */
@media screen and (min-width: 1400px) {
  .hero-image-container {
    max-width: 500px;
  }
  
  .title-highlight, .title-main {
    font-size: 3.2rem;
  }
}

@media screen and (min-width: 992px) and (max-width: 1399px) {
  .hero-image-container {
    max-width: 450px;
  }
  
  .title-highlight, .title-main {
    font-size: 2.8rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-image-container {
    max-width: 400px;
    margin-bottom: 2rem;
  }
  
  .title-highlight, .title-main {
    font-size: 2.5rem;
  }
  
  .hero-content {
    text-align: center;
    padding-bottom: 1rem;
  }
}

@media screen and (min-width: 576px) and (max-width: 767px) {
  .hero-image-container {
    max-width: 350px;
    margin: 0 auto 1.5rem;
  }
  
  .title-highlight, .title-main {
    font-size: 2.2rem;
  }
  
  .hero-content {
    text-align: center;
    padding: 1rem 0;
  }
}

@media screen and (max-width: 575px) {
  .hero-image-container {
    max-width: 85%;
    margin: 0 auto 1rem;
  }
  
  .title-highlight, .title-main {
    font-size: 2rem;
  }
  
  .hero-content {
    text-align: center;
    padding: 0.75rem 0;
  }
  
  .hero-badge {
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    margin-bottom: 0.8rem;
  }
}

@media screen and (max-width: 400px) {
  .title-highlight, .title-main {
    font-size: 1.8rem;
  }
  
  .hero-specialties {
    margin-bottom: 1rem;
  }
  
  .specialty-item {
    padding: 6px 14px;
    margin: 0.2rem;
  }
}