/* ==========================================
   ACADEX MARKETING WEBSITE - MAIN CSS
   Design System v1.0
   - Color System: CSS Variables in :root
   - Typography: Inter font family
   - Spacing: 4px grid system
   - Border Radius: Consistent radius variables
   - Shadows: Layered shadow system
   - Transitions: Consistent timing and easing
   ========================================== */

/* ---------- CSS VARIABLES / DESIGN TOKENS ---------- */
:root {
  --primary: #0A3D78;
  --primary-dark: #072952;
  --primary-light: #1B75BB;
  --secondary: #1B75BB;
  --secondary-light: #3B82F6;
  --accent: #F7941D;
  --accent-dark: #d97706;

  --text-primary: #0B2347;
  --text-secondary: #334155;
  --text-light: #64748b;
  --text-white: #ffffff;

  --bg-white: #FFFFFF;
  --bg-surface: #F7F9FC;
  --bg-light: #F1F5F9;
  --bg-gray: #E2E8F0;
  --bg-dark: #0B2347;

  --border-color: #DCE5F0;
  --border-focus: #0A3D78;

  --success: #22C55E;
  --warning: #F59E0B;
  --error: #DC2626;
  --danger: #DC2626;

  --shadow-sm: 0 1px 2px 0 rgba(10, 61, 120, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 61, 120, 0.1), 0 2px 4px -1px rgba(10, 61, 120, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 61, 120, 0.1), 0 4px 6px -2px rgba(10, 61, 120, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 61, 120, 0.1), 0 10px 10px -5px rgba(10, 61, 120, 0.04);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1280px;
  --navbar-height: 72px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- LAYOUT ---------- */
.container {
   width: 100%;
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 24px;
 }

 @media (min-width: 768px) {
   .container {
     padding: 0 48px;
   }
 }

 @media (min-width: 1024px) {
   .container {
     padding: 0 64px;
   }
 }

 /* ---------- DASHBOARD SPECIFIC CONTAINER PADDING ---------- */
.dashboard-modern .container {
    padding: 0 8px;
}

@media (min-width: 768px) {
    .dashboard-modern .container {
       padding: 0 12px;
    }
}

@media (min-width: 1024px) {
    .dashboard-modern .container {
       padding: 0 16px;
    }
}
.dashboard-modern .section {
    padding: 20px 0;
}
@media (min-width: 768px) {
    .dashboard-modern .section {
        padding: 25px 0;
    }
}
@media (min-width: 1024px) {
    .dashboard-modern .section {
        padding: 30px 0;
    }
}
 
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}

.section-header {
   text-align: center;
   max-width: 700px;
   margin: 0 auto 60px;
 }

