/*
 * Home page design layer (loaded only on the home page).
 * Brand: maroon #7A0202, yellow #FBD13A, cream #F9EFC8, green #1B6F1B, orange #F39A2B. Font: Montserrat.
 * Every existing section and its admin-managed content stays; this file only adds
 * the hero, the three new sections and a consistent look for the rest.
 */
:root {
    --h-maroon: #7A0202;
    --h-maroon-dark: #4d0101;
    --h-yellow: #FBD13A;
    --h-cream: #F9EFC8;
    --h-cream-2: #FFF8E4;
    --h-green: #1B6F1B;
    --h-orange: #F39A2B;
    --h-ink: #2b1a1a;
    --h-muted: #6b5b5b;
    --h-radius: 16px;
    --h-shadow: 0 10px 30px rgba(122, 2, 2, .10);
    --h-shadow-hover: 0 16px 40px rgba(122, 2, 2, .18);
}

/* ---------- Hero ---------- */
@media screen {
    header.fixed-top + #main-content.home-hero { margin-top: var(--site-header-h) !important; }
    #main-content.home-hero {
        position: relative;
        height: auto !important;
        aspect-ratio: auto !important;
        min-height: max(540px, calc(100vh - var(--site-header-h)));
        display: flex;
        align-items: center;
        overflow: hidden;
        background: radial-gradient(1200px 600px at 80% 20%, #a3150f 0%, var(--h-maroon) 45%, var(--h-maroon-dark) 100%);
        color: #fff;
    }
    .home-hero .hero-media { position: absolute; inset: 0; z-index: 0; }
    .home-hero .hero-media .card, .home-hero .hero-media .card-body { height: 100%; background: transparent; }
    .home-hero .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .home-hero::before {
        content: '';
        position: absolute; inset: 0; z-index: 1;
        background: linear-gradient(100deg, rgba(60, 0, 0, .85) 0%, rgba(122, 2, 2, .6) 34%, rgba(122, 2, 2, .12) 62%, rgba(0, 0, 0, 0) 100%);
    }
    .home-hero .hero-inner { position: relative; z-index: 2; width: 100%; padding: 56px clamp(16px, 5vw, 72px); }
    .home-hero .hero-copy { max-width: 760px; }
    .home-hero .hero-chip {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(251, 209, 58, .14); border: 1px solid rgba(251, 209, 58, .45);
        color: var(--h-yellow); font-weight: 600; font-size: 13px; letter-spacing: .3px;
        padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
    }
    .home-hero h1 {
        font-family: Montserrat, sans-serif; font-weight: 800; line-height: 1.12;
        font-size: clamp(28px, 3.9vw, 52px); margin: 0 0 16px; color: #fff; text-transform: none;
    }
    .home-hero h1 .hl { color: var(--h-yellow); }
    .home-hero .hero-lead { font-size: clamp(15px, 1.35vw, 19px); line-height: 1.6; color: #fde9e9; max-width: 640px; margin-bottom: 26px; }
    .home-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
    .hbtn {
        display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
        padding: 13px 22px; border-radius: 12px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }
    .hbtn:hover { transform: translateY(-2px); }
    .hbtn-primary { background: var(--h-yellow); color: var(--h-maroon); box-shadow: 0 8px 24px rgba(251, 209, 58, .35); }
    .hbtn-primary:hover { color: var(--h-maroon); box-shadow: 0 12px 30px rgba(251, 209, 58, .5); }
    .hbtn-ghost { border: 1.5px solid rgba(255, 255, 255, .75); color: #fff; }
    .hbtn-ghost:hover { background: #fff; color: var(--h-maroon); }
    .hbtn-text { color: var(--h-yellow); padding-left: 6px; padding-right: 6px; }
    .hbtn-text:hover { color: #fff; }
    .home-hero .hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; }
    .home-hero .hero-trust div { display: flex; flex-direction: column; }
    .home-hero .hero-trust b { font-size: clamp(22px, 2.2vw, 30px); color: var(--h-yellow); line-height: 1; }
    .home-hero .hero-trust span { font-size: 13px; color: #f6d6d6; margin-top: 4px; text-transform: uppercase; letter-spacing: .6px; }
    .home-hero .hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 22px; animation: hero-bob 2s ease-in-out infinite; }
    @keyframes hero-bob { 50% { transform: translate(-50%, 6px); } }
    @media (prefers-reduced-motion: reduce) { .home-hero .hero-scroll { animation: none; } .hbtn:hover { transform: none; } }
    /* The old green headline band is replaced by the hero headline. */
    section.welcome { display: none; }

    @media (max-width: 767.98px) {
        #main-content.home-hero { min-height: 0; }
        .home-hero::before { background: linear-gradient(180deg, rgba(60, 0, 0, .55) 0%, rgba(122, 2, 2, .72) 55%, rgba(77, 1, 1, .9) 100%); }
        .home-hero .hero-inner { padding: 36px 16px 44px; }
        .home-hero .hero-ctas .hbtn { flex: 1 1 100%; justify-content: center; }
        .home-hero .hero-ctas .hbtn-text { flex: 0 0 auto; margin: 0 auto; }
        .home-hero .hero-scroll { display: none; }
    }
}

/* ---------- Shared section look ---------- */
.home-section { padding: 64px clamp(16px, 5vw, 72px); }
.home-section.cream { background: var(--h-cream); }
.home-section.cream-2 { background: var(--h-cream-2); }
.home-section.white { background: #fff; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.sec-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--h-green); background: rgba(27, 111, 27, .09); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.sec-title { font-family: Montserrat, sans-serif; font-weight: 800; color: var(--h-maroon); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.2; margin: 0 0 10px; }
.sec-title .hl { color: #B35300; }
.sec-lead { color: var(--h-muted); font-size: 16px; line-height: 1.65; margin: 0; }

/* ---------- Pathways ---------- */
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.path-card {
    background: #fff; border-radius: var(--h-radius); padding: 24px 22px; box-shadow: var(--h-shadow);
    border-top: 4px solid var(--h-maroon); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--h-shadow-hover); }
.path-card .pc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--h-cream); color: var(--h-maroon); margin-bottom: 14px; }
.path-card h3 { font-size: 19px; font-weight: 800; color: var(--h-ink); margin: 0 0 6px; }
.path-card p { color: var(--h-muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.path-card ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 6px; }
.path-card ul a { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--h-maroon); padding: 9px 12px; border-radius: 10px; background: #fdf6f0; transition: background .15s ease; }
.path-card ul a:hover { background: var(--h-yellow); }
.path-card:nth-child(2) { border-top-color: var(--h-green); }
.path-card:nth-child(2) .pc-icon { color: var(--h-green); }
.path-card:nth-child(3) { border-top-color: var(--h-orange); }
.path-card:nth-child(3) .pc-icon { color: #b45f00; }
.path-card:nth-child(4) { border-top-color: #1d4f91; }
.path-card:nth-child(4) .pc-icon { color: #1d4f91; }

/* ---------- Future careers ---------- */
.future-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.future-intro { position: sticky; top: calc(var(--site-header-h, 120px) + 16px); background: var(--h-maroon); color: #fff; border-radius: var(--h-radius); padding: 30px 26px; box-shadow: var(--h-shadow); }
.future-intro .sec-eyebrow { color: var(--h-yellow); background: rgba(251, 209, 58, .14); }
.future-intro h2 { font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; margin: 0 0 12px; color: #fff; }
.future-intro p { color: #f6dede; line-height: 1.65; font-size: 15px; }
.future-intro .hbtn { margin-top: 6px; }
.future-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.future-card { background: #fff; border-radius: var(--h-radius); padding: 22px 20px; box-shadow: var(--h-shadow); border: 1px solid #f2e3c4; transition: transform .2s ease, box-shadow .2s ease; }
.future-card:hover { transform: translateY(-4px); box-shadow: var(--h-shadow-hover); }
.future-card .fc-icon { font-size: 26px; color: var(--h-orange); margin-bottom: 10px; display: block; }
.future-card h3 { font-size: 17px; font-weight: 800; color: var(--h-maroon); margin: 0 0 6px; }
.future-card p { font-size: 14px; color: var(--h-muted); line-height: 1.55; margin: 0; }

/* ---------- Admission steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.step-card { position: relative; background: #fff; border-radius: var(--h-radius); padding: 26px 20px 22px; box-shadow: var(--h-shadow); text-decoration: none; color: inherit; display: block; transition: transform .2s ease, box-shadow .2s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--h-shadow-hover); color: inherit; }
.step-card .sn { width: 44px; height: 44px; border-radius: 50%; background: var(--h-maroon); color: var(--h-yellow); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.step-card h3 { font-size: 17px; font-weight: 800; color: var(--h-ink); margin: 0 0 6px; }
.step-card p { font-size: 14px; color: var(--h-muted); line-height: 1.5; margin: 0 0 10px; }
.step-card .go { font-weight: 700; font-size: 14px; color: var(--h-maroon); }
.steps-cta { text-align: center; margin-top: 28px; }
.steps-cta .hbtn-primary { box-shadow: var(--h-shadow); }
.steps-cta .hbtn-ghost { border-color: var(--h-maroon); color: var(--h-maroon); }
.steps-cta .hbtn-ghost:hover { background: var(--h-maroon); color: #fff; }

/* ---------- Existing sections: consistent cards ---------- */
#welcome .card-body > .row > .col > .card { border-radius: var(--h-radius) !important; box-shadow: var(--h-shadow); transition: transform .2s ease; }
#welcome .card-body > .row > .col > .card:hover { transform: translateY(-3px); }
#trending-courses .card, #latest-blogs .card, #testimonials .card { border-radius: 14px; }
#latest-blogs .card { box-shadow: var(--h-shadow); transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
#latest-blogs .card:hover { transform: translateY(-4px); box-shadow: var(--h-shadow-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .future-wrap { grid-template-columns: 1fr; }
    .future-intro { position: static; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .home-section { padding: 44px 16px; }
    .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .future-card { padding: 16px 14px; }
}
@media (max-width: 575.98px) {
    .path-grid, .steps { grid-template-columns: 1fr; }
    .future-grid { grid-template-columns: 1fr; }
}
