/* =========================================================
   ARTICLE DETAIL PAGE
   FIDAR AFARIN PISHRO
========================================================= */

:root {

    --article-gold: #D4AF37;
    --article-gold-light: #F5D36C;

    --article-black: #080808;
    --article-black-2: #101010;
    --article-black-3: #151515;

    --article-white: #ffffff;
    --article-text: #dddddd;
    --article-muted: #929292;

    --article-border:
        rgba(212, 175, 55, 0.18);

    --article-radius: 18px;

}


/* =========================================================
   BASE
========================================================= */

.article-details-section {

    width: 100%;

    padding:
        85px 0 100px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212,175,55,0.045),
            transparent 38%
        ),
        var(--article-black);

}


.article-details-section .section-container {

    width: 92%;

    max-width: 1450px;

    margin: 0 auto;

}


/* =========================================================
   HERO
========================================================= */

.article-hero {

    position: relative;

    min-height: 450px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at center,
            rgba(212,175,55,0.12),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #050505,
            #121212 50%,
            #050505
        );

    border-bottom:
        1px solid
        var(--article-border);

}


.article-hero::before {

    content: "";

    position: absolute;

    width: 670px;
    height: 670px;

    border:
        1px solid
        rgba(212,175,55,0.08);

    border-radius: 50%;

    animation:
        articleHeroRotate 28s linear infinite;

}


.article-hero::after {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border:
        1px solid
        rgba(255,255,255,0.035);

    border-radius: 50%;

}


@keyframes articleHeroRotate {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


.article-hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(0,0,0,0.84),
            rgba(0,0,0,0.30),
            rgba(0,0,0,0.84)
        );

}


.article-hero-content {

    position: relative;

    z-index: 2;

    width:
        min(1000px, 90%);

    margin:
        0 auto;

    text-align: center;

}


.article-back-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-bottom: 22px;

    min-height: 40px;

    padding:
        0 15px;

    color:
        #cfd4dc;

    background:
        rgba(255,255,255,0.035);

    border:
        1px solid
        rgba(255,255,255,0.10);

    border-radius:
        10px;

    font-size: 11px;

    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.article-back-button:hover {

    color:
        #111;

    background:
        var(--article-gold);

    border-color:
        var(--article-gold);

    transform:
        translateY(-2px);

}


.article-hero-category {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 32px;

    margin-bottom: 17px;

    padding:
        0 12px;

    color:
        #111;

    background:
        var(--article-gold);

    border-radius:
        999px;

    font-size: 10px;

    font-weight: 800;

}


.article-hero-category:empty {

    display: none;

}


.article-hero-content h1 {

    max-width: 950px;

    margin:
        0 auto;

    color:
        var(--article-white);

    font-size:
        clamp(30px, 5vw, 58px);

    line-height:
        1.45;

    font-weight:
        800;

}


.article-hero-meta {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap:
        10px 22px;

    margin-top: 22px;

    color:
        #aeb4bf;

    font-size:
        11px;

}


.article-hero-meta span {

    display: inline-flex;

    align-items: center;

}


/* =========================================================
   STATE
========================================================= */

.article-state {

    width:
        min(800px, 100%);

    margin:
        0 auto;

    padding:
        65px 25px;

    text-align: center;

    background:
        rgba(255,255,255,0.025);

    border:
        1px dashed
        rgba(255,255,255,0.10);

    border-radius:
        18px;

}


.article-state[hidden] {

    display: none;

}


.article-state-icon {

    margin-bottom:
        16px;

    color:
        rgba(212,175,55,0.78);

    font-size:
        40px;

}


.article-state h2 {

    margin-bottom:
        10px;

    color:
        var(--article-white);

    font-size:
        22px;

}


.article-state p {

    margin:
        0;

    color:
        var(--article-muted);

    font-size:
        13px;

    line-height:
        2;

}


.article-state-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height:
        43px;

    margin-top:
        22px;

    padding:
        0 18px;

    color:
        #111;

    background:
        var(--article-gold);

    border-radius:
        9px;

    text-decoration:
        none;

    font-size:
        11px;

    font-weight:
        800;

}


/* =========================================================
   LAYOUT
========================================================= */

.article-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        315px;

    gap:
        30px;

    align-items:
        start;

}


.article-layout[hidden] {

    display: none;

}


.article-main {

    min-width: 0;

}


/* =========================================================
   MAIN IMAGE
========================================================= */

