/* =========================================================
   Vidyam Classes – site styles
   Palette from the logo: ink navy + Vidyam red, on white.
   Signature: the ruled "answer sheet" background and a
   highlighter mark on ranks/results.
   ========================================================= */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "Hind"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/hind-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hind"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/hind-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hind"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/hind-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #13233f;
  --ink-2: #263a5e;
  --red: #c41e3a;
  --red-dark: #9e1730;
  --paper: #ffffff;
  --mist: #eef2f8;
  --rule: #d5deea;
  --line: #e3e8f0;
  --text: #2a3346;
  --muted: #5d6a80;
  --highlight: #ffd84d;
  --radius: 10px;
  --font-head: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Hind", "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(19, 35, 63, .06), 0 8px 24px rgba(19, 35, 63, .06);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h-font {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.15;
  font-stretch: 92%;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
.container { max-width: 1200px; }
.text-muted-v { color: var(--muted) !important; }
.lead-v { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn-v {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 650; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
  line-height: 1.2;
}
.btn-v-red { background: var(--red); color: #fff; }
.btn-v-red:hover { background: var(--red-dark); color: #fff; }
.btn-v-ink { background: var(--ink); color: #fff; }
.btn-v-ink:hover { background: var(--ink-2); color: #fff; }
.btn-v-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-v-line:hover { background: var(--ink); color: #fff; }
.btn-v-sm { padding: .5rem .95rem; font-size: .92rem; }
.btn-v-white { background: #fff; color: var(--ink); }
.btn-v-white:hover { background: var(--highlight); color: var(--ink); }

/* ---------- Answer-sheet texture (signature) ---------- */
.ruled {
  background-color: #fbfcff;
  background-image:
    linear-gradient(90deg, transparent 0, transparent 56px, rgba(196, 30, 58, .35) 56px, rgba(196, 30, 58, .35) 58px, transparent 58px),
    repeating-linear-gradient(180deg, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px);
}
@media (max-width: 767px) {
  .ruled { background-image: repeating-linear-gradient(180deg, transparent 0, transparent 33px, var(--rule) 33px, var(--rule) 34px); }
}
.hl {
  background: linear-gradient(transparent 55%, var(--highlight) 55%, var(--highlight) 92%, transparent 92%);
  padding: 0 .12em;
}

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #dfe6f3; font-size: .92rem; padding: .45rem 0; }
.announce a { color: #fff; font-weight: 600; }
.announce .contact-mini a { color: #dfe6f3; text-decoration: none; margin-left: 1.2rem; white-space: nowrap; }
.announce .contact-mini a:hover { color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.site-header .brand img { height: 54px; width: auto; }
.site-nav { gap: .15rem; }
.site-nav > li > a, .site-nav > li > button {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink);
  padding: 1.6rem .7rem; display: inline-flex; align-items: center; gap: .25rem;
  text-decoration: none; background: none; border: 0; position: relative;
}
.site-nav > li > a:hover, .site-nav > li > button:hover, .site-nav > li.active > a, .site-nav > li.active > button { color: var(--red); }
.site-nav > li.active > a::after, .site-nav > li.active > button::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 1.1rem; height: 2px; background: var(--red);
}
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; margin-top: -8px !important; min-width: 230px; }
.site-nav .dropdown-item { border-radius: 6px; padding: .55rem .8rem; font-weight: 500; color: var(--text); }
.site-nav .dropdown-item:hover { background: var(--mist); color: var(--red); }
@media (min-width: 1200px) { .site-nav .dropdown:hover > .dropdown-menu { display: block; } }
.header-call { font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.1; }
.header-call small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .78rem; }
.menu-toggle { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .45rem .7rem; font-size: 1.4rem; color: var(--ink); }
.offcanvas .nav-link { color: var(--ink); font-weight: 600; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.offcanvas .sub a { display: block; padding: .4rem 0 .4rem 1rem; color: var(--text); text-decoration: none; }

/* ---------- Sections ---------- */
.sec { padding: 88px 0; }
.sec-mist { background: var(--mist); }
.sec-ink { background: var(--ink); color: #dfe6f3; }
.sec-ink h2, .sec-ink h3, .sec-ink h4 { color: #fff; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: .75rem 0 0; }
.sec-ink .sec-head p { color: #b9c5da; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head-row .sec-head { margin-bottom: 0; }
@media (max-width: 767px) { .sec { padding: 60px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero .kicker { font-weight: 600; color: var(--red); margin-bottom: 14px; display: block; }
.hero h1 { margin-bottom: 20px; max-width: 14ch; }
.hero p.lead-v { margin-bottom: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 22px; }
.hero-facts .big { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.hero-facts .small { font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 575px) { .hero-facts { grid-template-columns: 1fr; } }

.poster-frame { background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(19, 35, 63, .35); padding: 10px; position: relative; }
.poster-frame .carousel-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; border-radius: 8px; }
.poster-frame .pin { position: absolute; top: -14px; left: 28px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: .3rem .8rem; border-radius: 6px; z-index: 3; }
.poster-frame .carousel-indicators { margin-bottom: -2.2rem; }
.poster-frame .carousel-indicators [data-bs-target] { background: var(--ink); width: 22px; height: 4px; border-radius: 2px; }
.poster-frame .carousel-control-prev, .poster-frame .carousel-control-next { width: 44px; height: 44px; top: 50%; transform: translateY(-50%); background: rgba(19, 35, 63, .75); border-radius: 50%; margin: 0 14px; opacity: 0; transition: opacity .15s; }
.poster-frame:hover .carousel-control-prev, .poster-frame:hover .carousel-control-next, .poster-frame .carousel-control-prev:focus, .poster-frame .carousel-control-next:focus { opacity: 1; }
.poster-frame .carousel-control-prev-icon, .poster-frame .carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }

/* ---------- Quick enquiry strip ---------- */
.quick { background: var(--red); color: #fff; padding: 26px 0; }
.quick h2 { color: #fff; font-size: 1.35rem; margin: 0; }
.quick .form-control, .quick .form-select { border: 0; height: 50px; border-radius: 8px; }
.quick .btn-v { height: 50px; width: 100%; justify-content: center; }

/* ---------- Program tabs ---------- */
.prog-tabs { border-bottom: 1px solid var(--rule); gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.prog-tabs .nav-link { font-family: var(--font-head); font-weight: 650; color: var(--muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: .9rem 1.1rem; white-space: nowrap; background: none; }
.prog-tabs .nav-link.active, .prog-tabs .nav-link:hover { color: var(--ink); border-bottom-color: var(--red); background: none; }
.prog-pane { padding-top: 38px; }
.prog-pane img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prog-pane h3 { margin-bottom: 14px; }
.prog-pane p { color: var(--muted); }

/* ---------- Results strip ---------- */
.result-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; display: block; text-decoration: none; color: inherit; }
.result-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--mist); }
.result-card .cap { padding: 12px 14px; font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ---------- Why us ---------- */
.why-item { display: flex; gap: 16px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.why-item i { font-size: 1.6rem; color: var(--highlight); line-height: 1; margin-top: 4px; }
.why-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why-item p { color: #b9c5da; margin: 0; font-size: 1rem; }
.why-item a { color: #fff; }

/* ---------- Course cards ---------- */
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.course-card .img { position: relative; }
.course-card .img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.course-card .tag { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--ink); font-weight: 600; font-size: .82rem; padding: .25rem .6rem; border-radius: 6px; }
.course-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card h3 a:hover { color: var(--red); }
.course-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.course-card li { padding: 5px 0 5px 26px; position: relative; color: var(--muted); font-size: .98rem; }
.course-card li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 5px; color: var(--red); }
.course-card .facts { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.course-card .facts div { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.course-card .facts i { color: var(--ink); }
.course-card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.play-btn { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 700; padding: .6rem 1rem .6rem .6rem; border-radius: 40px; text-decoration: none; box-shadow: var(--shadow); }
.play-btn i { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.modes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modes span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 30px; padding: .4rem .9rem; font-weight: 500; font-size: .95rem; background: #fff; }
.modes i { color: var(--red); }

/* ---------- Faculty ---------- */
.fac-card { text-align: left; }
.fac-card .photo { border-radius: var(--radius); overflow: hidden; background: var(--mist); aspect-ratio: 4 / 5; }
.fac-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fac-card h3 { font-size: 1.15rem; margin: 14px 0 2px; }
.fac-card .role { color: var(--muted); font-size: .95rem; }
.fac-card .subj { display: inline-block; margin-top: 8px; background: var(--mist); color: var(--ink); font-weight: 600; font-size: .85rem; padding: .2rem .65rem; border-radius: 6px; }
.fac-card .social a { color: var(--muted); margin-right: 10px; font-size: 1.05rem; }
.fac-card .social a:hover { color: var(--red); }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: 100%; }
.quote-card blockquote { font-size: 1.08rem; color: var(--text); margin: 0 0 22px; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-card .who strong { display: block; color: var(--ink); font-family: var(--font-head); }
.quote-card .who span { color: var(--muted); font-size: .9rem; }
.feedback-scan { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 8px; }
.feedback-scan img { width: 100%; border-radius: 6px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }

/* ---------- Image grid (gallery / results) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar button { border: 1px solid var(--rule); background: #fff; color: var(--ink); font-weight: 600; padding: .45rem 1rem; border-radius: 30px; font-size: .95rem; }
.filter-bar button.active, .filter-bar button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid-photos a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--mist); position: relative; }
.grid-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s; }
.grid-photos a:hover img { transform: scale(1.03); }
.grid-photos .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(19, 35, 63, .85)); color: #fff; font-weight: 600; font-size: .95rem; }
.grid-photos.tall img { aspect-ratio: 3 / 4; object-position: top; }
.grid-photos [hidden] { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 34, .92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 6px; }
.lightbox .cap { color: #fff; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; }
.lightbox .lb-next { right: 18px; top: 50%; }

/* ---------- Enquiry band ---------- */
.cta-band { background: var(--ink); color: #dfe6f3; border-radius: 16px; padding: 48px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c5da; font-size: 1.08rem; max-width: 56ch; }
.cta-band .call { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-decoration: none; }
@media (max-width: 767px) { .cta-band { padding: 30px; } }

/* ---------- Inner page header ---------- */
.page-head { padding: 54px 0 46px; border-bottom: 1px solid var(--line); }
.page-head .crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.page-head .crumbs a { color: var(--muted); text-decoration: none; }
.page-head .crumbs a:hover { color: var(--red); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; max-width: 22ch; }
.page-head p { color: var(--muted); font-size: 1.12rem; margin: 12px 0 0; max-width: 60ch; }
.page-head .head-img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Rich text ---------- */
.prose { max-width: 75ch; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose img { height: auto; border-radius: 8px; }
.prose table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose > :first-child { margin-top: 0; }

/* ---------- Forms ---------- */
.form-v label { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.form-v .form-control, .form-v .form-select { border: 1px solid var(--rule); border-radius: 8px; padding: .7rem .9rem; font-size: 1rem; }
.form-v .form-control:focus, .form-v .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19, 35, 63, .12); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.form-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; background: #fdecea; color: #a61b2b; border: 1px solid #f5c2c0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list i { font-size: 1.3rem; color: var(--red); margin-top: 2px; }
.info-list strong { display: block; color: var(--ink); font-family: var(--font-head); }
.info-list a { color: var(--text); text-decoration: none; }
.info-list a:hover { color: var(--red); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-acc .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.faq-acc .accordion-button { font-family: var(--font-head); font-weight: 650; color: var(--ink); font-size: 1.06rem; padding: 1.1rem 1.3rem; }
.faq-acc .accordion-button:not(.collapsed) { background: var(--mist); color: var(--ink); box-shadow: none; }
.faq-acc .accordion-button:focus { box-shadow: none; }
.faq-acc .accordion-body { color: var(--muted); }
.topic { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; text-decoration: none; color: inherit; background: #fff; }
.topic:hover { border-color: var(--ink); color: inherit; }
.topic i { font-size: 1.5rem; color: var(--red); }
.topic h3 { font-size: 1.1rem; margin-bottom: 4px; }
.topic p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Numbers band ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.numbers > div { padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.numbers > div:first-child { border-left: 0; }
.numbers .n { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; }
.numbers .l { color: #b9c5da; margin-top: 8px; }
@media (max-width: 767px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers > div:nth-child(3) { border-left: 0; } }

/* ---------- Founder ---------- */
.founder { padding: 70px 0; border-bottom: 1px solid var(--line); }
.founder:last-of-type { border-bottom: 0; }
.founder .photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--mist); }
.founder .name { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-top: 14px; }
.founder .greet { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.skill { margin-bottom: 14px; }
.skill .top { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); }
.skill .bar { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.skill .bar span { display: block; height: 100%; background: var(--red); }

/* ---------- Tables (test series) ---------- */
.table-v { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-v th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; padding: 14px 16px; }
.table-v td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table-v tr:nth-child(even) td { background: #fafbfd; }
.pagination .page-link { color: var(--ink); border-color: var(--line); }
.pagination .active .page-link, .pagination .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Course detail ---------- */
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; margin-bottom: 24px; }
.side-box h3 { font-size: 1.1rem; margin-bottom: 14px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.side-links a:hover, .side-links a.current { color: var(--red); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 22px 0 28px; }
.fact-grid div { background: var(--mist); border-radius: 8px; padding: 14px 16px; }
.fact-grid small { display: block; color: var(--muted); font-size: .85rem; }
.fact-grid strong { color: var(--ink); font-family: var(--font-head); }
.teacher-mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.teacher-mini img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.teacher-mini strong { display: block; color: var(--ink); font-size: .98rem; }
.teacher-mini span { color: var(--muted); font-size: .88rem; }

/* ---------- Blog ---------- */
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; background: #fff; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .date { color: var(--muted); font-size: .88rem; }
.post-card h3 { font-size: 1.2rem; margin: 6px 0 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1a31; color: #aebad0; padding: 70px 0 0; font-size: .97rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.site-footer a { color: #aebad0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer .logo-box { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; }
.site-footer .logo-box img { height: 46px; }
.site-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); margin-right: 6px; color: #fff; }
.site-footer .social a:hover { background: var(--red); border-color: var(--red); }
.site-footer .contact-line { display: flex; gap: 10px; padding: 6px 0; }
.site-footer .contact-line i { color: var(--highlight); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding: 20px 0; font-size: .9rem; }
.footer-bottom a { margin-left: 18px; }

/* floating buttons */
.float-btns { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 1040; }
.float-btns a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.float-btns .wa { background: #25d366; }
.float-btns .ph { background: var(--ink); }
@media (min-width: 992px) { .float-btns .ph { display: none; } }

/* thank you / empty */
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* courses mega menu + header fit */
.site-nav .dropdown-menu.mega { display: none; min-width: 440px; padding: 14px; }
.site-nav .dropdown-menu.mega.show { display: flex; gap: 14px; }
@media (min-width: 1200px) { .site-nav .dropdown:hover > .dropdown-menu.mega { display: flex; gap: 14px; } }
.mega-col { flex: 1; }
.mega-head { font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 4px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mega-head i { color: var(--red); }
.header-call { white-space: nowrap; }
.site-nav > li > a, .site-nav > li > button { white-space: nowrap; }
@media (max-width: 1399px) { .site-nav > li > a, .site-nav > li > button { padding-left: .55rem; padding-right: .55rem; font-size: .95rem; } }
main, .site-footer, .quick { overflow-x: clip; }
