/* =========================================================
   BLOG HOME PAGE - CUSTOM STYLES
   File: static/css/blog-home.css
========================================================= */

/* ------------------------------
   01. Variables
------------------------------ */
:root {
    --blog-main-color: #08354A;
    --blog-main-color-2: #0C4A66;
    --blog-text-color: #222222;
    --blog-muted-color: #6b7280;
    --blog-soft-text: #94a3b8;
    --blog-bg-light: #f7f8fc;
    --blog-border-color: #e7ecf3;
    --blog-white: #ffffff;
    --blog-radius: 16px;
    --blog-radius-lg: 22px;
    --blog-shadow-sm: 0 8px 20px rgba(8, 53, 74, 0.05);
    --blog-shadow-md: 0 12px 30px rgba(8, 53, 74, 0.08);
    --blog-shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.16);
    --blog-transition: all 0.3s ease;
}

/* ------------------------------
   02. Global Font Override
------------------------------ */
.blog-home-banner,
.blog-home-banner *,
.top-category-widget-area,
.top-category-widget-area *,
.post-content-area,
.post-content-area *,
.sidebar-widgets,
.sidebar-widgets *,
.widget-wrap,
.widget-wrap * {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* ------------------------------
   03. Banner
------------------------------ */
.blog-home-banner {
    background: url("../img/blog/blog-home-banner.jpg") center center / cover no-repeat !important;
    padding: 150px 0 110px !important;
    position: relative !important;
}

.blog-home-banner .overlay-bg {
    background: rgba(0, 0, 0, 0.52) !important;
}

.blog-header-content {
    text-align: center !important;
}

.blog-header-content h1 {
    max-width: 900px;
    margin: 0 auto 18px auto;
    font-weight: 900 !important;
    font-size: 44px !important;
    line-height: 1.9 !important;
    color: #fff !important;
}

.blog-header-content p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px !important;
    line-height: 2.1 !important;
    color: rgba(255, 255, 255, 0.94) !important;
}

/* ------------------------------
   04. Video Banner
------------------------------ */
.blog-home-banner.video-blog-banner {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08354A;
}

.blog-home-banner .blog-banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.blog-home-banner .blog-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.blog-home-banner .container {
    position: relative;
    z-index: 2;
}

.blog-home-banner .blog-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.blog-home-banner .hero-heading {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.blog-home-banner .hero-heading h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 18px;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.blog-home-banner .hero-heading p {
    font-size: 18px;
    font-weight: 400;
    line-height: 2;
    color: #ffffff;
    margin: 0 auto;
    text-align: center;
    max-width: 820px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

/* ------------------------------
   05. Category Cards
------------------------------ */
.custom-category-area {
    padding: 70px 0 80px;
    background: #f7f7fb;
    overflow-x: hidden;
}

.category-shell {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.category-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    text-decoration: none;
    box-shadow: var(--blog-shadow-lg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, filter 0.35s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.48) 55%,
        rgba(0, 0, 0, 0.68) 100%
    );
    transition: background 0.35s ease;
}

.category-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78%;
    min-height: 150px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-radius: 18px;
    background: rgba(25, 25, 25, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.category-content h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.6;
}

.category-content span {
    display: block;
    width: 62px;
    height: 3px;
    margin-bottom: 14px;
    background: #fff;
    border-radius: 20px;
}

.category-content p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.26);
    text-decoration: none;
}

.category-card:hover img {
    transform: scale(1.08);
    filter: contrast(1.08) saturate(1.08);
}

.category-card:hover .category-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.58) 55%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

.custom-category-area .single-cat-widget,
.custom-category-area .content,
.custom-category-area .thumb,
.custom-category-area .content-image,
.custom-category-area .content-details {
    all: unset;
}

/* ------------------------------
   06. Post Content Area
------------------------------ */
.post-content-area {
    background-color: var(--blog-bg-light) !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
    direction: rtl;
}

.post-content-area .posts-list {
    direction: rtl;
}

.post-content-area .single-post {
    direction: rtl !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 24px !important;
    margin-bottom: 48px !important;
    box-shadow: 0 14px 35px rgba(8, 53, 74, 0.07) !important;
    border: 1px solid rgba(8, 53, 74, 0.06) !important;
    overflow: hidden !important;
}

.post-content-area .single-post:hover {
    box-shadow: var(--blog-shadow-md) !important;
}

.post-content-area .single-post .feature-img {
    overflow: hidden !important;
    border-radius: 18px !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 28px !important;
}

.post-content-area .single-post .feature-img img {
    width: 100% !important;
    max-width: 520px !important;
    height: 420px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
    border-radius: 18px !important;
    margin: 0 auto !important;
}

.post-content-area .single-post:hover .feature-img img {
    transform: scale(1.02) !important;
}

