/**
 * =============================================================================
 * ASKINTERP Main Website - Master Stylesheet
 * =============================================================================
 * Developed by: Muhammad Kalim
 * Personal Email: mohammadkalim@icloud.com
 * Product of LOGIXINVENTOR (PVT) Ltd.
 * =============================================================================
 * Color Theme matched with logo:
 *   Primary (Deep Navy):  #0A2647
 *   Primary Light:        #144272
 *   Secondary (Royal Blue): #205295
 *   Accent (Sky Blue):    #2C74B3
 *   Accent Gold:          #D4A843
 * =============================================================================
 */

/* ===== CSS VARIABLES (Dynamic, matched with logo) ===== */
:root {
  --primary: #0A2647;
  --primary-light: #144272;
  --secondary: #205295;
  --accent: #2C74B3;
  --accent-gold: #D4A843;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --dark: #0F172A;
  --gray-900: #1E293B;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748B;
  --gray-500: #94A3B8;
  --gray-400: #CBD5E1;
  --gray-300: #E2E8F0;
  --gray-200: #F1F5F9;
  --gray-100: #F8FAFC;
  --white: #FFFFFF;
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--gray-800);
  background: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow);
  height: 70px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .navbar-logo img {
  height: 42px;
}

/* Desktop Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu>.nav-item>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-menu>.nav-item>a:hover,
.nav-menu>.nav-item>a.active {
  color: var(--primary);
  background: var(--gray-200);
}

.nav-menu>.nav-item>a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

/* Mega Menu */
.mega-menu-wrapper {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 800px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

.mega-menu-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

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

.mega-menu-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-col ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mega-menu-col ul li a:hover {
  background: var(--gray-100);
  color: var(--primary);
  padding-left: 16px;
}

.mega-menu-col ul li a small {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Nav Buttons */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--gray-300);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-inner {
  padding: 20px;
}

.mobile-menu .mobile-nav-item a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.mobile-menu .mobile-nav-item a:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.mobile-mega-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-mega-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mobile-mega-section ul li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-600);
  border-bottom: none;
}

@media (max-width: 1024px) {

  .nav-menu,
  .nav-buttons {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(10, 38, 71, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 38, 71, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #E8C567);
  color: var(--dark);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 116, 179, 0.3) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.2) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .highlight {
  color: var(--accent-gold);
  position: relative;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hero-stat p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: fadeInRight 1s ease-out 0.5s both;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .subscriber-form {
    grid-template-columns: 1fr;
  }
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--white);
}

.section-gray {
  background: var(--gray-100);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

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

.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
}

.subscriber-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.subscriber-card__copy {
  max-width: 760px;
}

.subscriber-card h2 {
  margin: 8px 0 10px;
}

.subscriber-card p {
  color: var(--gray-600);
}

.subscriber-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 12px;
  margin-top: 18px;
}

.subscriber-form input {
  width: 100%;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
}

.subscriber-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 116, 179, 0.15);
}

.subscriber-message {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-600);
  min-height: 18px;
}

.subscriber-message.success {
  color: #15803d;
}

.subscriber-message.error {
  color: #dc2626;
}

body.splash-ad-open {
  overflow: hidden;
}

.splash-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: splashFadeIn 0.3s ease-out;
}

.splash-ad-card {
  width: 100%;
  max-width: 500px; /* Square proportions */
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.splash-ad-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  z-index: 10;
}

.splash-ad-close-icon:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

.splash-ad-body {
  flex: 1;
  padding: 48px 40px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.splash-ad-body h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 800;
}

.splash-ad-body p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

.splash-ad-footer-actions {
  padding: 0 40px 40px;
  display: flex;
  justify-content: center;
}

.splash-ad-icon-link {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(10, 38, 71, 0.2);
}

