/* =========================================================
   BLOG PAGE - SEO / UI / RESPONSIVE
   ========================================================= */

.blog-page {
    --blog-radius: 18px;
    --blog-radius-sm: 12px;
    --blog-border: rgba(0, 0, 0, 0.08);
    --blog-muted: #777;
    --blog-dark: #1d1d1d;
    --blog-primary: var(--bs-primary, #0d6efd);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(255, 255, 255, 0.82);

    --glass-shadow:
        0 10px 35px rgba(31, 41, 55, 0.07),
        0 2px 8px rgba(31, 41, 55, 0.035);

    --glass-shadow-hover:
        0 20px 55px rgba(31, 41, 55, 0.11),
        0 5px 15px rgba(31, 41, 55, 0.05);
}


/* =========================================================
   PAGE
   ========================================================= */

.blog-page {
    position: relative;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(13, 110, 253, 0.035),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(120, 90, 255, 0.035),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8f9fb 0%,
            #f4f5f7 100%
        );
}


/* =========================================================
   BREADCRUMB / BLOG HEADER
   ========================================================= */

.blog-page .breadcrumbs {
    position: relative;
    z-index: 1;

    padding: 110px 0 55px;
    margin-bottom: 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(13, 110, 253, 0.045),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 10%,
            rgba(120, 90, 255, 0.04),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.78),
            rgba(245, 246, 248, 0.82)
        );

    border-bottom: 1px solid rgba(255, 255, 255, 0.9);

    box-shadow:
        0 8px 30px rgba(31, 41, 55, 0.035);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


.blog-page .breadcrumbs h1 {
    position: relative;
    z-index: 2;

    display: block;

    margin: 0;

    color: var(--blog-dark);

    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.35;
}


.blog-page .breadcrumbs p {
    position: relative;
    z-index: 2;

    max-width: 760px;

    margin: 15px 0 0;

    color: var(--blog-muted);

    font-size: 16px;
    line-height: 2;
}


/* =========================================================
   MAIN SECTION
   ========================================================= */

.blog-page .blog-section {
    padding: 65px 0 80px;
}

.blog-page .main-column {
    min-width: 0;
}


/* =========================================================
   CONTEXT BOX
   ========================================================= */

.blog-page .blog-context {
    padding: 20px 22px;
    margin-bottom: 28px;

    border: 1px solid var(--glass-border);
    border-radius: var(--blog-radius);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(255, 255, 255, 0.62)
        );

    box-shadow: var(--glass-shadow);

    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}


.blog-page .blog-context h2 {
    margin: 0 0 8px;

    color: var(--blog-dark);

    font-size: 22px;
    font-weight: 800;
}


.blog-page .blog-context p {
    margin: 0;

    color: var(--blog-muted);

    line-height: 1.9;
}


/* =========================================================
   BLOG POST CARD
   ========================================================= */

.blog-page .blog-post {
    position: relative;
    overflow: hidden;

    margin-bottom: 30px !important;

    border: 1px solid var(--glass-border);
    border-radius: var(--blog-radius);

    background: var(--glass-bg);

    box-shadow: var(--glass-shadow);

    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}


.blog-page .blog-post:hover {
    transform: translateY(-5px);

    background: var(--glass-bg-strong);

    border-color: rgba(255, 255, 255, 0.95);

    box-shadow: var(--glass-shadow-hover);
}


/* =========================================================
   MEDIA
   ========================================================= */

.blog-page .post-media {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111;
}


.blog-page .post-media-link {
    position: absolute;
    inset: 0;

    display: block;

    overflow: hidden;
}


.blog-page .post-media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


.blog-page .blog-post:hover .post-media img {
    transform: scale(1.045);
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.blog-page .post-media-link::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.02) 55%,
            rgba(0, 0, 0, 0)
        );

    opacity: 0.72;

    transition: opacity 0.3s ease;
}


.blog-page .blog-post:hover .post-media-link::after {
    opacity: 0.95;
}


/* =========================================================
   VIDEO PLAY
   ========================================================= */

.blog-page .video-play {
    position: absolute;
    z-index: 3;

    top: 50%;
    left: 50%;

    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.48);

    color: #fff;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.blog-page .video-play i {
    font-size: 28px;
    line-height: 1;

    margin-right: -3px;
}


.blog-page .blog-post:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);

    background: rgba(13, 110, 253, 0.82);

    box-shadow:
        0 12px 35px rgba(13, 110, 253, 0.25);
}


/* =========================================================
   MEDIA TYPE
   ========================================================= */

.blog-page .media-type {
    position: absolute;
    z-index: 4;

    top: 16px;
    right: 16px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.52);

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   NO MEDIA
   ========================================================= */

.blog-page .post-media.no-media {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 240px;

    background:
        linear-gradient(
            135deg,
            #171717,
            #2b2b2b
        );
}


.blog-page .no-media-icon {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.8);

    font-size: 28px;
}


/* =========================================================
   BODY
   ========================================================= */

.blog-page .post-body {
    padding: 24px 25px 26px;
}


/* =========================================================
   META
   ========================================================= */

.blog-page .post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 12px !important;

    color: var(--blog-muted);

    font-size: 13px;
}


.blog-page .post-meta .separator {
    opacity: 0.35;
}


.blog-page .post-meta a {
    color: var(--blog-primary);

    font-weight: 700;

    text-decoration: none;
}


.blog-page .post-meta a:hover {
    text-decoration: underline;
}


.blog-page .post-meta i {
    margin-left: 4px;
}


/* =========================================================
   CATEGORY BADGE
   ========================================================= */

.blog-page .category-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border: 1px solid rgba(13, 110, 253, 0.10);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(13, 110, 253, 0.10),
            rgba(13, 110, 253, 0.045)
        );

    color: var(--blog-primary);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* =========================================================
   POST TITLE
   ========================================================= */

.blog-page .post-title {
    margin: 0 0 12px;

    font-size: clamp(20px, 2vw, 25px);
    font-weight: 800;

    line-height: 1.65;
}


.blog-page .post-title a {
    color: var(--blog-dark);

    text-decoration: none;

    transition: color 0.25s ease;
}


