:root {
    --brand-emerald: #0b6b55;
    --brand-dark: #08483c;
    --brand-gold: #b78918;
    
    /* Screenshot-matched dynamic gradient (Emerald -> Bright Emerald -> Gold Tone) */
    --accent-gradient: linear-gradient(110deg, #028359 0%, #10b981 55%, #a67c13 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 253, 248, 0.7) 100%);
    
    --bg-color: #f6faf8;
    --text-main: #142f2a;
    --text-muted: #5e6f77;
    --border-color: rgba(11, 107, 85, 0.15);
}

.resource-library {
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(11, 107, 85, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(183, 137, 24, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    color: var(--text-main);
    padding: 5rem 0;
    min-height: 80vh;
}

.resource-shell {
    margin: 0 auto;
    max-width: 1140px;
    padding: 0 .75rem;
    width: 100%;
}

/* Header Section */
.resource-head {
    border-bottom: 2px solid rgba(183, 137, 24, 0.2);
    margin-bottom: 3rem;
    padding-bottom: 1.8rem;
}

.resource-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-gold);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(183, 137, 24, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(183, 137, 24, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(183, 137, 24, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(183, 137, 24, 0); }
}

/* 1. MATCHED GRADIENT TITLE */
.resource-head h1.gradient-title {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.15rem, 3.6vw, 3.65rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.resource-intro {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0.85rem 0 0;
}

.resource-intro p {
    margin: 0;
}

/* Feed Layout & Date Sidebar */
.resource-sections {
    display: grid;
    gap: 2rem;
}

.resource-section {
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(8, 72, 60, 0.06);
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    overflow: visible;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.resource-section:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 20px 40px rgba(8, 72, 60, 0.12);
    transform: translateY(-3px);
    z-index: 5;
}

/* Date Badge replacing numbers */
.section-date-badge {
    background: var(--accent-gradient);
    border-radius: 16px 0 0 16px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    text-align: center;
}

.badge-day {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
}

.badge-month {
    font-size: 0.85rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.badge-year {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.9;
}

.section-body {
    min-width: 0;
    padding: 1.75rem;
    position: relative;
}

.section-copy {
    align-items: flex-start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(230px, 24vw, 260px);
    gap: 1.5rem;
    justify-content: space-between;
    border-bottom: 1px solid rgba(11, 107, 85, 0.1);
    padding-bottom: 1rem;
}

.section-copy > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.pr-card-date {
    display: block;
    color: var(--brand-gold);
    font-size: 0.9rem;
    font-weight: 850;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pr-statement-text {
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.7;
}

.pr-statement-text p {
    margin: 0 0 0.5rem;
}

.pr-statement-text p:last-child {
    margin-bottom: 0;
}

.document-count {
    background: linear-gradient(135deg, rgba(183, 137, 24, 0.12) 0%, rgba(11, 107, 85, 0.1) 100%);
    border: 1px solid rgba(183, 137, 24, 0.3);
    border-radius: 999px;
    color: var(--brand-dark);
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 850;
    padding: 0.42rem 0.85rem;
    white-space: nowrap;
}

.pr-card-aside {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 260px;
    width: 100%;
}

.pr-card-image-wrap {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    justify-content: center;
    line-height: 0;
    margin: 0;
    overflow: visible;
    position: relative;
    width: 100%;
    min-height: clamp(150px, 16vw, 190px);
    z-index: 4;
}

.pr-card-image-button {
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: zoom-in;
    display: inline-flex;
    line-height: 0;
    margin: 0;
    max-width: 100%;
    padding: 0;
}

.pr-card-image {
    display: block;
    height: auto;
    max-height: clamp(150px, 16vw, 190px);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.pr-hover-preview {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transform: scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease;
    visibility: hidden;
    z-index: 1990;
}

.pr-hover-preview.is-visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.pr-hover-preview-image {
    box-shadow: 0 18px 40px rgba(8, 72, 60, 0.22);
    display: block;
    height: auto;
    max-height: min(76vh, 620px);
    max-width: min(58vw, 720px);
    object-fit: contain;
    width: auto;
}

.pr-lightbox {
    align-items: center;
    background: rgba(4, 24, 20, 0.86);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 2000;
}

.pr-lightbox.is-open {
    display: flex;
}

.pr-lightbox-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 100%;
    max-width: 100%;
}

.pr-lightbox-toolbar {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.pr-lightbox-control {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 6px;
    color: var(--brand-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    line-height: 1;
    min-width: 42px;
}

.pr-lightbox-control.close {
    background: var(--brand-dark);
    color: #ffffff;
}

.pr-lightbox-stage {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: calc(100vh - 7rem);
    max-width: calc(100vw - 2rem);
    overflow: auto;
}

.pr-lightbox-image {
    display: block;
    height: auto;
    max-height: calc(100vh - 7rem);
    max-width: calc(100vw - 2rem);
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.18s ease;
    width: auto;
}

.pr-card-image-placeholder {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(11, 107, 85, 0.06), rgba(183, 137, 24, 0.06)),
        #ffffff;
    border: 1px dashed rgba(11, 107, 85, 0.24);
    border-radius: 10px;
    color: rgba(8, 72, 60, 0.48);
    display: flex;
    font-size: 2rem;
    height: clamp(150px, 16vw, 190px);
    justify-content: center;
    width: 100%;
}

/* 2. MATCHED GRADIENT BUTTONS */
.document-groups {
    display: flex;
    margin-top: 1.25rem;
}

.document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.document-action {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Gradient Button Style (View Document, External Link, Location, Email) */
.document-action.btn-gradient {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.document-action.btn-gradient:hover {
    opacity: 0.93;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* Secondary Download Button */
.document-action.btn-gradient-outline {
    background: #ffffff;
    border: 2px solid #10b981;
    color: #028359;
}

.document-action.btn-gradient-outline:hover {
    background: rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
}

/* Empty State */
.empty-documents {
    background: #ffffff;
    border: 2px dashed rgba(11, 107, 85, 0.2);
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0;
    padding: 2.5rem;
    text-align: center;
}

.pr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2rem;
}

.pr-page-btn {
    align-items: center;
    background: #f6faf8;
    border: 1px solid rgba(11, 107, 85, 0.3);
    border-radius: 6px;
    color: #08483c;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 800;
    min-height: 38px;
    min-width: 38px;
    justify-content: center;
    padding: 0 0.75rem;
    text-decoration: none;
}

.pr-page-btn:hover,
.pr-page-btn:focus {
    background: rgba(16, 185, 129, 0.08);
    color: #08483c;
    text-decoration: none;
}

.pr-page-btn.active {
    background: #08483c;
    border-color: #08483c;
    color: #ffffff;
}

.pr-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Contact Panels */
.pr-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.pr-contact-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(8, 72, 60, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.pr-contact-card.highlighted {
    background: linear-gradient(145deg, #ffffff 0%, #f2f8f5 100%);
    border-color: rgba(183, 137, 24, 0.3);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-icon-wrapper {
    background: rgba(11, 107, 85, 0.08);
    color: var(--brand-emerald);
    padding: 0.6rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-contact-card h2 {
    color: var(--brand-dark);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

.pr-address {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pr-address p {
    margin: 0 0 0.4rem;
}

.email-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.email-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-gold);
    font-weight: 800;
}

.pr-email {
    color: var(--brand-emerald);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    word-break: break-all;
    transition: all 0.2s ease;
}

.pr-email:hover {
    color: var(--brand-dark);
}

.contact-btn {
    margin-top: auto;
    width: 100%;
    justify-content: space-between;
}

/* Responsive Adaptations */
@media (max-width: 1050px) and (min-width: 801px) {
    .section-copy {
        gap: 1.15rem;
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .pr-card-aside {
        max-width: 220px;
    }

    .pr-card-image-wrap,
    .pr-card-image-placeholder {
        min-height: 150px;
    }

    .pr-hover-preview-image {
        max-width: min(62vw, 620px);
    }
}

@media (max-width: 800px) {
    .resource-section {
        grid-template-columns: 1fr;
    }

    .section-date-badge {
        border-radius: 16px 16px 0 0;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 1.25rem;
        justify-content: flex-start;
    }

    .badge-day {
        font-size: 1.4rem;
    }

    .section-body {
        padding: 1.25rem;
    }

    .section-copy {
        display: grid;
    }

    .document-count {
        justify-self: start;
    }

    .pr-card-aside {
        align-items: flex-start;
        max-width: min(260px, 100%);
        width: min(260px, 100%);
    }

    .pr-card-image-wrap,
    .pr-card-image-placeholder {
        min-height: 150px;
    }

    .pr-hover-preview {
        display: none;
    }
}

@media (max-width: 460px) {
    .resource-library {
        padding: 2.5rem 0;
    }

    .document-actions {
        display: grid;
        width: 100%;
    }

    .document-action {
        width: 100%;
    }
}

@media (min-width: 1400px) {
    .resource-shell {
        max-width: 1320px;
    }
}