.post-content-area .single-post .posts-title {
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
}

.post-content-area .single-post .posts-title h3 {
    margin: 24px 0 14px 0 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    color: var(--blog-text-color) !important;
    transition: var(--blog-transition) !important;
    text-align: center !important;
}

.posts-list .posts-title h3:hover {
    color: var(--blog-main-color) !important;
}

.post-content-area .single-post .excert {
    margin: 0 auto 24px auto !important;
    color: #4b5563 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 2.25 !important;
    text-align: justify !important;
    text-align-last: right !important;
    direction: rtl !important;
    max-width: 92% !important;
}

.post-readmore-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: 10px !important;
    padding-bottom: 6px !important;
}

.post-content-area .single-post .primary-btn {
    background: var(--blog-main-color) !important;
    color: #fff !important;
    border: 1px solid var(--blog-main-color) !important;
    border-radius: 999px !important;
    padding: 11px 28px !important;
    transition: var(--blog-transition) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 130px !important;
    height: 54px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.post-content-area .single-post .primary-btn:hover {
    background: #106035 !important;
    color: #ffffff !important;
    border-color: #106035 !important;
    transform: translateY(-2px) !important;
}

/* ------------------------------
   07. Meta Details
------------------------------ */
.post-content-area .single-post .meta-details {
    direction: rtl !important;
    text-align: center !important;
    padding: 0 0 0 20px !important;
    display: flex !important;
    align-items: stretch !important;
    margin-top: 0 !important;
}

.post-meta-card {
    width: 100% !important;
    height: 100% !important;
    background: #f8fafc !important;
    border: 1px solid rgba(8, 53, 74, 0.08) !important;
    border-radius: 18px !important;
    padding: 18px 16px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65) !important;
}

.post-meta-category {
    width: 100% !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(8, 53, 74, 0.08) !important;
    text-align: center !important;
}

.post-meta-category a,
.post-meta-category span:not(.post-meta-label) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #106035 !important;
    border: 1px solid #dbe7f1 !important;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
}

.post-meta-category a:hover {
    background: #08354A !important;
    border-color: #08354A !important;
    color: #ffffff !important;
}

.post-meta-label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 5px !important;
    color: #8b98aa !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    text-align: center !important;
}

.post-meta-list {
    width: 100% !important;
}

.post-meta-line {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(8, 53, 74, 0.07) !important;
    text-align: center !important;
}

.post-meta-line:last-child {
    border-bottom: none !important;
}

.post-meta-icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #08354A !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

.post-meta-content {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
}

.post-meta-content a,
.post-meta-content span:not(.post-meta-label) {
    display: block !important;
    width: 100% !important;
    color: #1f2937 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
    text-decoration: none !important;
    word-break: break-word !important;
    text-align: center !important;
}

.post-meta-content a:hover {
    color: #106035 !important;
}

.post-meta-tags {
    width: 100% !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(8, 53, 74, 0.08) !important;
    text-align: center !important;
}

.post-meta-tag-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 7px !important;
}

.post-meta-tag-list a,
.post-meta-tag-list .empty-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #106035 !important;
    border: 1px solid #dbe7f1 !important;
    border-radius: 999px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.post-meta-tag-list a:hover {
    background: #08354A !important;
    border-color: #08354A !important;
    color: #ffffff !important;
}

.post-meta-tag-list .empty-tag {
    color: #9ca3af !important;
}