.blog-page .post-title a:hover {
    color: var(--blog-primary);
}


/* =========================================================
   EXCERPT
   ========================================================= */

.blog-page .post-excerpt {
    margin: 0 0 20px;

    color: #6d6d6d;

    font-size: 15px;
    line-height: 2;
}


/* =========================================================
   READ MORE
   ========================================================= */

.blog-page .read-more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--blog-primary);

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition: gap 0.25s ease;
}


.blog-page .read-more:hover {
    gap: 12px;
}


.blog-page .read-more i {
    font-size: 16px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.blog-page .sidebar {
    position: sticky;
    top: 25px;
}


.blog-page .sidebar-item {
    padding: 24px;

    margin-bottom: 22px !important;

    border: 1px solid var(--glass-border);
    border-radius: var(--blog-radius);

    background: var(--glass-bg);

    box-shadow: var(--glass-shadow);

    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}


.blog-page .sidebar-item:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.82);

    border-color: rgba(255, 255, 255, 0.95);

    box-shadow:
        0 16px 45px rgba(31, 41, 55, 0.09),
        0 3px 12px rgba(31, 41, 55, 0.04);
}


.blog-page .sidebar-item h2 {
    position: relative;

    margin: 0 0 20px;

    padding-bottom: 12px;

    color: var(--blog-dark);

    font-size: 18px;
    font-weight: 800;
}


.blog-page .sidebar-item h2::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 42px;
    height: 3px;

    border-radius: 999px;

    background: var(--blog-primary);
}


/* =========================================================
   SEARCH
   ========================================================= */

.blog-page .blog-search {
    position: relative;
}


.blog-page .blog-search .form-control {
    min-height: 50px;

    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.85);

    border-radius: 12px !important;

    background: rgba(255, 255, 255, 0.58);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 4px 15px rgba(31, 41, 55, 0.035);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.blog-page .blog-search .form-control:focus {
    background: rgba(255, 255, 255, 0.88);

    border-color: rgba(13, 110, 253, 0.25);

    box-shadow:
        0 0 0 4px rgba(13, 110, 253, 0.06),
        0 8px 25px rgba(31, 41, 55, 0.06);
}


.blog-page .blog-search .search-btn {
    position: absolute;
    z-index: 2;

    top: 5px;
    left: 5px;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    border-radius: 10px !important;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.blog-page .category-list {
    margin: 0;
    padding: 0;

    list-style: none;
}


.blog-page .category-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}


.blog-page .category-list li:last-child {
    border-bottom: 0;
}


.blog-page .category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 0;

    color: #444;

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding 0.2s ease;
}


.blog-page .category-list a:hover {
    padding-right: 6px;

    color: var(--blog-primary);
}


.blog-page .category-count {
    min-width: 30px;

    padding: 3px 7px;

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.62);

    color: #777;

    text-align: center;

    font-size: 11px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


/* =========================================================
   RECENT POSTS
   ========================================================= */

.blog-page .recent-post {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px 0;

    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}


.blog-page .recent-post:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.blog-page .recent-thumb {
    position: relative;

    flex: 0 0 82px;

    width: 82px;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 12px;

    background: #eee;

    box-shadow:
        0 4px 15px rgba(31, 41, 55, 0.06);
}


.blog-page .recent-thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.35s ease;
}


.blog-page .recent-post:hover .recent-thumb img {
    transform: scale(1.06);
}


.blog-page .recent-content {
    min-width: 0;
}


.blog-page .recent-content h3 {
    margin: 0 0 6px;

    font-size: 14px;
    font-weight: 750;

    line-height: 1.7;
}


.blog-page .recent-content h3 a {
    color: #333;

    text-decoration: none;
}


.blog-page .recent-content h3 a:hover {
    color: var(--blog-primary);
}


.blog-page .recent-content time {
    color: #999;

    font-size: 11px;
}


/* =========================================================
   TAGS
   ========================================================= */

