/* =========================================================
   SINGLE BLOG ARTICLE
========================================================= */

.article-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 115px;
    color: var(--uae-white);
    background: var(--gradient-hero);
}

.article-hero-shape {
    position: absolute;
    top: -250px;
    right: -200px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(53, 210, 111, 0.25);
    border-radius: 50%;
}

.article-hero-inner {
    position: relative;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
    color: #a9bbb0;
    font-size: 0.82rem;
}

.article-breadcrumbs a {
    color: #d1ddd5;
}

.article-breadcrumbs a:hover {
    color: var(--green-light);
}

.article-hero-content {
    max-width: 1050px;
}

.article-category {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--green-light);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.article-category:hover {
    color: var(--uae-white);
    background: var(--uae-green);
}

.article-hero h1 {
    max-width: 1050px;
    margin-bottom: 26px;
    color: var(--uae-white);
    font-size: clamp(3rem, 5.4vw, 5.3rem);
    line-height: 1.06;
}

.article-summary {
    max-width: 840px;
    color: #c4d3ca;
    font-size: 1.2rem;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-top: 30px;
    color: #99aca1;
    font-size: 0.82rem;
    font-weight: 700;
}

.article-meta span {
    position: relative;
}

.article-meta span:not(:last-child)::after {
    position: absolute;
    right: -15px;
    color: var(--uae-red);
    content: "•";
}

.article-featured-image-section {
    padding: 0 0 30px;
    background: var(--off);
}

.article-featured-image {
    position: relative;
    z-index: 2;
    margin-top: -55px;
}

.article-featured-image img {
    width: 100%;
    max-height: 720px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.article-content-section {
    background: var(--uae-white);
}

.article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 820px);
    justify-content: center;
    align-items: start;
    gap: 70px;
}

.article-sidebar {
    position: sticky;
    top: 125px;
    display: grid;
    gap: 22px;
}

.article-sidebar-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--off);
}

.sidebar-label {
    margin-bottom: 15px;
    color: var(--uae-red);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.article-table-of-contents {
    display: grid;
    gap: 6px;
}

.article-table-of-contents a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--graphite);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-table-of-contents a:hover,
.article-table-of-contents a.active {
    color: var(--uae-green);
}

.article-table-of-contents .toc-level-3 {
    padding-left: 16px;
    color: var(--muted);
    font-size: 0.82rem;
}

.toc-placeholder {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.article-audit-card {
    color: #dce7df;
    background: var(--ink);
}

.article-audit-card h3 {
    color: var(--uae-white);
    font-size: 1.35rem;
}

.article-audit-card p {
    color: #aebfb4;
    font-size: 0.9rem;
}

.article-content {
    min-width: 0;
    color: var(--graphite);
    font-size: 1.08rem;
    line-height: 1.85;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    scroll-margin-top: 135px;
}

.article-content h2 {
    margin-top: 58px;
    margin-bottom: 20px;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.article-content h3 {
    margin-top: 42px;
    margin-bottom: 16px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.article-content h4 {
    margin-top: 34px;
    font-size: 1.3rem;
}

.article-content p {
    margin-bottom: 1.55em;
}

.article-content a {
    color: var(--green-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.8em;
    padding-left: 26px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 42px 0;
    padding: 30px 34px;
    border-left: 5px solid var(--uae-red);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink);
    background: var(--off);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.article-content img {
    border-radius: var(--radius);
}

.article-content table {
    display: block;
    margin: 35px 0;
    overflow-x: auto;
}

.article-content pre {
    overflow-x: auto;
    padding: 24px;
    border-radius: var(--radius);
    color: #e4eee8;
    background: var(--ink);
}

.article-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--off-dark);
    font-size: 0.9em;
}

.article-content pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.article-page-links {
    margin-top: 35px;
    font-weight: 800;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.article-tags a {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--graphite);
    background: var(--off);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.article-tags a:hover {
    border-color: var(--uae-green);
    color: var(--uae-white);
    background: var(--uae-green);
}

.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 30px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--off);
}

.article-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-share-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--uae-white);
    background: var(--uae-black);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.article-share-links a:hover {
    background: var(--uae-green);
}

.article-author-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    margin-top: 35px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--uae-white);
    box-shadow: var(--shadow-sm);
}

.article-author-avatar img {
    border-radius: 50%;
}

.article-author-card h3 {
    margin: 0 0 8px;
}

.article-author-card p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-navigation-section {
    padding: 55px 0;
    background: var(--off);
}

.article-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.article-nav-item {
    min-height: 145px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--uae-white);
}

.article-nav-item span {
    display: block;
    margin-bottom: 12px;
    color: var(--uae-red);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-nav-item a {
    color: var(--ink);
    font-family: var(--heading-font);
    font-size: 1.15rem;
    font-weight: 700;
}

.article-nav-next {
    text-align: right;
}

.related-articles-section {
    background: var(--uae-white);
}

.related-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--uae-white);
    box-shadow: var(--shadow-sm);
}

.related-article-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.04);
}

.related-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--uae-white);
    background: var(--gradient-hero);
}

.related-article-content {
    padding: 27px;
}

.related-article-content > span {
    color: var(--uae-red);
    font-size: 0.75rem;
    font-weight: 800;
}

.related-article-content h3 {
    margin: 14px 0 12px;
    font-size: 1.4rem;
}

.related-article-content h3 a {
    color: var(--ink);
}

.related-article-content p {
    color: var(--muted);
}

@media (max-width: 1050px) {

    .article-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 45px;
    }

}

@media (max-width: 900px) {

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        order: 2;
    }

    .article-content {
        order: 1;
    }

    .related-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 640px) {

    .article-hero {
        padding: 80px 0 95px;
    }

    .article-hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.7rem);
    }

    .article-featured-image {
        margin-top: -35px;
    }

    .article-meta span:not(:last-child)::after {
        display: none;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-author-card,
    .article-post-navigation,
    .related-article-grid {
        grid-template-columns: 1fr;
    }

    .article-nav-next {
        text-align: left;
    }

}