/* =========================================================
   ARTICLES PAGE
   FIDAR AFARIN PISHRO
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --articles-gold: #D4AF37;
    --articles-gold-light: #F5D36C;

    --articles-black: #080808;
    --articles-black-2: #101010;
    --articles-black-3: #151515;

    --articles-white: #ffffff;
    --articles-text: #dddddd;
    --articles-muted: #929292;

    --articles-border:
        rgba(212, 175, 55, 0.18);

    --articles-radius: 18px;

}


/* =========================================================
   PAGE BASE
========================================================= */

body {

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.055),
            transparent 38%
        ),
        var(--articles-black);

}


/* =========================================================
   COMMON
========================================================= */

.articles-hero,
.articles-section,
.articles-cta {

    width: 100%;

}


.section-container {

    width: 92%;
    max-width: 1450px;

    margin: 0 auto;

}


/* =========================================================
   HERO
========================================================= */

.articles-hero {

    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.14),
            transparent 34%
        ),

        linear-gradient(
            135deg,
            #050505,
            #121212 50%,
            #050505
        );

    border-bottom:
        1px solid var(--articles-border);

}


.articles-hero::before {

    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    border:
        1px solid
        rgba(212, 175, 55, 0.08);

    border-radius: 50%;

    animation:
        articlesHeroRotate 25s linear infinite;

}


.articles-hero::after {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border:
        1px solid
        rgba(255, 255, 255, 0.035);

    border-radius: 50%;

}


@keyframes articlesHeroRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


.articles-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82),
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.82)
        );

}


.articles-hero-content {

    position: relative;

    z-index: 2;

    width: min(850px, 90%);

    text-align: center;

}


.articles-hero-badge {

    display: inline-block;

    margin-bottom: 18px;

    color:
        var(--articles-gold-light);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

}


.articles-hero-content h1 {

    margin-bottom: 18px;

    color: var(--articles-white);

    font-size: clamp(38px, 5vw, 68px);

    font-weight: 800;

    line-height: 1.25;

}


.articles-hero-content p {

    max-width: 720px;

    margin: 0 auto;

    color: #bcbcbc;

    font-size: 15px;

    line-height: 2.1;

}


/* =========================================================
   ARTICLES SECTION
========================================================= */

.articles-section {

    padding: 90px 0 100px;

}


.section-heading {

    max-width: 800px;

    margin:
        0 auto 45px;

    text-align: center;

}


.section-heading > span {

    display: block;

    margin-bottom: 10px;

    color:
        var(--articles-gold);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

}


.section-heading h2 {

    margin-bottom: 14px;

    color: var(--articles-white);

    font-size: clamp(27px, 3vw, 40px);

    line-height: 1.5;

}


.section-heading p {

    color: var(--articles-muted);

    font-size: 14px;

    line-height: 2;

}


/* =========================================================
   TOOLBAR
========================================================= */

.articles-toolbar {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        260px;

    gap: 18px;

    margin-bottom: 35px;

    padding: 20px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 16px;

}


.articles-search label,
.articles-category label {

    display: block;

    margin-bottom: 9px;

    color: #b9c1ce;

    font-size: 12px;

    font-weight: 600;

}


.articles-search-box {

    position: relative;

}


.articles-search-box input,
.articles-category select {

    width: 100%;

    height: 50px;

    padding:
        0 15px;

    color: var(--articles-white);

    background:
        rgba(0, 0, 0, 0.30);

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 10px;

    outline: none;

    font-family: inherit;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;

}


.articles-search-box input {

    padding-left: 55px;

}


.articles-search-box input::placeholder {

    color: #697386;

}


.articles-search-box input:focus,
.articles-category select:focus {

    border-color:
        rgba(212, 175, 55, 0.55);

    background:
        rgba(212, 175, 55, 0.025);

}


.articles-search-box button {

    position: absolute;

    left: 7px;
    top: 7px;

    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 8px;

    color: var(--articles-gold);

    background:
        rgba(212, 175, 55, 0.08);

    cursor: pointer;

    font-size: 15px;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.articles-search-box button:hover {

    color: #111;

    background:
        var(--articles-gold);

}


.articles-category select {

    cursor: pointer;

}


/* =========================================================
   STATUS
========================================================= */

.articles-status {

    margin-bottom: 25px;

    padding: 12px 16px;

    color: #ffb0b7;

    background:
        rgba(220, 53, 69, 0.08);

    border:
        1px solid
        rgba(220, 53, 69, 0.18);

    border-radius: 10px;

    font-size: 13px;

}


.articles-status[hidden] {

    display: none;

}


/* =========================================================
   GRID
========================================================= */

.articles-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

}


/* =========================================================
   ARTICLE CARD
========================================================= */

.article-card {

    min-width: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.018)
        );

    border:
        1px solid
        rgba(255,255,255,0.07);

    border-radius:
        var(--articles-radius);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


.article-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(212,175,55,0.32);

    background:
        linear-gradient(
            180deg,
            rgba(212,175,55,0.045),
            rgba(255,255,255,0.018)
        );

    box-shadow:
        0 18px 45px
        rgba(0,0,0,0.28);

}


/* =========================================================
   CARD IMAGE
========================================================= */

