.rahimi-single-page {
    --rahimi-blue: #0d3274;
    --rahimi-blue-dark: #071e48;
    --rahimi-blue-soft: #123a86;
    --rahimi-gold: #e7bd36;
    --rahimi-text: #ffffff;
    --rahimi-muted: rgba(255, 255, 255, 0.72);
    --rahimi-border: rgba(255, 255, 255, 0.1);
    --rahimi-content-width: 1140px;
    --rahimi-menu-pad: 10px;
    --rahimi-page-gutter: 16px;
    background:
        radial-gradient(circle at 12% 8%, rgba(231, 189, 54, 0.14), transparent 28%),
        linear-gradient(180deg, #071e48 0%, #08245a 48%, #071e48 100%);
    color: var(--rahimi-text);
    font-family: IRANYekanFanum, IRANYekan, Vazirmatn, Tahoma, Arial, sans-serif;
    overflow-x: hidden;
    padding-inline: max(
        var(--rahimi-page-gutter),
        calc((100% - var(--rahimi-content-width)) / 2 + var(--rahimi-menu-pad))
    );
}

.rahimi-single-page * {
    box-sizing: border-box;
}

.rahimi-single-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.rahimi-single-hero {
    padding: 34px 0 42px;
}

.rahimi-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: var(--rahimi-muted);
    font-size: 13px;
}

.rahimi-single-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.rahimi-single-breadcrumb a:hover {
    color: var(--rahimi-gold);
}

.rahimi-single-breadcrumb strong {
    color: #ffffff;
    font-weight: 700;
}

.rahimi-single-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 34px;
    background: linear-gradient(135deg, rgba(13, 50, 116, 0.96), rgba(10, 36, 85, 0.96));
    border: 1px solid var(--rahimi-border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
}

.rahimi-single-hero-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(30deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(120deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.6;
    pointer-events: none;
}

.rahimi-single-hero-content,
.rahimi-single-hero-image {
    position: relative;
    z-index: 1;
}

.rahimi-single-category {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(231, 189, 54, 0.14);
    border: 1px solid rgba(231, 189, 54, 0.28);
    color: var(--rahimi-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.rahimi-single-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.55;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.rahimi-single-excerpt {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 2.1;
    max-width: 720px;
}

.rahimi-single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.rahimi-single-author,
.rahimi-single-meta-item {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.rahimi-single-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.rahimi-single-author span,
.rahimi-single-meta-item span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-bottom: 3px;
}

.rahimi-single-author strong,
.rahimi-single-meta-item strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.rahimi-single-hero-image {
    border-radius: 24px;
    overflow: hidden;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.04);
}

.rahimi-single-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.rahimi-single-body-section {
    padding: 10px 0 70px;
}

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

.rahimi-single-article {
    min-width: 0;
}

.rahimi-single-content {
    background: #ffffff;
    color: #1d2a44;
    border-radius: 24px;
    padding: 38px 42px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    font-size: 16px;
    line-height: 2.2;
}

.rahimi-single-content h2,
.rahimi-single-content h3,
.rahimi-single-content h4 {
    color: #0d3274;
    line-height: 1.8;
    margin: 34px 0 14px;
    font-weight: 900;
}

.rahimi-single-content h2 {
    font-size: 28px;
}

.rahimi-single-content h3 {
    font-size: 23px;
}

.rahimi-single-content p {
    margin: 0 0 18px;
}

.rahimi-single-content a {
    color: #0d3274;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 50, 116, 0.25);
}

.rahimi-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 14px 0;
}

.rahimi-single-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-right: 4px solid var(--rahimi-gold);
    background: #f6f8fc;
    border-radius: 16px;
    color: #24324f;
}

.rahimi-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    overflow: hidden;
    border-radius: 16px;
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.rahimi-single-content th,
.rahimi-single-content td {
    padding: 12px 14px;
    border: 1px solid #e5eaf3;
    white-space: nowrap;
}

.rahimi-single-content th {
    background: #eef3fb;
    color: #0d3274;
}

.rahimi-single-tags,
.rahimi-single-share,
.rahimi-related-posts {
    margin-top: 22px;
    background: rgba(13, 50, 116, 0.94);
    border: 1px solid var(--rahimi-border);
    border-radius: 22px;
    padding: 22px;
}

.rahimi-single-tags span,
.rahimi-single-share span {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.rahimi-single-tags a,
.rahimi-single-share a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    margin: 0 0 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
}

.rahimi-single-tags a:hover,
.rahimi-single-share a:hover {
    background: var(--rahimi-gold);
    color: #102044;
}

.rahimi-related-posts h2 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #ffffff;
}

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

.rahimi-related-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
}

.rahimi-related-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.rahimi-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.rahimi-related-card:hover .rahimi-related-image img {
    transform: scale(1.05);
}

.rahimi-related-content {
    display: block;
    padding: 14px;
}

.rahimi-related-content small {
    display: block;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 8px;
    font-size: 11px;
}

