/* ==========================================================================
   FIRST ACADEMY - MODERN SCHOOL DESIGN SYSTEM
   Brand Colors: Deep Royal Blue, Academic Gold, Sky Accent, Crisp White
   Typography: Plus Jakarta Sans (Latin) + Kantumruy Pro (Khmer)
   ========================================================================== */

:root {
  --fa-primary: #0F2C59;
  --fa-primary-dark: #0A192F;
  --fa-primary-light: #1E3A8A;
  --fa-secondary: #D4AF37;
  --fa-secondary-dark: #B8860B;
  --fa-secondary-light: #FDE047;
  --fa-accent: #0EA5E9;
  --fa-accent-light: #E0F2FE;
  --fa-dark: #0F172A;
  --fa-text: #334155;
  --fa-text-muted: #64748B;
  --fa-bg-light: #F8FAFC;
  --fa-bg-white: #FFFFFF;
  --fa-border: #E2E8F0;
  --fa-success: #10B981;
  --fa-warning: #F59E0B;
  --fa-danger: #EF4444;
  --fa-info: #0284C7;
  
  --fa-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --fa-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --fa-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --fa-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --fa-shadow-hover: 0 20px 30px -10px rgba(15, 44, 89, 0.18);

  --fa-radius-sm: 6px;
  --fa-radius: 12px;
  --fa-radius-lg: 20px;
  --fa-radius-full: 9999px;
  
  --fa-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Typography */
html {
  scroll-behavior: smooth;
}

html, body {
  display: block !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  font-family: 'Plus Jakarta Sans', 'Kantumruy Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fa-text);
  background-color: var(--fa-bg-light) !important;
  line-height: 1.65;
}

body > .fa-topbar,
body > .fa-navbar,
body > .container,
body > section,
body > footer,
body > main {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  float: none !important;
}

/* Khmer Typography Optimization */
html[lang="km"] body,
body.lang-khmer,
html[lang="km"] input,
html[lang="km"] button,
html[lang="km"] select,
html[lang="km"] textarea,
body.lang-khmer input,
body.lang-khmer button,
body.lang-khmer select,
body.lang-khmer textarea {
  font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  line-height: 1.75;
}

html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3, html[lang="km"] h4, html[lang="km"] h5, html[lang="km"] h6,
body.lang-khmer h1, body.lang-khmer h2, body.lang-khmer h3, body.lang-khmer h4, body.lang-khmer h5, body.lang-khmer h6 {
  font-family: 'Kantumruy Pro', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fa-primary-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

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

a:hover {
  color: var(--fa-secondary-dark);
}

/* Announcement Top Bar */
.fa-topbar {
  background: var(--fa-primary-dark);
  color: #CBD5E1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fa-topbar a {
  color: #E2E8F0;
}

.fa-topbar a:hover {
  color: var(--fa-secondary);
}

/* Sticky Navbar */
.fa-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.07);
  transition: var(--fa-transition);
  padding: 0.5rem 0;
  z-index: 1030;
  min-height: 68px;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.fa-navbar.scrolled {
  padding: 0.35rem 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.brand-crest {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--fa-primary) 0%, var(--fa-primary-dark) 100%);
  border: 2px solid var(--fa-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fa-secondary);
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(15, 44, 89, 0.25);
  transition: var(--fa-transition);
  flex-shrink: 0;
}

.brand-crest:hover {
  transform: rotate(5deg) scale(1.05);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  color: var(--fa-primary);
  white-space: nowrap !important;
}

.brand-text small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fa-secondary-dark);
  white-space: nowrap !important;
  letter-spacing: 0.5px;
  display: block;
}

.fa-navbar .navbar-nav {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap !important;
  gap: 2px;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .fa-navbar .navbar-brand-logo {
    gap: 6px;
    margin-right: 0.35rem !important;
  }
  .fa-navbar .brand-crest {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .fa-navbar .brand-text h1 {
    font-size: 0.95rem !important;
  }
  .fa-navbar .brand-text small {
    font-size: 0.6rem !important;
  }
  .fa-navbar .nav-link {
    font-size: 0.8rem !important;
    padding: 0.32rem 0.45rem !important;
  }
  .fa-navbar .btn-fa-gold {
    padding: 0.32rem 0.65rem !important;
    font-size: 0.8rem !important;
  }
  .fa-navbar .dropdown-toggle {
    font-size: 0.8rem !important;
    padding: 0.32rem 0.6rem !important;
  }
}

@media (max-width: 1199.98px) {
  .fa-navbar .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
    gap: 6px;
  }
}

