/* onlinetrainings.in — shared design system. One file, cached across every page. */

:root {
  --navy: #0A1128;
  --navy-deep: #050A1B;
  --cyan: #00CFFF;
  --cyan-light: #7CE7FF;
  --ink: #0A1128;
  --body-text: #334155;
  --muted: #64748B;
  --line: #E1E7F0;
  --bg-light: #F4F7FC;
  --amber: #F59E0B;
  --radius: 12px;
  --max: 1280px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body-text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #0891B2; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; background: var(--cyan); color: var(--navy); padding: 10px 16px; z-index: 9999; }
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--navy-deep); color: #E2E8F0; font-size: 13px; font-weight: 500; text-align: center; padding: 10px 48px; }
.announce a { color: #E2E8F0; }
.announce .tag { background: var(--cyan); color: var(--navy); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; letter-spacing: .08em; margin-right: 10px; }

/* ---------- Header / Mega menu ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); flex-shrink: 0; }
.brand .mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: var(--cyan); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.brand .cy { color: var(--cyan); }

.primary-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.primary-nav > li { list-style: none; }
.primary-nav { display: flex; padding: 0; margin: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink); border-radius: 8px; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link .care { font-size: 10px; margin-left: 2px; }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--cyan); }
@media (max-width: 1150px) { .header-phone { display: none; } }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-light); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 30px; font-size: 15px; }

/* Mega menu panel (CSS + tiny JS toggle; links always present in DOM) */
.has-mega { position: static; }
.mega-toggle { background: none; border: 0; font: inherit; cursor: pointer; }
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(10,17,40,0.08);
  display: none;
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel,
.mega-panel.is-open { display: block; }
.mega-panel .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 32px 24px; }
.mega-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mega-col a { color: var(--ink); font-size: 14px; }
.mega-col a:hover { color: var(--cyan); }
.mega-col a.view-all { color: var(--cyan); font-weight: 600; }
.mega-locations { grid-column: span 1; }

.mobile-menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }

.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; left: 0; top: 100%; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 32px rgba(10,17,40,0.1); padding: 14px; display: none;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.dropdown-panel.is-open { display: block; }
.dropdown-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dropdown-panel a { color: var(--ink); font-size: 14px; padding: 7px 10px; border-radius: 6px; display: block; }
.dropdown-panel a:hover { background: var(--bg-light); color: var(--cyan); }

