/* ================================================================
   JBIT – Programme pages (B.Pharm / D.Pharm), sections below the hero
   Markup: components/program-page.php

   Same look as the rest of the site: the soft pink page background with
   white cards on it, navy headings with a short red rule, real photos.
   No gradient text, no animations.
   ================================================================ */

.prog {
    --navy: #002147;
    --red: #ed2f36;
    --red-dark: #c8232a;
    --ink: #1c2434;
    --text: #485264;
    --muted: #6b7484;
    --line: #efe4e4;            /* dividers inside white cards */
    --pink: #fff5f5;            /* the site's page background (--light-bg) */
    --pink-2: #fdeaea;          /* every second section, a shade deeper */
    --card-border: #f5dcdc;
    --card-shadow: 0 10px 30px rgba(237, 47, 54, .07), 0 2px 6px rgba(0, 33, 71, .04);
    --prog-top: 64px;           /* height of the fixed navbar, updated by the page script */
    background: var(--pink);
    color: var(--text);
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}
.prog *, .prog *::before, .prog *::after { box-sizing: border-box; }
.prog a { text-decoration: none; }
.prog-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Sections & headings ── */
.prog-sec { padding: 80px 0; scroll-margin-top: calc(var(--prog-top) + 60px); }
.prog-alt { background: var(--pink-2); }
.prog-h2 {
    font-size: 32px; font-weight: 700; color: var(--navy);
    line-height: 1.25; margin: 0 0 18px;
}
.prog-h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--red); margin-top: 14px; }
.prog-h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 0 0 14px; }
.prog-lead { font-size: 17px; color: var(--muted); max-width: 760px; margin: 0 0 36px; }
.prog-text { margin: 0 0 16px; }
.prog-text strong { color: var(--ink); }
.prog-after { margin: 28px 0 0; }