.dashboard-modern .section-header {
     margin-bottom: 15px;
 }

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(10, 61, 120, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.025em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- DASHBOARD SPECIFIC STYLES ---------- */
.dashboard-modern .section-label {
    display: inline-flex;
    align-items: center;
    background: rgba(10, 61, 120, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.025em;
    border: 1px solid rgba(10, 61, 120, 0.15);
}

.dashboard-modern .section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.dashboard-modern .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-modern .section-title {
        font-size: 1.75rem;
    }
    
    .dashboard-modern .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-modern .section-title {
        font-size: 1.5rem;
    }
    
    .dashboard-modern .section-subtitle {
        font-size: 0.9375rem;
    }
    
    .dashboard-modern .section-label {
        font-size: 0.6875rem;
        padding: 3px 10px;
    }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: var(--text-white);
  color: var(--primary);
  border-color: var(--text-white);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-sm {
   padding: 10px 20px;
   font-size: 0.875rem;
 }

 /* ---------- DASHBOARD SPECIFIC BUTTON SIZES ---------- */
.dashboard-modern .cta-actions .btn-lg {
    padding: 8px 16px;
    font-size: 0.6875rem;
}

.dashboard-modern .btn-lg {
    padding: 8px 16px;
    font-size: 0.6875rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 0;
  line-height: 0;
}

.logo img {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-logo {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .navbar-container {
    padding: 0 48px;
  }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  background: var(--accent);
  width: 100%;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    animation: slideDown 0.3s ease;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(var(--navbar-height) + 80px);
  padding-bottom: 100px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-animated-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(10, 61, 120, 0.03) 0%, transparent 20%),
              radial-gradient(circle at 80% 70%, rgba(27, 117, 187, 0.03) 0%, transparent 20%),
              radial-gradient(circle at 50% 50%, rgba(247, 148, 29, 0.02) 0%, transparent 15%);
  animation: bgPulse 8s ease-in-out infinite alternate;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-floating-element {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: floatElement 12s ease-in-out infinite;
}

.hero-floating-element--1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.hero-floating-element--2 {
  top: 25%;
  right: 10%;
  animation-delay: -2s;
}

.hero-floating-element--3 {
  top: 60%;
  left: 12%;
  animation-delay: -4s;
}

.hero-floating-element--4 {
  top: 70%;
  right: 15%;
  animation-delay: -1s;
}

.hero-floating-element--5 {
  top: 35%;
  left: 30%;
  animation-delay: -3s;
}

.hero-floating-element--6 {
  bottom: 20%;
  right: 8%;
  animation-delay: -5s;
}

.hero-floating-element--7 {
  top: 15%;
  right: 25%;
  animation-delay: -2.5s;
}

.hero-floating-element--8 {
  bottom: 15%;
  left: 18%;
  animation-delay: -1.5s;
}

@keyframes bgPulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

@keyframes floatElement {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.1;
  }
  25% {
    transform: translateY(-20px) scale(1.1) rotate(5deg);
    opacity: 0.18;
  }
  50% {
    transform: translateY(10px) scale(0.95) rotate(-3deg);
    opacity: 0.15;
  }
  75% {
    transform: translateY(-15px) scale(1.05) rotate(2deg);
    opacity: 0.18;
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.1;
  }
}

.hero-grid {
  display: grid;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 61, 120, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-image {
  position: relative;
}

.hero-dashboard {
  background: linear-gradient(135deg, #0A3D78 0%, #1B75BB 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-dashboard-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dashboard-content {
  color: var(--text-white);
}

.hero-dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-dashboard-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-dashboard-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-dashboard-card-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-decoration-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.hero-decoration-2 {
  width: 300px;
  height: 300px;
  background: #1B75BB;
  bottom: -50px;
  left: -50px;
}

/* ---------- TRUSTED SCHOOLS ---------- */
.trusted {
  padding: 60px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trusted-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
  opacity: 0.7;
}

.trusted-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition-fast);
}

.trusted-logo:hover {
  opacity: 1;
  color: var(--primary);
}

.trusted-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ---------- FEATURES OVERVIEW ---------- */
.features-overview {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1B75BB);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(10, 61, 120, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.1);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-navigation {
  position: relative;
  z-index: 200;
  max-width: 900px;
  margin: 0 auto 32px;
}

.feature-navigation-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  list-style: none;
}

.feature-navigation-toggle::-webkit-details-marker,
.feature-navigation-toggle::marker {
  display: none;
}

.feature-navigation-toggle:hover,
.feature-navigation-toggle:focus-visible {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(10, 61, 120, 0.25), var(--shadow-lg);
    transform: translateY(-2px);
    outline: none;
}

.feature-navigation[open] .feature-navigation-toggle {
  border-color: var(--primary-light);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.feature-navigation-icon,
.feature-navigation-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(10, 61, 120, 0.1);
  color: var(--primary);
}

.feature-navigation-label {
  flex: 1;
  min-width: 0;
}

.feature-navigation-title,
.feature-navigation-subtitle {
  display: block;
}

.feature-navigation-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-navigation-subtitle {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.feature-navigation-chevron {
  color: var(--primary);
  transition: transform var(--transition-base);
}

.feature-navigation[open] .feature-navigation-chevron {
  transform: rotate(180deg);
}

.feature-navigation-menu {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.feature-navigation-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.feature-navigation-link:hover,
.feature-navigation-link:focus-visible {
    background: var(--bg-light);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 120, 0.25);
    transform: translateY(-2px);
}

.feature-navigation-link-icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.feature-navigation-link-arrow {
  margin-left: auto;
  color: var(--primary-light);
  font-size: 0.8rem;
}

.feature-products-grid {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-product-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.feature-product-badge {
    position: absolute;
    top: 22px;
    right: 80px;
    padding: 4px 9px;
    border-radius: 100px;
    background: rgba(247, 148, 29, 0.12);
    color: var(--accent-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    z-index: 1;
}

.feature-product-link-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
}

[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 600px) {
  .feature-navigation-menu {
    grid-template-columns: 1fr;
  }

  .feature-navigation-subtitle {
    display: none;
  }
}

.feature-product-badge {
  background: var(--primary);
  color: var(--bg-white);
}

.coming-soon-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.coming-soon-content {
  max-width: 640px;
}

.coming-soon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 2rem;
}

.coming-soon-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.coming-soon-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.coming-soon-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.coming-soon-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.coming-soon-checklist i {
  color: var(--success);
}

.coming-soon-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- MODERN DASHBOARD ---------- */
.dashboard-modern {
  background: var(--bg-white);
}

.dashboard-modern-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}

@media (min-width: 1024px) {
    .dashboard-modern-grid {
      grid-template-columns: 1fr 1fr;
       gap: 24px;
    }
}

.dashboard-modern-content {
  order: 1;
}

@media (min-width: 1024px) {
  .dashboard-modern-content {
    order: 0;
  }
}
/* ---------- DASHBOARD VISUAL CONTAINER ---------- */
.dashboard-modern-visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    /* Limit the visual width to prevent it from being too wide */
    max-width: 440px;
    /* Limit height to prevent excessive vertical space */
    max-height: 50vh;
    /* Allow scrolling if content overflows */
    overflow-y: auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .dashboard-modern-visual {
        padding: 24px;
        max-width: 448px;
    }
}
@media (min-width: 1024px) {
    .dashboard-modern-visual {
        padding: 28px;
        max-width: 456px;
    }
}

