﻿/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 160px 0 48px;
    background: linear-gradient( rgba(244, 239, 227, 0.55), rgba(244, 239, 227, 0.55) ), url('/view-resources/Views/LandingPage/images/agobackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-copy-full {
    max-width: 100%;
}

.hero-office-name {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.2vw + 1.1rem, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ago-oxblood);
    margin-bottom: 2.25rem;
    text-align: center;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 1.6vw + 0.85rem, 1.95rem);
    line-height: 1.2;
    font-weight: 600;
    color: var(--ago-navy);
    max-width: none;
    white-space: nowrap;
    text-align: center;
}

    .hero-heading em {
        font-style: italic;
        color: var(--ago-oxblood);
        font-weight: 500;
    }

.hero-lede {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4A4639;
    max-width: 900px;
    margin: 0.75rem auto 0;
    white-space: normal;
    text-align: center;
}

/* Catalogue card — signature search element */
.catalogue-card {
    margin: 1.5rem auto 0;
    background: var(--ago-white);
    border: 1px solid var(--ago-border);
    box-shadow: 0 1px 0 var(--ago-border), 0 18px 40px -22px rgba(20, 31, 56, 0.35);
    border-radius: 8px;
    overflow: hidden;
    max-width: 760px;
}

.catalogue-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    background: var(--ago-navy);
    color: var(--ago-ivory-dark);
}

    .catalogue-card-label .mono {
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        opacity: 0.85;
    }

.drawer-pull {
    width: 34px;
    height: 6px;
    border-radius: 3px;
    background: var(--ago-gold);
}

.search-row {
    display: flex !important;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: none;
}

#heroSearchInput.search-input-el {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    border: 1px solid var(--ago-border) !important;
    border-radius: 6px !important;
    outline: none;
    background: var(--ago-white);
    padding: 0.9rem 1.1rem !important;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--ago-navy);
    transition: border-color 0.2s ease;
}

    #heroSearchInput.search-input-el::placeholder {
        color: #9B9585;
    }

    #heroSearchInput.search-input-el:focus {
        border-color: var(--ago-navy);
        box-shadow: 0 0 0 3px rgba(20, 31, 56, 0.08);
    }

#heroSearchButton {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    border: none !important;
    border-radius: 6px !important;
    background: var(--ago-oxblood) !important;
    color: #ffffff;
    padding: 0 1.6rem !important;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background 0.2s ease;
}

    #heroSearchButton:hover {
        background: var(--ago-oxblood-dark) !important;
    }

.hero-filter-chips {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
}

/* Stats row below the search card */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 1.1rem auto 0;
    border-top: 1px solid var(--ago-paper-line);
    max-width: 100%;
}

    .hero-stats .stat {
        flex: 0 1 auto;
        padding: 0.85rem 2rem 0;
        text-align: center;
        white-space: nowrap;
    }

        .hero-stats .stat .label {
            white-space: nowrap;
        }

    .hero-stats .num {
        font-family: var(--font-serif);
        font-size: 1.4rem;
        color: var(--ago-navy);
        font-weight: 600;
    }

    .hero-stats .label {
        font-size: 0.72rem;
        color: #4A4639;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-top: 0.2rem;
    }

.hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.hero-cta-btn {
    display: inline-block;
    background: var(--ago-oxblood);
    color: #fff;
    padding: 0.8rem 1.75rem;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
}

    .hero-cta-btn:hover {
        background: var(--ago-oxblood-dark);
        color: #fff;
    }

.hero-cta-hint {
    font-size: 0.8rem;
    color: #4A4639;
    font-weight: 500;
}

/* ── SECTION SHELL used across new sections ─────────────────── */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.25rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    color: var(--ago-oxblood);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

    .section-label::before, .section-label::after {
        content: '';
        width: 40px;
        height: 1px;
        background: var(--ago-oxblood);
        opacity: 0.5;
        flex-shrink: 0;
    }

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--ago-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--ago-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.link-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ago-navy);
    white-space: nowrap;
    border-bottom: 1px solid var(--ago-gold);
    padding-bottom: 2px;
}

    .link-more:hover {
        color: var(--ago-oxblood);
        border-color: var(--ago-oxblood);
    }

/* ── WHAT'S NEW drawer strip (wraps existing #recent-additions-list) ── */
.whats-new {
    background: var(--ago-white);
    border-top: 1px solid var(--ago-paper-line);
    border-bottom: 1px solid var(--ago-paper-line);
}

.drawer-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

    .drawer-strip .addition-item,
    .drawer-strip .drawer {
        padding: 1.6rem 1.4rem;
        border-right: 1px solid var(--ago-paper-line);
        border-bottom: none;
        position: relative;
        transition: background 0.18s ease;
        font-size: inherit;
        color: inherit;
    }

        .drawer-strip .addition-item::before {
            display: none;
        }

        .drawer-strip .addition-item::after,
        .drawer-strip .drawer::after {
            content: '';
            position: absolute;
            right: 1.4rem;
            bottom: 1.4rem;
            width: 24px;
            height: 2px;
            background: var(--ago-border);
        }

        .drawer-strip .addition-item:hover,
        .drawer-strip .drawer:hover {
            background: var(--ago-ivory-dark);
        }

