/* ==========================================================================
   MATRIX COMPUTER EDUCATION — stylesheet
   Design tokens
   ========================================================================== */
:root{
  /* colour */
  --ink:        #0B0F19;
  --surface:    #121826;
  --surface-2:  #1A2233;
  --paper:      #F3F5FB;
  --paper-2:    #FFFFFF;
  --red:        #E8352F;
  --red-dark:   #C0201B;
  --blue:       #3B63FF;
  --cyan:       #22D3EE;
  --text-dark:  #10131F;
  --text-muted: #5B6478;
  --on-dark:    #E8ECFB;
  --on-dark-muted: #93A0C2;
  --line:       #E3E7F2;
  --line-dark:  rgba(232,236,251,0.12);

  /* type */
  --f-display: "Space Grotesk", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "Consolas", monospace;

  /* layout */
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 45px -20px rgba(11,15,25,0.35);
  --shadow-card: 0 10px 30px -14px rgba(11,15,25,0.18);
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--text-dark);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:202%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--f-display); margin:0; line-height:1.1; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.container{
  width:min(1240px, 100% - 48px);
  margin-inline:auto;
}

/* generic 12-col grid — every section's content is placed in this grid,
   and every component below lives inside a named grid-column span. */
.grid-12{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:var(--gutter);
}

.eyebrow{
  font-family:var(--f-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--red);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--red);
  display:inline-block;
}
.eyebrow.on-dark{ color:var(--cyan); }
.eyebrow.on-dark::before{ background:var(--cyan); }

