/* ================================
   Article list page
================================ */

.article-page {
    min-height: calc(100vh - 78px);
    padding: 72px 24px 100px;
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 138, 46, 0.12), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(184, 138, 46, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 246, 240, 0.96)),
        var(--surface-soft);
}

.article-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}


/* ================================
   Hero
================================ */

.article-hero {
    max-width: 880px;
    margin: 0 auto 48px;
    text-align: center;
}

.article-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(184, 138, 46, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(15, 15, 15, 0.04);
}

.article-hero h1 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.article-hero p {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}


/* ================================
   Article grid
================================ */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    overflow: hidden;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 60px rgba(15, 15, 15, 0.06);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 138, 46, 0.34);
    box-shadow: 0 26px 80px rgba(15, 15, 15, 0.10);
}

.article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


/* ================================
   Article image
================================ */

.article-image-wrap {
    height: 190px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(184, 138, 46, 0.18), rgba(255, 255, 255, 0.62)),
        #f5f1e8;
}

.article-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.article-card:hover .article-image {
    transform: scale(1.035);
}

.article-image-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.article-image-fallback span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(184, 138, 46, 0.16);
    color: var(--gold);
    font-size: 2rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(184, 138, 46, 0.16);
}


/* ================================
   Article card body
================================ */

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.article-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.article-card h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.28rem;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.article-card p {
    margin: 12px 0 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
    color: var(--text-muted);
    font-size: 0.84rem;
}

.article-meta span:last-child {
    color: var(--gold);
    font-weight: 900;
}


/* ================================
   Empty state
================================ */

.article-empty {
    max-width: 620px;
    margin: 0 auto;
    padding: 54px 28px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 15, 15, 0.06);
}

.article-empty h2 {
    margin: 0 0 10px;
    color: var(--text-main);
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.article-empty p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ================================
   Responsive
================================ */

@media (max-width: 980px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .article-page {
        padding: 52px 18px 80px;
    }

    .article-hero {
        margin-bottom: 34px;
        text-align: left;
    }

    .article-hero p {
        margin-left: 0;
        margin-right: 0;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-card {
        border-radius: 24px;
    }

    .article-card-body {
        padding: 22px;
    }

    .article-image-wrap {
        height: 170px;
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
/* ================================
   Hero admin action
================================ */

.article-hero-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.article-hero-top .article-eyebrow {
    margin-bottom: 0;
}

.create-article-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--text-main);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 15, 15, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.create-article-link:hover {
    transform: translateY(-1px);
    background: var(--gold);
}


/* ================================
   Article filters
================================ */

.article-filter-panel {
    margin: 0 0 28px;
    padding: 22px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 60px rgba(15, 15, 15, 0.055);
}

.article-search-wrap {
    display: grid;
    gap: 10px;
}

.article-search-wrap label,
.article-date-filters > span {
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 850;
}

.article-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.article-search-row input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(20, 20, 20, 0.10);
    border-radius: 16px;
    background: #fff;
    color: var(--text-main);
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-search-row input:focus {
    border-color: rgba(184, 138, 46, 0.78);
    box-shadow: 0 0 0 4px rgba(184, 138, 46, 0.12);
}

.article-search-row button {
    border: 0;
    border-radius: 16px;
    padding: 0 20px;
    background: var(--gold);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(184, 138, 46, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-search-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(184, 138, 46, 0.30);
}

.article-date-filters {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.article-date-filter-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-date-filter-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 999px;
    background: rgba(248, 246, 240, 0.78);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.article-date-filter-list a:hover,
.article-date-filter-list a.active {
    border-color: rgba(184, 138, 46, 0.34);
    background: rgba(184, 138, 46, 0.10);
    color: var(--gold);
}

.article-filter-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.article-filter-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-filter-bottom a,
.article-empty-link {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
}

.article-filter-bottom a:hover,
.article-empty-link:hover {
    text-decoration: underline;
}

.article-results-meta {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 750;
}