/* ── Buttons & links ── */
.prog-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 6px; border: 1px solid var(--red);
    background: var(--red); color: #fff !important; font-weight: 600; font-size: 15px; line-height: 1.2;
    transition: background-color .15s, border-color .15s, color .15s;
}
.prog-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.prog-btn-sm { padding: 9px 16px; font-size: 14px; }
.prog-btn-ghost { background: #fff; color: var(--navy) !important; border-color: #c9ced6; }
.prog-btn-ghost:hover { background: #fff; border-color: var(--navy); }
.prog-btn-light { background: transparent; border-color: rgba(255, 255, 255, .55); }
.prog-btn-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.prog-link { color: var(--red); font-weight: 600; font-size: 15px; }
.prog-link i { font-size: 12px; margin-left: 4px; }
.prog-link:hover { color: var(--red-dark); text-decoration: underline; }

/* ── In-page navigation ── */
.prog-subnav {
    position: sticky; top: var(--prog-top); z-index: 900;
    background: #fff; border-bottom: 1px solid var(--card-border);
    box-shadow: 0 2px 10px rgba(0, 33, 71, .04);
}
.prog-subnav .prog-wrap { display: flex; align-items: center; gap: 16px; }
.prog-subnav-links { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }  /* min-width:0 lets the links scroll instead of widening the page on phones */
.prog-subnav-links::-webkit-scrollbar { display: none; }
.prog-subnav-links a {
    padding: 17px 14px; font-size: 15px; font-weight: 500; color: var(--ink);
    white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.prog-subnav-links a:hover { color: var(--red); }
.prog-subnav-links a.is-active { color: var(--red); border-bottom-color: var(--red); }

/* ── Overview ── */
.prog-overview { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.prog-domains { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.prog-domain { background: #fff; border: 1px solid var(--card-border); border-left: 3px solid var(--red); border-radius: 10px; padding: 16px 18px; box-shadow: var(--card-shadow); }
.prog-domain h4 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.prog-domain p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }
.prog-overview .prog-h3 { margin-top: 34px; }

.prog-glance { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); position: sticky; top: calc(var(--prog-top) + 76px); }
.prog-glance-head { background: var(--navy); color: #fff; font-weight: 600; font-size: 16px; padding: 14px 22px; }
.prog-glance dl { margin: 0; padding: 6px 22px; }
.prog-glance dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prog-glance dl div:last-child { border-bottom: none; }
.prog-glance dt { font-weight: 400; color: var(--muted); font-size: 14.5px; }
.prog-glance dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 14.5px; text-align: right; }
.prog-glance-btns { display: grid; gap: 10px; padding: 0 22px 22px; }

/* ── Cards (admission, training) ── */
.prog-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.prog-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 30px; box-shadow: var(--card-shadow); }
.prog-card .prog-h3 + * { margin-top: 0; }
.prog-card .prog-h3:not(:first-child) { margin-top: 30px; }

.prog-checks, .prog-bullets, .prog-steps { list-style: none; margin: 0; padding: 0; }
.prog-checks li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.prog-checks li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 1px; font-size: 13px; color: var(--navy);
}
.prog-bullets li { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.prog-bullets li:last-child { border-bottom: none; }
.prog-bullets li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.prog-steps { counter-reset: step; }
.prog-steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
.prog-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
    font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.prog-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.prog-steps strong { display: block; color: var(--ink); font-weight: 600; }
.prog-steps span { font-size: 15px; color: var(--muted); }

.prog-fees { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prog-fees th, .prog-fees td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prog-fees th { font-weight: 400; color: var(--text); text-align: left; padding-right: 16px; }
.prog-fees td { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prog-fees tr.is-total th, .prog-fees tr.is-total td { font-weight: 700; color: var(--navy); }
.prog-fees tr.is-total:first-of-type th, .prog-fees tr.is-total:first-of-type td { border-top: 2px solid var(--navy); }
.prog-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; line-height: 1.6; }

/* ── Curriculum ── */
.prog-terms { display: grid; gap: 20px; }
.prog-terms-4 { grid-template-columns: repeat(4, 1fr); }
.prog-terms-3 { grid-template-columns: repeat(3, 1fr); }
.prog-term { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); }
.prog-term h3 { font-size: 15.5px; font-weight: 600; color: var(--navy); background: #fff0f0; border-bottom: 1px solid var(--card-border); margin: 0; padding: 12px 18px; }
.prog-term ul { list-style: none; margin: 0; padding: 8px 18px 12px; }
.prog-term li { font-size: 14.5px; line-height: 1.5; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.prog-term li:last-child { border-bottom: none; }

/* ── Lab photos ── */
.prog-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.prog-photos figure { margin: 0; }
.prog-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: #f3e6e6; box-shadow: var(--card-shadow); }
.prog-photos figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ── Careers ── */
.prog-careers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prog-career { display: flex; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--card-shadow); }
.prog-career i { font-size: 22px; color: var(--red); width: 26px; flex-shrink: 0; margin-top: 3px; text-align: center; }
.prog-career h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.prog-career p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }

.prog-placement {
    display: flex; align-items: center; gap: 32px; margin-top: 40px;
    background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 26px 30px; box-shadow: var(--card-shadow);
}
.prog-placement-stat { flex-shrink: 0; padding-right: 32px; border-right: 1px solid var(--card-border); }
.prog-placement-stat strong { display: block; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.prog-placement-stat span { font-size: 14px; color: var(--muted); }
.prog-placement-body { flex: 1; }
.prog-placement-body p { margin: 0 0 10px; color: var(--ink); }
.prog-recruiters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prog-recruiters li { font-size: 13.5px; background: var(--pink); border: 1px solid var(--card-border); border-radius: 4px; padding: 4px 10px; color: var(--text); }
.prog-placement .prog-link { flex-shrink: 0; }

/* ── Faculty ── */
.prog-group { font-size: 17px; font-weight: 600; color: var(--navy); margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.prog-group:first-of-type { margin-top: 0; }
.prog-group span { font-size: 13px; font-weight: 500; color: var(--muted); background: #fff; border: 1px solid var(--card-border); border-radius: 20px; padding: 1px 10px; }
.prog-faculty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prog-faculty.is-lead { grid-template-columns: repeat(3, 1fr); }
.prog-person { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 14px; min-width: 0; box-shadow: var(--card-shadow); }
.prog-person img, .prog-initials { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; background: #fde3e3; }
.prog-faculty.is-lead .prog-person img, .prog-faculty.is-lead .prog-initials { width: 72px; height: 72px; }
.prog-initials { display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; }
.prog-person div { min-width: 0; }
.prog-person h4 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.3; }
.prog-role { display: block; font-size: 13.5px; color: var(--red); font-weight: 500; margin-top: 2px; }
.prog-meta { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ── Principal, vision & mission ── */
.prog-principal { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.prog-principal img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% 40%; border-radius: 12px; display: block; background: #f3e6e6; box-shadow: var(--card-shadow); }
.prog-quote p { font-size: 16.5px; color: var(--text); margin: 0 0 16px; }
.prog-sign { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--card-border); }
.prog-sign strong { display: block; color: var(--navy); font-size: 17px; }
.prog-sign span { font-size: 14.5px; color: var(--muted); }
.prog-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.prog-vm-item { background: #fff; border: 1px solid var(--card-border); border-left: 3px solid var(--red); border-radius: 12px; padding: 24px 28px; box-shadow: var(--card-shadow); }
.prog-vm-item.is-mission { border-left-color: var(--navy); }
.prog-vm-item h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.prog-vm-item p { margin: 0; }

/* ── FAQs ── */
.prog-faq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }
.prog-faq-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.prog-faq-list { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 4px 26px; box-shadow: var(--card-shadow); }
.prog-faq-list details { border-bottom: 1px solid var(--line); }
.prog-faq-list details:last-child { border-bottom: none; }
.prog-faq-list summary {
    list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
    font-size: 17px; font-weight: 600; color: var(--ink);
}
.prog-faq-list summary::-webkit-details-marker { display: none; }
.prog-faq-list summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 24px; font-weight: 400; color: var(--red); line-height: 1;
}
.prog-faq-list details[open] summary::after { content: "\2212"; }
.prog-faq-list summary:hover { color: var(--navy); }
.prog-faq-list details p { margin: 0; padding: 0 40px 22px 0; color: var(--text); }

/* ── Apply band ── */
.prog-cta { background: var(--navy); color: #fff; padding: 56px 0; }
.prog-cta .prog-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.prog-cta h2 { color: #fff; font-size: 28px; font-weight: 700; margin: 0 0 6px; }
.prog-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.prog-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .prog-terms-4 { grid-template-columns: repeat(2, 1fr); }
    .prog-faculty { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .prog-sec { padding: 60px 0; }
    .prog-overview, .prog-principal, .prog-faq { grid-template-columns: 1fr; gap: 36px; }
    .prog-glance { position: static; }
    .prog-principal img { max-width: 300px; }
    .prog-two, .prog-vm { grid-template-columns: 1fr; }
    .prog-careers { grid-template-columns: repeat(2, 1fr); }
    .prog-photos { grid-template-columns: repeat(2, 1fr); }
    .prog-faculty, .prog-faculty.is-lead { grid-template-columns: repeat(2, 1fr); }
    .prog-terms-3 { grid-template-columns: 1fr; }
    .prog-placement { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .prog-sec { padding: 48px 0; }
    .prog-h2 { font-size: 26px; }
    .prog-subnav .prog-btn { display: none; }
    .prog-card { padding: 22px; }
    .prog-domains, .prog-terms-4, .prog-careers, .prog-faculty, .prog-faculty.is-lead { grid-template-columns: 1fr; }
    .prog-placement-stat { border-right: none; padding-right: 0; }
    .prog-cta h2 { font-size: 24px; }
}
