/* DLGI home page (welcome.blade.php).
   Pushed into <head> with @push('styles') by the view that uses it. See AGENTS.md. */

/* ===== Column design language (matches the DLIM Partnership page) ===== */
.dlim-page {
    --section-gap: 72px;
    --card-padding: 24px;
    background: var(--color-cloud-canvas);
    color: var(--color-slate-ink);
    font-family: var(--font-sans);
    line-height: 1.5;
}
.dlim-page .container {
    max-width: 1200px;
}
.dlim-page section {
    padding: var(--section-gap) 0;
}
.page-home h2,
.page-home h3,
.page-home h4,
.page-home h5 {
    font-family: var(--font-sans);
    color: var(--color-indigo-navy);
    letter-spacing: -0.02em;
}
.page-home .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-indigo-navy);
    margin-bottom: 16px;
}
.page-home .eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--color-seafoam-600);
}

/* ---------- HERO (light caption card) ---------- */
/* No extra top padding: the theme already offsets the slider below the
   fixed navbar, so the photo sits directly under it at every width. */
.page-home #hero-1 {
    background: var(--color-cloud-canvas);
    padding: 0;
    position: relative;
}
/* Slides are 16:9 photos. Size the frame to match, but stop 140px short of
   the bottom of the screen so the next section always peeks into view. */
@media (min-width: 768px) {
    .page-home #hero-1 .slider,
    .page-home #hero-1 .slider .slides {
        height: clamp(480px, 56.25vw, calc(100vh - 85px - 140px));
    }
    .page-home #hero-1 .slider .indicators {
        bottom: 44px;
    }
}

/* "Scroll" cue, centred on the hero's bottom edge, pointing to the next section. */
.page-home .hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9999px;
    background: var(--color-pure-white);
    color: var(--color-indigo-navy);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 7px 5px 0px, rgba(0, 0, 0, 0.08) 0px 3px 2px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
    transition: box-shadow .18s ease, color .18s ease;
}
.page-home .hero-scroll-cue:hover,
.page-home .hero-scroll-cue:focus-visible {
    color: var(--color-seafoam-700);
    box-shadow: rgba(17, 26, 74, 0.18) 0px 6px 16px 0px;
}
/* The hero's "white-color" theme class turns text white; keep the label navy. */
.page-home #hero-1 .hero-scroll-cue span {
    color: inherit;
}
.page-home .hero-scroll-cue svg {
    width: 16px;
    height: 16px;
    animation: hero-cue-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .page-home .hero-scroll-cue svg { animation: none; }
}
html:has(.page-home) {
    scroll-behavior: smooth;
}
.page-home #about-2 {
    scroll-margin-top: 90px;
}
/* Phones: show the whole photo, then the caption card below it rather
   than on top of it. The active slide sets the height. */
@media (max-width: 767.98px) {
    .page-home #hero-1 .slider,
    .page-home #hero-1 .slider .slides,
    .page-home #hero-1 .slider .slides li {
        height: auto;
    }
    .page-home #hero-1 .slider .slides li.active {
        position: relative;
    }
    .page-home #hero-1 .slider .slides li img {
        display: block;
        height: 56.25vw;
        background-position: center;
    }
    .page-home #hero-1 .slider .slides li .caption {
        position: relative;
        height: auto;
        padding-bottom: 48px;
    }
    .page-home #hero-1 .caption .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .page-home #hero-1 .caption-txt {
        margin-top: -28px;
        text-align: left;
    }
    .page-home #hero-1 .caption-txt p.p-lg {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-home #hero-1 .slider .indicators {
        bottom: 16px;
    }
}
.page-home #hero-1 .caption-txt {
    background: var(--color-pure-white);
    border-radius: 8px;
    padding: 36px 36px 40px;
    max-width: 640px;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 40px 32px 0px, rgba(0, 0, 0, 0.03) 0px 22px 18px 0px, rgba(0, 0, 0, 0.04) 0px 7px 5px 0px, rgba(0, 0, 0, 0.07) 0px 3px 2px 0px;
}
@media (max-width: 640px) {
    .page-home #hero-1 .caption-txt {
        padding: 24px 24px 28px;
    }
}
.page-home #hero-1 .caption-txt h2.h2-sm {
    color: var(--color-indigo-navy) !important;
    font-weight: 600;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.page-home #hero-1 .caption-txt p.p-lg {
    color: var(--color-steel) !important;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ---------- BUTTONS ---------- */