.post-meta-icon i {
    font-family: "FontAwesome" !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* ------------------------------
   08. Pagination
------------------------------ */
.pagination-area {
    margin-top: 45px;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-area nav {
    width: 100%;
}

.pagination-area .pagination {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center !important;
}

.pagination-area .page-item {
    margin: 0 2px;
}

.pagination-area .page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(8, 53, 74, 0.16);
    color: #08354A;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.3s ease;
}

.pagination-area .page-link:hover {
    color: #ffffff;
    background: #08354A;
    border-color: #08354A;
}

.pagination-area .page-item.active .page-link {
    color: #ffffff;
    background: #08354A;
    border-color: #08354A;
}

.pagination-area .page-item.disabled .page-link {
    color: #999999;
    background: #f5f5f5;
    border-color: #eeeeee;
    cursor: not-allowed;
}

/* ------------------------------
   09. Sidebar Base
------------------------------ */
.blog-layout-row {
    display: flex;
    flex-wrap: wrap;
    direction: ltr;
}

.blog-layout-row > .posts-list {
    order: 2;
}

.blog-layout-row > .sidebar-widgets {
    order: 1;
}

.sidebar-widgets {
    padding-bottom: 120px !important;
}

.widget-wrap {
    background: #ffffff !important;
    padding: 20px 0 !important;
    border: 1px solid var(--blog-border-color) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(8, 53, 74, 0.05) !important;
}

.widget-wrap .single-sidebar-widget {
    margin: 30px 30px !important;
    padding-bottom: 30px !important;
    border-bottom: 1px solid #edf0f5 !important;
}

.widget-wrap .single-sidebar-widget:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* ------------------------------
   10. Search Widget
------------------------------ */
.widget-wrap .search-widget form.search-form input[type="text"] {
    color: #fff !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    border: none !important;
    float: left !important;
    width: 80% !important;
    border-bottom-left-radius: 24px !important;
    border-top-left-radius: 24px !important;
    background: var(--blog-main-color) !important;
}

.widget-wrap .search-widget form.search-form button {
    float: left !important;
    width: 20% !important;
    padding: 12px !important;
    background: var(--blog-main-color) !important;
    color: #fff !important;
    font-size: 17px !important;
    border: none !important;
    cursor: pointer !important;
    border-bottom-right-radius: 24px !important;
    border-top-right-radius: 24px !important;
}

.widget-wrap .search-widget form.search-form button:hover {
    background: var(--blog-main-color-2) !important;
}

.widget-wrap .search-widget ::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}
.widget-wrap .search-widget ::-moz-placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}
.widget-wrap .search-widget :-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}
.widget-wrap .search-widget :-moz-placeholder {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ------------------------------
   11. Widget Titles
------------------------------ */
.widget-wrap .popular-post-widget .popular-title,
.widget-wrap .post-category-widget .category-title,
.widget-wrap .newsletter-widget .newsletter-title,
.widget-wrap .tag-cloud-widget .tagcloud-title {
    background: var(--blog-main-color) !important;
    color: #fff !important;
    text-align: center !important;
    padding: 12px 0 !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}

/* ------------------------------
   12. Popular Posts
------------------------------ */
.widget-wrap .popular-post-widget .popular-post-list {
    margin-top: 30px !important;
}

.widget-wrap .popular-post-widget .single-post-list .details h6 {
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    transition: var(--blog-transition) !important;
    color: #222 !important;
    line-height: 1.8 !important;
}

.widget-wrap .popular-post-widget .single-post-list .details h6:hover {
    color: var(--blog-main-color) !important;
}

.widget-wrap .popular-post-widget .single-post-list .details p {
    margin-bottom: 0 !important;
    color: var(--blog-muted-color) !important;
}

/* ------------------------------
   13. Category Widget
------------------------------ */
.widget-wrap .post-category-widget .cat-list li {
    padding-top: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px dotted #e8ebf0 !important;
    transition: var(--blog-transition) !important;
}

.widget-wrap .post-category-widget .cat-list li p {
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    transition: var(--blog-transition) !important;
}

.widget-wrap .post-category-widget .cat-list li a {
    color: var(--blog-muted-color) !important;
}

.widget-wrap .post-category-widget .cat-list li:hover {
    border-color: var(--blog-main-color) !important;
}

.widget-wrap .post-category-widget .cat-list li:hover p {
    color: var(--blog-main-color) !important;
}

/* ------------------------------
   14. Newsletter
------------------------------ */
.widget-wrap .newsletter-widget p {
    text-align: center !important;
    margin: 20px 0 !important;
    color: #555 !important;
    line-height: 2 !important;
}

.widget-wrap .newsletter-widget .bbtns {
    background: var(--blog-main-color) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: var(--blog-transition) !important;
}

.widget-wrap .newsletter-widget .bbtns:hover {
    background: var(--blog-main-color-2) !important;
    color: #fff !important;
}

.widget-wrap .newsletter-widget .input-group-text {
    background: #fff !important;
    border-radius: 0 !important;
    vertical-align: top !important;
}

.widget-wrap .newsletter-widget .input-group-text i {
    color: #9aa4b2 !important;
    margin-top: -1px !important;
}

.widget-wrap .newsletter-widget .form-control {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    color: #555 !important;
    padding: 9px !important;
    padding-left: 0 !important;
}

.widget-wrap .newsletter-widget .form-control:focus {
    box-shadow: none !important;
    border-color: #ccd4df !important;
}

/* ------------------------------
   15. Tag Cloud
------------------------------ */
.widget-wrap .tag-cloud-widget ul li {
    display: inline-block !important;
    border: 1px solid #e7ebf1 !important;
    background: #fff !important;
    padding: 6px 14px !important;
    margin-bottom: 10px !important;
    margin-left: 6px !important;
    border-radius: 999px !important;
    transition: var(--blog-transition) !important;
}

.widget-wrap .tag-cloud-widget ul li:hover {
    background: var(--blog-main-color) !important;
    border-color: var(--blog-main-color) !important;
}

.widget-wrap .tag-cloud-widget ul li:hover a {
    color: #fff !important;
}

.widget-wrap .tag-cloud-widget ul li a {
    font-size: 12px !important;
    color: #222 !important;
    font-weight: 600 !important;
}

/* ------------------------------
   16. Remove Yellow Everywhere
------------------------------ */
a:hover,
a:focus {
    color: var(--blog-main-color) !important;
}

.text-yellow,
.yellow,
.bg-yellow {
    color: var(--blog-main-color) !important;
    background-color: var(--blog-main-color) !important;
}

[style*="#f8b600"],
[style*="rgb(248, 182, 0)"] {
    color: var(--blog-main-color) !important;
    border-color: var(--blog-main-color) !important;
}

/* ------------------------------
   17. Responsive
------------------------------ */
@media (max-width: 1400px) {
    .category-shell {
        width: 72%;
    }

    .category-grid {
        gap: 24px;
    }

    .category-content h4 {
        font-size: 23px;
    }
}

@media (max-width: 991px) {
    .blog-home-banner.video-blog-banner {
        min-height: 460px;
    }

    .blog-home-banner .hero-heading h1 {
        font-size: 34px;
        line-height: 1.6;
    }

    .blog-home-banner .hero-heading p {
        font-size: 16px;
        line-height: 2;
    }

    .category-shell {
        width: 86%;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .category-content {
        min-height: 135px;
        padding: 22px 16px;
    }

    .category-content h4 {
        font-size: 22px;
    }

    .post-content-area .single-post {
        padding: 20px !important;
    }

    .post-content-area .single-post .posts-title h3 {
        font-size: 24px !important;
    }

    .blog-layout-row {
        direction: rtl;
    }

    .blog-layout-row > .posts-list,
    .blog-layout-row > .sidebar-widgets {
        order: initial;
    }

    .post-content-area .single-post .meta-details {
        order: 2 !important;
        padding: 25px 0 0 0 !important;
        margin-bottom: 22px !important;
    }

    .post-content-area .single-post .post-main-content {
        order: 1 !important;
        padding: 0 !important;
    }

    .post-content-area .single-post .feature-img img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 420px !important;
    }

    .post-meta-card {
        height: auto !important;
    }
}

@media (max-width: 767px) {
    .blog-home-banner {
        padding: 120px 0 90px !important;
    }

    .custom-category-area {
        padding: 50px 0 60px;
    }

    .category-shell {
        width: 90%;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .category-card {
        border-radius: 18px;
    }

    .category-content {
        width: 80%;
        min-height: 125px;
    }

    .category-content h4 {
        font-size: 21px;
    }

    .category-content p {
        font-size: 14px;
    }

    .post-content-area .single-post .meta-details {
        margin-bottom: 18px !important;
    }

    .post-content-area .single-post .posts-title h3 {
        font-size: 22px !important;
        line-height: 1.8 !important;
    }

    .post-content-area .single-post .excert {
        max-width: 100% !important;
        font-size: 14px !important;
    }

    .post-meta-card {
        border-radius: 18px;
        padding: 14px;
    }

    .post-meta-line {
        gap: 8px !important;
    }

    .post-meta-icon {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
    }
}

@media (max-width: 575px) {
    .blog-home-banner.video-blog-banner {
        min-height: 420px;
    }

    .blog-home-banner .hero-heading h1 {
        font-size: 26px;
    }

    .blog-home-banner .hero-heading p {
        font-size: 14px;
    }

    .post-content-area .single-post {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .post-content-area .single-post .posts-title h3 {
        font-size: 21px !important;
    }

    .post-content-area .single-post .excert {
        font-size: 14px !important;
        line-height: 2.1 !important;
    }
}

@media (max-width: 480px) {
    .category-shell {
        width: 92%;
    }

    .category-content {
        width: 84%;
        padding: 20px 14px;
    }

    .category-content h4 {
        font-size: 20px;
    }
}
/* =========================================================
   FINAL FIXES - BLOG HOME ALIGNMENT / SIDEBAR TEXT / ICONS
   Add this block at the END of blog-home.css
========================================================= */


/* ---------------------------------------------------------
   01. Make post + meta + sidebar wrapper same width as
       the 9 category cards section
--------------------------------------------------------- */

/* عرض بخش پست‌ها و سایدبار دقیقاً مثل category-shell */
.post-content-area > .container {
    width: 66.666% !important;
    max-width: 1320px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* خود ردیف داخلی بدون فاصله اضافی */
.post-content-area .blog-layout-row {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    direction: ltr !important;
    align-items: flex-start !important;
}

/* فاصله کنترل‌شده بین سایدبار و بخش پست */
.post-content-area .blog-layout-row > .posts-list {
    order: 2 !important;
    padding-right: 0 !important;
    padding-left: 18px !important;
}

.post-content-area .blog-layout-row > .sidebar-widgets {
    order: 1 !important;
    padding-left: 0 !important;
    padding-right: 18px !important;
}

/* جلوگیری از بیرون‌زدگی کارت‌ها */
.post-content-area .posts-list,
.post-content-area .sidebar-widgets {
    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   02. Improve spacing and visual balance of post cards
--------------------------------------------------------- */

.post-content-area .single-post {
    margin-bottom: 46px !important;
    padding: 22px !important;
    border-radius: 22px !important;
}

/* ستون محتوای اصلی پست */
.post-content-area .single-post .post-main-content {
    direction: rtl !important;
    text-align: right !important;
    padding-right: 18px !important;
    padding-left: 0 !important;
}

/* تصویر پست */
.post-content-area .single-post .feature-img {
    margin-bottom: 24px !important;
}

.post-content-area .single-post .feature-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: 420px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
}

/* عنوان پست */
.post-content-area .single-post .posts-title {
    text-align: right !important;
}

.post-content-area .single-post .posts-title h3 {
    text-align: right !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    margin: 20px 0 14px 0 !important;
    color: #1f2937 !important;
}

/* متن خلاصه پست */
.post-content-area .single-post .excert {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    color: #374151 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 2.25 !important;
    text-align: justify !important;
    text-align-last: right !important;
    direction: rtl !important;
}

/* دکمه ادامه مطلب پایین سمت چپ بلوک متن */
.post-content-area .single-post .post-readmore-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding-bottom: 2px !important;
    direction: ltr !important;
}


/* ---------------------------------------------------------
   03. Meta details alignment refinement
--------------------------------------------------------- */

.post-content-area .single-post .meta-details {
    direction: rtl !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.post-content-area .single-post .post-meta-card {
    text-align: center !important;
}

.post-content-area .single-post .post-meta-label,
.post-content-area .single-post .post-meta-content,
.post-content-area .single-post .post-meta-content a,
.post-content-area .single-post .post-meta-content span,
.post-content-area .single-post .post-meta-category,
.post-content-area .single-post .post-meta-tags {
    text-align: center !important;
}


/* ---------------------------------------------------------
   04. Sidebar typography - make all sidebar text visually
       consistent with post content
--------------------------------------------------------- */

.sidebar-widgets,
.sidebar-widgets *,
.widget-wrap,
.widget-wrap * {
    direction: rtl !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

/* باکس کلی سایدبار */
.sidebar-widgets .widget-wrap {
    background: #ffffff !important;
    border: 1px solid #e7ecf3 !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 35px rgba(8, 53, 74, 0.06) !important;
    padding: 20px 0 !important;
}

/* ویجت‌ها */
.sidebar-widgets .single-sidebar-widget {
    margin: 30px 28px !important;
    padding-bottom: 30px !important;
    border-bottom: 1px solid #edf0f5 !important;
    text-align: right !important;
}

.sidebar-widgets .single-sidebar-widget:last-child {
    border-bottom: none !important;
}

/* عنوان‌های سایدبار */
.sidebar-widgets .popular-title,
.sidebar-widgets .category-title,
.sidebar-widgets .newsletter-title,
.sidebar-widgets .tagcloud-title {
    width: 100% !important;
    background: #08354A !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 24px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.9 !important;
    text-align: center !important;
}

/* متن‌های عمومی سایدبار */
.sidebar-widgets p,
.sidebar-widgets span,
.sidebar-widgets li,
.sidebar-widgets a,
.sidebar-widgets input,
.sidebar-widgets button {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 2 !important;
}

/* پاراگراف‌ها و توضیحات سایدبار */
.sidebar-widgets p {
    color: #4b5563 !important;
    text-align: right !important;
    margin-bottom: 8px !important;
}

/* لینک‌ها */
.sidebar-widgets a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.sidebar-widgets a:hover {
    color: #106035 !important;
}


/* ---------------------------------------------------------
   05. Popular posts sidebar fix
--------------------------------------------------------- */

.sidebar-widgets .popular-post-widget .popular-post-list {
    margin-top: 20px !important;
}

/* آیتم‌های پست محبوب */
.sidebar-widgets .popular-post-widget .single-post-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    direction: rtl !important;
    margin-bottom: 18px !important;
}

/* تصویر پست محبوب سمت راست */
.sidebar-widgets .popular-post-widget .single-post-list .thumb {
    width: 82px !important;
    min-width: 82px !important;
    margin-left: 12px !important;
    margin-right: 0 !important;
}

.sidebar-widgets .popular-post-widget .single-post-list .thumb img {
    width: 82px !important;
    height: 62px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
}

/* متن پست محبوب */
.sidebar-widgets .popular-post-widget .single-post-list .details {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: right !important;
}

.sidebar-widgets .popular-post-widget .single-post-list .details h6 {
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    margin: 0 0 4px 0 !important;
    text-align: right !important;
}

.sidebar-widgets .popular-post-widget .single-post-list .details p {
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    text-align: right !important;
}


/* ---------------------------------------------------------
   06. Sidebar category list text alignment
--------------------------------------------------------- */

.sidebar-widgets .post-category-widget .cat-list {
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-widgets .post-category-widget .cat-list li {
    list-style: none !important;
    padding: 12px 0 !important;
    border-bottom: 2px dotted #e5eaf1 !important;
}

.sidebar-widgets .post-category-widget .cat-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    direction: rtl !important;
    width: 100% !important;
}

.sidebar-widgets .post-category-widget .cat-list li p {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 2 !important;
    margin: 0 !important;
    text-align: right !important;
}

.sidebar-widgets .post-category-widget .cat-list li:hover p {
    color: #08354A !important;
}


/* ---------------------------------------------------------
   07. Newsletter text and input refinement
--------------------------------------------------------- */

.sidebar-widgets .newsletter-widget p {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 2.1 !important;
    text-align: justify !important;
    text-align-last: right !important;
}

.sidebar-widgets .newsletter-widget .form-group {
    direction: rtl !important;
    width: 100% !important;
}

.sidebar-widgets .newsletter-widget .input-group {
    direction: rtl !important;
}

.sidebar-widgets .newsletter-widget .form-control {
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

.sidebar-widgets .newsletter-widget .bbtns {
    background: #08354A !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}


/* ---------------------------------------------------------
   08. Tag cloud refinement
--------------------------------------------------------- */

.sidebar-widgets .tag-cloud-widget ul {
    padding: 0 !important;
    margin: 0 !important;
    text-align: right !important;
}

.sidebar-widgets .tag-cloud-widget ul li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    background: #ffffff !important;
    border: 1px solid #e5eaf1 !important;
    border-radius: 999px !important;
    padding: 6px 13px !important;
    margin: 0 0 10px 6px !important;
    transition: all 0.3s ease !important;
}

.sidebar-widgets .tag-cloud-widget ul li a {
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
}

.sidebar-widgets .tag-cloud-widget ul li:hover {
    background: #08354A !important;
    border-color: #08354A !important;
}

.sidebar-widgets .tag-cloud-widget ul li:hover a {
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   09. Search widget - fix broken icon and layout
--------------------------------------------------------- */

/* فرم جستجو به جای float با flex کنترل شود */
.sidebar-widgets .search-widget .search-form {
    width: 100% !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: stretch !important;
    justify-content: center !important;
    direction: rtl !important;
    background: #08354A !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    height: 46px !important;
}

/* input جستجو */
.sidebar-widgets .search-widget .search-form input[type="text"] {
    float: none !important;
    width: calc(100% - 56px) !important;
    height: 46px !important;
    background: #08354A !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 46px !important;
    text-align: right !important;
    direction: rtl !important;
}

/* placeholder جستجو */
.sidebar-widgets .search-widget .search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.88) !important;
    opacity: 1 !important;
}

/* دکمه آیکون جستجو */
.sidebar-widgets .search-widget .search-form button {
    float: none !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 46px !important;
    background: #052b59 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.sidebar-widgets .search-widget .search-form button:hover {
    background: #106035 !important;
}

/* اصلاح قطعی FontAwesome که به خاطر font-family کلی سایت مربع شده بود */
.fa,
.fa::before,
.fa::after,
i.fa,
i.fa::before,
.sidebar-widgets .fa,
.sidebar-widgets .fa::before,
.post-content-area .fa,
.post-content-area .fa::before {
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* آیکون جستجو */
.sidebar-widgets .search-widget .search-form button i,
.sidebar-widgets .search-widget .search-form button i::before {
    font-family: FontAwesome !important;
    font-size: 15px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* اگر تم اصلی pseudo-element دیگری روی دکمه گذاشته باشد حذف شود */
.sidebar-widgets .search-widget .search-form button::before,
.sidebar-widgets .search-widget .search-form button::after {
    display: none !important;
    content: none !important;
}


/* ---------------------------------------------------------
   10. Ads image refinement
--------------------------------------------------------- */

.sidebar-widgets .ads-widget img {
    width: 100% !important;
    border-radius: 14px !important;
    display: block !important;
}


/* ---------------------------------------------------------
   11. Responsive width sync with category section
--------------------------------------------------------- */

@media (max-width: 1400px) {
    .post-content-area > .container {
        width: 72% !important;
        max-width: 1320px !important;
    }
}

@media (max-width: 991px) {
    .post-content-area > .container {
        width: 86% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .post-content-area .blog-layout-row {
        direction: rtl !important;
    }

    .post-content-area .blog-layout-row > .posts-list,
    .post-content-area .blog-layout-row > .sidebar-widgets {
        order: initial !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .post-content-area .single-post .post-main-content {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .post-content-area .single-post .feature-img img {
        height: auto !important;
        max-height: 420px !important;
    }

    .sidebar-widgets {
        margin-top: 35px !important;
    }
}

@media (max-width: 767px) {
    .post-content-area > .container {
        width: 90% !important;
    }

    .post-content-area .single-post {
        padding: 18px !important;
    }

    .post-content-area .single-post .posts-title h3 {
        font-size: 22px !important;
    }

    .sidebar-widgets .single-sidebar-widget {
        margin-left: 22px !important;
        margin-right: 22px !important;
    }
}

@media (max-width: 480px) {
    .post-content-area > .container {
        width: 92% !important;
    }

    .sidebar-widgets .search-widget .search-form {
        height: 44px !important;
    }

    .sidebar-widgets .search-widget .search-form input[type="text"] {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 12px !important;
    }

    .sidebar-widgets .search-widget .search-form button {
        width: 50px !important;
        min-width: 50px !important;
        height: 44px !important;
    }
}
.search-highlight,
mark.search-highlight,
.post-title .search-highlight,
.post-excerpt .search-highlight,
.category-content .search-highlight,
.blog-post-title .search-highlight,
.single-blog .search-highlight {
    background: #FBD1A2 !important;
    background-color: #FBD1A2 !important;
    color: #082f49 !important;
    padding: 0 4px !important;
    border-radius: 5px !important;
    font-weight: 800 !important;
    box-shadow: inset 0 -2px 0 rgba(29, 78, 216, 0.55) !important;
}

mark {
    background: #FBD1A2 !important;
    background-color: #FBD1A2 !important;
    color: #082f49 !important;
}
.django-messages-wrapper {
    width: 100%;
    max-width: 1170px;
    margin: 24px auto;
    padding: 0 15px;
}

.django-message {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 12px;
    direction: rtl;
    text-align: right;
}

.django-message-success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.django-message-error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.django-message-warning {
    color: #664d03;
    background: #fff3cd;
    border: 1px solid #ffecb5;
}

.django-message-info {
    color: #055160;
    background: #cff4fc;
    border: 1px solid #b6effb;
}
/* =========================================================
   Universal Post Image Frame
   نمایش کامل تصویر بدون کراپ و بدون بهم‌ریختگی
========================================================= */

.post-image-frame,
.single-feature-slide {
    position: relative;
    overflow: hidden;
    background: #061b31;
}

/* بک‌گراند بلور شده از همان تصویر */
.post-image-bg,
.single-feature-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px);
    transform: scale(1.12);
    opacity: 0.55;
    z-index: 1;
}

/* یک لایه تیره برای خوانایی بهتر */
.post-image-frame::after,
.single-feature-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(2, 18, 34, 0.08) 0%,
            rgba(2, 18, 34, 0.18) 45%,
            rgba(2, 18, 34, 0.35) 100%
        );
    z-index: 2;
    pointer-events: none;
}

/* تصویر اصلی؛ کامل، بدون کشیدگی، بدون کراپ */
.post-image-main,
.single-feature-slide__main {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* حالت هوم */
.blog-home-image-frame,
.post-card-image-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
}

/* حالت سینگل */
.single-feature-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: auto !important;
    border-radius: 22px;
    overflow: hidden;
    background: #061b31;
    box-shadow: 0 18px 50px rgba(8, 26, 47, 0.16);
}

.single-feature-slider__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: auto !important;
}

.single-feature-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
}

.single-feature-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.single-feature-slide.is-static {
    position: relative;
    opacity: 1;
    visibility: visible;
    transition: none;
}

/* حذف اجبار ارتفاع قبلی */
.single-feature-slide img {
    min-height: unset !important;
}

/* اگر کپشن روی عکس داری */
.single-feature-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        linear-gradient(
            to top,
            rgba(3, 18, 34, 0.45) 0%,
            rgba(3, 18, 34, 0.12) 45%,
            rgba(3, 18, 34, 0.05) 100%
        );
    pointer-events: none;
}

.single-feature-slider__caption {
    position: absolute;
    top: 26px;
    right: 26px;
    left: 26px;
    z-index: 5;
    color: #ffffff;
    text-align: right;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .single-feature-slider {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 576px) {
    .single-feature-slider {
        aspect-ratio: 3 / 4;
        border-radius: 16px;
    }

    .blog-home-image-frame,
    .post-card-image-frame {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }
}
/* Override previous rigid heights on Home list covers */
.post-content-area .single-post .feature-img {
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
    border-radius: 12px;
}

.post-content-area .single-post .feature-img img {
    height: auto !important;
    max-height: none !important;
}

/*
|--------------------------------------------------------------------------
| Universal Post Thumbnail Container (No-Crop Dual-Layer Strategy)
|--------------------------------------------------------------------------
*/
.universal-post-thumb {
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #061b31;
    border-radius: 12px;
    display: block;
}

/* Background Blur Layer to Fill Empty Spaces */
.universal-post-thumb__bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: blur(25px);
    transform: scale(1.15);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

/* Foreground Main Image Layer (Fully Contained) */
.universal-post-thumb__main {
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}
.category-page-banner {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

.category-page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.category-page-banner .container,
.category-page-banner .hero-content,
.category-page-banner .banner-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .category-page-banner {
        min-height: 340px;
        background-position: center center !important;
    }
}

@media (max-width: 576px) {
    .category-page-banner {
        min-height: 260px;
        padding: 40px 20px;
        background-position: center center !important;
    }
}
.category-page-banner {
    position: relative !important;
    width: 100% !important;
    height: 85vh !important;
    min-height: 520px !important;
    max-height: 900px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #fff !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    padding: 120px 20px 80px !important;
}

.category-page-banner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.45) !important;
    z-index: 1 !important;
}