.blog-page .tags-cloud {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


.blog-page .tags-cloud a {
    display: inline-flex;
    align-items: center;

    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.48);

    color: #555;

    font-size: 12px;

    text-decoration: none;

    box-shadow:
        0 3px 12px rgba(31, 41, 55, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.blog-page .tags-cloud a:hover {
    transform: translateY(-2px);

    border-color: rgba(13, 110, 253, 0.18);

    background: rgba(255, 255, 255, 0.82);

    color: var(--blog-primary);

    box-shadow:
        0 7px 20px rgba(31, 41, 55, 0.07);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.blog-page .blog-pagination {
    margin-top: 38px;
}


.blog-page .blog-pagination .pagination {
    justify-content: center;

    gap: 7px;
}


.blog-page .blog-pagination .page-link {
    min-width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.82);

    border-radius: 11px !important;

    background: rgba(255, 255, 255, 0.58);

    color: #555;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 4px 15px rgba(31, 41, 55, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.blog-page .blog-pagination .page-link:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.86);

    color: var(--blog-primary);

    box-shadow:
        0 8px 22px rgba(31, 41, 55, 0.07);
}


.blog-page .blog-pagination .page-item.active .page-link {
    background:
        linear-gradient(
            135deg,
            var(--blog-primary),
            #4d8df7
        );

    border-color: transparent;

    color: #fff;

    box-shadow:
        0 8px 22px rgba(13, 110, 253, 0.20);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.blog-page .empty-state {
    padding: 60px 25px;

    border: 1px dashed rgba(0, 0, 0, 0.10);

    border-radius: var(--blog-radius);

    background: rgba(255, 255, 255, 0.52);

    text-align: center;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.blog-page .empty-state i {
    display: block;

    margin-bottom: 15px;

    color: #aaa;

    font-size: 42px;
}


.blog-page .empty-state p {
    margin: 0;

    color: #777;
}


/* =========================================================
   SEO / ACCESSIBILITY
   ========================================================= */

.blog-page .visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .blog-page .blog-section {
        padding-top: 45px;
    }

    .blog-page .sidebar {
        position: static;

        margin-top: 25px;
    }
}


@media (max-width: 767.98px) {

    .blog-page .breadcrumbs {
        padding: 85px 0 35px;
    }

    .blog-page .blog-section {
        padding: 35px 0 55px;
    }

    .blog-page .post-body {
        padding: 20px;
    }

    .blog-page .video-play {
        width: 58px;
        height: 58px;
    }

    .blog-page .video-play i {
        font-size: 24px;
    }

    .blog-page .media-type {
        top: 12px;
        right: 12px;

        padding: 6px 9px;

        font-size: 11px;
    }

    .blog-page .blog-post,
    .blog-page .sidebar-item,
    .blog-page .blog-context {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}


@media (max-width: 575.98px) {

    .blog-page .post-title {
        font-size: 20px;
    }

    .blog-page .post-excerpt {
        font-size: 14px;
    }

    .blog-page .sidebar-item {
        padding: 20px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-page *,
    .blog-page *::before,
    .blog-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}












/* =========================================================
    صفحه پست های وبلاگ
    BLOG SINGLE
   PREMIUM GLASS / SEO FRIENDLY / RESPONSIVE
   ========================================================= */

.blog-single-page {
    --single-primary: #4f879f;
    --single-primary-dark: #386d83;
    --single-primary-soft: rgba(79, 135, 159, 0.09);

    --single-text: #172b3a;
    --single-text-soft: #50616d;
    --single-muted: #81909a;

    --single-bg: #f4f8fa;
    --single-card: rgba(255, 255, 255, 0.78);

    --single-border: rgba(255, 255, 255, 0.9);
    --single-border-soft: rgba(91, 121, 137, 0.13);

    --single-radius: 24px;
    --single-radius-sm: 16px;

    --single-shadow:
        0 15px 45px rgba(42, 67, 82, 0.08),
        0 3px 12px rgba(42, 67, 82, 0.035);

    --single-shadow-hover:
        0 25px 65px rgba(42, 67, 82, 0.13);

    position: relative;

    min-height: 100vh;

    color: var(--single-text);

    background:
        radial-gradient(
            circle at 8% 4%,
            rgba(111, 168, 190, 0.11),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 15%,
            rgba(130, 160, 175, 0.10),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #f8fbfc 0%,
            #f1f6f8 50%,
            #f8fafb 100%
        );

    overflow: hidden;
}


/* =========================================================
   Decorative Background
   ========================================================= */

.blog-single-page::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: 80px;
    right: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(79, 135, 159, 0.08),
            transparent 68%
        );

    pointer-events: none;
}


.blog-single-page::after {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    left: -180px;
    bottom: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(125, 158, 173, 0.07),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   Breadcrumb / Article Header
   ========================================================= */

.blog-single-page .breadcrumbs {
    position: relative;

    padding:
        105px 0
        48px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.82),
            rgba(240,247,250,0.62)
        );

    border-bottom:
        1px solid rgba(255,255,255,0.88);

    overflow: hidden;

    z-index: 1;
}


.blog-single-page .breadcrumbs::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -250px;
    right: 3%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(79,135,159,0.08),
            transparent 70%
        );

    pointer-events: none;
}


.blog-single-page .breadcrumbs-inner {
    position: relative;
    z-index: 2;
}


.blog-single-page .breadcrumbs-content {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}


.blog-single-page .breadcrumb-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 13px;
    padding: 6px 12px;

    border: 1px solid rgba(79,135,159,0.12);
    border-radius: 999px;

    background: rgba(79,135,159,0.07);

    color: var(--single-primary);

    font-size: 11px;
    font-weight: 800;
}


.blog-single-page .single-page-title {
    margin: 0 0 22px;

    color: var(--single-text);

    font-size:
        clamp(28px, 4vw, 48px);

    font-weight: 900;

    line-height: 1.5;

    letter-spacing: -0.5px;
}


.blog-single-page .breadcrumbs nav {
    display: block;
}


.blog-single-page .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px 10px;

    margin: 0;
    padding: 0;

    list-style: none;

    color: var(--single-muted);

    font-size: 12px;
}


.blog-single-page .breadcrumbs ol li {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    line-height: 1.8;
}


.blog-single-page .breadcrumbs ol li:not(:last-child)::after {
    content: "‹";

    color: #a6b3ba;

    font-size: 17px;
}


.blog-single-page .breadcrumbs a {
    color: var(--single-primary);

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease;
}


.blog-single-page .breadcrumbs a:hover {
    color: var(--single-primary-dark);
}


/* =========================================================
   Main Section
   ========================================================= */

.blog-single-page .blog-single {
    position: relative;

    padding:
        55px 0
        90px;
}


.blog-single-page .blog-single > .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   Article Card
   ========================================================= */

.blog-single-page .blog-details {
    position: relative;

    padding: 22px;

    border:
        1px solid var(--single-border);

    border-radius:
        var(--single-radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.88),
            rgba(248,251,252,0.70)
        );

    box-shadow:
        var(--single-shadow);

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);
}


/* =========================================================
   Media
   ========================================================= */

.blog-single-page .entry-img {
    width: 100%;
    margin: 0;
}


.blog-single-page .post-cover {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin: 0;

    overflow: hidden;

    border-radius:
        calc(var(--single-radius) - 6px);

    background:
        linear-gradient(
            135deg,
            #e3ecef,
            #f2f6f7
        );

    box-shadow:
        0 10px 35px rgba(38,59,70,0.10);
}


.blog-single-page .post-cover::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.01),
            rgba(0,0,0,0.10)
        );

    pointer-events: none;
}


.blog-single-page .post-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform .7s ease;
}


.blog-single-page .post-cover:hover img {
    transform: scale(1.025);
}


/* =========================================================
   Video
   ========================================================= */

.blog-single-page .post-video {
    position: relative;

    width: 100%;

    margin-top: 22px;
}


.blog-single-page .post-video video {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: contain;

    background: #e8eef1;

    border:
        1px solid rgba(255,255,255,0.85);

    border-radius:
        calc(var(--single-radius) - 6px);

    box-shadow:
        0 12px 38px rgba(35,55,67,0.12);
}


