/* ============================================
   IMPORTS & VARIABLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
    --primary: #1E3A8A;
    --accent: #FACC15;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --dark: #111827;
    --muted: #6B7280;
    --shadow: rgba(30, 58, 138, 0.1);
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

section {
    padding: 6rem 5%;
}

/* ============================================
   NAVIGATION
   ============================================ */
   
/* Backdrop behind the menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 998;
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar.scrolled {
    padding: 0.75rem 5%;
    background: rgba(255, 255, 255, 0.98);
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--primary);
    letter-spacing: 2px;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    background: var(--primary);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.3);
}

/* Hamburger button base */
.mobile-menu-btn {
  display: none; /* Hidden by default on desktop */
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

/* The visible bar + its two pseudo bars */
.mobile-menu-btn .hamburger {
  position: relative;
  width: 22px;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: background-color 200ms ease;
  display: block;
}

/* Top & bottom bars */
.mobile-menu-btn .hamburger::before,
.mobile-menu-btn .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all 300ms ease;
}

.mobile-menu-btn .hamburger::before { 
  top: -7px; 
}

.mobile-menu-btn .hamburger::after { 
  top: 7px; 
}

/* OPEN state: turn into a cross */
.mobile-menu-btn.open .hamburger {
  background-color: transparent;
}

.mobile-menu-btn.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn.open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Focus state for accessibility */
.mobile-menu-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.3);
}

