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

:root {
    --tla-accent: #FCD233;
    --tla-accent-dark: #d9a800;
    --tla-ink: #1f2330;

    /* Animated dot palette — kept in step with new-welcome.css */
    --dot-sand: #f5cf81;
    --dot-navy: #1c3451;
    --dot-teal: #54c3c0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--tla-ink);
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

/* 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;
}



.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: linear-gradient(to bottom right, #fdf6d8 0%, #000 100%);
    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);
}

/* Animated floating dots */
.section-banner .dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.section-banner .dot {
    position: absolute;
    border-radius: 50%;
    background: var(--dot-sand);
    opacity: 0.7;
    animation: section-dot-float 12s ease-in-out infinite;
}

/* Cycle the three brand colours across the dots */
.section-banner .dot:nth-child(3n + 1) { background: var(--dot-sand); }
.section-banner .dot:nth-child(3n + 2) { background: var(--dot-navy); }
.section-banner .dot:nth-child(3n)     { background: var(--dot-teal); }

.section-banner .dot:nth-child(1)  { top: 18%; left: 8%;  width: 14px; height: 14px; animation-delay: 0s;    animation-duration: 11s; }
.section-banner .dot:nth-child(2)  { top: 26%; left: 82%; width: 22px; height: 22px; animation-delay: -2s;   animation-duration: 14s; opacity: 0.5; }
.section-banner .dot:nth-child(3)  { top: 68%; left: 15%; width: 10px; height: 10px; animation-delay: -4s;   animation-duration: 9s;  }
.section-banner .dot:nth-child(4)  { top: 72%; left: 70%; width: 18px; height: 18px; animation-delay: -1s;   animation-duration: 13s; opacity: 0.6; }
.section-banner .dot:nth-child(5)  { top: 45%; left: 50%; width: 8px;  height: 8px;  animation-delay: -6s;   animation-duration: 10s; opacity: 0.45; }
.section-banner .dot:nth-child(6)  { top: 20%; left: 40%; width: 12px; height: 12px; animation-delay: -3s;   animation-duration: 15s; }
.section-banner .dot:nth-child(7)  { top: 55%; left: 90%; width: 16px; height: 16px; animation-delay: -5s;   animation-duration: 12s; opacity: 0.55; }
.section-banner .dot:nth-child(8)  { top: 80%; left: 35%; width: 10px; height: 10px; animation-delay: -7s;   animation-duration: 8s;  }
.section-banner .dot:nth-child(9)  { top: 32%; left: 25%; width: 20px; height: 20px; animation-delay: -2.5s; animation-duration: 16s; opacity: 0.4; }
.section-banner .dot:nth-child(10) { top: 60%; left: 60%; width: 12px; height: 12px; animation-delay: -8s;   animation-duration: 11s; }

@keyframes section-dot-float {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(18px, -24px); }
    50%  { transform: translate(-12px, -40px); }
    75%  { transform: translate(-22px, -14px); }
    100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .section-banner .dot {
        animation: none;
    }
}

/* 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;
    }
}