.dashboard-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.dashboard-highlight {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.dashboard-highlight:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.dashboard-highlight-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.dashboard-highlight-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--text-primary);
}

.dashboard-highlight-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.2;
    margin: 0;
}

.dashboard-roles h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.dashboard-role-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-role-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  border-radius: 100px;
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.dashboard-role-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 61, 120, 0.05);
}

.dashboard-role-tab.active {
  border-color: var(--primary);
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.dashboard-frame {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-frame-dots {
    display: flex;
    gap: 4px;
}

.dashboard-frame-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-frame-dots span:first-child { background: #FF5F57; }
.dashboard-frame-dots span:nth-child(2) { background: #FFBD2E; }
.dashboard-frame-dots span:last-child { background: #28CA42; }

.dashboard-frame-title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-frame-actions {
  display: flex;
  gap: 8px;
}

.dashboard-frame-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.dashboard-frame-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.dashboard-frame-body {
    padding: 16px;
    background: var(--bg-dark);
}

.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.dashboard-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.dashboard-metric-icon {
    width: 32px;
    height: 32px;
    background: rgba(10, 61, 120, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 8px;
}

.dashboard-metric-icon.warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.dashboard-metric-icon.success { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.dashboard-metric-icon.info { background: rgba(59, 130, 246, 0.2); color: var(--secondary-light); }

.dashboard-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 2px;
}

.dashboard-metric-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.dashboard-metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 100px;
}

.dashboard-metric-trend.up {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.dashboard-metric-trend.down {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.dashboard-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-chart-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.dashboard-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-chart-header h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.dashboard-chart-period {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.6875rem;
    color: var(--text-white);
    cursor: pointer;
}

.dashboard-chart-placeholder {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dashboard-chart-placeholder canvas {
  max-width: 100%;
  height: auto;
}

.dashboard-bottom-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dashboard-activity-card,
.dashboard-quick-actions-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
}

.dashboard-view-all {
  font-size: 0.8125rem;
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

.dashboard-view-all:hover {
  color: var(--text-white);
}

.dashboard-activity-list {
  padding: 16px 0;
}

.dashboard-activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-base);
}

.dashboard-activity-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.dashboard-activity-icon.success { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.dashboard-activity-icon.warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.dashboard-activity-icon.info { background: rgba(59, 130, 246, 0.2); color: var(--secondary-light); }

.dashboard-activity-text {
  flex: 1;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.dashboard-activity-text strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 2px;
}

.dashboard-activity-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.dashboard-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

.dashboard-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-base);
}

.dashboard-quick-action:hover {
  background: rgba(10, 61, 120, 0.2);
  color: var(--text-white);
  transform: translateY(-2px);
}

.dashboard-quick-action i {
  font-size: 1.25rem;
}

.dashboard-quick-action span {
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .dashboard-modern-grid {
    gap: 40px;
  }

  .dashboard-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-charts-row {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- STATISTICS ---------- */
.statistics {
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.statistics::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
  }
}

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

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ---------- BENEFITS ---------- */
.benefits {
  background: var(--bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: var(--success);
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works {
  background: var(--bg-white);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    gap: 24px;
  }
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--warning);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.testimonial-info {
  min-width: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.testimonial-school {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

/* ---------- PRICING PREVIEW ---------- */
.pricing-preview {
  background: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  color: var(--text-white);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-save {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-top: 8px;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-feature-icon {
  width: 20px;
  height: 20px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-answer-inner {
  padding: 0 32px 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3.5rem;
  }
}

.cta-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: auto;
  }
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: block;
}

.footer-description {
  font-size: 0.9375rem;
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-column-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9375rem;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-legal a:hover {
  opacity: 1;
}

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-white);
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(10, 61, 120, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 6px;
  display: none;
}

.form-input.error {
  border-color: var(--danger);
}

.form-input.error + .form-error {
  display: block;
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--bg-light);
  padding: 60px 0;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .newsletter-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.newsletter-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(10, 61, 120, 0.1);
}

/* ---------- ANIMATIONS ---------- */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 {
  transition-delay: 100ms;
}

.animate-delay-2 {
  transition-delay: 200ms;
}

.animate-delay-3 {
  transition-delay: 300ms;
}

.animate-delay-4 {
  transition-delay: 400ms;
}

.animate-delay-5 {
  transition-delay: 500ms;
}

.fade-in {
  animation: fadeIn 600ms ease forwards;
}

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

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

/* ---------- UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

@media (min-width: 768px) {
  .text-md-center { text-align: center; }
  .text-md-left { text-align: left; }
  .text-md-right { text-align: right; }
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- TABLET (768px+) ---------- */
@media (min-width: 768px) {
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ---------- DESKTOP (1024px+) ---------- */
@media (min-width: 1024px) {
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

/* ---------- LARGE DESKTOP (1280px+) ---------- */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* ---------- ABOUT PAGE ---------- */
.mission-section {
  background: var(--bg-white);
}

.mission-grid {
  display: grid;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.mission-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.mission-image-placeholder {
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: rgba(10, 61, 120, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: var(--primary);
}

.value-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.875rem;
  border: 4px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.timeline-year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.team-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CONTACT PAGE ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  background: rgba(10, 61, 120, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-info-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-placeholder {
  background: var(--bg-gray);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

/* ---------- BLOG PAGE ---------- */
.blog-hero {
  padding-top: calc(var(--navbar-height) + 80px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 700;
}

.blog-card-content {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.blog-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(10, 61, 120, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.blog-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1B75BB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.blog-card-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.blog-card-date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Article */
.article-header {
  padding-top: calc(var(--navbar-height) + 80px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.875rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body li {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  margin: 32px 0;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 48px 0;
}

.article-share-label {
  font-weight: 700;
  font-size: 0.9375rem;
}

.article-share-links {
  display: flex;
  gap: 12px;
}

.article-share-link {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.article-share-link:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ---------- PRICING TOGGLE ---------- */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.pricing-toggle-label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.pricing-toggle-label.active {
  color: var(--text-primary);
}

.pricing-toggle-label:not(.active) {
  color: var(--text-secondary);
}

.pricing-switch {
  position: relative;
  width: 56px;
  height: 28px;
  cursor: pointer;
}

.pricing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-color);
  border-radius: 100px;
  transition: all var(--transition-base);
}

.pricing-switch-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: var(--bg-white);
  border-radius: 50%;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.pricing-switch input:checked + .pricing-switch-slider {
  background: var(--primary);
}

.pricing-switch input:checked + .pricing-switch-slider::before {
  transform: translateX(28px);
}

/* ---------- DEDICATED TESTIMONIALS ---------- */
.testimonials-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.testimonial-filter-btn {
  padding: 8px 24px;
  border-radius: 100px;
  border: 2px solid var(--border-color);
  background: transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.testimonial-filter-btn:hover,
.testimonial-filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 61, 120, 0.05);
}

/* ---------- POLICY PAGES ---------- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.875rem;
  margin-bottom: 24px;
  margin-top: 48px;
}

.policy-content h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  margin-top: 32px;
}

.policy-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.policy-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ---------- INSTALLATION SECTION ---------- */
.install-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .install-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.terminal {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-light);
  overflow-x: auto;
}

.terminal-line {
  display: block;
  margin-bottom: 4px;
}

.terminal-prompt {
  color: var(--success);
}

.terminal-comment {
  color: var(--text-light);
}

/* ---------- FOOTER EXTRA ---------- */
.footer-newsletter {
  max-width: 480px;
  margin: 0 auto;
}

.footer-newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  transition: all var(--transition-base);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- BACK TO TOP ---------- */
.scroll-to-top {
  position: fixed;
  bottom: 112px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 100px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

/* ---------- AI / GEMINI INTEGRATION ---------- */
.hero-ai {
  background: linear-gradient(180deg, #0B2347 0%, #0A3D78 50%, var(--bg-light) 100%);
  color: var(--text-white);
}

.hero-ai .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.hero-ai .hero-title {
  color: var(--text-white);
}

.hero-ai .hero-description {
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
}

.hero-ai .hero-actions .btn-secondary {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-ai .hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.ai-preview-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.ai-preview-header {
  background: var(--bg-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
}

.ai-preview-dots {
  display: flex;
  gap: 6px;
}

.ai-preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
}

.ai-preview-dots span:first-child { background: #FF5F57; }
.ai-preview-dots span:nth-child(2) { background: #FFBD2E; }
.ai-preview-dots span:last-child { background: #28CA42; }

.ai-preview-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.ai-preview-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}

.ai-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 85%;
  animation: fadeInUp 0.3s ease;
}

.ai-message-user {
  background: var(--primary);
  color: var(--text-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-message-bot {
  background: var(--bg-light);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-features {
  background: var(--bg-white);
}

.ai-features .feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.ai-features .feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.ai-features .feature-icon {
  width: 56px;
   height: 56px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: var(--radius-md);
   background: rgba(10, 61, 120, 0.1);
   color: var(--primary);
   font-size: 1.5rem;
   margin-bottom: 20px;
}
.ai-features .feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.1);
}

.ai-features .feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.ai-features .feature-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cta-ai-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-white);
}

.cta-ai-section .section-title,
.cta-ai-section .cta-title {
  color: var(--text-white);
}

.cta-ai-section .cta-description {
  color: rgba(255, 255, 255, 0.9);
}

.cta-ai-section .btn-secondary {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-ai-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.chat-demo {
  background: var(--bg-light);
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.chat-container .chat-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-container .chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-container .chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.chat-container .chat-title {
  font-weight: 700;
  font-size: 1rem;
}

.chat-container .chat-status {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.chat-container .chat-messages {
  padding: 24px;
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-white);
}

.chat-container .chat-messages .ai-message {
  max-width: 80%;
  animation: fadeInUp 0.3s ease;
}

.chat-container .chat-input-container {
  padding: 16px 24px 24px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.chat-container .chat-form {
  display: flex;
  gap: 12px;
}

.chat-container .chat-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--bg-white);
  color: var(--text-primary);
}

.chat-container .chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 120, 0.1);
}

.chat-container .chat-submit {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.chat-container .chat-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.chat-container .chat-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chat-container .chat-disclaimer {
  margin-top: 12px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8125rem;
}

.chat-container .chat-disclaimer code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

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

@media (max-width: 768px) {
  .chat-container .chat-messages {
    min-height: 300px;
    max-height: 400px;
  }

  .chat-container .chat-messages .ai-message {
    max-width: 90%;
  }
}

/* ---------- PARTNERS / EDUCATION PARTNERS SECTION ---------- */
.partners-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
}

.partners-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
  opacity: 0.8;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all var(--transition-fast);
  filter: grayscale(30%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.partner-logo-img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  display: block;
  object-fit: contain;
}

.partner-logo-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
}

.partner-logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---------- FEATURE BADGES ---------- */
.feature-badge {
    position: absolute;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    z-index: 1;
}
.feature-badge:first-of-type {
    top: 22px;
    right: 22px;
}
.feature-badge + .feature-badge {
    top: 48px;
    right: 22px;
}
.feature-badge + .feature-badge + .feature-badge {
    top: 74px;
    right: 22px;
}
/* Specific badge types */
.feature-badge.admin { background: rgba(10, 61, 120, 0.1); color: var(--primary-dark); }
.feature-badge.teacher { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.feature-badge.automated { background: rgba(168, 85, 247, 0.1); color: #8b5cf6; }
.feature-badge.analytics { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.feature-badge.finance { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.feature-badge.security { background: rgba(75, 89, 230, 0.1); color: #4b59f7; }

/* ---------- SYSTEM BADGES ROW ---------- */
.system-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 0;
  max-width: 800px;
}

.system-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.system-badge:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.system-badge i {
  color: var(--primary);
  font-size: 1.1rem;
  transition: color var(--transition-base);
}

.system-badge:hover i {
  color: var(--text-white);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ---------- UNIFIED TRUSTED SECTION ---------- */
.trusted-unified {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.trusted-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.trusted-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trusted-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 2px solid var(--border-color);
  border-radius: 100px;
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.trusted-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 61, 120, 0.05);
}

.trusted-tab-btn.active {
  border-color: var(--primary);
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-md);
}

.trusted-tab-btn .trusted-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.trusted-tab-btn.active .trusted-count {
  background: rgba(255, 255, 255, 0.3);
}

.trusted-tab-panels {
  min-height: 200px;
}

.trusted-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.trusted-tab-panel.active {
  display: block;
}

.trusted-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.trusted-logo-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.trusted-logo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.trusted-logo-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trusted-logo-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.trusted-logo-location {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-dots .dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.trusted-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.trusted-partner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.trusted-partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.trusted-partner-icon {
  width: 48px;
  height: 48px;
  background: rgba(10, 61, 120, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trusted-partner-logo {
  max-height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
}

.trusted-partner-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.trusted-partner-type {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: capitalize;
}

.trusted-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

@media (max-width: 768px) {
  .trusted-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trusted-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.trusted-stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Reuse existing .trusted for other pages if needed */
.trusted .trusted-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ---------- LIVE INDICATOR ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  align-items: center;
}

.partner-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
  min-height: 100px;
}

.partner-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.partner-grid-item .partner-logo-text {
  font-size: 0.9rem;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
  --primary: #1B75BB;
  --primary-dark: #0A3D78;
  --primary-light: #3B82F6;
  --secondary: #3B82F6;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  --bg-white: #0F172A;
  --bg-surface: #111827;
  --bg-light: #1E293B;
  --bg-gray: #334155;
  --bg-dark: #0B1224;
  --border-color: #334155;
  --border-focus: #3B82F6;
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

[data-theme="dark"] .section {
  background: #0F172A;
}

[data-theme="dark"] .features-overview {
  background: #1E293B;
}

[data-theme="dark"] .statistics {
  background: linear-gradient(135deg, #1B75BB 0%, #3B82F6 100%);
}

[data-theme="dark"] .benefits,
[data-theme="dark"] .testimonials,
[data-theme="dark"] .faq,
[data-theme="dark"] .newsletter {
  background: #1E293B;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #1B75BB 0%, #3B82F6 100%);
}

[data-theme="dark"] .footer {
  background: #0B1224;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .card,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .testimonial-card {
  background: #1E293B;
   border-color: #334155;
}
[data-theme="dark"] .feature-card:hover {
   transform: translateY(-6px) scale(1.02);
   box-shadow: var(--shadow-xl);
   border-color: var(--primary-light);
}
[data-theme="dark"] .feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.1);
}

[data-theme="dark"] .hero-dashboard {
  background: linear-gradient(135deg, #0A3D78 0%, #1B75BB 100%);
}

[data-theme="dark"] .dashboard-mockup {
  background: #0B1224;
}

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: rotate(20deg);
}

@media (min-width: 1024px) {
  .theme-toggle {
    display: flex;
  }
}

.dark\:bg-gray-800 {
  background-color: #1E293B;
}

/* ---------- CHAT WIDGET ---------- */
/* Layout: fixed panel (desktop/tablet) or bottom sheet (phones). The header and
   composer keep their size while the message log flexes and scrolls on its own. */
.chat-widget {
    --chat-gap: 1rem;
    --chat-panel-width: 24rem;
    position: fixed;
    z-index: 1000;
    right: max(var(--chat-gap), env(safe-area-inset-right));
    bottom: calc(max(var(--chat-gap), env(safe-area-inset-bottom)) + 4.25rem);
    width: min(var(--chat-panel-width), calc(100% - (2 * var(--chat-gap))));
    max-width: 100%;
    height: max(13rem, min(32rem, calc(100vh - 8rem)));
    height: max(13rem, min(32rem, calc(100dvh - 8rem)));
    height: max(13rem, min(32rem, calc(var(--chat-vvh, 100dvh) - 8rem)));
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(var(--chat-vh-offset, 0px) + 12px)) scale(0.98);
    transform-origin: bottom right;
    transition: opacity var(--transition-base), transform var(--transition-base),
        visibility 0s linear var(--transition-base);
    -webkit-overflow-scrolling: touch;
}

.chat-widget.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(var(--chat-vh-offset, 0px)) scale(1);
    transition-delay: 0s;
}

/* Keep the panel clear of the floating launcher and the back-to-top control. */
body.chat-open .scroll-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.chat-trigger {
    position: fixed;
    z-index: 999;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base),
        opacity var(--transition-base), visibility 0s linear var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
}

.chat-trigger:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(10, 61, 120, 0.4);
}

/* Launcher is hidden while the panel is open (it would sit on top of it). */
.chat-trigger.active {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.85);
}

.chat-header {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.chat-header-text {
    min-width: 0;
}

.chat-header .chat-avatar {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-header .chat-title {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.chat-header .chat-status {
    font-size: 0.75rem;
    line-height: 1.35;
    opacity: 0.9;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.chat-close-btn {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-base);
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background: var(--bg-white);
}

.chat-message {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: min(85%, 30rem);
    animation: fadeInUp 0.25s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-message.user {
    background: var(--primary);
    color: var(--text-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.bot {
    background: var(--bg-light);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Replies written by the team from the admin are highlighted as human. */
.chat-message.agent {
    background: #FFF7ED;
    color: var(--text-primary);
    align-self: flex-start;
    border-left: 3px solid var(--accent);
    border-bottom-left-radius: 4px;
}

.chat-message-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

[data-theme="dark"] .chat-message.agent {
    background: #2A2317;
    color: var(--text-primary);
}

/* Typing indicator shown while a reply is pending. */
.chat-typing {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem 0.5rem;
}

.chat-typing[hidden] {
    display: none;
}

.chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-typing-dots i {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--text-light);
    animation: chatTyping 1.2s infinite ease-in-out;
}

.chat-typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatTyping {
    0%, 60%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.chat-quick-replies {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.chat-quick-replies[hidden] {
    display: none;
}

.chat-quick-reply {
    flex: 1 1 auto;
    min-width: 4rem;
    min-height: 2.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast);
    text-align: center;
}

.chat-quick-reply:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.chat-contact-options {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.chat-contact-btn {
    flex: 1 1 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8125rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        background var(--transition-fast);
    text-decoration: none;
    min-height: 2.5rem;
}

.chat-contact-btn i {
    font-size: 1rem;
}

.chat-contact-btn.whatsapp {
    background: #25D366;
    color: #ffffff;
}

.chat-contact-btn.email {
    background: var(--primary);
    color: #ffffff;
}

.chat-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.chat-contact-btn.whatsapp:hover {
    background: #1ebe5f;
}

.chat-contact-btn.email:hover {
    background: var(--primary-dark);
}

.chat-input-container {
    flex: 0 0 auto;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.chat-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.75rem;
    max-height: 7.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    line-height: 1.4;
    resize: none;
    overflow-y: auto;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--bg-white);
    color: var(--text-primary);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 120, 0.1);
}

.chat-submit-btn {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast),
        opacity var(--transition-fast);
}

.chat-submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.chat-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.chat-error {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--error);
}

.chat-error[hidden] {
    display: none;
}

/* Visible keyboard focus for every interactive part of the widget. */
.chat-trigger:focus-visible,
.chat-close-btn:focus-visible,
.chat-quick-reply:focus-visible,
.chat-submit-btn:focus-visible,
.chat-contact-btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.chat-input:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 1px;
}

/* Phones: the panel becomes a bottom sheet so it never fights the launcher. */
@media (max-width: 600px) {
    .chat-widget {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: max(13rem, min(78vh, 40rem));
        height: max(13rem, min(78dvh, 40rem));
        height: max(13rem, min(calc(var(--chat-vvh, 100dvh) * 0.78), 40rem));
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border-bottom: 0;
        transform: translateY(calc(var(--chat-vh-offset, 0px) + 24px));
        transform-origin: bottom center;
    }

    .chat-widget.is-open {
        transform: translateY(var(--chat-vh-offset, 0px));
    }

    .chat-trigger {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.25rem;
    }

    .chat-header {
        padding: 0.625rem 0.875rem;
    }

    .chat-close-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .chat-messages {
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .chat-message {
        max-width: 92%;
        font-size: 0.9375rem;
    }

    .chat-quick-replies,
    .chat-contact-options {
        padding: 0.5rem 0.75rem;
        /* Keep the chip rows on a single line so the conversation keeps as much
           room as possible; they scroll sideways when they do not fit. */
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .chat-quick-replies::-webkit-scrollbar,
    .chat-contact-options::-webkit-scrollbar {
        display: none;
    }

    .chat-quick-reply {
        min-height: 2.5rem;
        flex: 0 0 auto;
    }

    .chat-contact-btn {
        flex: 0 0 auto;
        min-height: 2.75rem;
    }

    .chat-input-container {
        padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom));
    }
}

/* Short viewports (landscape phones): keep the panel inside the screen. */
@media (max-height: 480px) {
    .chat-widget {
        bottom: calc(max(0.5rem, env(safe-area-inset-bottom)) + 3.75rem);
        height: max(11rem, calc(100vh - 6rem));
        height: max(11rem, calc(100dvh - 6rem));
    }

    .chat-header {
        padding: 0.5rem 0.75rem;
    }

    /* The availability line is the first thing to go when space is scarce. */
    .chat-header .chat-status {
        display: none;
    }

    .chat-messages {
        padding: 0.5rem 0.75rem;
    }

    .chat-quick-replies,
    .chat-contact-options {
        padding: 0.375rem 0.75rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .chat-input-container {
        padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-widget,
    .chat-trigger,
    .chat-close-btn,
    .chat-quick-reply,
    .chat-contact-btn,
    .chat-submit-btn,
    .chat-message,
    .chat-typing-dots i {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- TESTIMONIAL CAROUSEL ---------- */
.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-carousel .testimonial-card {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonials-carousel .testimonial-card.active {
  display: block;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-indicator.active,
.carousel-indicator:hover {
  background: var(--primary);
  transform: scale(1.2);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.carousel-nav:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev { left: -20px; }
.carousel-nav-next { right: -20px; }

/* ---------- ROI CALCULATOR ---------- */
.roi-calculator {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.roi-calculator .section-label {
  display: inline-block;
  margin-bottom: 16px;
}

.calculator-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.calculator-form .form-group {
  margin-bottom: 20px;
}

.calculator-form .form-input,
.calculator-form .form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-white);
  color: var(--text-primary);
}

.calculator-form .form-input:focus,
.calculator-form .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 61, 120, 0.1);
}

.calculator-result {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  padding: 32px;
  color: var(--text-white);
  text-align: center;
}

.calculator-result-value {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
}

.calculator-result-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.calculator-result-subtext {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  animation: modalZoom 0.3s ease;
  border: 1px solid var(--border-color);
}

@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
}

.modal-close:hover {
  background: var(--danger);
  color: var(--text-white);
  transform: rotate(90deg);
}

.modal-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-body {
  padding: 24px 32px;
}

.modal-footer {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.modal-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- EXIT INTENT MODAL ---------- */
.exit-intent-modal .modal {
  max-width: 560px;
}

.exit-intent-modal .modal-header {
  text-align: center;
  padding-bottom: 0;
  border-bottom: none;
}

.exit-intent-modal .modal-body {
  text-align: center;
}

.exit-intent-modal .modal-body .exit-intent-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--text-white);
  font-size: 2rem;
}

.exit-intent-modal .modal-footer {
  justify-content: center;
  border-top: none;
}

/* ---------- PRICING COMPARISON TABLE ---------- */
.pricing-comparison {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.pricing-table th {
  background: var(--primary);
  color: var(--text-white);
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.pricing-table th:first-child {
  text-align: left;
}

.pricing-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9375rem;
}

.pricing-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table .popular-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}

/* ---------- SECTION DIVIDERS ---------- */
.section-divider {
  position: relative;
  height: 80px;
  width: 100%;
}

.section-divider svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  preserveAspectRatio: none;
}

.section-divider-wave {
  height: 80px;
  fill: var(--bg-white);
}

.section-divider-wave.section-light {
  fill: var(--bg-light);
}

/* ---------- MICRO-INTERACTIONS ---------- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn::after {
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card .feature-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
}

.team-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

/* ---------- STICKY TABLE OF CONTENTS ---------- */
.sticky-toc {
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
  align-self: start;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
}

.toc-link:hover {
  background: var(--bg-light);
  color: var(--primary);
  border-left-color: var(--primary);
}

.toc-link.active {
  background: rgba(10, 61, 120, 0.05);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* ---------- BLOG SEARCH ---------- */
.blog-search {
  margin-bottom: 32px;
}

.blog-search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.blog-search-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-white);
  color: var(--text-primary);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 61, 120, 0.1);
}

.blog-search-button {
  padding: 0 24px;
  background: var(--primary);
  color: var(--text-white);
  border: 2px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.blog-search-button:hover {
  background: var(--primary-dark);
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

.blog-category-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid var(--border-color);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.blog-category-btn:hover,
.blog-category-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 61, 120, 0.05);
}

/* ---------- ACCESSIBILITY ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 24px;
  background: var(--primary);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  z-index: 2000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 20px;
}

/* ---------- COUNTRY PRICING SELECTOR ---------- */
.pricing-currency-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.currency-option {
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid var(--border-color);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.currency-option:hover,
.currency-option.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 61, 120, 0.05);
}

[data-currency="ksh"] .currency-ksh { font-weight: 700; color: var(--primary); }
[data-currency="ugx"] .currency-ugx { font-weight: 700; color: var(--primary); }
[data-currency="ngn"] .currency-ngn { font-weight: 700; color: var(--primary); }

[data-currency="ugx"] .currency-ksh,
[data-currency="ngn"] .currency-ksh,
[data-currency="ksh"] .currency-ugx,
[data-currency="ngn"] .currency-ugx,
[data-currency="ksh"] .currency-ngn,
[data-currency="ugx"] .currency-ngn { display: none; }

/* ---------- LIVE INDICATOR ---------- */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ---------- DARK MODE MEDIA QUERY ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --primary: #1B75BB;
    --primary-dark: #0A3D78;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-light: #94A3B8;
    --bg-white: #0F172A;
    --bg-surface: #111827;
    --bg-light: #1E293B;
    --bg-gray: #334155;
    --bg-dark: #0B1224;
    --border-color: #334155;
  }
}

/* ---------- TRUST BADGES ---------- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}
.trust-badge-icon {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    .trust-badge {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .trust-badge-icon {
        font-size: 1.5rem;
        width: 28px;
        height: 28px;
    }
}

/* ---------- CTA BADGE ---------- */
.cta-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* ---------- FEATURE BADGE ENHANCEMENTS ---------- */
.feature-badge.popular {
    background: var(--accent);
    color: var(--text-white);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feature-badge.essential {
    background: var(--success);
    color: var(--text-white);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- MOBILE MENU ENHANCEMENTS ---------- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- VIDEO MODAL ACCESSIBILITY ---------- */
.video-accessibility-note {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}
/* ---------- TRUST BADGES ---------- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}
.trust-badge-icon {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    .trust-badge {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .trust-badge-icon {
        font-size: 1.5rem;
        width: 28px;
        height: 28px;
    }
}
/* ---------- TESTIMONIALS IMPROVEMENTS ---------- */
.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
}
.testimonials-carousel .testimonials-grid {
    display: block;
    width: 100%;
}
.testimonials-carousel .testimonial-card {
    display: none;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-surface) 100%);
    border-left: 4px solid var(--primary);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}
.testimonials-carousel .testimonial-card.active {
    display: block;
}
.testimonials-carousel .testimonial-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--primary-dark);
}
.testimonial-rating {
    font-size: 1.25rem;
}
.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: normal;
    margin-bottom: 28px;
    position: relative;
}
.testimonial-text::before {
    content: "\\201C";
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: -10px;
    left: -20px;
    z-index: -1;
    line-height: 1;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid var(--bg-white);
}
.testimonial-author {
    gap: 20px;
}
.testimonial-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}
.testimonial-role {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.testimonial-school {
    font-size: 0.875rem;
    color: var(--text-light);
}
.carousel-indicators {
    margin-top: 40px;
}
.carousel-indicator {
    width: 10px;
    height: 10px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    transition: all var(--transition-base);
}
.carousel-indicator.active,
.carousel-indicator:hover {
    background: var(--primary);
    transform: scale(1.4);
    border-color: var(--primary);
}
.carousel-nav {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}
.carousel-nav:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-50%) scale(1.1);
}
@media (min-width: 768px) {
    .testimonials-carousel {
        max-width: 1000px;
    }
}
@media (min-width: 1024px) {
    .testimonials-carousel {
        max-width: 1100px;
    }
}