.drawer .tag, .addition-item .tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ago-gold);
    background: rgba(173, 138, 79, 0.12);
    padding: 3px 8px;
    border-radius: 2px;
    display: inline-block;
}

.drawer-strip .addition-item .tag + .tag {
    margin-left: 6px;
}

.drawer h4, .addition-item h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    margin-top: 12px;
    color: var(--ago-navy);
    font-weight: 600;
    line-height: 1.3;
}

.drawer p, .addition-item p {
    font-size: 12.5px;
    color: var(--ago-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* ── BROWSE CATALOGUE (wraps existing #subject-stats-list) ───── */
.catalogue-section {
    padding: 4.5rem 0;
    background: var(--ago-ivory);
}

.subject-search-row {
    position: relative;
    max-width: 420px;
    margin: 0 0 1.75rem;
}

.subject-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ago-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.subject-search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid var(--ago-border);
    border-radius: 6px;
    background: var(--ago-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--ago-navy);
    outline: none;
    transition: border-color 0.2s ease;
}

    .subject-search-input::placeholder {
        color: #9B9585;
    }

    .subject-search-input:focus {
        border-color: var(--ago-navy);
        box-shadow: 0 0 0 3px rgba(20, 31, 56, 0.08);
    }

/* A–Z subject filter */
.subject-alpha-bar {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin: -0.75rem 0 1.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.subject-alpha-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 32px;
    height: 32px !important;
    padding: 0 0.55rem !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--ago-white);
    border: 1px solid var(--ago-border);
    border-radius: 4px;
    color: var(--ago-navy);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .subject-alpha-btn:hover:not(:disabled):not(.active) {
        border-color: var(--ago-oxblood);
        color: var(--ago-oxblood);
    }

    .subject-alpha-btn.active {
        background: var(--ago-navy);
        border-color: var(--ago-navy);
        color: #fff;
    }

    .subject-alpha-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: transparent;
    border: 1px solid var(--ago-border);
    border-right: none;
    border-bottom: none;
}

    .cat-grid .collection-item {
        background: var(--ago-white);
        padding: 1.75rem 1.5rem;
        min-height: 150px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        cursor: pointer;
        transition: background 0.15s ease;
        border-right: 1px solid var(--ago-border);
        border-bottom: 1px solid var(--ago-border);
    }

        .cat-grid .collection-item:hover {
            background: var(--ago-ivory-dark);
        }

            .cat-grid .collection-item:hover .cat-name {
                color: var(--ago-oxblood);
            }

.cat-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ago-gold);
    margin-bottom: 0.9rem;
}

.cat-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ago-navy);
    line-height: 1.35;
    margin: 0;
    transition: color 0.15s ease;
}

.cat-count {
    font-size: 0.8rem;
    color: var(--ago-muted);
    margin-top: auto;
    padding-top: 0.9rem;
}

.subject-pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--ago-white);
    border-top: 1px solid var(--ago-border);
}

.subject-page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--ago-border);
    border-radius: 4px;
    color: var(--ago-navy);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .subject-page-btn:hover:not(:disabled) {
        border-color: var(--ago-oxblood);
        color: var(--ago-oxblood);
    }

    .subject-page-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.subject-page-info {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ago-muted);
}

/* ── DIGITISED COLLECTION panel ───────────────────────────────── */
.digitised-section {
    padding: 5rem 0;
    background: var(--ago-ivory);
}

.digi {
    background: var(--ago-navy);
    color: var(--ago-ivory);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.digi-copy {
    padding: 3rem;
}

.digi-label {
    color: var(--ago-gold-light) !important;
}

    .digi-label::before, .digi-label::after {
        background: var(--ago-gold-light) !important;
    }

.digi h2 {
    font-family: var(--font-serif);
    color: var(--ago-ivory);
    font-size: 1.75rem;
    margin-bottom: 0;
}

.digi p {
    color: rgba(244, 239, 227, 0.72);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 440px;
}

.digi-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.75rem;
}

    .digi-stats .num {
        font-family: var(--font-serif);
        font-size: 1.75rem;
        color: var(--ago-gold-light);
        font-weight: 600;
    }

    .digi-stats .label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: rgba(244, 239, 227, 0.55);
        margin-top: 4px;
    }

.btn-brass {
    display: inline-block;
    background: var(--ago-gold);
    color: var(--ago-navy);
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.85rem;
}

    .btn-brass:hover {
        background: var(--ago-gold-light);
        color: var(--ago-navy);
    }