.splash-ad-learn-more {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

.splash-ad-learn-more:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(10, 38, 71, 0.3);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

@media (max-width: 540px) {
  .splash-ad-card {
    aspect-ratio: auto;
    min-height: 400px;
  }
}

.splash-ad-anim-fade {
  animation: splashFadeIn 0.3s ease-out;
}

.splash-ad-anim-zoom {
  animation: splashZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splash-ad-anim-slide_up {
  animation: splashSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes splashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splashZoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

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

/* ===== COURSE CARDS ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.course-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-gold);
  color: var(--dark);
}

.course-card-header {
  position: relative;
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.course-card-header .category-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.course-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.course-card-header .course-code {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.course-card-body {
  padding: 20px 24px;
  flex: 1;
}

.course-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}

.course-card-meta i {
  color: var(--accent);
}

.course-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.course-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
}

/* ===== CATEGORY CARDS ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
  height: 6px;
}

.category-card .icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--white);
  transition: var(--transition);
}

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

.category-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.category-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

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

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

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

.testimonial-card .quote-icon {
  font-size: 32px;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.testimonial-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.testimonial-info span {
  font-size: 13px;
  color: var(--gray-500);
}

.testimonial-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 10000;
  pointer-events: auto;
}

.testimonial-page-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}

.testimonial-page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.testimonial-page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.stars {
  color: var(--accent-gold);
  font-size: 14px;
  margin-bottom: 12px;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image i {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
}

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

.blog-card-body .category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--accent);
  margin-bottom: 12px;
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body h3 a:hover {
  color: var(--accent);
}

.blog-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
}

.blog-meta i {
  color: var(--accent);
}

/* ===== FAQ SECTION ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  transition: var(--transition);
}

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

.faq-question i {
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-about .footer-logo img {
  height: 40px;
  filter: brightness(1.3);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-col ul li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-col ul li a i {
  margin-right: 8px;
  width: 16px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--accent-gold);
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ===== PAGE HEADER (Inner pages) ===== */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 116, 179, 0.2) 0%, transparent 70%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.page-header .breadcrumb a {
  color: var(--accent-gold);
}

.page-header .breadcrumb a:hover {
  color: var(--white);
}

/* ===== CONTACT FORM ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-800);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 116, 179, 0.1);
}

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

.form-control::placeholder {
  color: var(--gray-500);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  cursor: pointer;
}

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

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 38, 71, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.gallery-item .overlay h4 {
  color: var(--white);
  font-size: 16px;
}

/* ===== Gallery Pagination + Lightbox ===== */
.gallery-pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.gallery-pagination-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-page-link {
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  color: var(--gray-800);
  transition: var(--transition);
  background: var(--white);
}

.gallery-page-link:hover {
  transform: translateY(-1px);
  border-color: rgba(44, 116, 179, 0.55);
}

.gallery-page-link.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.gallery-modal {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.42);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  z-index: 9999;
  padding: 26px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.gallery-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-card {
  width: 100%;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: scale(0.98);
  display: flex;
  flex-direction: column;
}

.gallery-modal-card img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #0b1220;
  display: block;
  margin: 0 auto;
}

.gallery-modal-caption {
  padding: 14px 16px;
  font-weight: 900;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-100);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #0a2647;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.gallery-modal-nav.prev {
  left: 14px;
}

.gallery-modal-nav.next {
  right: 14px;
}

.gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-900);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gallery-modal-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--gray-100);
  overflow-x: auto;
  background: rgba(243, 246, 251, 0.85);
}

.gallery-thumb {
  min-width: 68px;
  width: 68px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #dbe4f2;
  opacity: 0.8;
  transition: var(--transition);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-1px);
}