.rahimi-related-content strong {
    display: block;
    line-height: 1.8;
    font-size: 14px;
}

.rahimi-single-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
}

.rahimi-sidebar-card {
    background: rgba(13, 50, 116, 0.94);
    border: 1px solid var(--rahimi-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}

.rahimi-sidebar-card h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.rahimi-sidebar-search form {
    display: flex;
    gap: 8px;
}

.rahimi-sidebar-search input[type="search"],
.rahimi-sidebar-search input[type="text"] {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0 12px;
    outline: none;
}

.rahimi-sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.rahimi-sidebar-search button,
.rahimi-sidebar-search input[type="submit"] {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--rahimi-gold);
    color: #102044;
    font-weight: 900;
    padding: 0 14px;
    cursor: pointer;
}

.rahimi-sidebar-author {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rahimi-sidebar-author img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.rahimi-sidebar-author strong {
    display: block;
    color: #ffffff;
    margin-bottom: 6px;
}

.rahimi-sidebar-author p {
    margin: 0;
    color: var(--rahimi-muted);
    font-size: 13px;
    line-height: 1.9;
}

.rahimi-sidebar-posts {
    display: grid;
    gap: 12px;
}

.rahimi-sidebar-post {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.rahimi-sidebar-post span {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.rahimi-sidebar-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rahimi-sidebar-post strong {
    font-size: 13px;
    line-height: 1.8;
    font-weight: 800;
}

.rahimi-sidebar-post:hover strong {
    color: var(--rahimi-gold);
}

.rahimi-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.rahimi-sidebar-list li {
    color: var(--rahimi-muted);
    font-size: 13px;
}

.rahimi-sidebar-list a {
    color: #ffffff;
    text-decoration: none;
}

.rahimi-sidebar-list a:hover {
    color: var(--rahimi-gold);
}

.rahimi-sidebar-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rahimi-sidebar-tags a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
}

.rahimi-sidebar-tags a:hover {
    background: var(--rahimi-gold);
    color: #102044;
}

.rahimi-sidebar-cta {
    background:
        radial-gradient(circle at 0% 0%, rgba(231, 189, 54, 0.22), transparent 42%),
        linear-gradient(135deg, #153b87, #0d3274);
}

.rahimi-sidebar-cta p {
    color: var(--rahimi-muted);
    line-height: 2;
    margin: 0 0 16px;
    font-size: 13px;
}

.rahimi-sidebar-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border-radius: 14px;
    background: var(--rahimi-gold);
    color: #102044;
    text-decoration: none;
    font-weight: 900;
}

.rahimi-sidebar-empty {
    color: var(--rahimi-muted);
    font-size: 13px;
    margin: 0;
}

.comment-respond,
.comments-area {
    margin-top: 22px;
    background: #ffffff;
    color: #1d2a44;
    border-radius: 22px;
    padding: 28px;
}

.comment-respond input,
.comment-respond textarea {
    width: 100%;
    border: 1px solid #e5eaf3;
    border-radius: 14px;
    padding: 12px 14px;
}

.comment-respond input[type="submit"] {
    background: var(--rahimi-gold);
    color: #102044;
    border: 0;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .rahimi-single-hero-grid {
        grid-template-columns: 1fr;
    }

    .rahimi-single-layout {
        grid-template-columns: 1fr;
    }

    .rahimi-single-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rahimi-sidebar-cta,
    .rahimi-sidebar-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .rahimi-single-page {
        --rahimi-page-gutter: 10px;
        --rahimi-menu-pad: 0px;
        padding-inline: 10px;
    }

    .rahimi-single-container {
        width: 100%;
        max-width: 100%;
    }

    .rahimi-single-hero {
        padding: 20px 0 28px;
    }

    .rahimi-single-hero-grid {
        border-radius: 22px;
        padding: 22px;
        gap: 22px;
    }

    .rahimi-single-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rahimi-single-author,
    .rahimi-single-meta-item {
        width: 100%;
    }

    .rahimi-single-hero-image,
    .rahimi-single-hero-image img {
        min-height: 220px;
    }

    .rahimi-single-content {
        border-radius: 20px;
        padding: 24px 18px;
        font-size: 15px;
        line-height: 2.15;
    }

    .rahimi-single-content h2 {
        font-size: 23px;
    }

    .rahimi-single-content h3 {
        font-size: 20px;
    }

    .rahimi-related-grid {
        grid-template-columns: 1fr;
    }

    .rahimi-single-sidebar {
        grid-template-columns: 1fr;
    }

    .rahimi-single-tags,
    .rahimi-single-share,
    .rahimi-related-posts,
    .rahimi-sidebar-card {
        border-radius: 18px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .rahimi-single-hero h1 {
        font-size: 27px;
    }

    .rahimi-single-breadcrumb {
        font-size: 12px;
    }

    .rahimi-sidebar-search form {
        flex-direction: column;
    }

    .rahimi-sidebar-search button,
    .rahimi-sidebar-search input[type="submit"] {
        width: 100%;
    }
}