/* ---------- base ---------- */
:root{
  --brand:#2563eb;          /* primary */
  --ink:#0f172a;            /* text dark */
  --muted:#475569;          /* text muted */
  --wash:#f8fafc;           /* light bg */
  --card:#ffffff;           /* card bg */
  --shade:#e5e7eb;          /* borders */
}

/* ---------- top strip ---------- */
.top-strip {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #3b82f6;
}

.contact-item span {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:#fff;
}

a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:2.5rem 1rem}

/* ---------- nav ---------- */
header{position:sticky;top:0;z-index:50;background:transparent;border-bottom:0}
.nav{display:flex;align-items:center;justify-content:flex-start;gap:1rem;padding:0.5rem 1rem}
.brand{font-weight:800;font-size:1.1rem;color:var(--brand);order:1;margin-left:auto;display:flex;align-items:center;gap:0.5rem}

.brand-logo {
  height: 24px !important;
  width: auto !important;
  max-height: 24px !important;
  max-width: 70px !important;
  object-fit: contain;
  border-radius: 3px;
}
.menu{display:flex;gap:0.6rem;align-items:center;order:0;position:relative}

/* Logo in navigation menu */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
}

.nav-menu-logo {
  height: 22px !important;
  width: auto !important;
  max-height: 22px !important;
  max-width: 70px !important;
  object-fit: contain;
  border-radius: 3px;
}
/* Full-width animated gradient ribbon behind header */
header::before{
  content:"";
  position:absolute;left:0;top:0;
  width:100vw; height:100%;
  z-index:-1;
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 40%, #06b6d4 100%);
  background-size: 200% 100%;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  box-shadow: 0 12px 30px rgba(2,6,23,0.12);
  animation: moveGradient 8s linear infinite;
}