.page-home a.btn {
    background: var(--color-indigo-navy);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0;
    padding: 12px 20px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.page-home a.btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: rgba(17, 26, 74, 0.18) 0px 6px 16px 0px;
}
/* Hero, Director (View Profile), Programmes (Read More) and Events buttons
   use the footer's blue. The dark banner keeps its white button. */
.page-home #hero-1 a.btn,
.page-home #about-2 a.btn,
.page-home #services-2 a.btn,
.page-home #about-3 a.btn {
    /* Brand blue with navy text: 7.6:1 (white on this blue is only 2.5:1).
       !important because the theme's .btn-* colour classes and .white-color set white text. */
    background: var(--color-brand-blue) !important;
    color: var(--color-indigo-navy) !important;
    font-weight: 600;
}
.page-home #hero-1 a.btn:hover,
.page-home #about-2 a.btn:hover,
.page-home #services-2 a.btn:hover,
.page-home #about-3 a.btn:hover {
    background: var(--color-brand-blue-hover) !important;
    color: var(--color-indigo-navy) !important;
    box-shadow: rgba(2, 174, 238, 0.35) 0px 6px 16px 0px;
}

/* ---------- ABOUT / DIRECTOR ---------- */
.page-home #about-2 {
    background: var(--color-cloud-canvas);
}
.page-home #about-2 .txt-block h3.h3-sm {
    color: var(--color-indigo-navy);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.page-home #about-2 .txt-block p {
    color: var(--color-slate-ink);
    font-size: 16px;
    line-height: 1.7;
}
.page-home #about-2 .img-block img {
    border-radius: 8px;
}
.page-home #about-2 .img-block h3 {
    font-size: 18px;
    margin: 14px 0 4px;
}
.page-home #about-2 .img-block p {
    color: var(--color-steel);
    font-size: 14px;
    margin-bottom: 18px;
}

/* ---------- COURSES (pillar-style cards) ---------- */
.page-home #services-2 {
    background: var(--color-pure-white);
}
.page-home #services-2 h4.h4-md {
    color: var(--color-indigo-navy);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.page-home #services-2 h4.h4-md span {
    color: var(--color-seafoam-700);
}
.page-home #services-2 p.grey-color {
    color: var(--color-steel);
    font-size: 16px;
}
.page-home #services-2 .sbox-2 {
    background: var(--color-pure-white);
    border: 1px solid var(--color-silver-lining);
    border-radius: 8px;
    padding: var(--card-padding);
    box-shadow: rgba(18, 22, 30, 0.024) 0px 1px 4px 0px;
    height: 100%;
    margin-bottom: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
/* Space between programme cards. The card fills its column (equal heights on desktop),
   so the gap lives on the column: a margin on the card would overflow into the next one. */
.page-home #services-2 .row > [class*="col-"]:has(> .sbox-2) {
    padding-bottom: 24px;
}
.page-home #services-2 .sbox-2:hover {
    transform: translateY(-3px);
    box-shadow: rgba(17, 26, 74, 0.05) 0px 8px 16px 0px;
}
.page-home #services-2 .sbox-2 i {
    color: var(--color-seafoam-700) !important;
    margin-bottom: 8px;
}
.page-home #services-2 .sbox-2-txt h5.h5-md {
    color: var(--color-indigo-navy);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.page-home #services-2 .sbox-2-txt p {
    color: var(--color-steel);
}