.category-page-banner .container,
.category-page-banner .hero-content,
.category-page-banner .banner-content,
.category-page-banner .banner-text {
    position: relative !important;
    z-index: 2 !important;
}

.category-page-banner h1,
.category-page-banner h2,
.category-page-banner p {
    position: relative !important;
    z-index: 2 !important;
    color: #1a1a2e !important;
}

@media (max-width: 992px) {
    .category-page-banner {
        height: 70vh !important;
        min-height: 420px !important;
        padding: 100px 16px 60px !important;
    }
}

@media (max-width: 576px) {
    .category-page-banner {
        height: 60vh !important;
        min-height: 320px !important;
        padding: 80px 14px 40px !important;
        background-position: center center !important;
    }
}
.category-page-banner {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #07162b;
}

.category-page-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.55;
    z-index: 0;
}

.category-page-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    z-index: 1;
}

.category-page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 22, 43, 0.35) 0%,
        rgba(7, 22, 43, 0.62) 100%
    );
    z-index: 2;
}

.category-page-banner .container {
    position: relative;
    z-index: 3;
}

.category-banner-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.category-banner-content h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
}

.category-banner-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .category-page-banner {
        min-height: 340px;
    }

    .category-banner-content h1 {
        font-size: 32px;
    }

    .category-banner-content p {
        font-size: 15px;
    }
}
.universal-post-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #07162b;
}

