/*
 * GHAMC design D3 (owner-approved 24 Nov 2026): inner pages that use the second layout.
 * The full-screen poster at the top of each page becomes a compact page header: same photo, a green overlay,
 * a readable title and the breadcrumb. Page text below is not changed. Browsers without :has() keep the old look.
 */
body.gh-inner > main:first-of-type:has(.main-heading) { position: relative; isolation: isolate; height: auto !important; min-height: 0 !important; margin-top: 0 !important; padding: 0 !important; background-size: cover !important; background-position: center !important; }
body.gh-inner > main:first-of-type:has(.main-heading)::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, rgba(18, 61, 40, .9), rgba(18, 61, 40, .62));
}
body.gh-inner > main:first-of-type:has(.main-heading) > .container-fluid,
body.gh-inner > main:first-of-type:has(.main-heading) > div:first-child {
    height: auto !important; min-height: calc(var(--gh-header-h, 150px) + 230px) !important;
    padding: calc(var(--gh-header-h, 150px) + 32px) 20px 40px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}
body.gh-inner .main-heading {
    font-family: var(--gh-font-display) !important; font-size: clamp(2.1rem, 5vw, 3.6rem) !important; font-weight: 700 !important;
    color: #fff !important; text-transform: capitalize !important; letter-spacing: 0 !important; line-height: 1.1 !important;
    text-align: center; margin: 0 0 .4rem !important; text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
body.gh-inner > main:first-of-type .breadcrumb { margin: 0; justify-content: center; }
body.gh-inner > main:first-of-type .breadcrumb-item,
body.gh-inner > main:first-of-type .breadcrumb-item a { color: var(--gh-gold-100) !important; font-size: .95rem !important; font-weight: 600 !important; }
body.gh-inner > main:first-of-type .breadcrumb-item.active,
body.gh-inner > main:first-of-type .breadcrumb-item[aria-current] { color: #fff !important; }
body.gh-inner > main:first-of-type .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6) !important; }
@media (max-width: 600px) {
    body.gh-inner > main:first-of-type:has(.main-heading) > .container-fluid,
    body.gh-inner > main:first-of-type:has(.main-heading) > div:first-child { min-height: calc(var(--gh-header-h, 108px) + 170px) !important; padding-top: calc(var(--gh-header-h, 108px) + 24px) !important; }
}

/* D5: the four course pages (skill development, university, government, fellowship) share one layout. */
body.gh-inner #skill-development-courses { height: auto !important; min-height: 0 !important; display: block !important; padding-top: var(--gh-header-h, 150px); background: radial-gradient(circle at 85% 20%, var(--gh-gold-100), transparent 45%), linear-gradient(180deg, #fff, var(--gh-cream)); }
body.gh-inner #skill-development-courses > .row { margin: 0 auto !important; max-width: 1280px; padding: 40px 0 48px; height: auto !important; }
body.gh-inner #skill-development-courses .card-body { padding-top: 0; padding-bottom: 0; }
body.gh-inner #skill-development-courses h6 { color: var(--gh-maroon-700) !important; letter-spacing: .12em; font-weight: 700; font-size: .8rem !important; }
body.gh-inner #skill-development-courses h2 { font-family: var(--gh-font-display) !important; color: var(--gh-green-900) !important; font-size: clamp(2rem, 3.6vw, 3rem) !important; line-height: 1.12; }
body.gh-inner #skill-development-courses p { color: var(--gh-muted) !important; font-size: 1rem !important; }
body.gh-inner #skill-development-courses .courses-bg { border-radius: 20px !important; padding: 0 !important; max-height: 380px; width: 100%; object-fit: cover; }
body.gh-inner #our-courses { padding-top: 16px !important; }
body.gh-inner #our-courses > div > div > .card { border-radius: var(--gh-radius) !important; border: 1px solid var(--gh-line) !important; box-shadow: none !important; max-width: 1280px; }
body.gh-inner #our-courses table { margin: 0; border-color: var(--gh-line); }
body.gh-inner #our-courses thead th { background: var(--gh-green-900) !important; color: #fff !important; font-weight: 600; font-size: .85rem !important; vertical-align: middle; }
body.gh-inner #our-courses tbody td { font-size: .92rem !important; vertical-align: middle; }
body.gh-inner #our-courses .table-responsive, body.gh-inner #our-courses .card-body { overflow-x: auto; }
@media (max-width: 767px) { body.gh-inner #skill-development-courses .card { padding-left: 1rem !important; padding-right: 1rem !important; } }

/* Brochure (25 Nov 2026): Notes under each course list */
.gh-course-notes { margin-top: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--gh-line, #e3ddd0); border-left: 4px solid var(--gh-gold-500, #c89b3c); border-radius: 12px; font-size: .9rem; line-height: 1.6; text-transform: none; }
.gh-course-notes p { margin: 0 0 6px; }
.gh-course-notes p:last-child { margin: 0; }
body.gh-inner #our-courses tbody th { font-size: .95rem !important; font-weight: 700; vertical-align: middle; }
body.gh-inner #our-courses tbody td.d-flex { flex-wrap: wrap; gap: 6px; }
