:root {
    --article-dark: #232d45;
    --article-blue: #234a7d;
    --article-gold: #c9a14a;
    --article-bg: #e1e9f5;
    --article-light: #f7f8fa;
    --article-white: #ffffff;
    --article-text: #344158;
    --article-muted: #718096;
    --article-border: #d9e2ee;
    --article-shadow: 0 20px 55px rgba(35, 45, 69, 0.12);
    --article-radius: 24px;
}

/* Base */

.article-page {
    min-height: 100vh;
    padding: 34px 0 90px;
    background:
        radial-gradient(circle at 5% 7%,
            rgba(201, 161, 74, 0.16),
            transparent 23rem),
        radial-gradient(circle at 96% 34%,
            rgba(35, 74, 125, 0.12),
            transparent 25rem),
        var(--article-bg);
}

/* Breadcrumbs */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--article-muted);
    font-size: 12px;
}

.breadcrumbs a {
    color: var(--article-blue);
    transition: color 180ms ease;
}

.breadcrumbs a:hover {
    color: var(--article-gold);
}

/* Main Layout */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 28px;
    align-items: start;
}

.article-main {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: var(--article-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--article-shadow);
    animation: articleReveal 700ms ease both;
}

/* Article Header */

.article-heading {
    position: relative;
    padding: clamp(27px, 5vw, 58px);
    padding-bottom: 30px;
    background:
        radial-gradient(circle at 91% 8%,
            rgba(201, 161, 74, 0.18),
            transparent 15rem),
        linear-gradient(135deg,
            rgba(35, 45, 69, 0.98),
            rgba(35, 74, 125, 0.96));
    color: var(--article-white);
}

.article-heading::after {
    position: absolute;
    right: 9%;
    bottom: -38px;
    width: 115px;
    height: 115px;
    border: 1px solid rgba(201, 161, 74, 0.34);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

[dir="ltr"] .article-heading::after {
    right: auto;
    left: 9%;
}

.article-category {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 6px 13px;
    border: 1px solid rgba(201, 161, 74, 0.5);
    border-radius: 999px;
    background: rgba(201, 161, 74, 0.14);
    color: #efd58e;
    font-size: 12px;
    font-weight: bold;
}

.article-heading h1 {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 19px 0 20px;
    color: var(--article-white);
    font-size: clamp(30px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
}

.article-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 22px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta span::before {
    display: inline-grid;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--article-gold);
    content: "";
}

/* Featured Image */

.article-featured-image {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: var(--article-bg);
}

.article-featured-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(35, 45, 69, 0.2),
            transparent 35%);
    content: "";
    pointer-events: none;
}

.article-featured-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    transition: transform 700ms ease;
}

.article-main:hover .article-featured-image img {
    transform: scale(1.015);
}

/* Article Content */

.article-intro,
.article-content,
.article-cta {
    margin-right: clamp(22px, 6vw, 80px);
    margin-left: clamp(22px, 6vw, 80px);
}

.article-intro {
    margin-top: 35px;
    margin-bottom: 31px;
    padding: 20px 23px;
    border-right: 4px solid var(--article-gold);
    border-radius: 12px;
    background:
        linear-gradient(135deg,
            rgba(201, 161, 74, 0.14),
            rgba(225, 233, 245, 0.45));
    color: var(--article-dark);
    font-size: 18px;
    font-weight: bold;
    line-height: 1.9;
}

[dir="ltr"] .article-intro {
    border-right: 0;
    border-left: 4px solid var(--article-gold);
}

.article-content {
    padding-bottom: 10px;
    color: var(--article-text);
    font-size: 17px;
    line-height: 2.05;
}

.article-content> :first-child {
    margin-top: 0;
}

.article-content h2 {
    position: relative;
    margin: 44px 0 17px;
    padding-right: 18px;
    color: var(--article-dark);
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.4;
}

[dir="ltr"] .article-content h2 {
    padding-right: 0;
    padding-left: 18px;
}

.article-content h2::before {
    position: absolute;
    top: 8px;
    right: 0;
    width: 5px;
    height: 34px;
    border-radius: 8px;
    background: var(--article-gold);
    content: "";
}

[dir="ltr"] .article-content h2::before {
    right: auto;
    left: 0;
}

.article-content h3 {
    margin: 32px 0 12px;
    color: var(--article-blue);
    font-size: clamp(20px, 2.5vw, 24px);
    line-height: 1.5;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 25px;
    padding-right: 27px;
}

[dir="ltr"] .article-content ul,
[dir="ltr"] .article-content ol {
    padding-right: 0;
    padding-left: 27px;
}

.article-content li {
    margin: 8px 0;
    padding-right: 4px;
}

.article-content li::marker {
    color: var(--article-gold);
    font-weight: bold;
}

.article-content a {
    color: var(--article-blue);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: rgba(201, 161, 74, 0.7);
    text-underline-offset: 5px;
}

.article-content a:hover {
    color: var(--article-gold);
}

.article-content strong,
.article-content b {
    color: var(--article-dark);
}