.article-main-image {

    position: relative;

    overflow: hidden;

    margin-bottom:
        25px;

    background:
        #101010;

    border:
        1px solid
        rgba(255,255,255,0.07);

    border-radius:
        18px;

    box-shadow:
        0 20px 55px
        rgba(0,0,0,0.28);

}


.article-main-image[hidden] {

    display: none;

}


.article-main-image img {

    display: block;

    width: 100%;

    max-height:
        620px;

    object-fit:
        cover;

}


/* =========================================================
   EXCERPT
========================================================= */

.article-excerpt {

    margin-bottom:
        24px;

    padding:
        20px 22px;

    color:
        #c8cbd1;

    background:
        rgba(212,175,55,0.035);

    border-right:
        4px solid
        var(--article-gold);

    border-top:
        1px solid
        rgba(255,255,255,0.055);

    border-bottom:
        1px solid
        rgba(255,255,255,0.055);

    border-left:
        1px solid
        rgba(255,255,255,0.055);

    border-radius:
        12px;

    font-size:
        15px;

    line-height:
        2.15;

}


.article-excerpt[hidden] {

    display: none;

}


/* =========================================================
   CONTENT
========================================================= */

.article-content {

    overflow: hidden;

    padding:
        36px 38px;

    color:
        var(--article-text);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.028),
            rgba(255,255,255,0.018)
        );

    border:
        1px solid
        rgba(255,255,255,0.075);

    border-radius:
        var(--article-radius);

    box-shadow:
        0 18px 45px
        rgba(0,0,0,0.20);

    font-size:
        15px;

    line-height:
        2.25;

    white-space:
        pre-wrap;

    word-break:
        break-word;

}


.article-content:empty {

    display: none;

}


/* =========================================================
   GALLERY SECTION
========================================================= */

.article-gallery-section {

    margin-top:
        35px;

    padding:
        28px;

    background:
        rgba(255,255,255,0.02);

    border:
        1px solid
        rgba(255,255,255,0.065);

    border-radius:
        16px;

}


.article-gallery-section[hidden] {

    display: none;

}


.article-section-heading {

    margin-bottom:
        20px;

}


.article-section-heading span {

    display: block;

    margin-bottom:
        7px;

    color:
        var(--article-gold);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        2px;

}


.article-section-heading h2 {

    margin:
        0;

    color:
        var(--article-white);

    font-size:
        23px;

}


.article-gallery {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        14px;

}


.article-gallery-item {

    position: relative;

    overflow: hidden;

    width:
        100%;

    aspect-ratio:
        16 / 10;

    padding:
        0;

    border:
        1px solid
        rgba(255,255,255,0.06);

    border-radius:
        12px;

    background:
        #101010;

    cursor:
        pointer;

}


.article-gallery-item img {

    display: block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .35s ease;

}


.article-gallery-item:hover img {

    transform:
        scale(1.045);

}


/* =========================================================
   PDF
========================================================= */

.article-pdf-section {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap:
        20px;

    margin-top:
        25px;

    padding:
        22px;

    background:
        rgba(212,175,55,0.045);

    border:
        1px solid
        rgba(212,175,55,0.13);

    border-radius:
        14px;

}


.article-pdf-section[hidden] {

    display: none;

}


.article-pdf-section span {

    display: block;

    margin-bottom:
        6px;

    color:
        var(--article-gold);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        2px;

}


.article-pdf-section h3 {

    margin:
        0 0 6px;

    color:
        var(--article-white);

    font-size:
        17px;

}


.article-pdf-section p {

    margin:
        0;

    color:
        var(--article-muted);

    font-size:
        11px;

    line-height:
        1.8;

}


.article-pdf-button {

    display: inline-flex;

    flex-shrink: 0;

    align-items: center;

    justify-content: center;

    min-height:
        43px;

    padding:
        0 16px;

    color:
        #111;

    background:
        var(--article-gold);

    border-radius:
        9px;

    text-decoration:
        none;

    font-size:
        10px;

    font-weight:
        800;

    transition:
        transform .2s ease,
        background .2s ease;

}


.article-pdf-button:hover {

    transform:
        translateY(-2px);

    background:
        var(--article-gold-light);

}


/* =========================================================
   SIDEBAR
========================================================= */

.article-sidebar {

    position:
        sticky;

    top:
        105px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        18px;

}


.article-sidebar-card {

    padding:
        23px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.018)
        );

    border:
        1px solid
        rgba(255,255,255,0.075);

    border-radius:
        15px;

    box-shadow:
        0 16px 42px
        rgba(0,0,0,0.18);

}