@keyframes galleryPop {
  from {
    transform: scale(0.98);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-modal.open .gallery-modal-card {
  animation: galleryPop 160ms ease-out;
}

@media (max-width: 768px) {
  .gallery-modal {
    padding: 10px;
  }

  .gallery-modal-card {
    border-radius: 14px;
  }

  .gallery-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .gallery-modal-nav.prev {
    left: 8px;
  }

  .gallery-modal-nav.next {
    right: 8px;
  }
}

/* ===== STATIC PAGE CONTENT ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--primary);
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-content p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-content strong {
  color: var(--gray-900);
}

/* ===== KNOWLEDGE BASE ===== */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.kb-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.kb-card .kb-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 16px;
}

.kb-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.kb-card p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== ERROR PAGE ===== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.error-page p {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.category-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.category-tab:hover,
.category-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-visual.has-slider {
  /* When the hero slider is injected, we want it to fully occupy the 400px square */
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.about-visual.has-slider .hero-slider-wrap {
  width: 100%;
  height: 100%;
  /* Force the slider to match the fixed 400px square so cropping aligns to the top */
  --hero-h: 400px !important;
  margin-bottom: 0 !important;
}

.about-visual.has-slider .hero-slider__slide img {
  object-position: center top;
}

.about-visual.has-slider .hero-slider__nav {
  /* Ensure arrows are readable and not clipped on the square About card */
  width: 46px;
  height: 46px;
  background: rgba(10, 38, 71, 0.6); /* Corporate blue with transparency */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  color: #fff !important; /* Force white icon */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px; /* Slightly smaller for premium look */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.about-visual.has-slider .hero-slider__nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.about-visual.has-slider .hero-slider__nav:active {
  transform: translateY(-50%) scale(0.95);
  transition: transform 0.1s ease;
}

.about-visual.has-slider .hero-slider__prev {
  left: 14px;
}

.about-visual.has-slider .hero-slider__next {
  right: 14px;
}

.about-visual i {
  font-size: 120px;
  color: rgba(255, 255, 255, 0.15);
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.value-item i {
  color: var(--accent);
  font-size: 20px;
  margin-top: 2px;
}

.value-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 13px;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT PAGE LAYOUT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  white-space: pre-line;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-gold {
  color: var(--accent-gold);
}

.mt-2 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 32px;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

/* ===== FEATURE CARDS (Why Choose Us) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(10, 38, 71, 0.05), rgba(44, 116, 179, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== AUTH PAGES (Sign In, Sign Up, Forgot Password) ===== */
.auth-section {
  min-height: calc(100vh - 80px);
  background: var(--gray-200);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 60px;
}

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

.auth-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.auth-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 14px;
  color: var(--gray-600);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-300);
  width: 100%;
  max-width: 440px;
}

.auth-card.auth-card-wide {
  max-width: 520px;
}

.auth-google-block {
  margin-bottom: 20px;
  animation: authFadeIn 0.35s ease;
}

.google-signin-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-signin-host iframe {
  border-radius: 999px !important;
}

.auth-google-hint {
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.auth-divider span {
  white-space: nowrap;
}

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

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

.auth-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.auth-form-group .auth-input-wrapper {
  position: relative;
}

.auth-form-group .auth-input-wrapper i.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 14px;
  pointer-events: none;
}

.auth-form-group input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.auth-form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 116, 179, 0.15);
}

.auth-form-group input::placeholder {
  color: var(--gray-500);
}

.auth-form-group input.auth-code-input {
  padding: 14px 12px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 0.3em;
  font-family: 'Courier New', monospace;
}

.auth-form-group input.no-icon {
  padding-left: 12px;
}

.auth-form-group .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  cursor: pointer;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  transition: var(--transition);
}

.auth-form-group .password-toggle:hover {
  color: var(--gray-800);
}

.auth-form-group .input-hint {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-actions-row .remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-800);
}

.auth-actions-row .remember-me input[type="checkbox"] {
  width: auto;
  padding: 0;
  accent-color: var(--primary);
}

.auth-actions-row a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.auth-actions-row a:hover {
  color: var(--primary);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-footer-link {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 24px;
}

.auth-footer-link a {
  color: var(--accent);
  font-weight: 700;
}

.auth-footer-link a:hover {
  color: var(--primary);
}

/* Auth Alert Box */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

.auth-alert.show {
  display: block;
}

.auth-alert.auth-alert-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.auth-alert.auth-alert-success {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.auth-alert .auth-alert-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-alert .auth-alert-body {
  margin-top: 4px;
}

.auth-alert a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* Hidden helper */
.hidden-form {
  display: none;
}

@media (max-width: 640px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-section {
    padding: 100px 16px 40px;
  }

  .auth-steps {
    gap: 4px;
  }

  .auth-step span {
    font-size: 10px !important;
  }

  .otp-input {
    width: 44px !important;
    height: 56px !important;
    font-size: 24px !important;
  }
}

/* ===== STEP INDICATOR ===== */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.auth-steps.auth-steps-small {
  margin-bottom: 24px;
}

.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.auth-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-500);
  border: 2px solid var(--gray-300);
  transition: var(--transition);
}

.auth-step.active .auth-step-circle {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 38, 71, 0.3);
  animation: stepPulse 2s ease-in-out infinite;
}

.auth-step.completed .auth-step-circle {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.auth-step span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--transition);
}

.auth-step.active span {
  color: var(--primary);
}