/* ---------- FEATURED SURFACE (single orange accent) ---------- */
.page-home #banner-3 {
    background: var(--color-cloud-canvas);
}
.page-home #banner-3 .banner-3-holder {
    background: var(--color-signal-orange);
    border-radius: 8px;
    padding: 48px 40px;
    box-shadow: none;
}
@media (max-width: 640px) {
    .page-home #banner-3 .banner-3-holder {
        padding: 32px 28px;
    }
}
.page-home #banner-3 .col-lg-8,
.page-home #banner-3 .banner-3-img {
    display: none;
}
.page-home #banner-3 .col-lg-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}
.page-home #banner-3 .banner-3-txt h4.h4-xs {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: clamp(28px, 4vw, 40px);
}
.page-home #banner-3 .banner-3-txt h4.h4-xs span {
    color: #ffffff;
}
.page-home #banner-3 a.btn {
    background: #ffffff !important;
    color: var(--color-indigo-navy) !important;
}

/* ---------- EVENTS ---------- */
/* ---------- CALENDAR OF EVENTS ---------- */
.page-home #about-3.ev-section {
    background: var(--color-pure-white);
    padding: 96px 0;
}
@media (max-width: 767.98px) {
    .page-home #about-3.ev-section { padding: 64px 0; }
}
.page-home .ev-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
@media (max-width: 991.98px) {
    .page-home .ev-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Featured event: photo panel with the next (or latest) event */
.page-home .ev-feature {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-deep-sea);
    box-shadow: rgba(0, 0, 0, 0.03) 0px 40px 32px 0px, rgba(0, 0, 0, 0.05) 0px 12px 12px 0px, rgba(0, 0, 0, 0.08) 0px 3px 3px 0px;
    text-decoration: none;
}
.page-home .ev-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.page-home a.ev-feature:hover img { transform: scale(1.04); }
.page-home .ev-feature-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 96px 28px 28px;
    background: linear-gradient(180deg, rgba(6, 9, 17, 0) 0%, rgba(6, 9, 17, 0.72) 45%, rgba(6, 9, 17, 0.92) 100%);
}
.page-home .ev-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: var(--color-brand-blue);
    color: var(--color-indigo-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.page-home .ev-feature h3 {
    color: #ffffff;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 14px 0 8px;
}
.page-home .ev-feature-when {
    color: var(--color-silver-lining);
    font-size: 15px;
    margin: 0;
}
.page-home .ev-feature .ev-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    min-width: 64px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--color-pure-white);
    text-align: center;
    line-height: 1.05;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 12px 0px;
}
.page-home .ev-badge .d { display: block; font-size: 26px; font-weight: 700; color: var(--color-indigo-navy); }
.page-home .ev-badge .m { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-seafoam-700); }

/* Copy + list */
.page-home .ev-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-indigo-navy);
    margin: 0 0 12px;
}
.page-home .ev-title span { color: var(--color-seafoam-700); }
.page-home .ev-lede {
    color: var(--color-steel);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 520px;
}
.page-home .ev-list-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-steel);
    margin: 0 0 4px;
}
.page-home .ev-list { list-style: none; padding: 0; margin: 0 0 28px; }
.page-home .ev-list li { border-top: 1px solid var(--color-silver-lining); margin: 0; }
.page-home .ev-list li:last-child { border-bottom: 1px solid var(--color-silver-lining); }
.page-home .ev-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    min-height: 44px;
    text-decoration: none;
}
.page-home .ev-date {
    width: 56px;
    padding: 8px 0;
    border-radius: 12px;
    background: var(--color-cloud-canvas);
    text-align: center;
    line-height: 1.05;
}
.page-home .ev-date .d { display: block; font-size: 20px; font-weight: 700; color: var(--color-indigo-navy); }
.page-home .ev-date .m { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-seafoam-700); }
.page-home .ev-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--color-indigo-navy); transition: color .18s ease; }
.page-home .ev-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--color-steel); }
.page-home .ev-arrow { width: 18px; height: 18px; color: var(--color-steel); transition: transform .18s ease, color .18s ease; }
.page-home .ev-list a:hover .ev-name { color: var(--color-seafoam-700); }
.page-home .ev-list a:hover .ev-arrow { color: var(--color-seafoam-700); transform: translateX(3px); }
.page-home .ev-empty {
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--color-cloud-canvas);
    color: var(--color-slate-ink);
    font-size: 15px;
    margin: 0 0 28px;
}
.page-home #about-3 a.btn { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
    .page-home a.ev-feature:hover img, .page-home .ev-list a:hover .ev-arrow { transform: none; }
}