.fa-navbar .nav-item {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fa-primary-dark) !important;
  padding: 0.45rem 0.68rem !important;
  border-radius: 9999px;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  letter-spacing: normal;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--fa-primary) !important;
  background-color: rgba(15, 44, 89, 0.06);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--fa-primary) !important;
  background-color: rgba(15, 44, 89, 0.08);
  font-weight: 700;
}

.nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  border: 1px solid rgba(15, 44, 89, 0.08);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  padding: 0.6rem;
  animation: fadeInMenu 0.2s ease-in-out;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--fa-radius-sm);
  color: var(--fa-text);
  transition: var(--fa-transition);
}

.dropdown-item:hover {
  background-color: var(--fa-accent-light);
  color: var(--fa-primary);
  transform: translateX(4px);
}

.dropdown-item.active {
  background-color: #0066FF !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.dropdown-item.active .badge.bg-light {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border-color: #FFFFFF !important;
}

.dropdown-item.active .badge.bg-warning {
  background-color: #FBBF24 !important;
  color: #000000 !important;
}

.dropdown-item.active .badge.bg-danger {
  background-color: #EF4444 !important;
  color: #FFFFFF !important;
}

/* Custom Buttons */
.btn-fa-primary {
  background: linear-gradient(135deg, var(--fa-primary) 0%, var(--fa-primary-light) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--fa-radius-full);
  border: none;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.25);
  transition: var(--fa-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-fa-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 44, 89, 0.35);
  color: #FFFFFF !important;
}