.auth-step.completed span {
  color: var(--success);
}

.auth-step-line {
  width: 40px;
  height: 3px;
  background: var(--gray-300);
  border-radius: 3px;
  margin-top: -18px;
  transition: var(--transition);
}

.auth-step-line.completed {
  background: var(--success);
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(10, 38, 71, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(10, 38, 71, 0.5); }
}

/* ===== OTP INPUT ===== */
.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
}

.otp-input {
  width: 60px;
  height: 72px;
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--primary);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  caret-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 116, 179, 0.2);
  transform: scale(1.05);
}

.otp-input:not(:placeholder-shown),
.otp-input:not([value=""]) {
  border-color: var(--primary);
  background: var(--gray-100);
}

/* ===== OTP TIMER & RESEND ===== */
.otp-timer {
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.otp-timer i {
  color: var(--accent);
}

.auth-link-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  font-family: var(--font-family);
}

.auth-link-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--gray-100);
}

.auth-link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== PASSWORD STRENGTH METER ===== */
.password-strength {
  width: 100%;
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  transition: width 0.4s ease, background 0.4s ease;
}

/* ===== AUTH FORM ANIMATIONS ===== */
.auth-step-form {
  animation: fadeInUp 0.4s ease-out;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-alert.show {
  animation: fadeInUp 0.3s ease-out;
}

/* Spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}
/* ===== COURSE DETAIL PAGE (UDEMY STYLE) ===== */
.course-detail-hero {
  background: #1c1d1f;
  color: #ffffff;
  padding: 40px 0 60px;
}

.course-detail-hero .breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: #fff;
}

.course-detail-hero .breadcrumb a {
  color: var(--accent);
  font-weight: 600;
}

.course-detail-hero h1 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.course-detail-hero .subtitle {
  font-size: 19px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.course-detail-hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}

.course-detail-hero .rating-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-gold);
  color: var(--dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.course-detail-hero .rating-stars {
  color: #f69c08;
}

.course-detail-hero .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

/* Sticky Sidebar */
.course-sidebar-wrapper {
  position: relative;
}

.course-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  width: 100%;
  position: sticky;
  top: 100px;
  z-index: 10;
  overflow: hidden;
}

.course-sidebar-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.course-sidebar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.course-sidebar-preview .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark);
  box-shadow: var(--shadow-lg);
}

.course-sidebar-content {
  padding: 24px;
}

.course-sidebar-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.course-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.course-sidebar-features h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.course-sidebar-features ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--gray-700);
}

.course-sidebar-features ul li i {
  color: var(--primary);
  width: 16px;
}

/* Main Content Area */
.course-main-content {
  padding: 40px 0;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px;
  margin-bottom: 32px;
  border-radius: var(--radius);
}

.content-card h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.learning-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.learning-point {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-700);
}

.learning-point i {
  color: var(--success);
  margin-top: 4px;
}

/* Curriculum Accordion */
.curriculum-accordion {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-300);
}

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

.accordion-header {
  padding: 16px 24px;
  background: var(--gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--gray-200);
}

.accordion-header h4 {
  font-size: 16px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-header i.chevron {
  transition: transform 0.3s ease;
}

.accordion-item.active i.chevron {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0;
  display: none;
  background: var(--white);
}

.accordion-item.active .accordion-body {
  display: block;
}

.lesson-item {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--gray-700);
}

.lesson-item:hover {
  background: var(--gray-100);
}

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

.lesson-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-title i {
  color: var(--gray-500);
}

/* Reviews Wrapper */
.reviews-wrapper {
  margin-top: 40px;
}

.review-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.review-header {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.review-meta h5 {
  margin-bottom: 4px;
}

.review-meta .stars {
  color: #f69c08;
  font-size: 12px;
}

.review-comment {
  font-size: 15px;
  color: var(--gray-700);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Course preview + commerce modal */
.course-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.course-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.course-preview-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: var(--white);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.course-preview-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-500);
}

.course-preview-modal__title {
  margin: 0 32px 12px 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.course-preview-modal__summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.course-preview-modal__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-900);
}

.course-preview-modal__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  .course-sidebar {
    position: static;
    margin-top: 40px;
  }
  
  .learning-points-grid {
    grid-template-columns: 1fr;
  }
}