.blog-single-page .video-page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;

    padding:
        10px 17px;

    border:
        1px solid rgba(79,135,159,0.14);

    border-radius: 999px;

    background:
        rgba(79,135,159,0.08);

    color:
        var(--single-primary);

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.blog-single-page .video-page-link:hover {
    transform: translateY(-2px);

    background:
        rgba(79,135,159,0.14);

    box-shadow:
        0 8px 20px rgba(79,135,159,0.12);

    color:
        var(--single-primary-dark);
}


/* =========================================================
   Meta
   ========================================================= */

.blog-single-page .meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px 18px;

    margin-top: 25px;

    padding:
        13px 16px;

    border:
        1px solid var(--single-border-soft);

    border-radius:
        14px;

    background:
        rgba(246,250,252,0.68);

    color:
        var(--single-muted);

    font-size: 12px;
}


.blog-single-page .meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.blog-single-page .meta-top i {
    color:
        var(--single-primary);

    font-size: 14px;
}


.blog-single-page .meta-top a {
    color:
        var(--single-primary);

    font-weight: 800;

    text-decoration: none;
}


.blog-single-page .meta-top a:hover {
    color:
        var(--single-primary-dark);
}


/* =========================================================
   Article Header
   ========================================================= */

.blog-single-page .article-header {
    position: relative;
}


.blog-single-page .title {
    margin:
        27px 0 17px;

    color:
        var(--single-text);

    font-size:
        clamp(26px, 3vw, 38px);

    font-weight:
        900;

    line-height:
        1.55;

    letter-spacing:
        -0.3px;
}


/* =========================================================
   Excerpt
   ========================================================= */

.blog-single-page .entry-excerpt {
    position: relative;

    margin:
        0 0 30px;

    padding:
        22px 25px;

    border-radius:
        17px;

    background:
        linear-gradient(
            135deg,
            rgba(79,135,159,0.09),
            rgba(218,231,237,0.42)
        );

    border:
        1px solid rgba(79,135,159,0.08);
}


.blog-single-page .entry-excerpt::before {
    content: "“";

    position: absolute;

    top: 2px;
    right: 18px;

    color:
        rgba(79,135,159,0.22);

    font-size:
        52px;

    font-family:
        Georgia,
        serif;

    line-height: 1;
}


.blog-single-page .entry-excerpt p {
    margin: 0;

    color:
        #425966;

    font-size:
        16px;

    font-weight:
        650;

    line-height:
        2;
}


/* =========================================================
   Article Content
   ========================================================= */

.blog-single-page .content {
    color:
        #43535e;

    font-size:
        16px;

    line-height:
        2.25;

    overflow-wrap:
        anywhere;
}


.blog-single-page .content p {
    margin:
        0 0 22px;
}


.blog-single-page .content h2,
.blog-single-page .content h3,
.blog-single-page .content h4 {
    position: relative;

    margin:
        36px 0 18px;

    padding:
        13px 18px;

    border-radius:
        14px;

    background:
        linear-gradient(
            135deg,
            rgba(79,135,159,0.075),
            rgba(237,244,247,0.68)
        );

    border:
        1px solid rgba(79,135,159,0.07);

    color:
        var(--single-text);

    font-weight:
        850;

    line-height:
        1.7;
}


.blog-single-page .content h2::before,
.blog-single-page .content h3::before,
.blog-single-page .content h4::before {
    content: "";

    display: inline-block;

    width: 5px;
    height: 22px;

    margin-left: 10px;

    vertical-align: -4px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--single-primary),
            #8eb5c5
        );
}


.blog-single-page .content a {
    color:
        var(--single-primary);

    font-weight:
        700;

    text-decoration:
        underline;

    text-decoration-color:
        rgba(79,135,159,0.25);

    text-underline-offset:
        3px;

    transition:
        color .2s ease;
}


.blog-single-page .content a:hover {
    color:
        var(--single-primary-dark);
}


.blog-single-page .content img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin:
        30px auto;

    border-radius:
        18px;

    box-shadow:
        0 14px 35px rgba(38,58,70,0.10);
}


.blog-single-page .content figure {
    max-width: 100%;

    margin:
        30px auto;
}


.blog-single-page .content figure img {
    margin:
        0 auto;
}


.blog-single-page .content figcaption {
    margin-top: 9px;

    color:
        var(--single-muted);

    font-size:
        12px;

    text-align:
        center;
}


.blog-single-page .content blockquote {
    position: relative;

    margin:
        30px 0;

    padding:
        24px 28px;

    border-right:
        4px solid var(--single-primary);

    border-radius:
        16px;

    background:
        rgba(79,135,159,0.07);

    color:
        #405965;

    font-size:
        17px;

    font-weight:
        650;

    line-height:
        2;
}


.blog-single-page .content ul,
.blog-single-page .content ol {
    margin:
        20px 0 25px;

    padding-right:
        26px;
}


.blog-single-page .content li {
    margin-bottom:
        10px;
}


.blog-single-page .content table {
    width: 100%;

    margin:
        30px 0;

    border-collapse:
        collapse;

    overflow:
        hidden;

    border-radius:
        14px;

    background:
        rgba(255,255,255,0.65);
}


.blog-single-page .content th,
.blog-single-page .content td {
    padding:
        12px 14px;

    border:
        1px solid rgba(79,135,159,0.10);

    text-align:
        right;
}


.blog-single-page .content th {
    background:
        rgba(79,135,159,0.08);

    color:
        var(--single-text);

    font-weight:
        800;
}


/* =========================================================
   Tags
   ========================================================= */

.blog-single-page .entry-footer {
    margin-top:
        35px;

    padding-top:
        24px;

    border-top:
        1px solid var(--single-border-soft);
}


.blog-single-page .entry-footer .tags {
    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;
}


.blog-single-page .entry-footer strong {
    color:
        var(--single-text);

    font-size:
        13px;

    margin-left:
        5px;
}


.blog-single-page .entry-footer .tags a {
    display:
        inline-flex;

    align-items:
        center;

    padding:
        7px 13px;

    border:
        1px solid rgba(79,135,159,0.12);

    border-radius:
        999px;

    background:
        rgba(255,255,255,0.65);

    color:
        #61737e;

    font-size:
        12px;

    text-decoration:
        none;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}


