/* ==========================================================
   KAKINADA HEALTH CONNECT - MASTER STYLESHEET
   Design: Premium Healthcare Crowdfunding Platform
   Palette:
     Primary: #123B66 (Deep Medical Blue)
     Secondary: #16A6A1 (Healthcare Teal)
     Emergency Accent: #E85D5D (Warm Coral Red)
     Background: #F8FAFC (Soft White)
     Text: #172B4D (Dark Navy)
     Highlight: #F4A340 (Warm Orange)
   ========================================================== */

:root {
  --primary: #123B66;
  --primary-dark: #0A2239;
  --primary-light: #1D538D;
  --secondary: #16A6A1;
  --secondary-light: #20C2BC;
  --accent-emergency: #E85D5D;
  --accent-emergency-hover: #D74A4A;
  --highlight: #F4A340;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-dark: #172B4D;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 2px 4px rgba(18, 59, 102, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(18, 59, 102, 0.08), 0 8px 10px -6px rgba(18, 59, 102, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(18, 59, 102, 0.12), 0 10px 15px -5px rgba(18, 59, 102, 0.06);
  --shadow-hover: 0 25px 45px -10px rgba(18, 59, 102, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-soft);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

/* Utility Badges */
.badge-emergency {
  background: linear-gradient(135deg, #E85D5D, #FF7B7B);
  color: #FFFFFF;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(232, 93, 93, 0.3);
}

.badge-emergency .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #FFFFFF;
  border-radius: 50%;
  animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.badge-teal {
  background-color: rgba(22, 166, 161, 0.12);
  color: var(--secondary);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.badge-completed {
  background-color: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

/* Navigation */
.navbar-khc {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(18, 59, 102, 0.06);
  padding: 14px 0;
  transition: var(--transition);
  z-index: 1040;
}

.navbar-khc .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-khc .brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 280px;
}

.navbar-khc .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-khc .nav-link:hover,
.navbar-khc .nav-link.active {
  color: var(--secondary);
  background-color: rgba(22, 166, 161, 0.08);
}

.btn-donate-nav {
  background: linear-gradient(135deg, var(--accent-emergency), #F87171);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 15px rgba(232, 93, 93, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-donate-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 93, 93, 0.45);
  color: #FFFFFF !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  padding: 100px 0 80px;
  overflow: hidden;
}

/* HIDE HERO BANNER ON MOBILE (User Request: on mobile start immediately with case!) */
@media (max-width: 991.98px) {
  .hero-section {
    display: none !important;
  }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10, 34, 57, 0.92) 0%, rgba(18, 59, 102, 0.88) 50%, rgba(22, 166, 161, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent-emergency), #FF6B6B);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(232, 93, 93, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(232, 93, 93, 0.5);
  color: #FFFFFF;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 1.05rem;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* ==========================================================
   FEATURED MEDICAL CASES - FULL-WIDTH SCROLL EXPERIENCE
   100vh Immersive Scroll Snapping Presentation (Full Width)
   ========================================================== */
.featured-scroll-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-soft);
}

.featured-scroll-container::-webkit-scrollbar {
  width: 6px;
}
.featured-scroll-container::-webkit-scrollbar-track {
  background: rgba(18, 59, 102, 0.05);
}
.featured-scroll-container::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

.featured-case-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: 85px 0 35px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.featured-case-section:nth-child(even) {
  background: #F8FAFC;
}

/* Full Width Container */
.featured-case-section .container-fluid {
  width: 100%;
  padding-left: clamp(15px, 4vw, 50px);
  padding-right: clamp(15px, 4vw, 50px);
}

.featured-case-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3.5vw, 45px);
  height: 100%;
  width: 100%;
  max-height: calc(100vh - 110px);
}

.featured-case-media {
  flex: 0 0 50%;
  max-width: 50%;
  width: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-case-details {
  flex: 0 0 50%;
  max-width: 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
  padding: 10px clamp(15px, 2.5vw, 35px);
}

/* DUAL FEATURED PHOTOS (SHOW FEATURED + SECOND IMAGE ON DESKTOP) */
.featured-dual-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

/* UNIFORM PORTRAIT FRAME (INCREASED TALL HEIGHT FOR DESKTOP) */
.featured-case-main-photo,
.portrait-photo-frame {
  position: relative;
  width: 100%;
  height: clamp(450px, 58vh, 560px); /* Increased height for desktop commanding presence */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18, 59, 102, 0.16);
  background: #0F172A;
  cursor: pointer;
}

.featured-case-img,
.portrait-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-case-section:hover .featured-case-img,
.portrait-photo-frame:hover img {
  transform: scale(1.03);
}

.featured-case-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(10, 34, 57, 0.95) 0%, rgba(10, 34, 57, 0.45) 60%, transparent 100%);
  color: #FFFFFF;
}

/* ==========================================================
   INTERACTIVE GALLERY THUMBNAILS (INCREASED SIZE) & +N MORE BADGE
   ========================================================== */
