:root {
    --gold: #e0c297;
    --bg: #0a1215;
    --panel: #0c1418;
    --muted: #b5c0c7;
    --line: #1a2429;
    --rad: 22px;
}

.single-hero {
    height: 76dvh;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.single-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 40%,
            rgba(224, 194, 151, 0.15),
            transparent 50%),
        radial-gradient(circle at 75% 70%,
            rgba(224, 194, 151, 0.09),
            transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px 80px;
    width: 100%;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-family: "Barlow", sans-serif;
    font-size: clamp(42px, 6.5vw, 48px);
    line-height: 1.1;
    margin: 0;
    color: #fff;
}

.single-main {
    padding: 100px 0 140px;
    background: var(--bg);
}

.single-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

.single-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-title {
    color: var(--gold);
    font-family: "Barlow", sans-serif;
    font-size: 26px;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 68px;
    height: 3px;
    background: var(--gold);
}

.sidebar-list a {
    display: block;
    padding: 12px 18px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.35s ease;
    font-weight: 500;
}

.sidebar-list a:hover {
    background: rgba(224, 194, 151, 0.12);
    color: var(--gold);
    padding-left: 24px;
}

.article-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    line-height: 1.9;
    font-size: 17px;
    color: #e8e8e8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.article-content h2,
.article-content h3 {
    color: var(--gold);
    margin: 48px 0 20px;
    font-family: "Barlow", sans-serif;
}

.article-content h2 {
    font-size: 32px;
}

.article-content h3 {
    font-size: 26px;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 28px;
    margin: 40px 0;
    font-style: italic;
    color: var(--gold);
    font-size: 20px;
}

@media (max-width: 1100px) {
    .single-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .single-sidebar {
        order: -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .single-hero {
        height: 64dvh;
    }

    .single-main {
        padding: 80px 0 100px;
    }

    .article-content {
        padding: 32px;
        font-size: 16.5px;
    }

    .hero-title {
        font-size: 48px;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.single-page {
    direction: ltr;
}

.single-page[dir="rtl"] {
    text-align: right;
}

.single-page[dir="ltr"] {
    text-align: left;
}

.single-container {
    gap: 64px;
}

.single-page[dir="rtl"] .single-container {
    grid-template-columns: 1fr 300px;
}

.single-page[dir="rtl"] .single-sidebar {
    grid-column: 2;
}

.single-page[dir="rtl"] .article-content {
    grid-column: 1;
    grid-row: 1;
}

.single-sidebar {
    background: linear-gradient(180deg, rgba(12, 20, 24, 0.96), rgba(10, 18, 21, 0.96));
    border: 1px solid rgba(224, 194, 151, 0.16);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 23px;
}

.sidebar-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(224, 194, 151, 0.08);
}

.sidebar-title::after {
    width: 54px;
    height: 2px;
    opacity: 0.9;
}

.single-page[dir="rtl"] .sidebar-title::after {
    left: auto;
    right: 0;
}

.sidebar-list {
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    margin: 0 0 10px;
}

.sidebar-list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 12px 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.045);
    color: var(--muted);
    border-radius: 15px;
    transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.sidebar-list a::after {
    content: "›";
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(224, 194, 151, 0.08);
    color: var(--gold);
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.28s ease, color 0.28s ease;
}

.sidebar-list a:hover {
    padding: 12px 16px;
    background: rgba(224, 194, 151, 0.12);
    color: #fff;
    border-color: rgba(224, 194, 151, 0.24);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.sidebar-list a:hover::after {
    background: var(--gold);
    color: #10181b;
}

.article-content {
    overflow-wrap: anywhere;
    word-break: normal;
}

.article-content,
.article-content * {
    max-width: 100%;
}

.article-content:hover,
.article-content *:hover {
    transform: none !important;
    scale: 1 !important;
    letter-spacing: inherit !important;
}

.article-content a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 194, 151, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.article-content a:hover {
    color: #f1d7aa;
    border-color: #f1d7aa;
}

.article-content p,
.article-content li,
.article-content blockquote,
.article-content td,
.article-content th {
    direction: ltr;
    text-align: left;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
    padding-right: 0;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.9;
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    border-right: 0';
padding-left: 28px;
    padding-right: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    overflow: hidden;
    border-radius: 14px;
}

.article-content th,
.article-content td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    vertical-align: top;
}

.article-content th {
    color: var(--gold);
    background: rgba(224, 194, 151, 0.08);
    font-weight: 700;
}

.article-content .ql-align-center {
    text-align: center !important;
}

.article-content .ql-align-right {
    text-align: right !important;
}

.article-content .ql-align-left {
    text-align: left !important;
}

.article-content .ql-align-justify {
    text-align: justify !important;
}

@media (max-width: 1100px) {

    .single-page[dir="rtl"] .single-container,
    .single-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .single-page[dir="rtl"] .single-sidebar,
    .single-page[dir="rtl"] .article-content {
        grid-column: auto;
        grid-row: auto;
    }

    .single-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .single-sidebar {
        padding: 22px;
    }

    .single-container {
        padding: 0 18px;
    }

    .article-content {
        padding: 28px 22px;
    }
}

.single-page {
    direction: ltr;
}

.single-page[dir="rtl"] {
    text-align: right;
}

.single-page[dir="ltr"] {
    text-align: left;
}

.single-container {
    gap: 64px;
}

.single-page[dir="rtl"] .single-container {
    grid-template-columns: 1fr 300px;
}

.single-page[dir="rtl"] .single-sidebar {
    grid-column: 2;
}

.single-page[dir="rtl"] .article-content {
    grid-column: 1;
    grid-row: 1;
}

.single-sidebar {
    background: linear-gradient(180deg, rgba(12, 20, 24, 0.96), rgba(10, 18, 21, 0.96));
    border: 1px solid rgba(224, 194, 151, 0.16);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 23px;
}

.sidebar-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(224, 194, 151, 0.08);
}