.blog-single-page .entry-footer .tags a:hover {
    transform:
        translateY(-2px);

    background:
        rgba(79,135,159,0.10);

    color:
        var(--single-primary);
}


/* =========================================================
   Author
   ========================================================= */

.blog-single-page .blog-author {
    position:
        relative;

    margin-top:
        40px;

    padding:
        22px;

    border:
        1px solid var(--single-border);

    border-radius:
        20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.76),
            rgba(239,246,249,0.62)
        );

    box-shadow:
        0 10px 30px rgba(42,67,82,0.06);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);
}


.blog-single-page .blog-author img {
    width:
        92px;

    height:
        92px;

    object-fit:
        cover;

    border:
        4px solid rgba(255,255,255,0.9);

    box-shadow:
        0 8px 22px rgba(40,60,72,0.10);
}


.blog-single-page .author-label {
    display:
        block;

    margin-bottom:
        4px;

    color:
        var(--single-muted);

    font-size:
        11px;

    font-weight:
        700;
}


.blog-single-page .blog-author h3 {
    margin:
        0 0 5px;

    color:
        var(--single-text);

    font-size:
        18px;

    font-weight:
        850;
}


.blog-single-page .blog-author .author-role {
    display:
        block;

    margin-bottom:
        9px;

    color:
        var(--single-primary);

    font-size:
        12px;

    font-weight:
        700;
}


.blog-single-page .blog-author p {
    margin:
        0;

    color:
        var(--single-text-soft);

    font-size:
        13px;

    line-height:
        2;
}


/* =========================================================
   Sidebar
   ========================================================= */

.blog-single-page .sidebar {
    position:
        sticky;

    top:
        25px;
}


.blog-single-page .sidebar-item {
    position:
        relative;

    padding:
        23px;

    margin-bottom:
        20px;

    border:
        1px solid var(--single-border);

    border-radius:
        20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.82),
            rgba(245,249,251,0.67)
        );

    box-shadow:
        var(--single-shadow);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.blog-single-page .sidebar-item:hover {
    transform:
        translateY(-3px);

    box-shadow:
        var(--single-shadow-hover);
}


.blog-single-page .sidebar-item h2 {
    position:
        relative;

    display:
        flex;

    align-items:
        center;

    margin:
        0 0 20px;

    padding-bottom:
        14px;

    color:
        var(--single-text);

    font-size:
        17px;

    font-weight:
        850;

    border-bottom:
        1px solid rgba(79,135,159,0.08);
}


.blog-single-page .sidebar-item h2::after {
    content:
        "";

    position:
        absolute;

    right:
        0;

    bottom:
        -1px;

    width:
        45px;

    height:
        3px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            var(--single-primary),
            #8bb4c3
        );
}


/* =========================================================
   Search
   ========================================================= */

.blog-single-page .sidebar-item .input-group {
    display:
        flex;

    gap:
        7px;
}


.blog-single-page .sidebar-item .form-control {
    min-height:
        48px;

    border:
        1px solid rgba(79,135,159,0.13);

    border-radius:
        12px !important;

    background:
        rgba(255,255,255,0.58);

    color:
        var(--single-text);

    box-shadow:
        none;
}


.blog-single-page .sidebar-item .form-control::placeholder {
    color:
        #91a0a8;

    opacity:
        1;
}


.blog-single-page .sidebar-item .form-control:focus {
    border-color:
        rgba(79,135,159,0.30);

    background:
        rgba(255,255,255,0.85);

    box-shadow:
        0 0 0 4px rgba(79,135,159,0.06);
}


.blog-single-page .sidebar-item .input-group .btn {
    flex:
        0 0 48px;

    width:
        48px;

    height:
        48px;

    padding:
        0;

    border:
        0;

    border-radius:
        12px !important;

    background:
        linear-gradient(
            135deg,
            #5d94ab,
            #41778f
        );

    box-shadow:
        0 7px 18px rgba(65,119,143,0.18);
}


.blog-single-page .sidebar-item .input-group .btn:hover {
    background:
        linear-gradient(
            135deg,
            #528aa2,
            #386f86
        );
}


/* =========================================================
   Sidebar Lists
   ========================================================= */

.blog-single-page .sidebar-item ul {
    margin:
        0;

    padding:
        0;

    list-style:
        none;
}


.blog-single-page .sidebar-item ul li {
    border-bottom:
        1px solid rgba(79,135,159,0.07);
}


.blog-single-page .sidebar-item ul li:last-child {
    border-bottom:
        0;
}


.blog-single-page .sidebar-item ul li a {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    padding:
        12px 2px;

    color:
        #4d5e68;

    font-size:
        13px;

    text-decoration:
        none;

    transition:
        color .2s ease,
        padding .2s ease;
}


.blog-single-page .sidebar-item ul li a:hover {
    padding-right:
        7px;

    color:
        var(--single-primary);
}


.blog-single-page .sidebar-item ul li a > span:last-child {
    min-width:
        31px;

    padding:
        3px 7px;

    border-radius:
        999px;

    background:
        rgba(79,135,159,0.08);

    color:
        var(--single-primary);

    text-align:
        center;

    font-size:
        10px;
}


/* =========================================================
   Recent Posts
   ========================================================= */

.blog-single-page .post-item {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        12px 0;

    border-bottom:
        1px solid rgba(79,135,159,0.07);
}


.blog-single-page .post-item:last-child {
    border-bottom:
        0;

    padding-bottom:
        0;
}


.blog-single-page .recent-post-link {
    display:
        block;

    flex:
        0 0 72px;

    width:
        72px;

    height:
        72px;

    overflow:
        hidden;

    border-radius:
        13px;

    text-decoration:
        none;
}


.blog-single-page .recent-post-link img {
    display:
        block;

    width:
        72px;

    height:
        72px;

    object-fit:
        cover;

    box-shadow:
        0 5px 15px rgba(38,58,70,0.09);

    transition:
        transform .3s ease;
}


.blog-single-page .recent-post-link:hover img {
    transform:
        scale(1.05);
}


.blog-single-page .recent-placeholder {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        72px;

    height:
        72px;

    border-radius:
        13px;

    background:
        rgba(79,135,159,0.07);

    color:
        #7c9aa8;
}