.article-card-image {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        #101010;

}


.article-card-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.45s ease;

}


.article-card:hover
.article-card-image img {

    transform:
        scale(1.045);

}


.article-card-image-placeholder {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        rgba(212,175,55,0.65);

    background:
        radial-gradient(
            circle,
            rgba(212,175,55,0.08),
            transparent 65%
        );

    font-size: 38px;

}


.article-card-category {

    position: absolute;

    right: 13px;
    top: 13px;

    max-width: 75%;

    padding:
        6px 10px;

    overflow: hidden;

    color: #111;

    background:
        var(--articles-gold);

    border-radius:
        999px;

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;

    text-overflow: ellipsis;

}


/* =========================================================
   CARD CONTENT
========================================================= */

.article-card-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 21px;

}


.article-card-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 7px 14px;

    margin-bottom: 12px;

    color: #707b8c;

    font-size: 10px;

}


.article-card-meta span {

    display: inline-flex;

    align-items: center;

}


.article-card-content h3 {

    margin-bottom: 11px;

    color:
        var(--articles-white);

    font-size: 18px;

    line-height: 1.75;

    font-weight: 700;

}


.article-card-excerpt {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;

    margin-bottom: 20px;

    color: #929bab;

    font-size: 12px;

    line-height: 2;

}


.article-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(255,255,255,0.06);

}


.article-card-date {

    color: #687386;

    font-size: 10px;

}


.article-card-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    min-height: 35px;

    padding:
        0 13px;

    color:
        var(--articles-gold-light);

    background:
        rgba(212,175,55,0.07);

    border:
        1px solid
        rgba(212,175,55,0.16);

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.article-card-link:hover {

    color: #111;

    background:
        var(--articles-gold);

}


/* =========================================================
   STATES
========================================================= */

.articles-state {

    padding:
        65px 20px;

    text-align: center;

    border:
        1px dashed
        rgba(255,255,255,0.08);

    border-radius: 16px;

    background:
        rgba(255,255,255,0.015);

}


.articles-state[hidden] {

    display: none;

}


.articles-state-icon {

    margin-bottom: 15px;

    color:
        rgba(212,175,55,0.75);

    font-size: 34px;

}


.articles-state h3 {

    margin-bottom: 8px;

    color: var(--articles-white);

    font-size: 19px;

}


.articles-state p {

    color: var(--articles-muted);

    font-size: 12px;

    line-height: 1.9;

}


.articles-reset-button {

    margin-top: 18px;

    min-height: 42px;

    padding:
        0 18px;

    color: #111;

    background:
        var(--articles-gold);

    border: 0;

    border-radius: 9px;

    cursor: pointer;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

}


/* =========================================================
   PAGINATION
========================================================= */

.articles-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 42px;

}


.articles-pagination:empty {

    display: none;

}


.articles-page-button {

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    color: #aeb7c5;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid
        rgba(255,255,255,0.08);

    border-radius: 9px;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;

}


.articles-page-button:hover,
.articles-page-button.active {

    color: #111;

    background:
        var(--articles-gold);

    border-color:
        var(--articles-gold);

}


.articles-page-button:disabled {

    opacity: 0.35;

    cursor: not-allowed;

}


/* =========================================================
   CTA
========================================================= */

.articles-cta {

    padding:
        85px 0;

    border-top:
        1px solid
        rgba(212,175,55,0.10);

    background:

        radial-gradient(
            circle at center,
            rgba(212,175,55,0.09),
            transparent 55%
        ),

        #0b0b0b;

}


.articles-cta-content {

    max-width: 800px;

    margin: 0 auto;

    text-align: center;

}


.articles-cta-content > span {

    display: block;

    margin-bottom: 12px;

    color:
        var(--articles-gold);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


.articles-cta-content h2 {

    margin-bottom: 15px;

    color:
        var(--articles-white);

    font-size:
        clamp(25px, 3vw, 38px);

    line-height: 1.5;

}


.articles-cta-content p {

    max-width: 700px;

    margin:
        0 auto 25px;

    color:
        var(--articles-muted);

    font-size: 13px;

    line-height: 2;

}


.articles-cta .cta-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding:
        0 24px;

    color: #111;

    background:
        var(--articles-gold);

    border-radius: 10px;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease;

}


.articles-cta .cta-button:hover {

    transform:
        translateY(-2px);

    background:
        var(--articles-gold-light);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .articles-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 760px) {

    .articles-hero {

        min-height: 360px;

    }


    .articles-section {

        padding:
            65px 0 75px;

    }


    .articles-toolbar {

        grid-template-columns: 1fr;

    }


    .articles-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .article-card-content {

        padding: 18px;

    }

}


@media (max-width: 480px) {

    .section-container {

        width: 94%;

    }


    .articles-hero-content h1 {

        font-size: 38px;

    }


    .articles-hero-content p {

        font-size: 12px;

    }


    .articles-toolbar {

        padding: 14px;

    }


    .article-card-content h3 {

        font-size: 16px;

    }


    .article-card-footer {

        align-items: flex-start;

        flex-direction: column;

    }


    .article-card-link {

        width: 100%;

    }


    .articles-page-button {

        min-width: 34px;

        height: 34px;

    }

}