.sidebar-title::after {
    width: 54px;
    height: 2px;
    opacity: 0.9;
}

.single-page[dir="rtl"] .sidebar-title::after {
    left: auto;
    right: 0;
}

.sidebar-list {
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    margin: 0 0 10px;
}

.sidebar-list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 12px 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.045);
    color: var(--muted);
    border-radius: 15px;
    transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.sidebar-list a::after {
    content: "›";
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(224, 194, 151, 0.08);
    color: var(--gold);
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.28s ease, color 0.28s ease;
}

.sidebar-list a:hover {
    padding: 12px 16px;
    background: rgba(224, 194, 151, 0.12);
    color: #fff;
    border-color: rgba(224, 194, 151, 0.24);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.sidebar-list a:hover::after {
    background: var(--gold);
    color: #10181b;
}

.article-content {
    overflow-wrap: anywhere;
    word-break: normal;
}

.article-content,
.article-content * {
    max-width: 100%;
}

.article-content:hover,
.article-content *:hover {
    transform: none !important;
    scale: 1 !important;
    letter-spacing: inherit !important;
}

.article-content a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 194, 151, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.article-content a:hover {
    color: #f1d7aa;
    border-color: #f1d7aa;
}

.article-content p,
.article-content li,
.article-content blockquote,
.article-content td,
.article-content th {
    direction: ltr;
    text-align: left;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
    padding-right: 0;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.9;
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    border-right: 4px solid var(--gold);
    padding-left: 28px;
    padding-right: 28px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    overflow: hidden;
    border-radius: 14px;
}

.article-content th,
.article-content td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    vertical-align: top;
}

.article-content th {
    color: var(--gold);
    background: rgba(224, 194, 151, 0.08);
    font-weight: 700;
}

.article-content .ql-align-center {
    text-align: center !important;
}

.article-content .ql-align-right {
    text-align: right !important;
}

.article-content .ql-align-left {
    text-align: left !important;
}

.article-content .ql-align-justify {
    text-align: justify !important;
}

@media (max-width: 1100px) {

    .single-page[dir="rtl"] .single-container,
    .single-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .single-page[dir="rtl"] .single-sidebar,
    .single-page[dir="rtl"] .article-content {
        grid-column: auto;
        grid-row: auto;
    }

    .single-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .single-sidebar {
        padding: 22px;
    }

    .single-container {
        padding: 0 18px;
    }

    .article-content {
        padding: 28px 22px;
    }
}