.blog-single-page .recent-content {
    min-width:
        0;

    flex:
        1;
}


.blog-single-page .post-item h3 {
    margin:
        0 0 5px;

    font-size:
        13px;

    font-weight:
        800;

    line-height:
        1.65;
}


.blog-single-page .post-item h3 a {
    display:
        block;

    color:
        #394d58;

    text-decoration:
        none;

    transition:
        color .2s ease;
}


.blog-single-page .post-item h3 a:hover {
    color:
        var(--single-primary);
}


.blog-single-page .post-item time {
    color:
        #9aa6ad;

    font-size:
        10px;
}


/* =========================================================
   Sidebar Tags
   ========================================================= */

.blog-single-page .sidebar-item .tags {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;
}


.blog-single-page .sidebar-item .tags a {
    display:
        inline-flex;

    align-items:
        center;

    padding:
        7px 11px;

    border:
        1px solid rgba(79,135,159,0.11);

    border-radius:
        999px;

    background:
        rgba(255,255,255,0.55);

    color:
        #5c707b;

    font-size:
        11px;

    text-decoration:
        none;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}


.blog-single-page .sidebar-item .tags a:hover {
    transform:
        translateY(-2px);

    background:
        rgba(79,135,159,0.09);

    color:
        var(--single-primary);
}


/* =========================================================
   Focus Accessibility
   ========================================================= */

.blog-single-page a:focus-visible,
.blog-single-page button:focus-visible,
.blog-single-page input:focus-visible {
    outline:
        3px solid rgba(79,135,159,0.28);

    outline-offset:
        3px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {

    .blog-single-page .blog-details {
        padding:
            18px;
    }

}


@media (max-width: 991.98px) {

    .blog-single-page .breadcrumbs {
        padding:
            90px 0
            40px;
    }

    .blog-single-page .blog-single {
        padding:
            40px 0
            65px;
    }

    .blog-single-page .sidebar {
        position:
            static;

        margin-top:
            10px;
    }

}


@media (max-width: 767.98px) {

    .blog-single-page .breadcrumbs {
        padding:
            78px 0
            32px;
    }

    .blog-single-page .single-page-title {
        font-size:
            28px;

        line-height:
            1.55;
    }

    .blog-single-page .blog-single {
        padding:
            30px 0
            50px;
    }

    .blog-single-page .blog-details {
        padding:
            13px;

        border-radius:
            18px;
    }

    .blog-single-page .post-cover,
    .blog-single-page .post-video video {
        border-radius:
            14px;
    }

    .blog-single-page .title {
        font-size:
            25px;
    }

    .blog-single-page .content {
        font-size:
            15px;

        line-height:
            2.1;
    }

    .blog-single-page .entry-excerpt {
        padding:
            18px;
    }

    .blog-single-page .blog-author {
        padding:
            18px;
    }

}


@media (max-width: 575.98px) {

    .blog-single-page .breadcrumbs ol {
        font-size:
            11px;
    }

    .blog-single-page .meta-top {
        gap:
            9px 13px;

        padding:
            11px;
    }

    .blog-single-page .meta-top span {
        font-size:
            11px;
    }

    .blog-single-page .title {
        font-size:
            22px;

        line-height:
            1.6;
    }

    .blog-single-page .entry-excerpt p {
        font-size:
            14px;
    }

    .blog-single-page .content h2,
    .blog-single-page .content h3,
    .blog-single-page .content h4 {
        font-size:
            17px;
    }

    .blog-single-page .blog-author img {
        width:
            76px;

        height:
            76px;
    }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-single-page *,
    .blog-single-page *::before,
    .blog-single-page *::after {
        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}









/* =========================================================
    صفحه ویدیو 
   VIDEO SINGLE PAGE
   Premium / SEO / Responsive
   ========================================================= */

.video-page {

    --video-primary: #4f879f;
    --video-primary-dark: #386d83;

    --video-text: #172b3a;
    --video-text-soft: #50616d;
    --video-muted: #81909a;

    --video-bg: #f4f8fa;

    --video-card:
        rgba(255, 255, 255, 0.82);

    --video-border:
        rgba(255, 255, 255, 0.9);

    --video-border-soft:
        rgba(91, 121, 137, 0.14);

    --video-radius: 24px;

    --video-shadow:
        0 18px 55px rgba(42, 67, 82, 0.09),
        0 4px 15px rgba(42, 67, 82, 0.035);

    --video-shadow-hover:
        0 25px 70px rgba(42, 67, 82, 0.13);

    position: relative;

    width: 100%;
    min-height: 100vh;

    padding:
        105px 20px
        80px;

    isolation: isolate;

    overflow: hidden;

    direction: rtl;

    color: var(--video-text);

    background:

        radial-gradient(
            circle at 8% 5%,
            rgba(111, 168, 190, 0.12),
            transparent 30%
        ),

        radial-gradient(
            circle at 92% 18%,
            rgba(130, 160, 175, 0.10),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #f8fbfc 0%,
            #f1f6f8 50%,
            #f8fafb 100%
        );
}


/* =========================================================
   Decorative Background
   ========================================================= */

.video-page::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: 40px;
    right: -200px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(79, 135, 159, 0.09),
            transparent 70%
        );

    pointer-events: none;

    z-index: -1;
}


.video-page::after {

    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    left: -180px;
    bottom: 100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(125, 158, 173, 0.08),
            transparent 70%
        );

    pointer-events: none;

    z-index: -1;
}


/* =========================================================
   Main Container
   ========================================================= */