.universal-post-thumb__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px);
    transform: scale(1.12);
    opacity: 0.6;
    z-index: 1;
}

.universal-post-thumb__main {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center;
}
.hero-video {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* ------------------------------
   20. Search Highlight
------------------------------ */
.search-highlight {
    background: #fff3a3 !important;
    color: #111827 !important;
    padding: 0 4px !important;
    border-radius: 5px !important;
    font-weight: 800 !important;
    box-shadow: inset 0 -2px 0 rgba(255, 193, 7, 0.65) !important;
}

/* ------------------------------
   21. Newsletter Widget
------------------------------ */
.newsletter-form-wrap {
    margin-top: 20px;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    direction: rtl;
}

.newsletter-input-group {
    position: relative;
    flex: 1;
}

.newsletter-input-group .form-control {
    height: 50px;
    padding-right: 45px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    box-shadow: none;
}

.newsletter-input-group .form-control:focus {
    border-color: #0b2c53;
    box-shadow: none;
}

.newsletter-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    font-size: 15px;
    pointer-events: none;
}

.newsletter-submit-btn {
    border: none;
    background: #0b2c53;
    color: #fff;
    padding: 0 24px;
    height: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    background: #081f3b;
}

.newsletter-note {
    margin-top: 18px;
}

.newsletter-input-group input[type="email"] {
    direction: ltr;
    text-align: left;
    padding-left: 16px;
    padding-right: 45px;
}

@media (max-width: 767px) {
    .newsletter-input-row {
        flex-direction: column;
    }
    .newsletter-submit-btn {
        width: 100%;
    }
}

/* ------------------------------
   22. Site Messages
------------------------------ */
.site-message-section {
    padding: 18px 0 0;
    background: #fff;
}

.site-message {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.9;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-message-success {
    background: #eafaf1;
    color: #146c43;
    border-color: #badbcc;
}

.site-message-warning {
    background: #fff8e5;
    color: #8a5a00;
    border-color: #ffecb5;
}

.site-message-error,
.site-message-danger {
    background: #fdecec;
    color: #842029;
    border-color: #f5c2c7;
}

.site-message-info {
    background: #eaf6ff;
    color: #055160;
    border-color: #b6effb;
}

.site-message.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
}