.digi-visual {
    position: relative;
    background: var(--ago-navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.page-stack {
    position: relative;
    width: 190px;
    height: 220px;
}

.page {
    position: absolute;
    inset: 0;
    background: var(--ago-ivory);
    border-radius: 3px;
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
}

    .page.p2 {
        transform: rotate(-6deg) translate(-14px,6px);
        opacity: 0.75;
    }

    .page.p3 {
        transform: rotate(5deg) translate(10px,10px);
        opacity: 0.55;
    }

    .page.p1 {
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        .page.p1 .ln {
            height: 4px;
            background: rgba(20,31,56,0.16);
            border-radius: 2px;
        }

            .page.p1 .ln.w1 {
                width: 80%;
            }

            .page.p1 .ln.w2 {
                width: 60%;
            }

            .page.p1 .ln.w3 {
                width: 70%;
            }

.scan-badge {
    position: absolute;
    top: -14px;
    right: -14px;
    background: var(--ago-oxblood);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 10px 24px -8px rgba(122,46,46,0.6);
}

/* ── SELF-SERVICE PORTAL ─────────────────────────────────────── */
.self-service-section {
    padding: 5rem 0;
    background: var(--ago-white);
}

.btn-solid {
    display: inline-block;
    background: var(--ago-oxblood);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.85rem;
}

    .btn-solid:hover {
        background: var(--ago-oxblood-dark);
        color: #fff;
    }

.ss-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.ss-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--ago-border);
    border: 1px solid var(--ago-border);
}

.ss-tile {
    background: var(--ago-white);
    padding: 1.5rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    color: var(--ago-charcoal);
    transition: background 0.15s ease;
}

    .ss-tile i {
        color: var(--ago-oxblood);
        font-size: 1.1rem;
        margin-top: 2px;
    }

    .ss-tile h4 {
        font-family: var(--font-serif);
        font-size: 0.98rem;
        color: var(--ago-navy);
        margin: 0 0 0.3rem;
    }

    .ss-tile p {
        font-size: 0.8rem;
        color: var(--ago-muted);
        margin: 0;
        line-height: 1.4;
    }

    .ss-tile:hover {
        background: var(--ago-ivory-dark);
    }

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .feature-list li {
        display: flex;
        gap: 0.85rem;
        align-items: flex-start;
        font-size: 0.9rem;
        line-height: 1.5;
        color: var(--ago-muted);
    }

    .feature-list .dot {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(122,46,46,0.1);
        color: var(--ago-oxblood);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        flex-shrink: 0;
        margin-top: 2px;
    }

/* ── LEGAL RESOURCES ──────────────────────────────────────────── */
.resources-section {
    padding: 5rem 0 6rem;
    background: var(--ago-ivory);
}

    .resources-section:has(+ .resources-section) {
        padding-bottom: 3rem;
    }

    .resources-section + .resources-section {
        padding-top: 0;
        scroll-margin-top: 120px;
    }

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.resource-card {
    display: block;
    background: var(--ago-white);
    border: 1px solid var(--ago-border);
    padding: 1.6rem;
    border-radius: 2px;
    color: var(--ago-charcoal);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .resource-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 30px -18px rgba(20,31,56,0.3);
        color: var(--ago-charcoal);
    }

.resource-mark {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background: var(--ago-navy);
    color: var(--ago-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    margin-bottom: 1rem;
}

.resource-card h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ago-navy);
    margin-bottom: 0.4rem;
}

.resource-card p {
    font-size: 0.85rem;
    color: var(--ago-muted);
    margin-bottom: 0.9rem;
    line-height: 1.5;
}

.resource-card .go {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ago-oxblood);
}

/* Highlighted menu item (Self-Service Portal) */
.header-section .menu li a.menu-highlight {
    background: var(--ago-gold, #AD8A4F);
    color: var(--ago-navy, #141F38) !important;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .header-section .menu li a.menu-highlight:hover {
        background: var(--ago-gold-light, #C9A96E);
        color: var(--ago-navy, #141F38) !important;
        transform: translateY(-1px);
    }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }

    .hero-heading,
    .hero-lede {
        white-space: normal;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .digi {
        grid-template-columns: 1fr;
    }

    .digi-visual {
        padding: 3rem 1rem;
    }

    .ss-split {
        grid-template-columns: 1fr;
    }

    .ss-tiles {
        grid-template-columns: 1fr;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-section .menu li a.menu-highlight {
        display: inline-block;
        margin: 0.25rem 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 130px 0 60px;
        min-height: auto;
    }

    .hero-heading {
        white-space: normal;
        font-size: 1.7rem;
    }

    .hero-lede {
        white-space: normal;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

        .hero-stats .stat {
            flex: 1 1 45%;
            padding-right: 1rem;
        }

    .search-row {
        flex-wrap: wrap;
    }

    .drawer-strip {
        grid-template-columns: 1fr;
    }

        .drawer-strip .addition-item, .drawer-strip .drawer {
            border-right: none;
            border-bottom: 1px solid var(--ago-paper-line);
        }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }
}