/* OFF-CANVAS MENU BASE */
.menu-wrap {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 80vh;
  background: var(--white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

/* SHOW STATE */
.menu-wrap.open {
  transform: translateX(0);
}

/* Ensure nav links vertical inside mobile menu */
.menu-wrap .nav-links {
  flex-direction: column;
  gap: 1.5rem;
}

.menu-wrap .cta-btn {
  width: 100%;
  text-align: center;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile: Hide desktop nav, show hamburger */
@media (max-width: 900px) {
  /* Hide the desktop navigation */
  .navbar > .nav-links,
  .navbar > .cta-btn {
    display: none;
  }
  
  /* Show hamburger button */
  .mobile-menu-btn {
    display: inline-flex;
  }
  
  /* Mobile menu stays off-canvas until opened */
  .menu-wrap .nav-links {
    display: flex;
  }
}

/* Desktop: Show normal nav, hide mobile menu */
@media (min-width: 901px) {
  .menu-wrap {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 1.5rem;
  }
  
  .menu-wrap .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .menu-wrap .cta-btn {
    width: auto;
  }
  
  /* Hide hamburger on desktop */
  .mobile-menu-btn {
    display: none;
  }
}
/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    background-color: #1a237e;
    color: white;
    padding: 105px 5%;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background-image: url('img/hero.png');
    background-size: cover;
    background-position: center center;
    opacity: 0.2;
    z-index: 1;
    animation: backgroundPan 20s linear infinite alternate;
    filter: grayscale(100%) brightness(50%);
}

@keyframes backgroundPan {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
    max-width: 60%;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons .btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-buttons .btn-primary {
    background-color: #ffc107;
    color: #1a237e;
}

.hero-buttons .btn-primary:hover {
    background-color: #ffda6a;
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: white;
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-stats-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
    flex-shrink: 0;
    width: 300px;
    backdrop-filter: blur(5px);
}

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

.stat-item .number {
    font-size: 2.2em;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* ============================================
   GRADIENT HIGHLIGHT (SHARED)
   ============================================ */
.highlight {
    display: inline-block;
    font-size: 3.4rem;
    background: linear-gradient(135deg, var(--primary), #3B82F6, #FACC15, #F97316);
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    font-weight: 800;
    padding-left: 4px;
}

/* ============================================
   SECTION HEADERS (SHARED)
   ============================================ */
.section-header {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    max-width: 800px;
    margin: 1rem auto 2.5rem;
    color: var(--primary);
    background: var(--white);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.section-header::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 14px auto 0;
    background: #FACC15;
    border-radius: 2px;
}

.section-tag {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle,
.section-desc {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 1rem;
    text-align: center;
}

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

/* ============================================
   VALUE BAR
   ============================================ */
.value-bar {
    background: var(--white);
    padding: 3rem 5%;
    box-shadow: 0 -10px 30px var(--shadow);
    position: relative;
    z-index: 10;
}

.value-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.value-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.value-desc {
    font-size: 14px;
    color: #6B7280;
}

/* ============================================
   COURSES SECTION
   ============================================ */
.courses-section {
    max-width: 1200px;
    margin: 0 auto;
}

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

.course-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 6px 18px var(--shadow);
    overflow: hidden;
    width: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.16);
}

.course-card.hide {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.badge.featured {
    left: 12px;
    background: linear-gradient(90deg, var(--accent), #FFD54A);
    color: #1f2937;
}

.badge.discount {
    right: 12px;
    color: white;
    background: radial-gradient(blue, transparent);
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--dark);
}

.card-desc {
    font-size: 14px;
    color: #374151;
    margin-top: 4px;
}

.card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.meta-item {
    font-size: 13px;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 58, 138, 0.03);
    padding: 6px 8px;
    border-radius: 8px;
}

.meta-item i {
    color: var(--primary);
}

.instructor {
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

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

.old-price {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: line-through;
}

.card-actions {
    margin-top: 12px;
}

.add-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.12s ease;
}

.add-btn:active {
    transform: translateY(1px);
}

.read-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
}

.course-filters {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.filter-btn {
    background: white;
    color: #1E3A8A;
    border: 2px solid #1E3A8A;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.filter-btn:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #1E3A8A;
    color: white;
    border-color: #1E3A8A;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 56px 24px;
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    background: transparent;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

@media (min-width: 980px) {
    .about-content {
        grid-template-columns: 1fr 520px;
        gap: 40px;
    }
}

.about-heading {
    font-family: "Poppins", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: clamp(1.4rem, 2.4vw + 0.8rem, 2.4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 0 0 20px;
    color: #0f172a;
    text-transform: none;
}

.about-headline {
    font-size: clamp(1.15rem, 1.6vw + 0.6rem, 1.6rem);
    line-height: 1.3;
    color: var(--dark);
    margin: 6px 0 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.about-lead {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-text p {
    color: #6B7280;
    margin-bottom: 2rem;
    font-size: 16px;
    line-height: 1.8;
}

.lg-only {
    display: none;
}

@media (min-width: 992px) {
    .lg-only {
        display: inline;
    }
}

/* Infographic */
.infographic {
    margin-top: 8px;
    margin-bottom: 20px;
}

.about .infographic-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: none !important;
}

.about .infographic-item {
    width: 100% !important;
    max-width: 100% !important;
    align-items: flex-start !important;
    display: flex;
    gap: 14px;
    background: transparent;
    padding: 12px 6px;
    border-radius: 10px;
}

.icon {
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px var(--shadow);
}

.icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.icon.yellow {
    background: linear-gradient(180deg, #FFD84D, var(--accent));
    color: #08203a;
}

.icon.blue {
    background: linear-gradient(180deg, #3B82F6, var(--primary));
    color: #fff;
}

.icon.green {
    background: linear-gradient(180deg, #34D399, #10B981);
    color: #fff;
}

.infographic-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.25;
}

.infographic-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.03);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.stat-box:hover .stat-num,
.stat-box:hover .stat-text {
    color: var(--white);
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    display: block;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-text {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* About Visual */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.about-image-box {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.06), rgba(30, 58, 138, 0.02));
}

.about-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.about-image-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

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

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 90vh;
    overflow: hidden;
    padding: 0 40px;
}

.scroll {
    background: #F3F4F6;
}

.column {
    width: 30%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.scrolling {
    animation: scroll-up 15s linear infinite;
}

.scrolling.reverse {
    animation: scroll-down 15s linear infinite;
}

.scrolling img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.column::before,
.column::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 2;
    pointer-events: none;
}

.column::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(254, 254, 254, 0.972), transparent);
}

.column::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(250, 250, 250, 0.8), transparent);
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}
/* --- (Keep your existing desktop styles above unchanged) --- */

/* Responsive: horizontal scrollers for tablets & mobile */
@media (max-width: 1024px) {
  /* Layout: stack columns vertically */
  .gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px;
    height: auto; /* let each row size itself */
    align-items: center;
  }

  .column {
    width: 100%;
    height: 220px; /* adjust as needed: 220px for tablet, smaller for mobile override below */
    overflow: hidden;
    position: relative;
  }

  /* remove smoky top/bottom overlays on mobile/tablet */
  .column::before,
  .column::after {
    display: none;
  }

  /* scrolling container: hide overflow and contain the track */
  .scrolling {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  /* Track holds two copies of the image side-by-side */
  .scrolling .track {
    display: flex;
    width: 200%; /* two images side-by-side */
    height: 100%;
    align-items: stretch;
  }

  /* Each image takes half the track width -> fills the visible area once */
  .scrolling .track img {
    width: 50%;
    height: 100%;
    object-fit: cover; /* keeps images horizontal/fill the row */
    display: block;
    border-radius: 10px;
  }

  /* horizontal animation (default leftwards movement of the duplicated track) */
  .scrolling.horizontal .track {
    animation: scroll-left 12s linear infinite;
  }

  /* reverse direction (track moves rightwards) */
  .scrolling.horizontal.reverse .track {
    animation: scroll-right 12s linear infinite;
  }

  /* Adjust timing for smaller screens if you want faster motion */
  @media (max-width: 600px) {
    .column { height: 200px; }
    .scrolling .track { animation-duration: 9s; }
  }

  /* Keyframes: move the track exactly 50% to create continuous loop */
  @keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  @keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
  }
}


/* ============================================
   INSTRUCTORS
   ============================================ */
.instructors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-header img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

.card-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    color: #111827;
}

.card-header .title {
    font-size: 0.9rem;
    color: #1E3A8A;
    margin: 4px 0;
}

.stats {
    font-size: 0.8rem;
    color: #374151;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bio {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4B5563;
}

.card-section {
    margin-top: 10px;
}

.card-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.tags span {
    display: inline-block;
    background: #F3F4F6;
    color: #111827;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 2px;
}

.card-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-section ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #374151;
}

