/* =========================================================================
   DEGREE IN VFX COURSE — course detail page
   Header/footer/hero-frame/consult are the shared components (folds.css,
   vbs.css), same as every other page-course-*.php. This page reuses the
   exact same .miv-* component set as page-course-master-in-vfx-course.php
   (Course Highlights dossier, "Why Choose" band, institute ledger, FAQ
   accordion) plus the .miv-highlights-sub / .miv-modules-label rules that
   otherwise only exist in degree-in-vfx-course-mumbai.css (the landing
   page), since this page's "About the Program" section needs both the
   base highlights layout AND that sub-block. Rules below are copied
   verbatim from those two files rather than @import'd (this theme's other
   per-template CSS files don't use @import either), trimmed to just the
   sections this template actually renders (no Duration/Wins/Tailored
   sections here — see page-course-degree-in-vfx-course.php's own header
   comment for why).
   ========================================================================= */

.miv-h {
  margin: 0.5rem 0 0;
  font-family: var(--font-poster);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* --- about the program: tilted photo + intro, then a centered sub-block,
   then the full highlights dossier ---------------------------------------- */
.miv-highlights { padding: var(--fold-y) var(--gutter) clamp(4rem, 8vw, 6rem); background: var(--surface); }
.miv-highlights-inner {
  max-width: var(--page);
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.miv-highlights-copy .numbers-tag { display: inline-flex; width: fit-content; margin-bottom: 0.5rem; }
.miv-course-p { margin: 1.25rem 0 0; max-width: 58ch; font-size: var(--fs-lead); line-height: 1.62; color: var(--ink-mid); }
.miv-frame {
  margin: 0;
  padding: 0.75rem;
  border-radius: var(--r-md);
  background: linear-gradient(165deg, var(--surface-raised), var(--surface));
  border: var(--hair) solid rgba(var(--white-rgb), 0.16);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65);
  transform: rotate(2deg);
}
.miv-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-md) - 6px);
}
.miv-highlights-sub { max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.miv-highlights-sub .numbers-tag { display: inline-flex; width: fit-content; margin: 0 auto 0.5rem; }
.miv-highlights-sub .miv-course-p { margin: 1rem auto 0; }
.miv-modules-label {
  max-width: var(--page);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.miv-modules {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.miv-modules li {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface-raised);
  border: var(--hair) solid rgba(var(--white-rgb), 0.12);
  border-radius: var(--r-md);
}
.miv-mod-no {
  font-family: var(--font-poster);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: rgba(var(--gold-rgb), 0.8);
}
.miv-modules b { display: block; margin-top: 0.5rem; font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.miv-modules p { margin: 0.35rem 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-mid); }

/* --- why choose this degree program: plain copy+button band -------------- */
.miv-why { padding: clamp(3rem, 6vw, 5rem) var(--gutter); background: var(--surface); }
.miv-why-inner {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.miv-why-copy p { margin: 1rem 0 0; max-width: 68ch; font-size: var(--fs-body); line-height: 1.65; color: var(--ink-mid); }
.miv-why-cta { flex: none; }

/* --- our institute is your ideal choice: nine real-photo benefit cards --- */
.miv-ledger { padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(4rem, 7vw, 6rem); background: var(--void); }
.miv-ledger-head { max-width: var(--page); margin: 0 auto clamp(2.25rem, 4vw, 3rem); text-align: center; }
.miv-ledger-head .numbers-tag { display: inline-flex; width: fit-content; margin: 0 auto 0.5rem; }
.miv-ledger-grid {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.miv-ledger-grid li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--surface-raised);
  border: var(--hair) solid rgba(var(--white-rgb), 0.12);
  border-radius: var(--r-md);
}
.miv-ledger-grid img { flex: none; width: 4.9rem; height: 4.9rem; border-radius: 50%; object-fit: cover; }
.miv-ledger-grid span { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; color: var(--ink); }
.miv-ledger .courses-more { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* --- faqs: the FAQs page's ghost-numbered <details> accordion, ported ---- */
.miv-faq { padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(4.5rem, 8vw, 6.5rem); background: var(--surface); }
.miv-faq-head { max-width: 44rem; margin: 0 auto clamp(2.25rem, 4vw, 3rem); text-align: center; }
.miv-faq-head .numbers-tag { display: inline-flex; width: fit-content; margin: 0 auto 0.5rem; }
.miv-fq-list { max-width: 44rem; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.miv-fq-item {
  position: relative;
  border-radius: var(--r-md);
  border: var(--hair) solid rgba(var(--white-rgb), 0.14);
  background: rgba(var(--white-rgb), 0.02);
  overflow: hidden;
  transition: border-color var(--t-1) var(--ease);
}
.miv-fq-item:has(details[open]) { border-color: rgba(var(--gold-rgb), 0.4); }
.miv-fq-item details > summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.25rem, 2.4vw, 1.75rem);
  cursor: pointer;
  list-style: none;
}
.miv-fq-item summary::-webkit-details-marker { display: none; }
.miv-fq-no {
  flex: none;
  font-family: var(--font-poster);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  color: rgba(var(--white-rgb), 0.14);
  transition: color var(--t-1) var(--ease);
}
.miv-fq-item details[open] .miv-fq-no { color: rgba(var(--gold-rgb), 0.55); }
.miv-fq-q { flex: 1 1 auto; font-size: var(--fs-body); font-weight: 700; line-height: 1.4; color: var(--ink); }
.miv-fq-marker { flex: none; position: relative; width: 1.2rem; height: 1.2rem; }
.miv-fq-marker::before, .miv-fq-marker::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink-mid);
  transform: translate(-50%, -50%);
  transition: transform var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.miv-fq-marker::before { width: 1.1rem; height: 2px; }
.miv-fq-marker::after { width: 2px; height: 1.1rem; }
.miv-fq-item details[open] .miv-fq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.miv-fq-item details[open] .miv-fq-marker::before, .miv-fq-item details[open] .miv-fq-marker::after { background: var(--gold); }
.miv-fq-a {
  margin: 0;
  padding: 0 clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.4vw, 1.6rem) calc(clamp(1.6rem, 3vw, 2.1rem) + clamp(0.75rem, 2vw, 1.25rem) + clamp(1.25rem, 2.4vw, 1.75rem));
  max-width: 60ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-mid);
}
@media (max-width: 640px) {
  .miv-fq-a { padding-left: clamp(1.25rem, 2.4vw, 1.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  .miv-fq-item, .miv-fq-no, .miv-fq-marker::before, .miv-fq-marker::after { transition: none; }
}

@media (max-width: 900px) {
  .miv-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .miv-highlights-inner { grid-template-columns: minmax(0, 1fr); }
  .miv-frame { order: -1; max-width: 26rem; margin: 0 auto; }
  .miv-ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .miv-why-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .miv-modules { grid-template-columns: minmax(0, 1fr); }
  .miv-ledger-grid { grid-template-columns: minmax(0, 1fr); }
}