#mobile-menu { display: none; background: #fff; border-top: 1px solid var(--line); }
#mobile-menu.is-open { display: block; }
#mobile-menu .wrap { padding: 18px 24px 26px; display: flex; flex-direction: column; gap: 4px; }
#mobile-menu a.nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
#mobile-menu details { border-bottom: 1px solid var(--line); }
#mobile-menu summary { padding: 12px 4px; font-weight: 600; color: var(--ink); cursor: pointer; }
#mobile-menu details ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 10px; display: flex; flex-direction: column; gap: 10px; }
#mobile-menu details a { font-size: 14px; color: var(--muted); }
@media (min-width: 861px) { #mobile-menu { display: none !important; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumb li::after { content: '/'; margin-left: 6px; color: #CBD5E1; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Partner logo marquee ---------- */
.partner-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partner-track { display: flex; width: max-content; gap: 48px; animation: partner-scroll 32s linear infinite; }
.partner-marquee:hover .partner-track, .partner-marquee:focus-within .partner-track, .partner-track.is-paused { animation-play-state: paused; }
.partner-logo { font-size: 16px; font-weight: 700; color: #94A3B8; white-space: nowrap; opacity: 0.7; transition: all .2s; }
.partner-logo:hover, .partner-logo:focus { color: var(--cyan); opacity: 1; }
@keyframes partner-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partner-track { animation: none; } }

/* ---------- Carousel (scroll-snap, real prev/next controls) ---------- */
.carousel-wrap { position: relative; }
.carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 320px; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Testimonial carousel (single-slide fade rotation) ---------- */
.testi-carousel { position: relative; max-width: 760px; margin: 0 auto; }
.testi-slide { display: none; }
.testi-slide.is-active { display: block; }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.testi-dots { display: flex; gap: 8px; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.testi-dot.is-active { background: var(--cyan); }
.testi-pause { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; }

/* ---------- How it works stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.step { text-align: center; position: relative; }
.step .circle { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--cyan); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; position: relative; z-index: 1; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px); border-top: 2px dashed var(--line); z-index: 0; }
@media (max-width: 860px) { .stepper { grid-template-columns: 1fr; gap: 32px; } .step:not(:last-child)::after { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-dark { background: var(--navy); color: #E2E8F0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-alt { background: var(--bg-light); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); margin-bottom: 10px; text-transform: uppercase; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-link { display: block; color: inherit; }
.card-link:hover { border-color: var(--cyan); box-shadow: 0 16px 32px rgba(10,17,40,0.08); }

.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); transition: all .2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10,17,40,.08); border-color: var(--cyan); }
.course-thumb { position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff; }
.course-cat-tag { position: absolute; top: 12px; left: 12px; background: var(--cyan); color: var(--navy); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { font-size: 17px; min-height: 44px; }
.course-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-price { display: flex; align-items: baseline; gap: 8px; }
.course-price .old { font-size: 13px; color: #94A3B8; text-decoration: line-through; }
.course-price .new { font-size: 20px; font-weight: 800; color: var(--cyan); }

.stat-tile { text-align: center; }
.stat-tile .val { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat-tile .lab { font-size: 13px; color: #94A3B8; margin-top: 6px; }
.section-alt .stat-tile .val, .section-alt .stat-tile .lab { color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--ink); background: var(--bg-light); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Tables ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.compare-table th { background: var(--bg-light); font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq-item summary { font-weight: 600; color: var(--ink); font-size: 15.5px; padding: 14px 4px; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--cyan); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 4px 16px; color: var(--muted); font-size: 14.5px; }

/* ---------- Modules / curriculum ---------- */
.module { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.module summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; color: var(--ink); }
.module .num { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-light); color: var(--cyan); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-right: 12px; }
.module .hrs { font-size: 13px; color: var(--muted); font-weight: 500; }
.module ul { margin: 0; padding: 4px 18px 18px 66px; color: var(--muted); font-size: 14px; }
.module summary::after { content: '+'; font-size: 18px; color: var(--cyan); margin-left: auto; padding-left: 12px; }
.module[open] summary::after { content: '−'; }

.tool-chip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tool-chip .ab { width: 30px; height: 30px; border-radius: 8px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

.project-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.project-card .badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }

/* ---------- Lead / CTA blocks ---------- */
.sticky-cta { position: sticky; top: 92px; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 8px 24px rgba(10,17,40,.06); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form-error { display: none; padding: 16px; background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 8px; color: #B91C1C; font-size: 13.5px; text-align: center; margin-bottom: 14px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.lead-form input, .lead-form select { padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 15px; font-family: inherit; background: var(--bg-light); color: var(--ink); }
.mobile-sticky-cta { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #94A3B8; padding: 56px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(0,207,255,0.15); margin-bottom: 32px; }
.footer-top .brand { color: #fff; }
.footer-top .brand .mark { background: transparent; border: 1.5px solid var(--cyan); color: var(--cyan); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; margin-top: 14px; }
.footer-contact a { color: #94A3B8; }
.footer-contact a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin-bottom: 36px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94A3B8; }
.footer-col a:hover { color: var(--cyan); }
.footer-col a.view-all { color: var(--cyan); font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; padding-top: 20px; border-top: 1px solid rgba(148,163,184,0.15); }
.footer-bottom a { color: #94A3B8; }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-row { display: flex; align-items: center; gap: 12px; }
.gap-wrap { display: flex; flex-wrap: wrap; gap: 14px; }
.whatsapp-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 8px 20px rgba(0,0,0,0.25); z-index: 90; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mega-panel .wrap { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .primary-nav, .header-cta .btn-ghost { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mega-panel { position: static; box-shadow: none; }
  .footer-top, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; gap: 10px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mobile-sticky-cta .btn { flex: 1; }
  body { padding-bottom: 64px; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 26px; }
}