.case-gallery-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.gallery-preview-item {
  position: relative;
  flex: 1;
  height: 110px; /* Comfortable prominent size below dual photos */
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(18, 59, 102, 0.08);
  background: #E2E8F0;
}

.gallery-preview-item:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: 0 8px 20px rgba(22, 166, 161, 0.25);
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The +N More Photos Overlay Block */
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 34, 57, 0.9), rgba(22, 166, 161, 0.85));
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  backdrop-filter: blur(2px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-more-overlay i {
  font-size: 1.45rem;
  margin-bottom: 2px;
}

.gallery-preview-item:hover .gallery-more-overlay {
  background: linear-gradient(135deg, rgba(18, 59, 102, 0.96), rgba(232, 93, 93, 0.9));
}

.featured-case-headline {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.patient-meta-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.patient-meta-pill {
  background: var(--border-light);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-case-story {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Action Buttons Group */
.featured-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-donate-case {
  background: linear-gradient(135deg, var(--accent-emergency), #F87171);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 0.98rem;
  box-shadow: 0 6px 18px rgba(232, 93, 93, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-donate-case:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(232, 93, 93, 0.45);
}

.btn-show-qr {
  background-color: #FFFFFF;
  color: var(--primary) !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-show-qr:hover {
  background-color: var(--primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.btn-view-details {
  background-color: rgba(18, 59, 102, 0.08);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-view-details:hover {
  background-color: var(--primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Side Scroll Dots Indicator for Fullscreen Presentation */
.featured-scroll-nav {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 14px 10px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #CBD5E1;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.scroll-dot.active, .scroll-dot:hover {
  background-color: var(--accent-emergency);
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(232, 93, 93, 0.5);
}

/* Floating Scroll Down Prompt */
.scroll-down-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bounceHint 2s infinite;
  z-index: 10;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ==========================================================
   MEDICAL CASES GRID SECTION
   ========================================================== */
.section-cases-listing {
  padding: 90px 0;
  background-color: #F8FAFC;
}

.filter-pills-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.case-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

.case-card-img-wrap {
  position: relative;
  width: 100%;
  height: 245px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.case-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.case-card:hover .case-card-img {
  transform: scale(1.05);
}

.case-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.case-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-card-patient-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.case-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.case-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* Emotional Banner Sections */
.emotional-banner {
  position: relative;
  padding: 85px 0;
  background-color: var(--primary);
  color: #FFFFFF;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}

.emotional-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(18, 59, 102, 0.92), rgba(22, 166, 161, 0.85));
  z-index: 1;
}

.emotional-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.emotional-banner-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.emotional-banner-subtext {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

/* Impact Statistics Section */
.impact-section {
  padding: 85px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(22, 166, 161, 0.12);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* News Section */
.news-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Testimonial Section */
.testimonial-card {
  background: #FFFFFF;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 22px;
  line-height: 1.7;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

/* QR Code Modal Styling */
.modal-qr .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.modal-qr .modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  border-bottom: none;
  padding: 20px 24px;
}

.modal-qr .modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-qr .qr-image-display {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  display: block;
}

.modal-qr .upi-copy-box {
  background: var(--bg-soft);
  border: 1px dashed var(--secondary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Gallery Modal / Lightbox Carousel */
.modal-gallery .modal-content {
  background: #0B192C;
  border: none;
  border-radius: var(--radius-lg);
  color: #FFFFFF;
}

.modal-gallery .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-gallery .btn-close {
  filter: brightness(0) invert(1);
}

.gallery-carousel-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-md);
}

/* Footer */
.footer-khc {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  padding: 70px 0 25px;
  border-top: 4px solid var(--secondary);
}

.footer-khc a {
  color: #CBD5E1;
}

.footer-khc a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 50px;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .featured-case-grid {
    flex-direction: column;
    max-height: none;
    gap: 24px;
    align-items: stretch;
  }
  
  .featured-case-section {
    height: auto;
    min-height: auto;
    padding: 25px 0 45px;
    scroll-snap-align: none;
  }
  
  .featured-scroll-container {
    height: auto;
    scroll-snap-type: none;
    overflow-y: visible;
  }
  
  .featured-case-media {
    max-height: none;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .featured-dual-photos {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .featured-case-main-photo,
  .portrait-photo-frame {
    aspect-ratio: 4 / 5;
    max-height: 440px;
    height: auto;
    min-height: 280px;
    max-width: 420px;
    margin: 0 auto;
  }

  .case-gallery-strip {
    max-width: 420px;
    margin: 12px auto 0;
  }

  .gallery-preview-item {
    height: 105px;
  }

  .featured-case-details {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 10px 0;
    overflow-y: visible;
  }
  
  .featured-scroll-nav {
    display: none;
  }
}

/* ==========================================================
   BOTTOM COOKIE & CACHE STORAGE CONSENT BANNER
   ========================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1055;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -8px 28px rgba(18, 59, 102, 0.18);
  padding: 18px 0;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.cookie-consent-bar.show {
  transform: translateY(0);
}

.cookie-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(18, 59, 102, 0.2);
}