.video-page .video-container {

    position: relative;

    width: min(1120px, 100%);

    margin: 0 auto;

    padding: 16px;

    border:
        1px solid
        var(--video-border);

    border-radius:
        var(--video-radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.88),
            rgba(247,251,252,0.72)
        );

    box-shadow:
        var(--video-shadow);

    backdrop-filter:
        blur(22px)
        saturate(120%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(120%);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


@media (min-width: 992px) {

    .video-page .video-container:hover {

        transform:
            translateY(-3px);

        box-shadow:
            var(--video-shadow-hover);
    }

}


/* =========================================================
   Breadcrumb
   ========================================================= */

.video-page .video-breadcrumb {

    padding:
        7px 8px
        14px;
}


.video-page .video-breadcrumb ol {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;

    color:
        var(--video-muted);

    font-size: 12px;

    line-height: 1.8;
}


.video-page .video-breadcrumb li {

    display: inline-flex;

    align-items: center;

    gap: 7px;
}


.video-page .video-breadcrumb li:not(:last-child)::after {

    content: "‹";

    color:
        #a5b2b9;

    font-size: 17px;

    line-height: 1;
}


.video-page .video-breadcrumb a {

    color:
        var(--video-primary);

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease;
}


.video-page .video-breadcrumb a:hover {

    color:
        var(--video-primary-dark);
}


/* =========================================================
   Video Content
   ========================================================= */

.video-page .video-content {

    position: relative;

    overflow: hidden;

    border-radius:
        calc(var(--video-radius) - 7px);

    background:
        rgba(255,255,255,0.45);
}


/* =========================================================
   Video Wrapper
   ========================================================= */

.video-page .video-wrapper {

    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #101416,
            #252c2f
        );
}


/* =========================================================
   Video Player
   ========================================================= */

.video-page .video-player {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background:
        #101010;

    outline: none;
}


/* =========================================================
   Video Bottom Overlay
   ========================================================= */

.video-page .video-wrapper::after {

    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 100px;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.30),
            transparent
        );

    z-index: 1;
}


/* =========================================================
   Video Info
   ========================================================= */

.video-page .video-info {

    padding:
        30px 34px
        32px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.84),
            rgba(247,250,251,.68)
        );
}


/* =========================================================
   Title
   ========================================================= */

.video-page .video-title {

    position: relative;

    margin:
        0 0 19px;

    padding-bottom:
        17px;

    color:
        var(--video-text);

    font-size:
        clamp(25px, 3vw, 40px);

    font-weight:
        900;

    line-height:
        1.55;

    letter-spacing:
        -.35px;

    overflow-wrap:
        anywhere;
}


.video-page .video-title::after {

    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 62px;
    height: 4px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--video-primary),
            #8eb5c5
        );
}


/* =========================================================
   Description
   ========================================================= */

.video-page .video-description {

    max-width:
        900px;

    margin:
        0 0 20px;

    color:
        var(--video-text-soft);

    font-size:
        clamp(14px, 1.35vw, 17px);

    line-height:
        2.2;

    overflow-wrap:
        anywhere;
}


/* =========================================================
   Meta
   ========================================================= */

.video-page .video-meta {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 9px 16px;

    margin-top:
        20px;

    padding:
        12px 15px;

    border:
        1px solid
        var(--video-border-soft);

    border-radius:
        14px;

    background:
        rgba(245,249,251,.68);

    color:
        var(--video-muted);

    font-size:
        12px;
}


.video-page .video-meta-item {

    display: inline-flex;

    align-items: center;

    gap: 6px;
}


.video-page .video-meta-item i {

    color:
        var(--video-primary);

    font-size:
        14px;
}


/* =========================================================
   Back Link
   ========================================================= */

.video-page .video-back {

    padding:
        20px 8px
        3px;
}


.video-page .video-back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        10px 15px;

    border:
        1px solid
        rgba(79,135,159,.12);

    border-radius:
        999px;

    background:
        rgba(79,135,159,.07);

    color:
        var(--video-primary);

    font-size:
        12px;

    font-weight:
        800;

    text-decoration:
        none;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}


.video-page .video-back-link:hover {

    transform:
        translateY(-2px);

    background:
        rgba(79,135,159,.12);

    color:
        var(--video-primary-dark);
}


/* =========================================================
   Native Video Controls
   ========================================================= */

.video-page video::-webkit-media-controls-panel {

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.78),
            rgba(0,0,0,.08)
        );
}


/* =========================================================
   Focus
   ========================================================= */