.card-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #22C55E;
    font-weight: bold;
}

.view-courses {
    display: inline-block;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.view-courses:hover {
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
    min-height: 600px;
}

.testimonial-slider,
.slider-section {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-section {
    gap: 30px;
}

.slider-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    padding: 60px 50px;
    text-align: center;
}

.quote-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
}

.author-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.author-details p {
    font-size: 14px;
    color: #888;
}

.controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.nav-btn {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-btn:hover {
    background: #667eea;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-btn:active {
    transform: scale(0.95);
}

.dots-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(102, 126, 234, 0.5);
}

.dot.active {
    background: #667eea;
    width: 14px;
    height: 14px;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
    color: var(--white);
}

.pricing-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
}

.pricing-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.pricing-box p {
    font-size: 18px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.price-tag {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    color: var(--accent);
    margin: 2rem 0;
    display: block;
}

.price-features {
    list-style: none;
    margin: 2rem auto;
    text-align: left;
    max-width: 400px;
}

.price-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
}

.price-features li i {
    color: var(--accent);
    margin-right: 1rem;
}

.pricing-cta {
    background: var(--accent);
    color: var(--dark);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    display: inline-block;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.pricing-cta:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 35px rgba(250, 204, 21, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-links h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--white);
    outline: none;
}

.newsletter-form button {
    background: var(--accent);
    color: var(--dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
}

.center {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
}

#heading {
    font-size: xx-large;
    font-family: cursive;
}

/* ============================================
   MISCELLANEOUS
   ============================================ */
.All-around-the-globe {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
}

.country-name {
    color: #555;
    font-size: 1em;
}

.dot-pakistan {
    background-color: #4CAF50;
}

.dot-india {
    background-color: #2196F3;
}

.dot-uae {
    background-color: #FFC107;
}

.dot-saudi-arabia {
    background-color: #F44336;
}