.article-content blockquote {
    margin: 31px 0;
    padding: 21px 24px;
    border-right: 4px solid var(--article-blue);
    border-radius: 13px;
    background: var(--article-light);
    color: var(--article-dark);
    font-size: 18px;
    font-weight: bold;
}

[dir="ltr"] .article-content blockquote {
    border-right: 0;
    border-left: 4px solid var(--article-blue);
}

.article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(35, 45, 69, 0.12);
}

.article-content figure {
    margin: 32px 0;
}

.article-content figcaption {
    margin-top: 8px;
    color: var(--article-muted);
    font-size: 12px;
    text-align: center;
}

.article-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}

.article-content th,
.article-content td {
    padding: 12px 14px;
    border: 1px solid var(--article-border);
    text-align: start;
}

.article-content th {
    background: rgba(35, 74, 125, 0.1);
    color: var(--article-blue);
}

/* CTA */

.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    margin-bottom: 55px;
    padding: 24px;
    border-radius: 17px;
    background:
        radial-gradient(circle at 90% 50%,
            rgba(201, 161, 74, 0.2),
            transparent 13rem),
        linear-gradient(135deg, var(--article-dark), var(--article-blue));
    color: var(--article-white);
}

.article-cta strong,
.article-cta span {
    display: block;
}

.article-cta strong {
    color: #efd58e;
    font-size: 18px;
}

.article-cta span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.article-cta a {
    flex: 0 0 auto;
    padding: 11px 19px;
    border-radius: 10px;
    background: var(--article-gold);
    color: var(--article-dark);
    font-size: 13px;
    font-weight: bold;
    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.article-cta a:hover {
    background: #e0bd68;
    box-shadow: 0 8px 20px rgba(201, 161, 74, 0.25);
    transform: translateY(-3px);
}

/* Sidebar */

.article-sidebar {
    display: grid;
    gap: 16px;
    animation: sidebarReveal 750ms ease both;
}

.article-sidebar-card {
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--article-shadow);
}

.sidebar-label {
    display: block;
    margin-bottom: 13px;
    color: var(--article-muted);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.share-links {
    display: grid;
    gap: 9px;
}

.share-links a,
.share-links button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--article-border);
    border-radius: 10px;
    background: var(--article-light);
    color: var(--article-blue);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.share-links a:hover,
.share-links button:hover {
    border-color: var(--article-gold);
    background: rgba(201, 161, 74, 0.12);
    transform: translateY(-2px);
}

.sidebar-category-link {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(35, 74, 125, 0.08);
    color: var(--article-blue);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition:
        background 180ms ease,
        color 180ms ease;
}

.sidebar-category-link:hover {
    background: var(--article-blue);
    color: var(--article-white);
}

/* Related Articles */

.related-section {
    margin-top: 58px;
}

.section-heading {
    margin-bottom: 21px;
}

.section-heading span {
    color: var(--article-gold);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 6px 0 0;
    color: var(--article-dark);
    font-size: clamp(25px, 4vw, 34px);
}

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

.related-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--article-shadow);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.related-card:hover {
    box-shadow: 0 24px 50px rgba(35, 45, 69, 0.16);
    transform: translateY(-6px);
}

.related-card>a {
    display: block;
}

.related-card img,
.related-placeholder {
    display: grid;
    width: 100%;
    height: 180px;
    place-items: center;
    object-fit: cover;
    background: linear-gradient(135deg, var(--article-dark), var(--article-blue));
    color: var(--article-gold);
    font-size: 42px;
    font-weight: bold;
}

.related-card>a>div {
    padding: 17px;
}

.related-card h3 {
    margin: 0;
    color: var(--article-dark);
    font-size: 17px;
    line-height: 1.5;
}

.related-card time {
    display: block;
    margin-top: 8px;
    color: var(--article-muted);
    font-size: 11px;
}

/* Animations */

@keyframes articleReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sidebarReveal {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */

@media (max-width: 980px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 235px;
        gap: 20px;
    }

    .article-content {
        font-size: 16px;
    }
}

@media (max-width: 780px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-sidebar-card {
        height: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .article-page {
        padding: 22px 0 60px;
    }

    .article-layout {
        gap: 18px;
    }

    .article-main {
        border-radius: 18px;
    }

    .article-heading {
        padding: 27px 21px 29px;
    }

    .article-heading h1 {
        font-size: 31px;
    }

    .article-meta {
        gap: 8px 15px;
    }

    .article-meta span:not(:last-child)::after {
        display: none;
    }

    .article-intro,
    .article-content,
    .article-cta {
        margin-right: 21px;
        margin-left: 21px;
    }

    .article-intro {
        margin-top: 25px;
        font-size: 16px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .article-content h2 {
        margin-top: 34px;
        font-size: 25px;
    }

    .article-content h3 {
        font-size: 21px;
    }

    .article-cta {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 34px;
        padding: 19px;
    }

    .article-cta a {
        width: 100%;
        text-align: center;
    }

    .article-sidebar,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card img,
    .related-placeholder {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}