.section{ padding:88px 0; position:relative; }
.section--tight{ padding:64px 0; }
.section-head{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:var(--gutter);
  align-items:end;
  margin-bottom:48px;
}
.section-head h2{
  grid-column:1 / 8;
  font-size:clamp(28px,3.4vw,42px);
  color:var(--text-dark);
}
.section-head p{
  grid-column:8 / -1;
  color:var(--text-muted);
  font-size:16px;
  padding-bottom:10px;
}
.on-dark .section-head h2{ color:var(--on-dark); }
.on-dark .section-head p{ color:var(--on-dark-muted); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  border:1.5px solid transparent;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px) scale(.99); }
.btn--primary{ background:var(--blue); color:#fff; box-shadow:0 14px 30px -12px rgba(59,99,255,.55); }
.btn--primary:hover{ background:#2f52e0; transform:translateY(-2px); box-shadow:0 18px 34px -12px rgba(59,99,255,.65); }
.btn--ghost{ background:transparent; color:var(--on-dark); border-color:var(--line-dark); }
.btn--ghost:hover{ border-color:var(--cyan); color:var(--cyan); transform:translateY(-2px); }
.btn--dark{ background:var(--ink); color:#fff; }
.btn--dark:hover{ background:#000; transform:translateY(-2px); }
.btn--outline-dark{ background:transparent; color:var(--text-dark); border-color:var(--line); }
.btn--outline-dark:hover{ border-color:var(--ink); background:var(--ink); color:#fff; }
.btn--sm{ padding:10px 18px; font-size:13.5px; }
.btn--full{ width:100%; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar{
  background:var(--ink);
  color:var(--on-dark-muted);
  font-family:var(--f-mono);
  font-size:12px;
}
.topbar .grid-12{
  padding:8px 0;
  align-items:center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.topbar .topbar-info{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.topbar .topbar-info li{ display:flex; align-items:center; gap:6px; }
.topbar .topbar-info i{ color:var(--cyan); font-size:11px; }
.topbar-social{ display:flex; justify-content:flex-end; gap:10px; }
.topbar-social a{
  width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-dark); font-size:11px;
  transition:.2s ease;
}
.topbar-social a:hover{ border-color:var(--cyan); color:var(--cyan); }

/* ==========================================================================
   HEADER / NAV & CTA
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,15,25,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-dark);
}
.site-header .grid-12{ align-items:center; padding:10px 0; }

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  max-height: 40px;
  width: auto;
  display: block;
}

.header-cta {
  grid-column: 10 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Unified Navigation Link Styles */
.main-nav {
  grid-column: 4 / 10;
  display: flex;
  justify-content: center;
  gap: 34px;
}

.main-nav a,
.nav-item {
  color: var(--on-dark-muted);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  text-decoration: none;
  background: transparent;
  transition: color 0.25s ease;
}

.main-nav a::after,
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.nav-item:hover {
  color: var(--on-dark);
}

.main-nav a:hover::after,
.nav-item:hover::after {
  transform: scaleX(1);
}

.main-nav a.active,
.nav-item.active {
  color: var(--cyan);
}

.main-nav a.active::after,
.nav-item.active::after {
  transform: scaleX(1);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  background:var(--ink);
  color:var(--on-dark);
  position:relative;
  overflow:hidden;
  padding:96px 0 110px;
}
.hero-network{ position:absolute; inset:0; z-index:0; opacity:.55; }
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(600px 400px at 82% 12%, rgba(59,99,255,.35), transparent 60%),
    radial-gradient(500px 380px at 6% 90%, rgba(232,53,47,.22), transparent 60%);
  z-index:0;
}
.hero .grid-12{ position:relative; z-index:2; align-items:center; }

.hero-copy{ grid-column:1 / 7; }
.hero-copy .eyebrow{ margin-bottom:22px; }
.hero-copy h1{
  font-size:clamp(34px, 4.4vw, 54px);
  color:#fff;
  margin-bottom:22px;
}
.hero-copy h1 em{
  font-style:normal;
  background:linear-gradient(100deg, var(--cyan), var(--blue) 65%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy > p{
  font-size:17px; color:var(--on-dark-muted); max-width:46ch; margin-bottom:34px;
}

.hero-checklist{
  display:grid; gap:12px; margin-bottom:38px;
}
.hero-checklist li{
  display:flex; align-items:center; gap:14px;
  background:var(--surface);
  border:1px solid var(--line-dark);
  border-radius:var(--radius-sm);
  padding:14px 18px;
  font-size:14.5px;
  transition:border-color .2s ease, transform .2s ease;
}
.hero-checklist li:hover{ border-color:rgba(34,211,238,.5); transform:translateX(4px); }
.hero-checklist .check{
  width:24px; height:24px; border-radius:50%; flex-shrink:0;
  background:rgba(34,211,238,.14); color:var(--cyan);
  display:flex; align-items:center; justify-content:center; font-size:12px;
}

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



.hero-visual{ grid-column:7 / -1; position:relative; }
.hero-photo-frame{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line-dark);
  height:460px;
}
.hero-photo-frame::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(190deg, transparent 55%, rgba(11,15,25,.55));
  z-index:1;
  pointer-events:none;
}

/* ---- hero image slider ---- */
.hero-slides{ position:relative; width:100%; height:100%; }
.hero-slide{
  position:absolute; inset:0; margin:0;
  opacity:0; transform:scale(1.06);
  transition:opacity 1s ease, transform 6s ease;
  z-index:0;
}
.hero-slide.active{ opacity:1; transform:scale(1); z-index:1; }
.hero-slide img{ width:100%; height:100%; object-fit:cover; }

.slider-arrow{
  position:absolute; top:50%; translate:0 -50%;
  width:38px; height:38px; border-radius:50%;
  background:rgba(11,15,25,.55); backdrop-filter:blur(4px);
  border:1px solid var(--line-dark); color:#fff; font-size:13px;
  display:flex; align-items:center; justify-content:center;
  z-index:3; opacity:0; transition:opacity .25s ease, background .2s ease, transform .2s ease;
}
.hero-photo-frame:hover .slider-arrow, .slider-arrow:focus-visible{ opacity:1; }
.slider-arrow:hover{ background:var(--red); border-color:var(--red); transform:translateY(-50%) scale(1.06); }
.slider-arrow.prev{ left:16px; }
.slider-arrow.next{ right:16px; }

.hero-slider-dots{
  position:absolute; left:0; right:0; bottom:16px;
  display:flex; justify-content:center; gap:8px; z-index:3;
}
.hero-slider-dots button{
  width:8px; height:8px; border-radius:50%; padding:0; border:none;
  background:rgba(255,255,255,.4); transition:.25s ease;
}
.hero-slider-dots button.active{ width:22px; border-radius:5px; background:var(--cyan); }
.hero-slider-dots button:hover{ background:rgba(255,255,255,.75); }
.hero-badge{
  position:absolute; left:-28px; bottom:-26px;
  background:var(--paper-2); color:var(--text-dark);
  border-radius:var(--radius);
  padding:18px 22px;
  display:flex; align-items:center; gap:14px;
  box-shadow:0 20px 40px -16px rgba(0,0,0,.4);
  z-index:3;
  min-width:220px;
}
.hero-badge .num{
  font-family:var(--f-mono); font-weight:700; font-size:24px; color:var(--red);
}
.hero-badge .lbl{ font-size:12.5px; color:var(--text-muted); line-height:1.3; }
.hero-tag{
  position:absolute; top:24px; right:24px;
  background:rgba(11,15,25,.65); backdrop-filter:blur(6px);
  border:1px solid var(--line-dark);
  border-radius:999px; padding:8px 16px;
  font-family:var(--f-mono); font-size:11.5px; letter-spacing:.06em;
  display:flex; align-items:center; gap:8px; color:var(--on-dark);
  z-index:3;
}
.hero-tag .dot{ width:7px; height:7px; border-radius:50%; background:#3CE68C; box-shadow:0 0 0 4px rgba(60,230,140,.2); }

/* ==========================================================================
   MARQUEE STRIP
   ========================================================================== */
.marquee-strip{ background:var(--surface); border-top:1px solid var(--line-dark); border-bottom:1px solid var(--line-dark); overflow:hidden; }
.marquee-track{ display:flex; width:max-content; animation:scroll-left 32s linear infinite; }
.marquee-track span{
  font-family:var(--f-mono); font-size:13px; color:var(--on-dark-muted);
  padding:16px 40px; white-space:nowrap; display:flex; align-items:center; gap:12px;
}
.marquee-track span i{ color:var(--red); font-size:10px; }
@keyframes scroll-left{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }


/* ==========================================================================
   HOME COURSES HEADER BUTTON FIX
   ========================================================================== */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FEATURES (why matrix)
   ========================================================================== */
.feature-card {
  grid-column: span 4;
  /* Adds a very subtle cool-toned gradient background */
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 2px solid var(--line); /* Slightly thicker border for smooth transition */
  border-radius: var(--radius);
  padding: 40px 30px; /* Increased padding for better breathing room */
  box-shadow: var(--shadow-card);

  /* Flexbox is used here to easily center everything inside the card */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Base hover state lifts the card and increases the shadow */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -18px rgba(11,15,25,.22);
}

/* Dynamic Border Colors on Hover */
/* Note: :nth-child starts at 2 because the .section-head is child 1 */
.feature-card:nth-child(2):hover { border-color: var(--blue); }
.feature-card:nth-child(3):hover { border-color: var(--red); }
.feature-card:nth-child(4):hover { border-color: #0f8d70; }


/* Upgraded Icon Styling with a soft glow */
.feature-icon {
  width: 64px; /* Made slightly larger */
  height: 64px;
  border-radius: 16px; /* Softer, rounder corners */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 24px;
}

/* Blue Icon (First Card) */
.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(155deg, var(--blue), #2445c9);
  box-shadow: 0 10px 20px -10px rgba(59,99,255,.6);
}

/* Red Icon (Second Card) */
.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(155deg, var(--red), var(--red-dark));
  box-shadow: 0 10px 20px -10px rgba(232,53,47,.6);
}

/* Green Icon (Third Card) */
.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(155deg, #17b892, #0f8d70);
  box-shadow: 0 10px 20px -10px rgba(23,184,146,.6);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   New Design of Course
   ========================================================================== */

/* ==========================================================================
   COURSES SECTION & GRID
   ========================================================================== */
/* 1. Default layout for Mobile Phones (1 column) */
.courses-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

/* 2. Layout for Tablets (2 columns) */
@media (min-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3. Layout for Desktop Monitors (3 columns) */
@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   COURSE CARD BASE
   ========================================================================== */
.course-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- 1. Card Header (The visual top) --- */
/* --- Design Upgrade: Header Pattern --- */
.card-header {
  height: 140px;
  position: relative;
  padding: 20px;

  /* NEW: Adds a subtle dot pattern to the empty dark space */
  /* COMBINE both the dots and the dark background here */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(135deg, #1E293B, #0F172A);

  /* Apply sizes to both (16px for dots, 100% for the background) */
  background-size: 16px 16px, 100% 100%;
}

/* --- Dual Button Layout --- */
.dual-action {
  display: flex;
  gap: 12px; /* Space between buttons */
  padding: 0 24px 24px 24px;
}

/* Secondary Button (Enquiry) */
.btn-enquiry {
  flex: 1; /* Takes up 50% of the space */
  background: transparent;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-enquiry:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

/* Primary Button (Syllabus) */
.btn-view-course-primary {
  flex: 1; /* Takes up 50% of the space */
  text-align: center;
  background: #4F46E5; /* Deep Indigo */
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid #4F46E5;
}

.btn-view-course-primary:hover {
  background: #4338CA;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.badge-popular {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F59E0B; /* Vibrant amber */
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

/* --- 2. Card Body (The content) --- */
.card-body {
  padding: 24px;
  flex-grow: 1; /* Pushes the footer to the bottom */
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #64748B;
  font-weight: 500;
}

.meta-item i {
  color: #3B82F6; /* Blue icon */
  margin-right: 6px;
}

.course-title {
  font-size: 20px;
  color: #0F172A;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.course-description {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* --- Skills Tags (The pill shapes) --- */
.course-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.skill-tag {
  background: #F1F5F9;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

/* --- Features Checklist --- */
.course-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto; /* Keeps it aligned at the bottom of the body */
}

.course-features li {
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.course-features li i {
  color: #10B981; /* Green checkmark */
  font-size: 16px;
  margin-top: 2px;
}

/* --- 3. Card Footer (The Action Button) --- */
.card-footer {
  padding: 0 24px 24px 24px;
}

.btn-view-course {
  display: block;
  width: 100%;
  text-align: center;
  background: #EEF2FF; /* Light blue background */
  color: #4F46E5; /* Deep indigo text */
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-view-course:hover {
  background: #4F46E5;
  color: #ffffff;
}

/* --- Custom Category Badges --- */
.custom-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* These class names MUST match the BADGE_CHOICES in your models.py */
.badge-blue {
  background: #E0F2FE;
  color: #0284C7;
}

.badge-green {
  background: #DCFCE7;
  color: #16A34A;
}

.badge-red {
  background: #FEE2E2;
  color: #DC2626;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr; /* Stacks cards in a single column */
  }
}

/* --- Modal Styles --- */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #64748B;
}

.modal-form input {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  box-sizing: border-box;
}




/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats-band{
  background:var(--ink); color:var(--on-dark);
  position:relative; overflow:hidden;
}
.stats-band::before{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse at center, black 10%, transparent 75%);
}
.stat-item{
  grid-column:span 3;
  text-align:center;
  padding:8px 12px;
  position:relative; z-index:1;
  border-left:1px solid var(--line-dark);
}
.stat-item:first-child{ border-left:none; }
.stat-item .stat-num{ font-family:var(--f-mono); font-size:clamp(30px,3.4vw,44px); font-weight:700; color:#fff; display:flex; justify-content:center; gap:2px; }
.stat-item .stat-num span.accent{ color:var(--cyan); }
.stat-item .stat-lbl{ font-size:13px; color:var(--on-dark-muted); margin-top:8px; }

/* ==========================================================================
   GALLERY - Bento Box Layout (Pure CSS)
   ========================================================================== */
.bento-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px; /* Locks the base height of all boxes */
  gap: 16px;
}

.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Guarantees perfect cropping, zero stretching */
  transition: transform 0.4s ease;
}

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

.bento-item .bento-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 20px 20px;
  background: linear-gradient(0deg, rgba(11,15,25,0.9), transparent);
  color: #fff;
  font-size: 14.5px;
  pointer-events: none;
}

/* --- THE MOSAIC PATTERN --- */
/* 1st image: Large square (spans 2 columns, 2 rows) */
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* 2nd image: Wide rectangle (spans 2 columns) */
.bento-item:nth-child(2) { grid-column: span 2; }

/* 3rd & 4th images: Standard small squares (span 1 column each) */
.bento-item:nth-child(3) { grid-column: span 1; }
.bento-item:nth-child(4) { grid-column: span 1; }

/* 5th image: Wide rectangle */
.bento-item:nth-child(5) { grid-column: span 2; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .bento-gallery {
    grid-template-columns: 1fr; /* Stacks all images in 1 column on phones */
    grid-auto-rows: 220px;
  }

  /* Overrides the mosaic pattern so they are all uniform on small screens */
  .bento-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ==========================================================================
   TESTIMONIALS - Grid Layout
   ========================================================================== */
.testi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start; /* Allows cards to be their natural height */
}

.testi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

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

/* Faint background quote icon */
.quote-bg {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 60px;
  color: rgba(59, 99, 255, 0.05); /* Very faint blue */
  z-index: 0;
}

.testi-card .quote {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 20px;
}

.testi-card .stars {
  color: #F59E0B; /* Classic gold/yellow */
  font-size: 14px;
  margin-bottom: 24px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.testi-person .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.testi-person .person-info {
  display: flex;
  flex-direction: column;
}

.testi-person .person-info strong {
  font-size: 15px;
  color: var(--text-dark);
}

.testi-person .person-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner{
  /*grid-column:2 / 12;*/

  /* 2. Add these three lines to control the width and center it */
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;

  background:linear-gradient(120deg, var(--blue), #6E3BFF 60%, var(--red) 130%);
  border-radius:24px;
  padding:56px 60px;
  display:grid; grid-template-columns:repeat(12,1fr); gap:24px; align-items:center;
  color:#fff; position:relative; overflow:hidden;
}
.cta-banner::before{
  content:""; position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.5px);
  background-size:22px 22px; opacity:.5;
}
.cta-banner-text{ grid-column:1 / 8; position:relative; z-index:1; }
.cta-banner-text h2{ font-size:clamp(24px,3vw,34px); margin-bottom:10px; }
.cta-banner-text p{ color:rgba(255,255,255,.85); font-size:15px; }
.cta-banner-actions{ grid-column:8 / -1; display:flex; justify-content:flex-end; gap:14px; position:relative; z-index:1; }
.cta-banner .btn--primary{ background:#fff; color:var(--ink); box-shadow:none; }
.cta-banner .btn--primary:hover{ background:var(--ink); color:#fff; }
.cta-banner .btn--ghost{ border-color:rgba(255,255,255,.5); color:#fff; }

/* ==========================================================================
   CONTACT SECTION - Refined Layout
   ========================================================================== */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-header h2 {
  font-size: 36px;
  margin: 0;
}

.contact-header p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0;
  text-align: right;
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Makes the form wider than the info */
  gap: 24px;
  align-items: stretch;
}

/* --- Left Card (Dark) --- */
.contact-info-card {
  background: #11141C; /* Deep dark blue/black */
  border-radius: 16px;
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.contact-info-card h3 {
  font-size: 20px;
  margin-bottom: 32px;
  color: #fff;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-list .icon-box {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.info-list .details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-list .details strong {
  font-size: 14px;
  color: #fff;
}

.info-list .details span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* --- Right Card (Light Form) --- */
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.form-header {
  margin-bottom: 32px;
}

.form-header h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--text-muted);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #F8FAFC;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #11141C;
  background: #fff;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #11141C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #1f2937;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .contact-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-header p {
    text-align: left;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form-card { padding: 24px; }
}

/* ==========================================================================
   FOOTER - Map Integrated
   ========================================================================== */
.site-footer {
  background: #0B0E14; /* Deep, rich dark background */
  color: #fff;
  position: relative;
}

.footer-map iframe {
  display: block;
  width: 100%;
  /*filter: grayscale(80%) invert(90%) contrast(80%); !* Optional: Makes map dark-themed *!*/
}

.footer-content {
  margin-top:5vw;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 24px;
  color: #fff;
}

.brand-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 14.5px;
  margin-bottom: 24px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: var(--blue);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--cyan);
}

/* Fixes the icon spacing issue */
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  line-height: 1.5;
}

.contact-details li i {
  color: var(--cyan);
  margin-top: 4px; /* Aligns icon with text */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 20px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

/* Fixes the overlapping red button */
.scroll-top-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #EF4444; /* Red */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
}



/* Mobile Responsiveness */
@media (max-width: 992px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .scroll-top-btn { bottom: 90px; } /* Pushes it up on mobile so it doesn't cover text */
}


/* ==========================================================================
   COURSE CATALOG CONTROLS (SEARCH & FILTER)
   ========================================================================== */
.course-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Ensures it stacks nicely on mobile */
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.search-box {
  flex: 1; /* Takes up the most space */
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 16px;
  color: #94A3B8;
}

.search-box input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: #4F46E5;
}

.filter-box select {
  padding: 4px 16px 6px 16px;
  height: 45px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background-color: #F8FAFC;
  color: #334155;
  cursor: pointer;
  min-width: 200px;
}

.filter-box select:focus {
  outline: none;
  border-color: #4F46E5;
}





/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .section-head h2{ grid-column:1 / -1; }
  .section-head p{ grid-column:1 / -1; margin-top:10px; }
  .hero-copy{ grid-column:1 / -1; }
  .hero-visual{ grid-column:1 / -1; margin-top:56px; }
  .hero-badge{ left:16px; }
  .feature-card{ grid-column:span 6; }
  .course-card{ grid-column:span 6; }
  .stat-item{ grid-column:span 6; margin-bottom:24px; }
  .testimonial-card{ grid-column:span 6; }
  .contact-info, .contact-form{ grid-column:1 / -1; }
  .cta-banner-text, .cta-banner-actions{ grid-column:1 / -1; justify-content:flex-start; }
  .cta-banner-actions{ margin-top:10px; }
}

@media (max-width: 880px) {
  /* 1. Keep this to hide the topbar on mobile */
  .topbar { display: none; }

  /* 2. NEW: Change from Grid to Flexbox for the header to prevent overlap */
  .site-header .grid-12 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
  }

  /* 3. NEW: Remove grid columns so they don't constrain the logo/buttons */
  .brand, .header-cta {
    grid-column: auto;
  }

  .header-cta {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  /* 4. The Full-Screen Hamburger Menu Styling */
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: fixed;
    inset: 70px 0 0 0; /* Starts directly below the header */
    height: calc(100vh - 70px);
    z-index: 99;
    background: rgba(11, 15, 25, 0.98); /* Deep dark background */
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center; /* Centers the links */
    padding: 40px 24px;
    gap: 15px;
    overflow-y: auto;
  }

  .main-nav.open a {
    padding: 16px 8px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 18px;
    font-weight: 600;
  }

  /* 5. Keep your original grid helpers just in case you need them for gallery items! */
  .g1{ grid-column:1 / 13; grid-row:1 / 2; }
  .g2{ grid-column:1 / 7; grid-row:2 / 3; }
  .g3{ grid-column:7 / 13; grid-row:2 / 3; }
  .g4{ grid-column:1 / 7; grid-row:3 / 4; }
  .g5{ grid-column:7 / 13; grid-row:3 / 4; }
}

/* Don't forget the extreme mobile fix below it! */
@media (max-width: 450px) {
  /* Hides the "Call Us" text and turns the button into a clean circle */
  .call-text {
    display: none;
  }
  .header-cta .btn--primary {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
}
@media (max-width: 640px){
  .section{ padding:64px 0; }
  .feature-card, .course-card, .stat-item, .testimonial-card{ grid-column:1 / -1; }
  .form-grid{ grid-template-columns:1fr; }
  .cta-banner{ padding:40px 26px; }
  .hero{ padding:64px 0 80px; }
  .hero-badge{ position:static; margin-top:-40px; width:fit-content; }
  .footer-brand, .footer-col{ grid-column:1 / -1; }
  .stat-item{ border-left:none; border-top:1px solid var(--line-dark); padding-top:20px; }
  .stat-item:first-child{ border-top:none; }
  .search-box, .filter-box select, .filter-box {
    min-width: 100%;
    width: 100%;
  }
}


/* --- HOW WE TEACH SECTION STYLES --- */

.how-we-teach {
  background-color: #f8f9fa; /* A very light grey to separate it from the white course cards */
  padding: 60px 20px 0px 20px;
  border-radius: 12px;
}

.hwt-header {
  text-align: center;
  margin-bottom: 40px;
}

.hwt-header h2 {
  font-size: 2rem;
  color: #1a1a2e; /* Your dark slate brand color */
  margin-bottom: 10px;
}

.hwt-header p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Responsive Grid setup */
.hwt-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr; /* Mobile: 1 column */
}

@media (min-width: 768px) {
  .hwt-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

@media (min-width: 1024px) {
  .hwt-grid {
    grid-template-columns: repeat(4, 1fr); /* Desktop: strictly 4 columns in one line */
  }
}



/* --- THE DESIGN UPGRADE --- */
.hwt-card {
  background: #ffffff;
  padding: 35px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e9ecef;
  border-bottom: 4px solid #4a6ee0; /* Matrix Blue Accent */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.hwt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid #ff9f1c; /* Secondary accent color on hover */
}

.hwt-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #f4f6fd; /* Soft blue icon bubble */
  border-radius: 50%;
}

.hwt-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.hwt-card p {
  font-size: 0.95rem;
  color: #555b6e;
  line-height: 1.6;
}

.how-we-teach {
  margin-bottom: 0px !important;
  padding-bottom: 20px !important; /* Reduces the invisible space inside the bottom of the container */
}

.course-catalog-container,
.search-filter-wrapper {
  margin-top: 0px !important;
  padding-top: 15px !important;
}

/* --- CAREER & PLACEMENT SPLIT SECTION --- */

.career-split-section {
  display: flex;
  align-items: center;
  gap: 50px;

  /* 1. THE GAP FIX: Constrain width and center it */
  max-width: 1200px;
  margin: 60px auto 60px auto;
  width: 90%; /* Ensures it shrinks slightly on smaller screens to maintain the side gaps */

  /* 2. THE DEPTH FIX: Premium Gradient and Shadow */
  background: linear-gradient(135deg, #161625 0%, #1a1a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.05); /* Adds a very faint rim light */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Deeper, softer shadow */

  color: #ffffff;
  padding: 60px 50px 70px 50px;
  border-radius: 16px; /* Slightly rounder corners for a modern feel */
}

/* 3. THE TYPOGRAPHY FIX: Keep the left side compact */
.career-left {
  flex: 1;
  max-width: 540px;
}

/* Left Side Typography */
.career-left h2 {
  font-size: 2.5rem; /* Slightly larger for more impact */
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.career-left p {
  font-size: 1.15rem;
  color: #a0aabf; /* Soft gray-blue for readability */
  margin-bottom: 35px;
  line-height: 1.6;
}

/* Call to Action Button */
.career-btn {
  display: inline-block;
  background-color: #4a6ee0; /* Matrix Blue Accent */
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.career-btn:hover {
  background-color: #ff9f1c; /* Swap to secondary accent on hover */
  transform: translateY(-2px);
}

/* Right Side Features */
.career-right h3 {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: #ff9f1c;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-item {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.feature-text p {
  font-size: 0.95rem;
  color: #a0aabf;
  line-height: 1.5;
  margin: 0;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
  .career-split-section {
    flex-direction: column; /* Stacks the left side on top of the right side */
    padding: 40px 30px;
    gap: 40px;
  }

  .career-left h2 {
    font-size: 2rem;
  }
}

/* --- FAQ ACCORDION STYLES --- */

.faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-header h2 {
  font-size: 2.2rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.faq-header p {
  color: #6c757d;
  font-size: 1.1rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.faq-item[open] {
  border-color: #4a6ee0;
  box-shadow: 0 8px 15px rgba(74, 110, 224, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  list-style: none; /* Hides default triangle marker */
}

/* Hides default Safari/Chrome arrow marker */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: bold;
  color: #4a6ee0;
  transition: transform 0.3s ease;
}

/* Rotates the '+' into an 'x' or fold when opened */
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: #ff9f1c;
}

.faq-answer {
  padding: 0 25px 20px 25px;
  color: #495057;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid #f8f9fa;
}

.faq-answer p {
  margin-top: 15px;
}

.faq-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

/* --- CONTACT BANNER STYLES --- */

.contact-banner-section {
  max-width: 1200px;
  margin: 60px auto;
  width: 90%;
  background: linear-gradient(135deg, #4a6ee0 0%, #3a56b4 100%);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(74, 110, 224, 0.2);
}

.contact-banner-content h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.contact-banner-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* WhatsApp Button */
.whatsapp-btn {
  background-color: #25d366; /* Official WhatsApp Green */
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

/* Call Button */
.call-btn {
  background-color: #ffffff;
  color: #1a1a2e;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.call-btn:hover {
  background-color: #f1f3f5;
  transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .contact-banner-section {
    padding: 40px 20px;
  }

  .contact-banner-content h2 {
    font-size: 1.8rem;
  }

  .contact-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   COURSE DETAIL PAGE SPECIFIC LAYOUT
   ========================================================================== */
.detail-hero-text { grid-column: 1 / 8; z-index: 2; }
.detail-hero-image { grid-column: 8 / -1; position: relative; z-index: 2; }
.detail-main { grid-column: 1 / 9; }
.detail-sidebar {
    grid-column: 9 / -1;
    position: sticky;
    top: 100px; /* Sticks neatly under your header */
    height: fit-content;
}

/* Mobile Responsiveness for the Detail Page */
@media (max-width: 992px) {
    .detail-hero-text, .detail-hero-image, .detail-main, .detail-sidebar {
        grid-column: 1 / -1; /* Forces everything to full width */
    }
    .detail-hero-image { margin-top: 40px; }
    .detail-sidebar { position: static; margin-top: 48px; }
}


/* ==========================================================================
   GALLERY LAYOUT
   ========================================================================== */
    .full-gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        align-items: start;
    }

    .gallery-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border: 1px solid var(--line);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    }

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

    .gallery-caption {
        padding: 16px;
        font-size: 14.5px;
        color: var(--text-dark);
        font-weight: 500;
        text-align: center;
        border-top: 1px solid var(--line);
    }

    /* Mobile Responsiveness */
    @media (max-width: 992px) {
        .full-gallery-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .full-gallery-grid {
            grid-template-columns: 1fr;
        }
    }

/* ==========================================================================
   ABOUT US PAGE STYLES
   ========================================================================== */

/* --- Story Section --- */
.story-content {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 16px;
}

.story-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.story-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Team Member Grid --- */
.team-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    margin-top: 48px;
}

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

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }
}

/* --- Team Member Card --- */
.team-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 4px solid var(--paper);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.team-name {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: var(--f-display);
}

.team-role {
    margin-bottom: 16px;
    display: inline-block;
}

.team-bio {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.team-social {
    display: inline-flex;
    margin-top: 20px;
    color: var(--blue);
    font-size: 22px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.team-social:hover {
    color: var(--ink);
    transform: scale(1.1);
}

/* About Page Story Layout */
.about-story-text { grid-column: 1 / 7; }
.about-story-image { grid-column: 8 / -1; }

/* Stacks them on mobile */
@media (max-width: 992px) {
    .about-story-text, .about-story-image {
        grid-column: 1 / -1;
    }
    .about-story-image {
        margin-top: 32px; /* Adds breathing room when stacked */
    }
}