/* Shared chrome for all section pages: page background, navbar, banner, footer. */

:root {
    --tla-accent: #FCD233;
    --tla-accent-dark: #d9a800;
    --tla-ink: #1f2330;
    /* The side margin of every section's top text area: those boxes sit
       outside the page containers, at the full width less this gutter, so
       they never touch the viewport edge on a wide screen. */
    --blurb-gutter: clamp(1rem, 5vw, 5rem);
}

body {
    font-family: var(--tla-font);
    color: var(--tla-ink);
    background-color: #fffae4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.section-content {
    flex: 1 0 auto;
}

/* Every section page wraps its content in a `.col-md-12` block directly
   under <main>. Outside a .row that class carries no padding, so below the
   desktop breakpoint, where no centred max-width column and no Bootstrap
   container is left to supply a margin, the content ran edge to edge on
   phones and tablets. One gutter here covers every section page. */
@media (max-width: 991.98px) {
    .section-content > .col-md-12,
    .section-content > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navbar and footer styling lives in css/site-chrome.css, shared by every layout. */

.nav-logo {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    height: 50px;
    width: auto;
}



/* --- Top text areas ----------------------------------------------------------
   Every section's editable blurb reads left-aligned, whatever alignment the
   editor saved with the text: a wide box of centred prose is hard to read.
   The pathways intro's heading line is the one deliberate exception. */
.events-intro,
.impact-intro,
.pathway-description,
.section-intro-body,
.new-teachers-page-body,
.leaders-managers-page-body,
.catalyst-page-body {
    text-align: left;
}

:is(.events-intro, .impact-intro, .pathway-description, .section-intro-body, .new-teachers-page-body, .leaders-managers-page-body, .catalyst-page-body, .pathways-intro-text) :is(p, h1, h2, h3, h4, h5, h6, li, div, span) {
    text-align: left !important;
}

/* Solid gold: the one primary action on a section page. */
.btn-tla {
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    color: var(--tla-ink);
    background: var(--tla-accent);
    border: 2px solid var(--tla-accent);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn-tla:hover,
.btn-tla:focus-visible {
    color: #000;
    background: var(--tla-accent-dark);
    border-color: var(--tla-accent-dark);
    transform: translateY(-2px);
}

/* "See Resources" on a Leaders and Managers sub-section page: centred under
   the page's text block. */
.leaders-managers-see-resources {
    margin-top: 2.5rem;
    text-align: center;
}

.btn-tla-outline {
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: var(--tla-ink);
    background: transparent;
    border: 2px solid var(--tla-accent);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}  
.btn-tla-outline:hover {
    color: #000;
    background: var(--tla-accent);
    border-color: var(--tla-accent);
    transform: translateY(-2px);
}

/* Banner */
.section-banner {
    position: relative;
    overflow: hidden;
    background: #1b3452;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.section-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.section-banner-title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 2.75rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.section-banner-subtitle {
    margin: 0.5rem 0 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Resource search bar (global search page + section live filter) */
.resource-search-bar {
    background: #fff;
    border: 1px solid #444e57;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 8px;
}

.resource-search-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--tla-ink);
}

.resource-search-bar .form-select,
.resource-search-bar .form-control {
    min-width: 10rem;
}

/* Collapsible search: collapsed by default on every screen, opened via the toggle */
.resource-search-toggle {
    margin-bottom: 1rem;
}

.resource-search-clear {
    color: var(--tla-ink);
    text-decoration: none;
}

.resource-search-count {
    font-weight: 600;
    color: var(--tla-ink);
    margin-bottom: 1rem;
}

/* Live filtering flattens the topic tabs into one scannable list */
.is-filtering .resource-tabs {
    display: none;
}

.is-filtering .resource-tab-content {
    padding-top: 0;
}

.is-filtering .tab-pane {
    display: block !important;
    opacity: 1 !important;
}

.is-filtering .tab-pane.rs-hidden {
    display: none !important;
}

.resource-row.rs-hidden {
    display: none !important;
}

/* Footer styling lives in css/site-chrome.css, shared by every layout. */

/* Compact title shown instead of the banner on small screens */
.section-title-compact {
    display: none;
}

@media (max-width: 767.98px) {
    .section-banner {
        display: none;
    }

    .section-title-compact {
        display: block;
        padding: 1.25rem 0 0.5rem;
        text-align: center;
    }

    .section-title-compact h1 {
        margin: 0;
        font-weight: 800;
        font-size: 1.6rem;
        color: var(--tla-ink);
    }
}

@media (max-width: 575.98px) {
    .section-banner-title {
        font-size: 1.9rem;
    }
}

/* --- Section landing cards -------------------------------------------------
   One card per sub-page, used by every section that has a landing page
   (Catalyst, Events, Planning). Lives here rather than in a per-section
   stylesheet so the sections cannot drift apart visually. */
.section-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #3fc5bf;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-card:hover,
.section-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--tla-accent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.section-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: var(--tla-accent);
    color: #1f2330;
    font-size: 1.25rem;
}

.section-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.section-card-text {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
}

/* Pinned to the bottom so the CTA lines up across cards of differing height. */
.section-card-cta {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tla-accent-dark);
}

.section-card-cta i {
    transition: transform 0.2s ease;
}

.section-card:hover .section-card-cta i {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .section-card,
    .section-card-cta i {
        transition: none;
    }

    .section-card:hover,
    .section-card:focus-visible {
        transform: none;
    }
}