.btn-fa-gold {
  background: linear-gradient(135deg, var(--fa-secondary) 0%, #EAB308 100%);
  color: #0F172A !important;
  font-weight: 700;
  font-size: 0.86rem !important;
  height: 38px !important;
  padding: 0 1.25rem !important;
  border-radius: var(--fa-radius-full);
  border: none;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  transition: var(--fa-transition);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.btn-fa-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
  color: #0F172A !important;
}

.btn-fa-outline {
  border: 2px solid var(--fa-primary);
  color: var(--fa-primary) !important;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: var(--fa-radius-full);
  background: transparent;
  transition: var(--fa-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-fa-outline-light {
  border: 2px solid #FFFFFF;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: var(--fa-radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: var(--fa-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-fa-outline-light:hover {
  background: #FFFFFF;
  color: var(--fa-primary-dark) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.fa-hero {
  position: relative;
  background: linear-gradient(135deg, #07152B 0%, #0F2C59 60%, #1A365D 100%);
  color: #FFFFFF;
  padding: 6rem 0 5rem;
  overflow: hidden;
  margin-top: 0 !important;
}

.fa-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.fa-hero.hero-pattern-none::before {
  display: none !important;
}

.fa-hero.hero-pattern-dots::before {
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: auto, auto, 24px 24px;
}

.fa-hero.hero-pattern-waves::before {
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 20L20 0h20L0 40z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Full-Width Photographic Background Hero Banner (New Academic Year Template) */
.hero-photo-banner {
  position: relative;
  min-height: 520px;
  color: #FFFFFF;
  padding: 7rem 1.5rem 6rem;
  overflow: hidden;
  margin-top: 0 !important;
}

.carousel-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-hero-bg .carousel-inner,
.carousel-hero-bg .carousel-item {
  width: 100%;
  height: 100%;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Auto-Slide Left Animation Smooth Transition */
.carousel-hero-bg .carousel-item {
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-photo-banner .hero-overlay-dark {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(13, 27, 56, 0.58) 0%, rgba(9, 20, 44, 0.78) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-photo-banner .carousel-indicators {
  z-index: 4;
  margin-bottom: 1.5rem;
}

.hero-photo-banner .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.45);
  border: none;
  transition: all 0.3s ease;
}

.hero-photo-banner .carousel-indicators .active {
  width: 44px;
  background-color: #D4AF37;
}

.hero-photo-banner .carousel-control-prev,
.hero-photo-banner .carousel-control-next {
  width: 50px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-photo-banner:hover .carousel-control-prev,
.hero-photo-banner:hover .carousel-control-next {
  opacity: 0.7;
}

.hero-photo-banner .carousel-control-prev:hover,
.hero-photo-banner .carousel-control-next:hover {
  opacity: 1;
}

.hero-primary-pill {
  background-color: #FFFFFF !important;
  color: #1E3A8A !important;
  font-weight: 700 !important;
  border: 1px solid #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-primary-pill:hover {
  background-color: #F8FAFC !important;
  color: #0F2C59 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.hero-primary-pill i {
  transition: transform 0.2s ease;
}

.hero-primary-pill:hover i {
  transform: translateX(4px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #FEF08A;
  padding: 0.4rem 1.1rem;
  border-radius: var(--fa-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #E2E8F0;
  max-width: 620px;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--fa-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: #1E293B;
}

.hero-visual-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.04);
}

.hero-stat-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--fa-radius);
  padding: 1rem 1.25rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-stat-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--fa-secondary) 0%, #F59E0B 100%);
  color: #0F172A;
  padding: 0.6rem 1rem;
  border-radius: var(--fa-radius);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Feature Pillars ("Why First Academy") */
.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--fa-border);
  border-radius: var(--fa-radius);
  padding: 2.25rem 1.75rem;
  height: 100%;
  transition: var(--fa-transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 4px; height: 0;
  background: linear-gradient(to bottom, var(--fa-secondary), var(--fa-primary));
  transition: height 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fa-shadow-hover);
  border-color: rgba(212, 175, 55, 0.3);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--fa-accent-light);
  color: var(--fa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--fa-transition);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--fa-primary);
  color: var(--fa-secondary);
  transform: scale(1.1);
}

/* Stats Counter Section */
.fa-stats-strip {
  background: linear-gradient(135deg, var(--fa-primary-dark) 0%, var(--fa-primary) 100%);
  color: #FFFFFF;
  padding: 4.5rem 0;
  position: relative;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--fa-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modern Cards (Programs, Teachers, News, Events) */
.fa-card {
  background: #FFFFFF;
  border: 1px solid var(--fa-border);
  border-radius: var(--fa-radius);
  overflow: hidden;
  box-shadow: var(--fa-shadow-sm);
  transition: var(--fa-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fa-shadow-hover);
  border-color: rgba(15, 44, 89, 0.2);
}

.fa-card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.fa-card-body {
  padding: 1.75rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.fa-badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--fa-radius-full);
}

/* Program Specific Cards */
.program-feature-tag {
  display: inline-block;
  background: #F1F5F9;
  color: var(--fa-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin: 0.2rem;
}

/* Teacher Profile Cards */
.teacher-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #E2E8F0;
}

.teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fa-card:hover .teacher-img {
  transform: scale(1.06);
}

/* Testimonial Cards */
.testimonial-card {
  background: #FFFFFF;
  border-radius: var(--fa-radius);
  padding: 2rem;
  box-shadow: var(--fa-shadow);
  border-left: 5px solid var(--fa-secondary);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-style: italic;
  color: var(--fa-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

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

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

/* Gallery Filter & Grid */
.gallery-filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--fa-border);
  color: var(--fa-text);
  padding: 0.5rem 1.25rem;
  border-radius: var(--fa-radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--fa-transition);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--fa-radius);
  overflow: hidden;
  box-shadow: var(--fa-shadow);
  cursor: pointer;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  color: #FFFFFF;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: var(--fa-transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Section Headers */
.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--fa-secondary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--fa-primary-dark);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--fa-text-muted);
  max-width: 680px;
  margin: 0.5rem auto 0;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--fa-primary) 0%, #172554 100%);
  border-radius: var(--fa-radius-lg);
  color: #FFFFFF;
  padding: 4rem 3rem;
  box-shadow: var(--fa-shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  top: -50%; right: -10%; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Footer */
.fa-footer {
  background: #091322;
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}

.fa-footer h5 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.fa-footer h5::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; width: 35px; height: 2px;
  background: var(--fa-secondary);
}

.fa-footer a {
  color: #94A3B8;
  transition: var(--fa-transition);
}

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

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--fa-transition);
  margin-right: 8px;
}

.footer-social-icon:hover {
  background: var(--fa-secondary);
  color: #0F172A;
  transform: translateY(-3px);
}

.fa-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  margin-top: 3.5rem;
  font-size: 0.85rem;
}