@keyframes moveGradient{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

.menu a{padding:.5rem .7rem;border-radius:.6rem;color:#fff;font-weight:700;position:relative;overflow:hidden;transition:transform .22s cubic-bezier(.2,.9,.2,1),box-shadow .22s ease}
.menu a.btn{background:rgba(255,255,255,0.12);color:#fff;border-color:rgba(255,255,255,0.18)}

/* hover: come forward */
.menu a:hover,.menu a:focus{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px rgba(2,6,23,0.18);
}

/* subtle shine */
.menu a::after{
  content:"";position:absolute;left:-60%;top:0;width:40%;height:100%;background:linear-gradient(120deg, rgba(255,255,255,0.08), rgba(255,255,255,0.25), rgba(255,255,255,0.08));transform:skewX(-20deg);transition:all .6s ease;opacity:0;pointer-events:none
}
.menu a:hover::after,.menu a:focus::after{left:110%;opacity:1;transition:all .6s cubic-bezier(.2,.9,.2,1)}

/* accessible focus */
.menu a:focus-visible{outline:3px solid rgba(255,255,255,0.18);outline-offset:3px}

/* dropdown structure */
.nav-item{position:relative}
.dropdown-menu{display:none;position:absolute;left:0;top:calc(100% + 8px);min-width:220px;background:#fff;color:#0b1220;border-radius:8px;padding:.5rem;border:1px solid rgba(11,18,32,0.06);box-shadow:0 12px 30px rgba(2,6,23,0.08);z-index:60}
.dropdown-menu a{display:block;padding:.6rem .75rem;color:var(--ink);font-weight:600;border-radius:.5rem}
.dropdown:hover .dropdown-menu,.dropdown:focus-within .dropdown-menu{display:block}
.dropdown-menu a:hover{background:linear-gradient(90deg, rgba(37,99,235,0.06), rgba(99,102,241,0.04))}

/* ensure the dropdown sits above the header gradient */
header::before{z-index:-1}
.brand{color:#fff;text-shadow:0 1px 0 rgba(0,0,0,0.25)}
.menu a{font-weight:600}
.btn{display:inline-block;padding:.6rem 1rem;border-radius:.7rem;border:1px solid var(--shade);background:#eef2ff;color:#111827;font-weight:700;transition:transform .2s ease, filter .2s ease}
.btn:hover{transform:translateY(-2px);filter:brightness(.98)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-outline{background:transparent;border-color:var(--brand);color:var(--brand)}

/* ---------- hero with dynamic background ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:2rem;
  padding:3.25rem 1rem 2.5rem; /* reduce top padding so hero sits closer to header ribbon */
  overflow:hidden;
}
.hero__content{max-width:640px;margin:0 auto}
.hero h1{font-size:2.6rem;line-height:1.15;margin:0 0 1rem}
.hero p{margin:0 0 1.3rem;color:var(--muted)}
.hero__cta{display:flex;gap:.75rem;flex-wrap:wrap}
.hero__img{width:100%;border-radius:1rem;box-shadow:0 18px 48px rgba(0,0,0,.18)}

/* textured layer (your image) */
.hero::before{
  content:"";
  position:absolute;inset:0;
  background:url("../assets/bgtexture.jpg") center/cover no-repeat;
  opacity:.30;
  z-index:-2;
}

/* animated gradient glow */
.hero::after{
  content:"";
  position:absolute;inset:-30%;
  background:
    radial-gradient(40% 35% at 20% 20%, rgba(59,130,246,.55), transparent 60%),
    radial-gradient(45% 40% at 80% 30%, rgba(147,51,234,.45), transparent 60%),
    radial-gradient(50% 45% at 50% 90%, rgba(99,102,241,.40), transparent 60%);
  filter:blur(40px);
  animation:floatGlow 18s ease-in-out infinite alternate;
  z-index:-1;
}
@keyframes floatGlow{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(0,-20px,0) scale(1.05)}
}

/* ---------- sections ---------- */
section h2{font-size:1.9rem;margin:0 0 1rem;text-align:center}
.about{
  background:linear-gradient(135deg,#eef2ff,#f9fafb);
  border:1px solid var(--shade);
  border-radius:1.2rem;
  text-align:center;
}

/* courses */
.grid{display:grid;gap:1rem}
.cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:960px){.cards{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.cards{grid-template-columns:1fr}}

.card{
  background:var(--card);
  border:1px solid var(--shade);
  border-radius:1rem;
  padding:1.25rem 1.1rem;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(0,0,0,.12)}
.card h3{margin:.1rem 0 .4rem}
.pill{display:inline-block;margin-top:.5rem;padding:.25rem .55rem;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:700;font-size:.8rem}

/* testimonials */
.testimonials{
  background:linear-gradient(135deg,#1e293b,#0b1220);
  color:#e2e8f0;border-radius:1.2rem;
}
.testimonials h2{color:#fff}
.quotes{display:grid;gap:1rem;grid-template-columns:1fr 1fr}
@media (max-width:800px){.quotes{grid-template-columns:1fr}}
.quotes blockquote{margin:0;padding:1rem 1.25rem;border-left:4px solid #60a5fa;background:rgba(255,255,255,.06);border-radius:.6rem}

/* placements */
.brands{display:grid;gap:1.25rem;grid-template-columns:repeat(4,1fr);align-items:center;justify-items:center}
.brands img{max-height:38px;filter:grayscale(1);opacity:.85}
@media (max-width:640px){.brands{grid-template-columns:repeat(2,1fr)}}

/* faq */
.faq details{margin:.7rem auto;border:1px solid var(--shade);border-radius:.7rem;padding:.75rem;max-width:820px}
.faq summary{cursor:pointer;font-weight:800}

/* ---------- footer ---------- */
.footer{margin-top:2rem;background:#0b1220;color:#cbd5e1}
.footer__grid{display:grid;gap:1rem;grid-template-columns:2fr 1fr 1fr 1fr}
.footer h4{margin:.4rem 0 .6rem;color:#fff}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-logo {
  height: 28px !important;
  width: auto !important;
  max-height: 28px !important;
  max-width: 80px !important;
  object-fit: contain;
  border-radius: 4px;
}

.footer-stats {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer ul{list-style:none;margin:0;padding:0}
.footer li{margin:.3rem 0}
.footer a{color:#e5e7eb}
.footer a:hover{text-decoration:underline}
.copyright{text-align:center;border-top:1px solid rgba(255,255,255,.08);padding:1rem}

/* ---------- modal ---------- */
.modal{
  display:none;
  position:fixed;inset:0;z-index:1000;
  background:rgba(0,0,0,.6);
  justify-content:center;align-items:center;
  padding:1rem;
}
.modal-content{
  background:#fff;
  width:min(520px,95vw);
  border-radius:1rem;
  padding:2rem 1.5rem;
  position:relative;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
}
.close-btn{
  position:absolute;right:12px;top:10px;
  width:36px;height:36px;border:0;border-radius:.5rem;background:#eef2ff;color:#111827;
  font-size:22px;line-height:36px;cursor:pointer
}
.modal form{display:grid;gap:.9rem;margin-top:1rem}
.modal input,.modal textarea{width:100%;padding:.8rem;border:1px solid var(--shade);border-radius:.6rem}
.modal button{justify-self:start}

.btn-black{background:#111827;color:#fff;border-color:#111827}

.enquire-form{max-width:640px;margin-top:1rem;display:grid;gap:.8rem}
.enquire-form input,.enquire-form textarea{padding:.85rem;border:1px solid var(--shade);border-radius:.6rem}
.enquire-form button{width:fit-content}

/* ---------- responsive tweaks ---------- */
@media (max-width:980px){
  .hero{grid-template-columns:1fr; text-align:center}
  .hero__img{order:-1}
  .hero__content{margin:0 auto}
}

/* Full-bleed video section */
.video-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 3.25rem 1rem 3.5rem;
  background: linear-gradient(90deg,#0b1220 0%, #071127 40%, #071127 100%);
  color: #e6eef8; /* light text for contrast */
}

.video-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.video-track {
  display: inline-flex; /* inline-flex helps prevent unexpected wrapping */
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap !important;
  white-space: nowrap; /* extra safety for no-wrap */
  /* long horizontal scroll animation; use transform to slide full width */
  animation: scrollVideos 30s linear infinite;
}

.video {
  flex: 0 0 360px;
  min-width: 360px;
  height: 210px;
  background: #07070a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.video iframe { width: 100%; height: 100%; border: none; display:block; }

@keyframes scrollVideos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* containers */

/* containers */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
h2 { margin-bottom: 1rem; }

/* videos - ensure single-row flex track (no wrapping) */
.video-carousel { overflow: hidden; }
.video-track { display: inline-flex; gap: 1rem; flex-wrap: nowrap !important; align-items: center; white-space: nowrap; }
.video { flex: 0 0 360px; min-width:360px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display:block; }

@media (max-width:640px) {
  .video { flex: 0 0 280px; min-width: 280px; height: 160px; }
}

/* courses */
.course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.course a { display: block; text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.course a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.course img { width: 100%; display: block; }
.course h3 { font-size: 1rem; padding: .75rem 1rem 1rem; line-height: 1.3; }
.more-courses { margin-top: 1rem; }
.more-courses a { color: #0a66c2; }

/* Course hero */
.course-hero{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:start;padding:2rem 1rem}
.course-thumb{width:100%;border-radius:12px;box-shadow:0 18px 48px rgba(2,6,23,0.4);display:block}
.hero-right h1{margin:0 0 .5rem}
.hero-right .meta{color:var(--muted);margin-bottom:.6rem}
.hero-right .lead{font-size:1.05rem;margin-bottom:.8rem;color:rgba(255,255,255,0.95);color:var(--muted)}
.what-you-learn{list-style:disc;margin-left:1rem}
.course-logos{display:flex;gap:0.8rem;flex-wrap:wrap;align-items:center}
.course-logos img{height:38px;opacity:0.95;background:#fff;padding:6px;border-radius:8px;box-shadow:0 6px 20px rgba(2,6,23,0.08)}

@media (max-width:980px){.course-hero{grid-template-columns:1fr;padding:1.25rem}.course-logos{justify-content:flex-start}}

/* logo item captions */
.course-logos{display:flex;gap:0.9rem;flex-wrap:wrap;align-items:center}
.logo-item{display:flex;flex-direction:column;align-items:center;gap:.35rem}
.logo-item img{height:40px;background:#fff;padding:6px;border-radius:8px}
.logo-item figcaption{font-size:.78rem;color:var(--muted);font-weight:600}
.logo-item img.logo-python{height:56px;padding:8px}

@media (max-width:640px){.logo-item img{height:36px}.logo-item img.logo-python{height:48px}}

/* Exclusive offerings cards */
.offerings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.offering-card{background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid var(--shade);padding:1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 8px 20px rgba(2,6,23,0.04)}
.offering-card img{width:72px;height:72px;object-fit:contain;border-radius:8px;background:#fff;padding:8px;margin-bottom:.6rem}
.offering-card h4{margin:0 0 .4rem;font-size:1rem}
.offering-card p{margin:0;color:var(--muted);font-size:.95rem}

@media (max-width:680px){
  .offering-card img{width:56px;height:56px}
  .offering-card{padding:.8rem}
}

/* Modules covered section styling + accordion */
.modules-covered{background:linear-gradient(180deg,#f3fff6,#eefcf0);border:1px solid rgba(34,197,94,0.04);padding:1.25rem;border-radius:12px}
.modules-covered h2{background:transparent;margin-bottom:0.75rem;color:#0b6640}
.modules-covered .module-block{border-radius:8px;margin-bottom:.6rem;padding:.35rem}
.modules-covered .module-title{cursor:pointer;padding:.6rem .8rem;border-radius:8px;background:linear-gradient(90deg,rgba(34,197,94,0.04),rgba(16,185,129,0.03));display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#0b6640}
.modules-covered .module-title::after{content:'▸';transform:rotate(0);transition:transform .22s ease;font-size:14px;color:#0b6640}
.modules-covered .module-block.open .module-title::after{transform:rotate(90deg)}
.modules-covered .module-list{overflow:hidden;max-height:0;transition:max-height .32s ease;padding:0 .8rem}
.modules-covered .module-block.open .module-list{max-height:1200px;padding-top:.6rem;padding-bottom:.6rem}
.modules-covered .module-list ul{margin:0 0 0 1.1rem}