.article-sidebar-title {

    margin-bottom:
        17px;

}


.article-sidebar-title span {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--article-gold);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        2px;

}


.article-sidebar-title h3 {

    margin:
        0;

    color:
        var(--article-white);

    font-size:
        18px;

}


.article-sidebar-meta {

    display:
        flex;

    flex-direction:
        column;

    gap:
        13px;

}


.article-sidebar-meta > div {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        12px;

    padding-bottom:
        12px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.055);

}


.article-sidebar-meta > div:last-child {

    padding-bottom:
        0;

    border-bottom:
        0;

}


.article-sidebar-meta span {

    color:
        #778194;

    font-size:
        10px;

}


.article-sidebar-meta strong {

    color:
        #d6dae2;

    font-size:
        11px;

    text-align:
        left;

}


.article-sidebar-cta {

    background:

        radial-gradient(
            circle at top right,
            rgba(212,175,55,0.11),
            transparent 65%
        ),

        rgba(255,255,255,0.025);

}


.article-sidebar-cta > span {

    display:
        block;

    margin-bottom:
        9px;

    color:
        var(--article-gold);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.7px;

}


.article-sidebar-cta h3 {

    margin:
        0 0 12px;

    color:
        var(--article-white);

    font-size:
        18px;

    line-height:
        1.65;

}


.article-sidebar-cta p {

    margin:
        0 0 19px;

    color:
        var(--article-muted);

    font-size:
        11px;

    line-height:
        2;

}


.article-sidebar-button {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        43px;

    color:
        #111;

    background:
        var(--article-gold);

    border-radius:
        9px;

    text-decoration:
        none;

    font-size:
        11px;

    font-weight:
        800;

    transition:
        transform .2s ease,
        background .2s ease;

}


.article-sidebar-button:hover {

    transform:
        translateY(-2px);

    background:
        var(--article-gold-light);

}


.article-sidebar-back {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        42px;

    color:
        #aab0ba;

    background:
        rgba(255,255,255,0.02);

    border:
        1px solid
        rgba(255,255,255,0.07);

    border-radius:
        9px;

    text-decoration:
        none;

    font-size:
        10px;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;

}


.article-sidebar-back:hover {

    color:
        #111;

    background:
        var(--article-gold);

    border-color:
        var(--article-gold);

}


/* =========================================================
   IMAGE MODAL
========================================================= */

.article-gallery-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        9999;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        30px;

    background:
        rgba(0,0,0,0.90);

}


.article-gallery-modal img {

    position:
        relative;

    z-index:
        2;

    display:
        block;

    max-width:
        min(1200px, 94vw);

    max-height:
        88vh;

    object-fit:
        contain;

    border-radius:
        12px;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,0.50);

}


.article-gallery-modal-close {

    position:
        fixed;

    top:
        22px;

    left:
        22px;

    z-index:
        3;

    width:
        42px;

    height:
        42px;

    border:
        1px solid
        rgba(255,255,255,0.20);

    border-radius:
        50%;

    color:
        #fff;

    background:
        rgba(255,255,255,0.08);

    cursor:
        pointer;

    font-size:
        25px;

}


.article-gallery-modal-close:hover {

    color:
        #111;

    background:
        var(--article-gold);

    border-color:
        var(--article-gold);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .article-layout {

        grid-template-columns:
            1fr;

    }


    .article-sidebar {

        position:
            static;

        display:
            grid;

        grid-template-columns:
            repeat(2, minmax(0,1fr));

    }

}


@media (max-width: 760px) {

    .article-hero {

        min-height:
            390px;

    }


    .article-details-section {

        padding:
            65px 0 75px;

    }


    .article-content {

        padding:
            27px 21px;

        font-size:
            14px;

        line-height:
            2.1;

    }


    .article-gallery-section {

        padding:
            21px;

    }


    .article-gallery {

        grid-template-columns:
            1fr;

    }


    .article-sidebar {

        grid-template-columns:
            1fr;

    }


    .article-pdf-section {

        align-items:
            stretch;

        flex-direction:
            column;

    }


    .article-pdf-button {

        width:
            100%;

    }

}


@media (max-width: 480px) {

    .article-hero-content h1 {

        font-size:
            29px;

    }


    .article-hero-meta {

        flex-direction:
            column;

        gap:
            8px;

    }


    .article-main-image {

        border-radius:
            14px;

    }


    .article-content {

        padding:
            22px 17px;

    }


    .article-gallery-section {

        padding:
            17px;

    }

}