/**
 * District Hospital Washim - Modern Homepage Design
 * Enhanced UI with modern components and professional styling
 */

/* ============================================
   HERO CAROUSEL MODERN
   ============================================ */

.hero-carousel-section {
  margin-top: 0;
  position: relative;
}

.carousel {
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-item img {
  height: 600px;
  object-fit: cover;
}

@media (max-width: 991px) {
  .carousel-item img {
    height: 400px;
  }
}

@media (max-width: 575px) {
  .carousel-item img {
    height: 300px;
  }
}

.carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 2rem 2rem;
}

.carousel-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.carousel-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   WELCOME HERO SECTION
   ============================================ */

.welcome-hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.welcome-badge .badge {
  font-size: 0.875rem;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bg-primary-custom {
  background: linear-gradient(135deg, var(--hospital-primary), var(--hospital-primary-dark));
}

.section-main-title {
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--hospital-gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.stat-card {
  background: var(--hospital-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--hospital-primary);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--hospital-primary), var(--hospital-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(12, 84, 133, 0.3);
}

.stat-icon i {
  font-size: 2.5rem;
  color: var(--hospital-white);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hospital-primary);
  margin: 1rem 0 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--hospital-gray-600);
  font-weight: 600;
  margin: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: 3rem;
}

.section-title {
 font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--hospital-gray-900);
  margin-bottom: 0.52rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--hospital-gray-600);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto 0.5rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--hospital-primary), var(--hospital-accent));
  border-radius: 2px;
  margin: 0 auto;
}

/* ============================================
   MODERN OFFICIAL CARDS
   ============================================ */

.official-card-modern {
  background: var(--hospital-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.official-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--hospital-primary);
}

.official-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: var(--hospital-gray-100);
}

.official-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  display: block;
}

.official-card-modern:hover .official-image-wrapper img {
  transform: scale(1.1);
}

.official-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(12, 84, 133, 0.9), transparent);
  padding: 1rem;
}

.official-rank {
  background: rgba(255, 255, 255, 0.95);
  color: var(--hospital-primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.official-card-modern .card-body {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

.official-card-modern .card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hospital-gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.official-card-modern .card-designation {
  font-size: 0.875rem;
  color: var(--hospital-gray-600);
  margin: 0;
  line-height: 1.5;
}

.featured-official {
  border: 3px solid var(--hospital-primary);
  background: linear-gradient(to bottom, var(--hospital-white), #f8f9fa);
}

.badge-featured {
  background: var(--hospital-primary);
  color: var(--hospital-white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
}

/* ============================================
   ABOUT HOSPITAL SECTION
   ============================================ */

.bg-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.about-content {
  padding: 2rem;
}

.hospital-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--hospital-white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item span {
  font-weight: 600;
  color: var(--hospital-gray-800);
}

/* ============================================
   MODERN NOTICE BOARD
   ============================================ */

.notice-board-modern {
  background: var(--hospital-white);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
}

.notice-header-modern {
  background: linear-gradient(135deg, var(--hospital-primary), var(--hospital-primary-dark));
  color: var(--hospital-white);
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notice-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-icon i {
  font-size: 1.75rem;
}

.notice-header-modern h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hospital-white);
}

.notice-content {
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.notice-item-modern {
  background: var(--hospital-gray-50);
  border-left: 4px solid var(--hospital-primary);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.notice-item-modern:hover {
  background: var(--hospital-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.notice-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hospital-primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.notice-date i {
  font-size: 1rem;
}

.notice-text {
  color: var(--hospital-gray-800);
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.notice-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hospital-danger);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.notice-pdf-link:hover {
  color: var(--hospital-primary);
  transform: translateX(5px);
}

/* ============================================
   SERVICES MODERN SECTION
   ============================================ */

.services-modern-section {
  background: var(--hospital-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card-modern {
  background: linear-gradient(to bottom, var(--hospital-white), #f8f9fa);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid var(--hospital-gray-200);
}

.service-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--hospital-primary);
  background: var(--hospital-white);
}

.service-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--hospital-primary-light), var(--hospital-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(12, 84, 133, 0.3);
  transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.service-icon-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-card-modern h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hospital-gray-900);
  margin-bottom: 0.75rem;
}

.service-card-modern p {
  color: var(--hospital-gray-600);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   GALLERY MODERN SECTION
   ============================================ */

.gallery-modern-section {
  background: var(--hospital-gray-50);
}

.gallery-card-modern {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.gallery-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card-modern:hover .gallery-image-wrapper img {
  transform: scale(1.2);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-card-modern:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-content h5 {
  color: var(--hospital-white);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.gallery-view-btn {
  width: 50px;
  height: 50px;
  background: var(--hospital-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hospital-primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.gallery-view-btn:hover {
  background: var(--hospital-primary);
  color: var(--hospital-white);
  transform: scale(1.1);
}

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--hospital-primary), var(--hospital-primary-dark));
  color: var(--hospital-white);
}

.cta-wrapper {
  padding: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--hospital-white);
}

.cta-subtitle {
  font-size: 1.125rem;
  margin: 0;
  opacity: 0.95;
}

.btn-cta {
  background: var(--hospital-white);
  color: var(--hospital-primary);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--hospital-secondary);
  color: var(--hospital-white);
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
  .officials-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .cta-wrapper {
    text-align: center;
    padding: 2rem;
  }
  
  .cta-section .col-lg-4 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 991px) {
  .official-image-wrapper {
    height: 280px;
  }
}

@media (max-width: 767px) {
  .official-image-wrapper {
    height: 250px;
  }
}

@media (max-width: 575px) {
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
  }
  
  .stat-icon i {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .service-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .service-icon-wrapper img {
    width: 50px;
    height: 50px;
  }
  
  .official-image-wrapper {
    height: 220px;
  }
  
  .gallery-image-wrapper {
    height: 200px;
  }
}