:root {
    --gold: #e0c297;
    --bg: #0a1215;
    --panel: #0c1418;
    --muted: #b5c0c7;
    --line: #1a2429;
    --rad: 22px;
}

.single-page {
    direction: rtl;
    text-align: right;
}

.single-hero {
    height: 76dvh;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    position: relative;
    border-bottom: 1px solid var(--line);
    direction: rtl;
}

.single-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 40%, rgba(224, 194, 151, 0.15), transparent 50%), radial-gradient(circle at 25% 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%;
    direction: rtl;
    text-align: right;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    direction: rtl;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta i {
    color: var(--gold);
}

.hero-title {
    font-family: "Peyda", sans-serif;
    font-size: clamp(34px, 5.8vw, 48px);
    line-height: 1.45;
    margin: 0;
    color: #fff;
    font-weight: 900;
    max-width: 980px;
}

.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: 1fr 300px;
    gap: 64px;
    align-items: start;
    direction: rtl;
}

.single-sidebar {
    grid-column: 2;
    position: sticky;
    top: 110px;
    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);
}

.article-content {
    grid-column: 1;
    grid-row: 1;
    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: 2.15;
    font-size: 17px;
    color: #e8e8e8;
    overflow-wrap: anywhere;
    word-break: normal;
    direction: rtl;
    text-align: right;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: "Peyda", sans-serif;
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 22px;
    padding-bottom: 14px;
    position: relative;
    line-height: 1.7;
}

.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);
    flex: 0 0 auto;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    width: 54px;
    height: 2px;
    background: var(--gold);
    opacity: 0.9;
}

.sidebar-list {
    list-style: none;
    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;
    text-decoration: none;
    line-height: 1.7;
    font-weight: 500;
    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);
    transform: none;
}

.sidebar-list a:hover::after {
    background: var(--gold);
    color: #10181b;
}

.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 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 h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--gold);
    margin: 44px 0 20px;
    font-family: "Peyda", sans-serif;
    font-weight: 900;
    line-height: 1.65;
    text-align: right;
}

.article-content h1 {
    font-size: 34px;
}

.article-content h2 {
    font-size: 30px;
}

.article-content h3 {
    font-size: 25px;
}

.article-content h4 {
    font-size: 22px;
}

.article-content p {
    margin-bottom: 24px;
    line-height: 2.15;
    color: #e8e8e8;
    display: block;
    direction: rtl;
    text-align: right;
}

.article-content li,
.article-content blockquote,
.article-content td,
.article-content th {
    direction: rtl;
    text-align: right;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-right: 24px;
    padding-left: 0;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 2;
}

.article-content blockquote {
    border-right: 4px solid var(--gold);
    border-left: 0;
    padding-right: 28px;
    padding-left: 0;
    margin: 40px 0;
    font-style: normal;
    color: var(--gold);
    font-size: 20px;
    line-height: 2.1;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    overflow: hidden;
    border-radius: 14px;
    direction: rtl;
}

.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 pre,
.article-content code {
    direction: ltr;
    text-align: left;
    font-family: Consolas, Monaco, monospace;
}

.article-content pre {
    overflow-x: auto;
    background: #070d10;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    margin: 28px 0;
}

.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;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .single-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .single-sidebar,
    .article-content {
        grid-column: auto;
        grid-row: auto;
    }

    .single-sidebar {
        order: -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .single-hero {
        height: 64dvh;
        min-height: 430px;
    }

    .single-main {
        padding: 80px 0 100px;
    }

    .single-container {
        padding: 0 18px;
    }

    .single-sidebar {
        padding: 22px;
    }

    .article-content {
        padding: 28px 22px;
        font-size: 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-content {
        padding-bottom: 52px;
    }

    .hero-meta {
        gap: 12px;
        font-size: 13px;
    }
}