/* ==========================================================================
   Aradel — Results & Presentations Full Page  v1.4
   File: aradel-results-presentations-page.css
   ========================================================================== */

/* ── Outer wrapper — contains both zones ── */
.ar-rp-page__wrapper {
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════
   ZONE 1 — WHITE HEADER (folder tabs live here)
   ══════════════════════════════════════════════════════════════════════════ */
.ar-rp-page__tab-header {
    width: 100%;
    background: #ffffff;
}

.ar-rp-page__tab-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 112px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .ar-rp-page__tab-header-inner {
        padding: 0 64px;
    }
}

@media (max-width: 640px) {
    .ar-rp-page__tab-header {
        display: none; /* replaced by mobile dropdowns */
    }
}

/* ── Tab container — sits at the bottom edge of the white zone ── */
.ar-rp-page__cat-tabs {
    display: flex;
    align-items: flex-end; /* tabs anchored to bottom edge */
    gap: 0;
    padding-top: 32px;
}

/* ── Individual tab ── */
.ar-rp-page__cat-tab {
    background: transparent; /* inactive = white shows through */
    border: none;
    cursor: pointer;
    padding: 16px 40px;
    color: #BAB8B8;
    font-family: "Nunito Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 64px;
    letter-spacing: 0.007px;
    white-space: nowrap;
    border-radius: 0;
    transition: color 0.2s ease;
    /* No bottom margin/padding — bottom edge is flush with grey zone below */
}

.ar-rp-page__cat-tab:hover:not(.is-active) {
    color: #888;
}

/* ── Active tab — grey bg, rounded top corners, ZERO bottom gap ── */
.ar-rp-page__cat-tab.is-active {
    color: #005A4E;
    background: #EFEFEF; /* exactly matches content zone below */
    border-radius: 12px 12px 0 0;
    /* bottom edge is flush — no border, no margin, no padding difference */
}

@media (max-width: 1024px) {
    .ar-rp-page__cat-tab {
        font-size: 20px;
        padding: 14px 28px;
        line-height: 52px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   ZONE 2 — GREY CONTENT AREA
   ══════════════════════════════════════════════════════════════════════════ */
.ar-rp-page__section {
    width: 100%;
    background: #EFEFEF;
}

/* Inner max-width + padding wrapper */
.ar-rp-page__section > * {
    max-width: calc(1440px - 224px); /* 1440 minus 2×112 */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Override for the list and load-more which need the full padded width */
.ar-rp-page__year-tabs,
.ar-rp-page__mobile-filters,
.ar-rp-page__list,
.ar-rp-page__load-more-wrap {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 112px;
    padding-right: 112px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .ar-rp-page__year-tabs,
    .ar-rp-page__mobile-filters,
    .ar-rp-page__list,
    .ar-rp-page__load-more-wrap {
        padding-left: 64px;
        padding-right: 64px;
    }
    .ar-rp-page__tab-header-inner {
        padding: 0 64px;
    }
}

@media (max-width: 640px) {
    .ar-rp-page__year-tabs,
    .ar-rp-page__mobile-filters,
    .ar-rp-page__list,
    .ar-rp-page__load-more-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Bottom padding on the section itself */
.ar-rp-page__section {
    padding-bottom: 96px;
}

@media (max-width: 1024px) {
    .ar-rp-page__section { padding-bottom: 72px; }
}

@media (max-width: 640px) {
    .ar-rp-page__section { padding-bottom: 48px; }
}

/* ── Year sub-tabs ── */
.ar-rp-page__year-tabs {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .ar-rp-page__year-tabs {
        display: none;
    }
}

.ar-rp-page__year-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    padding: 0 0 6px;
    color: #BAB8B8;
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ar-rp-page__year-tab.is-active {
    color: #005A4E;
    border-bottom-color: #005A4E;
}

.ar-rp-page__year-tab:hover:not(.is-active) {
    color: #888;
}

/* ── Mobile dropdowns ── */
.ar-rp-page__mobile-filters {
    display: none;
}

@media (max-width: 640px) {
    .ar-rp-page__mobile-filters {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 28px;
        padding-bottom: 28px;
    }
}

.ar-rp-page__mobile-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ar-rp-page__mobile-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 2px solid #01303A;
    border-radius: 20px;
    padding: 14px 48px 14px 20px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #01303A;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.ar-rp-page__mobile-select:focus {
    border-color: #C1000F;
}

.ar-rp-page__mobile-chevron {
    position: absolute;
    right: 16px;
    pointer-events: none;
    color: #01303A;
}

/* ── Entry list ── */
.ar-rp-page__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Per-card stagger animation */
@keyframes ar-rp-card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards start invisible until JS adds the animate class */
.ar-rp-page__entry {
    opacity: 0;
}

.ar-rp-page__entry--animate {
    animation: ar-rp-card-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Entry card ── */
.ar-rp-page__entry {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}

.ar-rp-page__entry--hidden {
    display: none;
}

.ar-rp-page__entry--filtered-out {
    display: none;
}

/* ── Card header (date + title + description) ── */
.ar-rp-page__entry-header {
    padding: 28px 40px 24px;
}

@media (max-width: 768px) {
    .ar-rp-page__entry-header {
        padding: 22px 24px 18px;
    }
}

/* ── Meta row (tag + date) ── */
.ar-rp-page__entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.ar-rp-page__entry-tag {
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #01303A;
}

.ar-rp-page__entry-date {
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #999;
}

/* ── Title ── */
.ar-rp-page__entry-title {
    font-family: "Nunito Sans", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #01303A;
    margin: 0 0 6px;
}

@media (max-width: 768px) {
    .ar-rp-page__entry-title { font-size: 20px; }
}

/* ── Description ── */
.ar-rp-page__entry-desc {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ── Attachment row (divider + label + button) ── */
.ar-rp-page__att-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 40px;
    border-top: 1px solid #E8E8E8;
}

@media (max-width: 768px) {
    .ar-rp-page__att-row {
        padding: 14px 24px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .ar-rp-page__att-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.ar-rp-page__att-label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 0;
}

/* ── Button wrap (label + circle) ── */
.ar-rp-page__btn-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ar-rp-page__btn-label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #01303A;
    white-space: nowrap;
}

/* ── Load more ── */
.ar-rp-page__load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 0;
}

.ar-rp-page__load-more-label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #01303A;
}

.ar-rp-page__load-more-wrap.is-hidden {
    display: none;
}

/* ── Empty state ── */
.ar-rp-page__empty {
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #888;
    text-align: center;
    padding: 64px 0;
}