.dot-bangladesh {
    background-color: #9C27B0;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

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

    .value-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 3em;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .hero-stats-box {
        width: 280px;
        padding: 25px 30px;
    }

    .stat-item .number {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }

    .value-container,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .courses {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        justify-content: center;
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 105px 5%;
        min-height: 500px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1em;
    }

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

    .hero-stats-box {
        width: 100%;
        max-width: 350px;
        margin-top: 20px;
    }

    .gallery {
        flex-direction: column;
        height: auto;
    }

    .column {
        width: 100%;
    }

    .container {
        padding: 20px;
        margin: 20px;
    }

    h2 {
        font-size: 1.3em;
    }

    .country-name {
        font-size: 0.9em;
    }

    .legend {
        gap: 15px;
    }

    .card-image img {
        height: 140px;
    }

    .testimonials-container {
        min-height: 500px;
        padding: 40px 20px;
    }

    .slide {
        padding: 40px 30px;
       
    }

    .testimonial-text {
        font-size: 16px;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
    }

    .controls-wrapper {
        gap: 25px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .about-content {
        padding: 0 12px;
    }

    .about-image-box {
        max-width: 100%;
        border-radius: 12px;
    }
    .cta-btn {
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}
}

@media (max-width: 600px) {
    .testimonials-container {
        min-height: 480px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 120px 5%;
    }

    .section-header {
        font-size: 1.75rem;
    }
    .highlight{
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 0.9em;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .hero-stats-box {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legend {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10%;
        padding-right: 10%;
    }

    .legend-item {
        width: 100%;
        justify-content: flex-start;
    }

    .slide {
        padding: 30px 20px;
      
    }

    .testimonial-text {
        font-size: 15px;
    }

    .quote-icon {
        font-size: 36px;
    }

    .author-section {
        flex-direction: column;
        gap: 15px;
        width: 100vw;
    }

    .controls-wrapper {
        gap: 20px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 12px;
        height: 12px;
    }
}
.testimonial-slider {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 32px 16px;
      overflow-x: hidden; /* prevent accidental horizontal scroll */
    }

    .slider-section {
      width: 100%;
      max-width: 880px; /* desktop limit */
    }

    .slider-container {
      width: 100%;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 18px 50px rgba(18, 24, 40, 0.08);
      overflow: hidden; /* important so slides are clipped */
    }

    /* ---- Slide track ---- */
    .slider-wrapper {
      display: flex;
      transition: transform 0.55s cubic-bezier(.3,.7,.2,1);
      will-change: transform;
    }

    .slide {
      flex: 0 0 100%;
      min-width: 100%;
      padding: 28px 20px;
      text-align: center;
    }

    .quote-icon { font-size: 36px; color: #5b6bf6; opacity: .25; margin-bottom: 12px; }
    .testimonial-text { font-size: 16px; line-height: 1.6; color: #333; margin-bottom: 18px; font-style: italic; }

    .author-section { display: flex; align-items: center; justify-content: center; gap: 12px; }
    .author-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid #5b6bf6; flex-shrink: 0; }
    .author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .author-details h4 { margin: 0; font-size: 15px; color: #222; }
    .author-details p { margin: 0; font-size: 13px; color: #888; }

    /* ---- Controls ---- */
    .controls-wrapper {
      display:flex;
      align-items:center;
      justify-content:center;
      gap: 14px;
      padding: 14px 10px;
      background: transparent;
    }

    .nav-btn {
      width: 44px; height: 44px;
      border-radius: 50%;
      border: 1.5px solid #5b6bf6;
      background: #fff;
      color: #5b6bf6;
      font-size: 20px;
      display:flex; align-items:center; justify-content:center;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(91,107,246,0.12);
    }
    .nav-btn:active { transform: scale(.98); }

    .dots-container { display:flex; gap: 8px; align-items:center; }
    .dot {
      width:10px; height:10px; border-radius:50%;
      background: rgba(0,0,0,.12); cursor:pointer; transition:all .2s;
      border: 2px solid transparent;
    }
    .dot.active { background:#5b6bf6; width:12px; height:12px; box-shadow: 0 0 8px rgba(91,107,246,0.25); }

    /* ---- Responsive tweaks ---- */
    @media (max-width: 768px) {
      .slider-container { border-radius: 12px; }
      .slide { padding: 22px 14px; }
      .quote-icon { font-size: 30px; }
      .testimonial-text { font-size: 15px; }
      .author-avatar { width:48px; height:48px; }
      .nav-btn { width:40px; height:40px; font-size:18px; }
    }

    @media (max-width: 420px) {
      .testimonial-text { font-size: 14px; }
      .slide { padding: 18px 12px; }
      .slider-section { max-width: 100%; }
      .controls-wrapper { gap: 10px; padding-bottom: 12px; }
    }