.video-page a:focus-visible,
.video-page video:focus-visible {

    outline:
        3px solid
        rgba(79,135,159,.32);

    outline-offset:
        3px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .video-page {

        padding:
            90px 18px
            60px;
    }


    .video-page .video-container {

        border-radius:
            20px;

        padding:
            13px;
    }


    .video-page .video-info {

        padding:
            26px 28px
            29px;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .video-page {

        padding:
            78px 12px
            45px;
    }


    .video-page .video-container {

        padding:
            9px;

        border-radius:
            17px;
    }


    .video-page .video-content {

        border-radius:
            12px;
    }


    .video-page .video-wrapper {

        aspect-ratio:
            16 / 10;
    }


    .video-page .video-info {

        padding:
            22px 19px
            24px;
    }


    .video-page .video-title {

        margin-bottom:
            14px;

        padding-bottom:
            13px;

        font-size:
            23px;

        line-height:
            1.7;
    }


    .video-page .video-title::after {

        width:
            46px;

        height:
            3px;
    }


    .video-page .video-description {

        font-size:
            14px;

        line-height:
            2.1;
    }


    .video-page .video-meta {

        gap:
            8px 12px;

        padding:
            10px 12px;
    }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 480px) {

    .video-page {

        padding:
            70px 7px
            35px;
    }


    .video-page .video-container {

        padding:
            7px;

        border-radius:
            14px;
    }


    .video-page .video-wrapper {

        aspect-ratio:
            4 / 3;
    }


    .video-page .video-info {

        padding:
            19px 15px
            21px;
    }


    .video-page .video-title {

        font-size:
            21px;

        line-height:
            1.75;
    }


    .video-page .video-description {

        font-size:
            13.5px;

        line-height:
            2;
    }


    .video-page .video-breadcrumb ol {

        font-size:
            11px;
    }

}


/* =========================================================
   Very Small Screens
   ========================================================= */

@media (max-width: 360px) {

    .video-page {

        padding-left:
            5px;

        padding-right:
            5px;
    }


    .video-page .video-info {

        padding:
            17px 13px
            20px;
    }


    .video-page .video-title {

        font-size:
            19px;
    }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .video-page *,
    .video-page *::before,
    .video-page *::after {

        scroll-behavior:
            auto !important;

        transition:
            none !important;

        animation:
            none !important;
    }

}


/* =========================================================
   Related Blog Posts
   VIDEO SINGLE PAGE
   ========================================================= */

.video-page .video-related-posts {

    margin-top: 34px;

    padding:
        30px 8px
        4px;

    border-top:
        1px solid
        rgba(91, 121, 137, 0.12);
}


/* =========================================================
   Related Header
   ========================================================= */

.video-page .video-related-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.video-page .video-related-heading {

    min-width: 0;
}


.video-page .video-related-eyebrow {

    display: block;

    margin-bottom: 6px;

    color:
        var(--video-primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .2px;
}


.video-page .video-related-title {

    position: relative;

    margin: 0;

    padding-right: 14px;

    color:
        var(--video-text);

    font-size:
        clamp(20px, 2vw, 27px);

    font-weight: 900;

    line-height: 1.65;
}


.video-page .video-related-title::before {

    content: "";

    position: absolute;

    top: 9px;

    right: 0;

    width: 4px;

    height: 26px;

    border-radius: 999px;

    background:
        linear-gradient(
            to bottom,
            var(--video-primary),
            #8eb5c5
        );
}


/* =========================================================
   All Posts Link
   ========================================================= */

.video-page .video-related-all {

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

    gap: 7px;

    padding:
        9px 13px;

    border:
        1px solid
        rgba(79,135,159,.13);

    border-radius: 999px;

    background:
        rgba(79,135,159,.055);

    color:
        var(--video-primary);

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}


.video-page .video-related-all:hover {

    transform:
        translateY(-2px);

    background:
        rgba(79,135,159,.11);

    color:
        var(--video-primary-dark);
}


/* =========================================================
   Grid
   ========================================================= */

.video-page .video-related-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   Card
   ========================================================= */

.video-page .video-related-card {

    min-width: 0;

    border:
        1px solid
        var(--video-border-soft);

    border-radius: 18px;

    overflow: hidden;

    background:
        rgba(255,255,255,.70);

    box-shadow:
        0 8px 28px
        rgba(42,67,82,.055);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.video-page .video-related-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(79,135,159,.20);

    box-shadow:
        0 18px 42px
        rgba(42,67,82,.11);
}


.video-page .video-related-card-link {

    display: block;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   Image
   ========================================================= */

.video-page .video-related-image {

    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 9;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #edf3f5,
            #dfe9ed
        );
}


.video-page .video-related-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}


.video-page .video-related-card:hover
.video-related-image img {

    transform:
        scale(1.045);
}


.video-page .video-related-image-placeholder {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    color:
        rgba(79,135,159,.65);

    font-size: 32px;

    background:
        linear-gradient(
            135deg,
            #eef5f7,
            #e3edf0
        );
}


/* =========================================================
   Card Body
   ========================================================= */

.video-page .video-related-body {

    display: flex;

    flex-direction: column;

    min-height: 190px;

    padding:
        16px 16px 15px;
}


.video-page .video-related-category {

    align-self: flex-start;

    display: inline-flex;

    max-width: 100%;

    margin-bottom: 8px;

    padding:
        4px 8px;

    border-radius: 999px;

    background:
        rgba(79,135,159,.075);

    color:
        var(--video-primary);

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.video-page .video-related-card-title {

    display: -webkit-box;

    margin: 0;

    color:
        var(--video-text);

    font-size:
        15px;

    font-weight: 900;

    line-height: 1.8;

    overflow: hidden;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;
}


.video-page .video-related-excerpt {

    display: -webkit-box;

    margin:
        8px 0 12px;

    color:
        var(--video-text-soft);

    font-size:
        11.5px;

    line-height: 1.9;

    overflow: hidden;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;
}


/* =========================================================
   Card Footer
   ========================================================= */

.video-page .video-related-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding-top: 11px;

    border-top:
        1px solid
        rgba(91,121,137,.10);

    color:
        var(--video-muted);

    font-size: 10px;
}


.video-page .video-related-read {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color:
        var(--video-primary);

    font-weight: 800;

    white-space: nowrap;

    transition:
        gap .2s ease;
}


.video-page .video-related-card:hover
.video-related-read {

    gap: 8px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .video-page .video-related-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .video-page .video-related-posts {

        margin-top: 28px;

        padding-top: 25px;

    }


    .video-page .video-related-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 13px;

        margin-bottom: 18px;

    }


    .video-page .video-related-all {

        font-size: 10px;

    }


    .video-page .video-related-grid {

        grid-template-columns:
            1fr;

        gap: 13px;

    }


    .video-page .video-related-card {

        border-radius: 15px;

    }


    .video-page .video-related-body {

        min-height: 0;

        padding:
            14px 14px 13px;

    }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 480px) {

    .video-page .video-related-title {

        font-size: 19px;

    }


    .video-page .video-related-title::before {

        top: 8px;

        height: 23px;

    }


    .video-page .video-related-card-title {

        font-size: 14px;

    }


    .video-page .video-related-excerpt {

        font-size: 11px;

    }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .video-page .video-related-card,
    .video-page .video-related-card img,
    .video-page .video-related-all,
    .video-page .video-related-read {

        transition: none !important;

    }

}

/* سکشن مطالب پیشنهادی به‌صورت یک کارت جدا */
.video-page .video-related-section {
    margin-top: 40px;                  /* فاصله واضح از ویدیو */
    padding: 22px 22px 24px;           /* فضای داخلی کارت */

    border-radius: 20px;               /* گوشه‌های گرد کارت */
    border: 1px solid var(--video-border-soft);

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92),
        rgba(247, 250, 251, 0.80)
    );

    box-shadow:
        0 14px 40px rgba(42, 67, 82, 0.10);  /* سایه نرم زیر کارت */
}

/* داخل کارت، کمی نظم بیشتر */
.video-page .video-related-section .video-related-container {
    padding: 4px 6px 0;
}


@media (max-width: 767.98px) {
    .video-page .video-related-section {
        margin-top: 30px;
        padding: 18px 16px 20px;
        border-radius: 16px;
        box-shadow:
            0 10px 30px rgba(42, 67, 82, 0.09);
    }
}