/* Admin UI */
.admin-sidebar {
  width: 265px;
  background: var(--fa-primary-dark);
  color: #CBD5E1;
  min-height: 100vh;
  transition: var(--fa-transition);
  overflow-x: hidden;
}

.admin-sidebar .nav-link {
  color: #94A3B8 !important;
  font-weight: 500;
  padding: 0.65rem 0.95rem !important;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  white-space: normal !important;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
}

.admin-sidebar .nav-link.active {
  background: var(--fa-primary);
  border-left: 4px solid var(--fa-secondary);
}

.admin-metric-card {
  background: #FFFFFF;
  border-radius: var(--fa-radius);
  padding: 1.5rem;
  border: 1px solid var(--fa-border);
  box-shadow: var(--fa-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-metric-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .hero-visual-img {
    height: 320px;
    margin-top: 2rem;
  }
  .fa-topbar {
    display: none;
  }
}

/* ==========================================================================
   Google Translate Custom Styling & Layout Normalization
   ========================================================================== */
body {
  top: 0px !important;
  position: static !important;
}
html.translated-ltr,
html.translated-rtl,
body.translated-ltr,
body.translated-rtl {
  top: 0px !important;
  margin-top: 0px !important;
}

/* Completely Suppress Google Translate Top Banner & Iframe */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
iframe[id*=":1.container"],
iframe[id*=":2.container"],
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-y6cTwb-L7lbkb {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: none !important;
}

/* Hide Google tooltip balloon on hover */
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

/* Remove default highlight background */
.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

/* Google Translate Gadget Clean Styling */
.google-translate-container {
  min-height: 38px;
}

.goog-te-gadget {
  font-family: inherit !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
}

.goog-te-gadget .goog-te-combo {
  width: 100% !important;
  padding: 0.38rem 0.65rem !important;
  font-size: 0.82rem !important;
  border-radius: 0.375rem !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  color: #1e293b !important;
  outline: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.goog-te-gadget .goog-te-combo:focus {
  border-color: var(--fa-primary) !important;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.15) !important;
}

.goog-te-gadget .goog-logo-link,
.goog-te-gadget > span {
  display: none !important;
}

/* Language Dropdown Items */
.dropdown-item.google-translate-item {
  font-size: 0.84rem;
  padding: 0.42rem 1rem;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-item.google-translate-item:hover {
  background-color: #f1f5f9;
  color: var(--fa-primary-dark);
}

.dropdown-item.google-translate-item.active {
  background-color: #eff6ff;
  color: var(--fa-primary);
  font-weight: 600;
}

/* ==========================================================================
   POINT OF SALE (POS) SYSTEM STYLING
   ========================================================================== */
.pos-container {
  display: flex;
  gap: 1.25rem;
  min-height: calc(100vh - 120px);
}

.pos-catalog-column {
  flex: 1 1 65%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pos-cart-column {
  flex: 0 0 380px;
  max-width: 420px;
  min-width: 340px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .pos-container {
    flex-direction: column;
  }
  .pos-cart-column {
    flex: 1 1 100%;
    max-width: 100%;
    position: static;
    height: auto;
  }
}

/* Category Filter Pills */
.pos-cat-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.pos-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-cat-pill:hover {
  background: #f1f5f9;
  color: var(--fa-primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pos-cat-pill.active {
  background: var(--fa-primary);
  color: #ffffff;
  border-color: var(--fa-primary);
  box-shadow: 0 4px 10px rgba(15, 44, 89, 0.25);
}

/* Product Cards Grid */
.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.pos-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pos-card:hover {
  border-color: var(--fa-accent);
  box-shadow: 0 10px 20px -5px rgba(15, 44, 89, 0.12);
  transform: translateY(-3px);
}

.pos-card:active {
  transform: scale(0.97);
}

.pos-card.out-of-stock {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.pos-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 9999px;
  z-index: 2;
}

.pos-card-img {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 2.2rem;
}

.pos-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.pos-card-kh {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pos-card-price-usd {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2c59;
}

.pos-card-price-khr {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* POS Cart Box */
.pos-cart-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.pos-cart-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.pos-cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem 1rem;
}

.pos-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #e2e8f0;
  gap: 0.5rem;
}

.pos-cart-item:last-child {
  border-bottom: none;
}

.pos-cart-footer {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Stepper buttons */
.pos-qty-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.pos-qty-btn:hover {
  background: var(--fa-primary);
  color: #ffffff;
  border-color: var(--fa-primary);
}

.pos-qty-input {
  width: 38px;
  height: 26px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Quick Pay Buttons */
.pos-tender-btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--fa-primary);
  transition: all 0.15s;
}

.pos-tender-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

/* KHQR Card Display */
.pos-khqr-box {
  background: #ffffff;
  border: 2px solid #dc2626;
  border-radius: 14px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.15);
}

.pos-khqr-header {
  background: #dc2626;
  color: #ffffff;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Official Academic Report Card & Transcript Styling
   ========================================================================== */
.report-card-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.report-card-emblem:hover {
  transform: scale(1.05);
}
.report-card-emblem i {
  font-size: 1.7rem;
  line-height: 1;
}

/* Color Themes */
.report-card-emblem.navy-gold {
  background: linear-gradient(135deg, #0f2c59 0%, #071730 100%);
  border: 2px solid #e5a93c;
  color: #f7c948;
}
.report-card-emblem.gold-navy {
  background: linear-gradient(135deg, #f7c948 0%, #e5a93c 100%);
  border: 2px solid #0f2c59;
  color: #0f2c59;
}
.report-card-emblem.royal-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  border: 2px solid #93c5fd;
  color: #ffffff;
}
.report-card-emblem.emerald {
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  border: 2px solid #e5a93c;
  color: #f7c948;
}
.report-card-emblem.crimson {
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  border: 2px solid #fde047;
  color: #fde047;
}
.report-card-emblem.dark-slate {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
  border: 2px solid #94a3b8;
  color: #f8fafc;
}

@media print {
  .report-card-emblem {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ==========================================================================
   Responsive Student & Parent Portal Header Strip
   ========================================================================== */
.portal-header-card {
  transition: box-shadow 0.25s ease;
}

.portal-header-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding-top: 10px !important;
  padding-bottom: 6px !important;
  padding-right: 14px !important;
  padding-left: 4px !important;
  overflow: visible !important;
}

@media (max-width: 767.98px) {
  .portal-header-actions {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
    padding-right: 16px !important;
    padding-left: 4px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .portal-header-actions::-webkit-scrollbar {
    display: none;
  }
}

.portal-header-actions .btn {
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.2s ease;
}

.portal-header-actions .btn-header-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  position: relative !important;
  flex-shrink: 0 !important;
  font-size: 1.2rem;
  line-height: 1;
  border-width: 1.5px !important;
  border-style: solid !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.portal-header-actions .btn-header-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.portal-header-actions .btn-header-icon.dropdown-toggle::after {
  display: none !important;
}

/* Specific Distinct Styles for Each Header Button */
.portal-header-actions .btn-header-card {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}
.portal-header-actions .btn-header-card:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.portal-header-actions .btn-header-warning {
  background-color: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #d97706 !important;
}
.portal-header-actions .btn-header-warning:hover {
  background-color: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #b45309 !important;
}

.portal-header-actions .btn-header-info {
  background-color: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}
.portal-header-actions .btn-header-info:hover {
  background-color: #e0f2fe !important;
  border-color: #0369a1 !important;
  color: #0369a1 !important;
}

.portal-header-actions .btn-header-primary {
  background-color: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #2563eb !important;
}
.portal-header-actions .btn-header-primary:hover {
  background-color: #dbeafe !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}

.portal-header-actions .btn-header-bus {
  background-color: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #d97706 !important;
}
.portal-header-actions .btn-header-bus:hover {
  background-color: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #92400e !important;
}

.portal-header-actions .btn-header-secondary {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #475569 !important;
}
.portal-header-actions .btn-header-secondary:hover {
  background-color: #f1f5f9 !important;
  border-color: #64748b !important;
  color: #1e293b !important;
}

.portal-header-actions .btn-header-danger {
  background-color: #fef2f2 !important;
  border-color: #f87171 !important;
  color: #dc2626 !important;
}
.portal-header-actions .btn-header-danger:hover {
  background-color: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.portal-header-actions .btn-header-gold {
  background-color: #fffbeb !important;
  border-color: #d97706 !important;
  color: #b45309 !important;
}
.portal-header-actions .btn-header-gold:hover {
  background-color: #fef3c7 !important;
  border-color: #b45309 !important;
  color: #78350f !important;
}

/* Badges with High Contrast, Crisp Typography, and Anti-Clipping Positioning */
.portal-header-actions .header-action-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff !important;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 5;
  letter-spacing: 0;
}

.portal-header-actions .header-action-badge.badge-danger {
  background-color: #ef4444 !important;
}

.portal-header-actions .header-action-badge.badge-primary {
  background-color: #2563eb !important;
}

.portal-header-actions .header-action-badge.badge-live {
  top: -6px;
  right: -8px;
  min-width: auto;
  height: 21px;
  padding: 0 7px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #dc2626 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.portal-header-actions .header-action-badge.badge-live .live-dot {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: liveDotPulse 1.5s infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

@media (max-width: 575.98px) {
  .portal-header-actions .btn-header-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 1.1rem;
  }
  .portal-header-actions .header-action-badge {
    top: -5px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    font-size: 0.68rem;
  }
  .portal-header-actions .header-action-badge.badge-live {
    top: -6px;
    right: -8px;
    height: 19px;
    font-size: 0.6rem;
    padding: 0 5px;
  }
}
/* ==========================================================================
   Completely Eradicate Google Translate Top Banner & Body Shift
   ========================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
iframe[id*=":0"],
iframe[id*=":1"],
iframe[id*=":2"],
iframe[id*="container"],
iframe[src*="translate.google"],
iframe[name*="goog"],
iframe[class*="goog"],
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-y6cTwb-L7lbkb {
    display: none !important;
    visibility: hidden !important;
    height: 0px !important;
    max-height: 0px !important;
    width: 0px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: none !important;
    clip: rect(0 0 0 0) !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -9999 !important;
}

body, html {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

html.translated-ltr, html.translated-rtl,
body.translated-ltr, body.translated-rtl {
    top: 0px !important;
    margin-top: 0px !important;
}

#goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

/* ========================================================
   FIRST ACADEMY MOBILE APP DOWNLOAD BANNER
   ======================================================== */
.mobile-app-section {
    background: linear-gradient(135deg, #07152B 0%, #0F2C59 55%, #172554 100%);
    position: relative;
    color: #ffffff;
}

.mobile-app-ambient-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.mobile-app-ambient-glow.glow-1 {
    top: -100px;
    right: 5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, transparent 70%);
}

.mobile-app-ambient-glow.glow-2 {
    bottom: -80px;
    left: 10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
}

.pulse-success {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Official Download Badges */
.btn-app-download {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 8px 18px;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    min-width: 172px;
}

.btn-app-download:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
    background: #0a0a0a;
}

.app-badge-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.85;
    line-height: 1.1;
    font-weight: 500;
}

.app-badge-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.2px;
}

/* Smartphone Mockup */
.smartphone-mockup-wrapper {
    position: relative;
    max-width: 310px;
    margin: 0 auto;
}

.smartphone-chassis {
    position: relative;
    border-radius: 46px;
    border: 11px solid #1e293b;
    background: #000000;
    box-shadow: 0 28px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: hidden;
    max-height: 560px;
    aspect-ratio: 9 / 18.5;
}

.smartphone-dynamic-island {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 20px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.island-camera {
    width: 8px;
    height: 8px;
    background: #0f172a;
    border-radius: 50%;
    border: 1.5px solid #334155;
}

.island-sensor {
    width: 5px;
    height: 5px;
    background: #1e293b;
    border-radius: 50%;
    margin-left: 5px;
}

.smartphone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}

.smartphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.smartphone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 105px;
    height: 4px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 9999px;
    z-index: 10;
}

/* Floating Badges */
.floating-app-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    padding: 7px 15px;
    display: inline-flex;
    align-items: center;
    z-index: 12;
    transition: transform 0.25s ease;
}

.floating-app-badge:hover {
    transform: translateY(-2px);
}

.floating-app-badge.badge-top {
    top: 30px;
    right: -24px;
}

.floating-app-badge.badge-bottom {
    bottom: 40px;
    left: -24px;
    border-radius: 16px;
    padding: 9px 15px;
}

@media (max-width: 991.98px) {
    .floating-app-badge.badge-top {
        right: 0px;
        top: 15px;
    }
    .floating-app-badge.badge-bottom {
        left: 0px;
        bottom: 20px;
    }
    .smartphone-mockup-wrapper {
        max-width: 280px;
    }
}

