/* Local @font-face Fallbacks */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    --font-primary: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-latin: 'Inter', 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-arch: 40px; /* For the massive bottom border radius */
    
    /* NEWZIA Color Palette */
    --color-bg: #eaedf2;
    --color-bg-secondary: #e2e6ed;
    --color-bg-card: #ffffff;
    --color-card-bg: #ffffff;
    --color-text: #1c2033;
    --color-text-muted: #8e94a6;
    --color-accent-red: #ff3b30;
    --color-dark-blue: #1c2033; /* For active pills */
    --color-border: #dde1e7;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.5;
}

button, input, select, textarea, optgroup {
    font-family: inherit;
}

/* English / LTR mode */
html[lang="en"] body,
html[dir="ltr"] body,
.lang-en {
    font-family: var(--font-latin);
}

/* Mobile Default Wrappers & Header Elements */
.site-main-wrapper, .site-header .header-inner {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: var(--color-bg);
    box-sizing: border-box;
}

.mobile-bottom-nav {
    max-width: 440px;
    margin: 0 auto;
}

.site-header {
    background: var(--color-bg) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Header */
.newzia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: var(--color-bg) !important;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    z-index: 1000 !important;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

body.dark-mode .newzia-header {
    background: var(--color-bg) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    z-index: 1000 !important;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-brand-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    user-select: none;
    width: fit-content;
}

.site-title-line {
    display: block;
    width: 100%;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text, #1c2033);
    white-space: nowrap;
    transition: color 0.2s ease;
    text-align: justify;
    text-align-last: justify;
    box-sizing: border-box;
}

.site-title-line.site-title-en {
    font-family: var(--font-latin, 'Inter', sans-serif);
    font-size: 0.67rem;
    font-weight: 800;
    direction: ltr;
    unicode-bidi: isolate;
}

.site-title-line.site-title-ar {
    font-family: var(--font-primary, 'Vazirmatn', sans-serif);
    font-size: 0.72rem;
    font-weight: 850;
    direction: rtl;
}

.site-title-line.site-title-fa {
    font-family: var(--font-primary, 'Vazirmatn', sans-serif);
    font-size: 0.68rem;
    font-weight: 800;
    direction: rtl;
}

.site-brand-link:hover .site-title-line {
    color: var(--color-accent-red, #ff3b30);
}

@media (max-width: 1023px) {
    .newzia-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 1000;
        padding: 0.65rem 1rem !important;
        background: var(--color-bg) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        box-sizing: border-box !important;
    }
    body.dark-mode .newzia-header {
        background: var(--color-bg) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
    .header-main-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        direction: ltr !important;
    }
    .site-brand-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        order: 1 !important;
        direction: rtl !important;
    }
    .mobile-header-right {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-shrink: 0 !important;
        direction: ltr !important;
    }
    .site-custom-logo {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    .site-custom-logo img {
        max-height: 64px !important;
        width: auto !important;
        display: block !important;
    }
    .site-brand-titles {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 1.5px !important;
        width: fit-content !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    .site-title-line {
        font-size: 0.49rem !important;
        line-height: 1.22 !important;
        text-align: justify !important;
        text-align-last: justify !important;
        width: 100% !important;
    }
    .site-title-line.site-title-en {
        font-size: 0.49rem !important;
    }
    .site-title-line.site-title-ar {
        font-size: 0.53rem !important;
    }
    .site-title-line.site-title-fa {
        font-size: 0.50rem !important;
    }
    .site-logo-link {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }
}

.desktop-primary-nav {
    display: none;
}

.desktop-header-actions,
.header-other-sites {
    display: none;
}

.homepage-sidebar-col {
    display: none;
}

.single-sidebar-col {
    display: none;
}

.newzia-logo {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.newzia-logo .dot {
    color: var(--color-accent-red);
}

.site-custom-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto;
    padding: 0 !important;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.site-custom-logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

body.dark-mode .site-custom-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode .site-custom-logo img,
body.dark-mode img.custom-logo,
body.dark-mode .custom-logo {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
    opacity: 0.95;
}

.header-icon {
    color: var(--color-text);
    width: 24px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}
.header-icon .notification-dot {
    position: absolute;
    top: 0;
    right: 2px;
    width: 6px;
    height: 6px;
    background: var(--color-accent-red);
    border-radius: 50%;
}

/* Hero Showcase Section (Slider + Trending) */
.hero-showcase-section,
.hero-arch-section {
    padding: 0 0.5rem;
    margin-top: 0.85rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-showcase-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-slider-col {
    width: 100%;
}

.hero-trending-col {
    display: none;
}

.hero-arch-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    display: block;
    background: #182033;
    padding: 0;
    margin: 0;
}

.hero-arch-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    margin: 0;
}

/* Mobile: Single Active Slide visible at a time */
.hero-arch-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    z-index: 1;
    background: #182033;
}

.hero-arch-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-arch-slide .hero-arch-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: none;
    overflow: hidden;
}

.hero-arch-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-arch-slide .hero-arch-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    display: block;
    transition: transform 0.6s ease;
}

.hero-arch-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4.5rem 1.35rem 2.4rem;
    background: linear-gradient(to top, rgba(24, 32, 51, 0.96) 0%, rgba(24, 32, 51, 0.78) 50%, rgba(24, 32, 51, 0.15) 85%, transparent 100%);
    color: #ffffff;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.hero-arch-title {
    font-size: 1.32rem;
    font-weight: 850;
    line-height: 1.48;
    margin: 0;
    color: #ffffff;
    display: block;
    overflow: visible;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.2px;
}

.hero-arch-title a {
    color: #ffffff !important;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.hero-arch-title a:hover {
    color: #ff3b30 !important;
}

.hero-arch-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    margin: 6px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* Mobile Hero Progress Bar (فقط للهاتف وفي الأسفل) */
.hero-mobile-progress-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    bottom: 11px;
    left: 16px;
    right: 16px;
    z-index: 10;
    pointer-events: auto;
}

.hero-progress-seg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.hero-progress-fill {
    width: 0%;
    height: 100%;
    background: #ffffff;
    border-radius: 99px;
}

.hero-progress-seg.completed .hero-progress-fill {
    width: 100%;
}

@keyframes heroProgressAnim {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Category Pills */
/* Category Segmented Navigation Bar */
.categories-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    margin: 0 1rem 1.75rem 1rem;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: auto;
    box-sizing: border-box;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    flex-shrink: 0;
}

.nav-pill .pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-pill .pill-icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--color-text-muted);
    transition: stroke 0.2s ease;
}

.nav-pill:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}

.nav-pill:hover .pill-icon svg {
    stroke: var(--color-text);
}

.nav-pill.active {
    background: var(--color-accent-red) !important;
    color: #ffffff !important;
    border-color: var(--color-accent-red) !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
}

.nav-pill.active .pill-icon svg {
    stroke: #ffffff !important;
}

/* Stacked Cards */
.newzia-cards-list {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.newzia-card {
    display: flex;
    background: transparent;
    border-radius: 0;
    padding: 0.85rem 0;
    gap: 1rem;
    box-shadow: none;
    position: relative;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: opacity 0.2s ease;
}

.newzia-card:last-child {
    border-bottom: none;
}

.newzia-card:hover {
    opacity: 0.85;
}

.newzia-card-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-secondary, #f1f5f9);
}

.newzia-card-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.newzia-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.newzia-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.newzia-card-cat-tag {
    font-size: 0.78rem;
    font-weight: 750;
    color: #ff3b30;
}

.newzia-meta-divider {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.newzia-read-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.newzia-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.newzia-card-excerpt {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text-muted, #8e94a6);
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

body.dark-mode .newzia-card-excerpt,
html.dark-mode .newzia-card-excerpt {
    color: #94a3b8;
}

.newzia-card-footer {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.newzia-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--color-text-muted, #8e94a6);
    transition: color 0.2s ease;
}

.newzia-card-date svg {
    width: 13px;
    height: 13px;
    stroke: var(--color-text-muted, #8e94a6);
    transition: stroke 0.2s ease;
    opacity: 0.85;
    flex-shrink: 0;
}

.newzia-card:hover .newzia-card-date {
    color: var(--color-text);
}

.newzia-card:hover .newzia-card-date svg {
    stroke: #ff3b30;
    opacity: 1;
}

.newzia-card-bookmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-accent-red);
    background: rgba(255, 59, 48, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newzia-card-bookmark svg {
    width: 14px;
    height: 14px;
}

/* Mobile Bottom Navigation (Floating App Dock Style) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    padding: 8px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    transition: bottom 0.3s ease;
}

.mobile-bottom-nav.nav-hidden {
    bottom: -100px;
}

.bottom-nav-item {
    color: var(--color-text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s ease;
}
.bottom-nav-item:hover {
    color: var(--color-text);
}
.bottom-nav-item:hover svg {
    transform: translateY(-2px);
}
.bottom-nav-item.active {
    background: var(--color-accent-red);
    color: white;
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.35);
}
.bottom-nav-item.active svg {
    transform: scale(1.05);
}

/* ============================================
   SEARCH & CONTACT MODALS OVERLAYS
   ============================================ */

.search-modal-overlay,
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.search-modal-overlay.active,
.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content,
.contact-modal-content {
    width: 92%;
    max-width: 480px;
    margin: 1.5rem auto;
    background: var(--color-card-bg);
    border-radius: 28px;
    padding: 1.75rem 1.5rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.search-modal-overlay.active .search-modal-content,
.contact-modal-overlay.active .contact-modal-content {
    transform: translateY(0);
}

/* Modal Headers */
.search-modal-header,
.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

[dir="rtl"] .search-modal-header,
[dir="rtl"] .contact-modal-header {
    flex-direction: row;
}

[dir="ltr"] .search-modal-header,
[dir="ltr"] .contact-modal-header {
    flex-direction: row;
}

.search-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-modal-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-modal-icon-badge svg {
    width: 18px;
    height: 18px;
    display: block;
}

.search-modal-title,
.contact-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
}

.search-modal-close,
.contact-modal-close {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    background: var(--color-bg, #f1f5f9);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-modal-close svg,
.contact-modal-close svg {
    width: 18px;
    height: 18px;
}

.search-modal-close:hover,
.contact-modal-close:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Modern Universal Search Form & Bar */
.khro-search-form {
    width: 100%;
    margin: 0;
    position: relative;
    box-sizing: border-box;
}

.khro-search-input-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid rgba(0, 0, 0, 0.07);
    border-radius: 9999px;
    padding: 6px 14px 6px 6px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

[dir="rtl"] .khro-search-input-box {
    padding: 6px 14px 6px 6px;
}

[dir="ltr"] .khro-search-input-box {
    padding: 6px 6px 6px 14px;
}

.khro-search-input-box:focus-within {
    border-color: #ff3b30;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.12);
}

.khro-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.khro-search-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.khro-search-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.45rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-primary) !important;
    color: var(--color-text, #111827) !important;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.5;
    text-align: start;
}

.khro-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.khro-search-btn {
    background: #ff3b30 !important;
    color: #ffffff !important;
    border-radius: 9999px;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-primary) !important;
    cursor: pointer;
    border: none !important;
    outline: none !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.2);
}

.khro-search-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.khro-search-btn:hover {
    background: #e02d22 !important;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
    transform: translateY(-1px);
}

.khro-search-btn:active {
    transform: translateY(0);
}

/* ============================================
   SEARCH PAGE CONTAINER & ELEMENTS
   ============================================ */
.khro-search-page-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0 3rem;
    width: 100%;
    box-sizing: border-box;
}

.khro-search-page-bar {
    margin-bottom: 1rem;
}

/* Search Filters Section */
.khro-search-filters-section {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Horizontal Scrollable Filter Rows */
.khro-search-chips-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 2px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.khro-search-chips-row::-webkit-scrollbar {
    display: none;
}

/* Primary Category Filter Pill */
.khro-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text, #374151);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.khro-filter-pill .filter-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.khro-filter-pill .filter-pill-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.khro-filter-pill:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    transform: translateY(-1px);
}

.khro-filter-pill.active {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(255, 59, 48, 0.3);
    font-weight: 700;
}

.khro-filter-pill.active .filter-pill-icon svg {
    stroke: #ffffff;
}

/* Secondary Sort & Date Chips */
.khro-search-chips-row.secondary-chips {
    padding-top: 2px;
}

.khro-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: var(--color-bg-secondary, #f1f5f9);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.khro-filter-chip .chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.khro-filter-chip .chip-icon svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
}

.khro-filter-chip:hover {
    color: var(--color-text, #111827);
    background: var(--color-border, #e2e8f0);
    transform: translateY(-1px);
}

.khro-filter-chip.active {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
    font-weight: 700;
}

.khro-filter-chip.active .chip-icon svg {
    stroke: #ffffff;
}

.khro-filter-chip.reset-chip {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    margin-inline-start: auto;
}

.khro-filter-chip.reset-chip:hover {
    background: #ff3b30;
    color: #ffffff !important;
    border-color: #ff3b30;
}

.khro-filter-chip.reset-chip .chip-icon svg {
    stroke: currentColor;
}

/* Results Info Row */
.khro-search-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
    flex-wrap: wrap;
    gap: 0.5rem;
}

.khro-search-meta-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.khro-search-meta-label {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.khro-search-meta-query {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ff3b30;
    margin: 0;
}

.khro-search-meta-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-bg-secondary, #f1f5f9);
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
}

/* Empty State Card */
.khro-search-empty-state {
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    margin-top: 0.5rem;
}

.khro-search-empty-icon-box {
    margin: 0 auto 1.25rem;
    display: inline-flex;
}

.khro-search-empty-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.08) 0%, rgba(255, 59, 48, 0.16) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b30;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.12);
}

.khro-search-empty-icon-circle svg {
    width: 32px;
    height: 32px;
}

.khro-search-empty-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.6rem 0;
}

.khro-search-empty-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto 1.75rem;
}

.khro-search-suggestions {
    margin-bottom: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--color-border, rgba(0, 0, 0, 0.08));
}

.khro-search-suggestions-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.85rem;
    opacity: 0.85;
}

.khro-search-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.khro-search-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: var(--color-bg-secondary, #f1f5f9);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.khro-search-pill-item:hover {
    background: #ff3b30;
    color: #ffffff;
    border-color: #ff3b30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
}

.khro-search-pill-item .pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.khro-search-pill-item .pill-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.khro-search-action-btn-wrap {
    display: flex;
    justify-content: center;
}

.khro-search-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.4rem;
    background: var(--color-text, #111827);
    color: var(--color-bg, #ffffff) !important;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.khro-search-home-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.khro-search-home-btn svg {
    width: 17px;
    height: 17px;
}

/* Dark Mode Overrides for Search */
body.dark-mode .khro-search-input-box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .khro-search-input-box:focus-within {
    background: #0f172a;
    border-color: #ff3b30;
}

body.dark-mode .khro-search-empty-state {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .khro-search-pill-item {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

body.dark-mode .khro-search-pill-item:hover {
    background: #ff3b30;
    color: #ffffff;
    border-color: #ff3b30;
}

body.dark-mode .khro-search-home-btn {
    background: #f8fafc;
    color: #0f172a !important;
}

body.dark-mode .khro-filter-pill {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.dark-mode .khro-filter-pill.active {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
}

body.dark-mode .khro-filter-chip {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

body.dark-mode .khro-filter-chip:hover {
    background: #334155;
    color: #f1f5f9;
}

body.dark-mode .khro-filter-chip.active {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #f8fafc !important;
}

body.dark-mode .khro-filter-chip.active .chip-icon svg {
    stroke: #0f172a;
}

body.dark-mode .khro-filter-chip.reset-chip {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

body.dark-mode .khro-filter-chip.reset-chip:hover {
    background: #ff3b30;
    color: #ffffff !important;
}

/* ============================================
   UNIVERSAL MODERN PAGINATION
   ============================================ */
.pagination,
.navigation.pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 2rem 0 !important;
    width: 100% !important;
    padding: 0 !important;
}

.pagination .screen-reader-text,
.navigation.pagination .screen-reader-text {
    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;
    border: 0 !important;
}

.pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
}

.pagination a,
.pagination span,
.navigation.pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    font-family: var(--font-primary) !important;
    color: var(--color-text, #374151) !important;
    background: var(--color-bg-card, #ffffff) !important;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08)) !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.pagination a:hover,
.navigation.pagination a.page-numbers:hover {
    background: #ff3b30 !important;
    color: #ffffff !important;
    border-color: #ff3b30 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25) !important;
}

.pagination .current,
.navigation.pagination .page-numbers.current {
    background: #ff3b30 !important;
    color: #ffffff !important;
    border-color: #ff3b30 !important;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35) !important;
}

.pagination .dots,
.navigation.pagination .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--color-text-muted) !important;
}

.navigation.pagination .page-numbers svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

body.dark-mode .navigation.pagination .page-numbers {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .navigation.pagination .page-numbers.current {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
}

body.dark-mode .navigation.pagination a.page-numbers:hover {
    background: #ff3b30 !important;
    color: #ffffff !important;
    border-color: #ff3b30 !important;
}

/* ============================================
   IMAGE PERFORMANCE & PROGRESSIVE SKELETON SHIMMER
   ============================================ */
@keyframes khroImageShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.newzia-card-img,
.hero-arch-card,
.trending-item-image {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: khroImageShimmer 1.8s infinite linear;
    overflow: hidden;
}

body.dark-mode .newzia-card-img,
body.dark-mode .hero-arch-card,
body.dark-mode .trending-item-image {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

.newzia-card-img,
.hero-arch-card img,
.trending-item-image img {
    content-visibility: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 0.25s ease;
}

/* ============================================
   MODERN CONTACT PAGE & CHANNELS SYSTEM
   ============================================ */
.khro-contact-page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0 3.5rem;
    width: 100%;
    box-sizing: border-box;
}

.khro-contact-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.khro-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff3b30;
    margin-bottom: 0.85rem;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    animation: pulseDot 1.8s infinite;
}

.khro-contact-heading {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-text, #111827);
    line-height: 1.4;
    margin: 0 0 0.65rem;
}

.khro-contact-lead {
    font-size: 0.9rem;
    color: var(--color-text-muted, #64748b);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

.khro-contact-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-bg-secondary, #f1f5f9);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--color-text-muted, #475569);
    line-height: 1.4;
}

.khro-contact-secure-pill svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
    flex-shrink: 0;
    color: #10b981;
}

/* Contact Cards Grid */
.khro-contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.khro-channel-card {
    display: flex;
    align-items: center;
    padding: 0.95rem 1.15rem;
    background: var(--color-bg-card, #ffffff);
    border: 1.5px solid var(--color-border, rgba(0, 0, 0, 0.07));
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    gap: 12px;
}

.khro-channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.khro-channel-card.telegram:hover { border-color: #0088cc; }
.khro-channel-card.whatsapp:hover { border-color: #25d366; }
.khro-channel-card.email:hover { border-color: #ff3b30; }
.khro-channel-card.spokesperson:hover { border-color: #4f46e5; }

.khro-channel-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.khro-channel-icon-wrap svg {
    width: 21px;
    height: 21px;
}

.khro-channel-icon-wrap.telegram { background: rgba(0, 136, 204, 0.1); color: #0088cc; }
.khro-channel-card.telegram:hover .khro-channel-icon-wrap.telegram { background: #0088cc; color: #ffffff; }

.khro-channel-icon-wrap.whatsapp { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.khro-channel-card.whatsapp:hover .khro-channel-icon-wrap.whatsapp { background: #25d366; color: #ffffff; }

.khro-channel-icon-wrap.email { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }
.khro-channel-card.email:hover .khro-channel-icon-wrap.email { background: #ff3b30; color: #ffffff; }

.khro-channel-icon-wrap.spokesperson { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.khro-channel-card.spokesperson:hover .khro-channel-icon-wrap.spokesperson { background: #4f46e5; color: #ffffff; }

.khro-channel-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: start;
    justify-content: center;
}

[dir="rtl"] .khro-channel-body {
    text-align: right;
}

[dir="ltr"] .khro-channel-body {
    text-align: left;
}

.khro-channel-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
    margin-bottom: 2px;
    text-align: inherit;
}

.khro-channel-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.3;
    text-align: inherit;
    direction: ltr;
    unicode-bidi: isolate;
}

[dir="rtl"] .khro-channel-value {
    text-align: right;
}

[dir="ltr"] .khro-channel-value {
    text-align: left;
}

.khro-channel-action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg-secondary, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-muted, #94a3b8);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.khro-channel-action-arrow svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

[dir="rtl"] .khro-channel-action-arrow svg {
    transform: rotate(180deg);
}

.khro-channel-card:hover .khro-channel-action-arrow {
    background: #ff3b30;
    color: #ffffff;
    transform: scale(1.06);
}

body.dark-mode .khro-channel-action-arrow {
    background: #0f172a;
    color: #64748b;
}

body.dark-mode .khro-channel-card:hover .khro-channel-action-arrow {
    background: #ff3b30;
    color: #ffffff;
}

/* Contact Form Card */
.khro-contact-form-card {
    background: var(--color-bg-card, #ffffff);
    border: 1.5px solid var(--color-border, rgba(0, 0, 0, 0.07));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.khro-contact-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    text-align: start;
}

.form-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-icon-circle svg {
    width: 20px;
    height: 20px;
}

.khro-form-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text, #111827);
    margin: 0 0 2px 0;
}

.khro-form-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-muted, #64748b);
    margin: 0;
}

.khro-direct-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.khro-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

@media (max-width: 540px) {
    .khro-form-grid {
        grid-template-columns: 1fr;
    }
}

.khro-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: start;
}

.khro-field-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text, #374151);
}

.khro-input,
.khro-textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--color-bg-secondary, #f8fafc);
    border: 1.5px solid var(--color-border, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    font-family: var(--font-primary) !important;
    color: var(--color-text, #111827);
    outline: none;
    transition: all 0.2s ease;
}

.khro-input:focus,
.khro-textarea:focus {
    border-color: #ff3b30;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.1);
}

.khro-textarea {
    resize: vertical;
    min-height: 90px;
}

.khro-form-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: #ff3b30;
    color: #ffffff !important;
    border: none;
    outline: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    font-family: var(--font-primary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.25);
    margin-top: 0.35rem;
}

.khro-form-submit-btn:hover {
    background: #e02d22;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.35);
}

.khro-form-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Dark Mode Overrides for Contact Page */
body.dark-mode .khro-contact-secure-pill {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

body.dark-mode .khro-channel-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .khro-channel-card:hover {
    background: #243046;
}

body.dark-mode .khro-channel-value {
    color: #f8fafc;
}

body.dark-mode .khro-contact-form-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .khro-form-title {
    color: #f8fafc;
}

body.dark-mode .khro-field-label {
    color: #cbd5e1;
}

body.dark-mode .khro-input,
body.dark-mode .khro-textarea {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

body.dark-mode .khro-input:focus,
body.dark-mode .khro-textarea:focus {
    background: #0f172a;
    border-color: #ff3b30;
}

/* Hide WP Toolbar for cleaner look */
#wpadminbar {
    display: none !important;
}
html { margin-top: 0 !important; }

/* ============================================
   MOBILE MENU DRAWER & OVERLAY (PREMIUM STYLE)
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: var(--color-card-bg);
    box-shadow: var(--shadow-medium);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

/* Dynamic LTR / RTL Sliding & Positioning */
body.ltr .mobile-menu-drawer {
    left: 0;
    right: auto;
    transform: translateX(-100%);
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
body.ltr .mobile-menu-drawer.active {
    transform: translateX(0);
}

body.rtl .mobile-menu-drawer {
    right: 0;
    left: auto;
    transform: translateX(100%);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}
body.rtl .mobile-menu-drawer.active {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.drawer-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: var(--color-bg);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.drawer-close-btn:hover {
    color: var(--color-text);
    background: var(--color-border);
    transform: rotate(90deg);
}
.drawer-close-btn svg {
    width: 18px;
    height: 18px;
}

/* Drawer Body */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.drawer-body::-webkit-scrollbar {
    width: 4px;
}
.drawer-body::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

/* Drawer Sections */
.drawer-section {
    display: flex;
    flex-direction: column;
}
.drawer-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 6px;
}
.drawer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-accent-red);
}
body.rtl .drawer-section-title::after {
    left: auto;
    right: 0;
}

/* Language Cards layout */
.lang-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lang-card-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 2.5px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.lang-card-item:hover {
    border-color: var(--color-text-muted);
    background: rgba(28, 32, 51, 0.02);
}
.lang-card-item.active {
    border-color: var(--color-accent-red);
    background: rgba(255, 59, 48, 0.04);
}
.lang-flag-code {
    font-size: 0.85rem;
    font-weight: 900;
    background: var(--color-bg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--color-text);
    margin-inline-end: 12px;
    border: 1px solid var(--color-border);
}
.lang-card-item.active .lang-flag-code {
    background: var(--color-accent-red);
    color: white;
    border-color: var(--color-accent-red);
}
.lang-meta-info {
    display: flex;
    flex-direction: column;
}
.lang-native-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}
.lang-english-name {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.active-check-icon {
    position: absolute;
    inset-inline-end: 1.25rem;
    width: 18px;
    height: 18px;
    color: var(--color-accent-red);
}

/* Category List inside drawer */
.drawer-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.drawer-cat-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.25s ease;
    background: transparent;
}
.drawer-cat-link:hover {
    background: var(--color-bg);
    color: var(--color-accent-red);
}
.drawer-cat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(28, 32, 51, 0.04);
    color: var(--color-text);
    margin-inline-end: 12px;
    transition: all 0.25s ease;
}
.drawer-cat-icon-wrap svg {
    width: 16px;
    height: 16px;
}
.drawer-cat-link:hover .drawer-cat-icon-wrap {
    background: var(--color-accent-red);
    color: white;
    transform: scale(1.05);
}
.drawer-cat-name {
    font-size: 0.9rem;
    font-weight: 700;
    flex: 1;
}
.drawer-cat-count {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-bg);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.drawer-cat-link:hover .drawer-cat-count {
    background: white;
}

/* Drawer Quick Links Grid */
.drawer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.drawer-simple-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    padding: 4px 0;
    display: inline-block;
}
.drawer-simple-link:hover {
    color: var(--color-accent-red);
    transform: translateX(2px);
}
body.rtl .drawer-simple-link:hover {
    transform: translateX(-2px);
}

/* Drawer Other Sites List */
.drawer-sites-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.drawer-site-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card, #ffffff);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.90rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.drawer-site-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-site-left svg {
    width: 18px;
    height: 18px;
    color: var(--color-text);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.drawer-site-name {
    font-size: 0.90rem;
    font-weight: 700;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.drawer-site-link .platform-arrow-icon {
    width: 13px;
    height: 13px;
    opacity: 0.45;
    color: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.drawer-site-link:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.12);
}

.drawer-site-link:hover .drawer-site-name,
.drawer-site-link:hover .drawer-site-left svg,
.drawer-site-link:hover .platform-arrow-icon {
    color: #ff3b30;
    opacity: 1;
}

.drawer-site-link:hover .platform-arrow-icon {
    transform: translate(2px, -2px);
}

body.dark-mode .drawer-site-link {
    background: #161a29;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .drawer-site-link:hover {
    border-color: #ff5e62;
    color: #ff5e62;
    box-shadow: 0 4px 14px rgba(255, 94, 98, 0.15);
}

body.dark-mode .drawer-site-link:hover .drawer-site-name,
body.dark-mode .drawer-site-link:hover .drawer-site-left svg,
body.dark-mode .drawer-site-link:hover .platform-arrow-icon {
    color: #ff5e62;
}

/* Drawer Footer */
.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.drawer-social-icons {
    display: flex;
    gap: 1.25rem;
}
.drawer-social-icons a {
    color: var(--color-text-muted);
    transition: color 0.25s ease, transform 0.25s ease;
    width: 18px;
    height: 18px;
}
.drawer-social-icons a:hover {
    color: var(--color-accent-red);
    transform: scale(1.1);
}
.drawer-social-icons svg {
    width: 100%;
    height: 100%;
}
.drawer-copyright {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin: 0;
    text-align: center;
}

/* Hamburger transition & styling */
.header-icon {
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
}
.header-icon:hover {
    opacity: 0.85;
    transform: scale(1.08);
}
.header-icon:active {
    transform: scale(0.95);
}

/* ============================================
   DARK MODE OVERRIDES (PREMIUM STYLING)
   ============================================ */

html.dark-mode {
    background-color: #0f111a !important;
    color-scheme: dark;
}

html.dark-mode,
html.dark-mode body,
body.dark-mode {
    --color-bg: #0f111a;
    --color-bg-card: #161a29;
    --color-card-bg: #161a29;
    --color-bg-secondary: #1e2438;
    --color-text: #f1f3f9;
    --color-text-muted: #878e9f;
    --color-dark-blue: #ffffff;
    --color-border: #23283c;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .mobile-bottom-nav {
    background: rgba(22, 26, 41, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .bottom-nav-item:hover {
    color: white;
}

body.dark-mode .categories-nav {
    background: #161a29 !important;
    border-color: #23283c !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .nav-pill,
body.dark-mode .categories-nav .nav-pill {
    color: #94a3b8 !important;
    background: transparent !important;
    border-color: transparent !important;
}

body.dark-mode .nav-pill .pill-icon svg,
body.dark-mode .categories-nav .nav-pill .pill-icon svg {
    stroke: #94a3b8 !important;
}

body.dark-mode .nav-pill:hover,
body.dark-mode .categories-nav .nav-pill:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.dark-mode .nav-pill:hover .pill-icon svg,
body.dark-mode .categories-nav .nav-pill:hover .pill-icon svg {
    stroke: #ffffff !important;
}

body.dark-mode .nav-pill.active,
body.dark-mode .categories-nav .nav-pill.active {
    background: #ff3b30 !important;
    color: #ffffff !important;
    border-color: #ff3b30 !important;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.45) !important;
}

body.dark-mode .nav-pill.active .pill-icon svg,
body.dark-mode .categories-nav .nav-pill.active .pill-icon svg {
    stroke: #ffffff !important;
}

body.dark-mode .lang-card-item {
    border-color: var(--color-border);
}

body.dark-mode .lang-card-item:hover {
    border-color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.02);
}

body.dark-mode .lang-card-item.active {
    border-color: var(--color-accent-red);
    background: rgba(255, 59, 48, 0.08);
}

body.dark-mode .lang-flag-code {
    background: #0f111a;
    color: var(--color-text);
    border-color: var(--color-border);
}

body.dark-mode .lang-card-item.active .lang-flag-code {
    background: var(--color-accent-red);
    color: white;
}

body.dark-mode .drawer-cat-icon-wrap {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
}

body.dark-mode .drawer-cat-link:hover {
    background: #0f111a;
}

body.dark-mode .drawer-cat-count {
    background: #0f111a;
    border-color: var(--color-border);
}

body.dark-mode .drawer-cat-link:hover .drawer-cat-count {
    background: #161a29;
}

body.dark-mode .drawer-close-btn {
    background: #0f111a;
    color: var(--color-text-muted);
}

body.dark-mode .drawer-close-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

body.dark-mode .search-modal-close,
body.dark-mode .contact-modal-close {
    background: #0f111a;
    color: var(--color-text-muted);
}

body.dark-mode .search-modal-close:hover,
body.dark-mode .contact-modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

body.dark-mode .khro-search-input-box {
    background: #0f111a;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .khro-search-input-box:focus-within {
    border-color: var(--color-accent-red, #ff3b30);
    background: #0f111a;
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.18);
}

body.dark-mode .khro-search-input {
    color: #ffffff !important;
}

body.dark-mode .khro-search-input::placeholder {
    color: #8e94a6;
}

body.dark-mode .khro-search-icon {
    color: #8e94a6;
}

body.dark-mode .hero-arch-overlay {
    background: linear-gradient(to top, rgba(5, 7, 14, 0.98) 0%, rgba(5, 7, 14, 0.9) 45%, rgba(5, 7, 14, 0.6) 75%, transparent 100%);
}

body.dark-mode .newzia-card-bookmark {
    background: rgba(255, 59, 48, 0.15);
}

/* ============================================
   PREMIUM HAMBURGER MENU BUTTON
   ============================================ */

.menu-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6; /* Solid light grey background matching logo */
    border-radius: 12px;
    color: var(--color-text);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.menu-toggle-btn .line-middle {
    transition: all 0.25s ease;
}

.menu-toggle-btn:hover {
    background: rgba(28, 32, 51, 0.1);
    transform: scale(1.06);
    color: var(--color-accent-red);
}

.menu-toggle-btn:hover .line-middle {
    transform: scaleX(1.3);
}

.menu-toggle-btn:active {
    transform: scale(0.94);
}

/* Dark Mode adaptation */
body.dark-mode .menu-toggle-btn {
    background: #1c2033; /* Solid dark navy background matching logo */
}

body.dark-mode .menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================
   AJAX FILTERING & SKELETON LOADER
   ============================================ */

/* Fade animation for dynamic content */
.ajax-fade-in {
    animation: ajaxFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.newzia-cards-list > .ajax-fade-in {
    display: contents;
}

@keyframes ajaxFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for Skeletons */
.skeleton-pulse {
    background: linear-gradient(
        90deg,
        var(--color-border) 25%,
        var(--color-bg) 50%,
        var(--color-border) 75%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s infinite linear;
}

body.dark-mode .skeleton-pulse {
    background: linear-gradient(
        90deg,
        #23283c 25%,
        #1c2033 50%,
        #23283c 75%
    );
    background-size: 200% 100%;
}

@keyframes skeletonPulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Hero styling */
.skeleton-hero {
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-arch) var(--radius-arch);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-medium);
    background: var(--color-card-bg);
}

.skeleton-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Skeleton Card styling */
.skeleton-card {
    display: flex;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 1rem;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    pointer-events: none;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: var(--color-border);
}

body.dark-mode .skeleton-line {
    background: #23283c;
}

/* ============================================
   LOAD MORE BUTTON (PREMIUM STYLE)
   ============================================ */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 2.5rem;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.load-more-btn {
    background: var(--color-bg-card, #ffffff);
    color: var(--color-text, #1c2033);
    border: 1.5px solid var(--color-border, #dde1e7);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    padding: 0.95rem 2rem;
    min-height: 52px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
    user-select: none;
    position: relative;
}

.load-more-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent-red, #ff3b30);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.load-more-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.25);
}

.load-more-btn:hover .load-more-icon {
    color: #ffffff;
    transform: rotate(90deg);
}

.load-more-btn:active {
    transform: translateY(0) scale(0.98);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.load-more-btn.loading .load-more-icon {
    display: none;
}

/* Loading Spinner inside Load More button */
.load-more-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 59, 48, 0.2);
    border-top: 2.5px solid #ff3b30;
    border-radius: 50%;
    animation: loadMoreSpin 0.75s linear infinite;
    flex-shrink: 0;
}

.load-more-btn.loading .spinner {
    display: inline-block;
}

.load-more-btn:hover .spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
}

@keyframes loadMoreSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark mode adaptation */
body.dark-mode .load-more-btn {
    background: #141828;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.dark-mode .load-more-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.35);
}

body.dark-mode .load-more-icon {
    color: #ff5e62;
}

body.dark-mode .load-more-btn:hover .load-more-icon {
    color: #ffffff;
}

/* ============================================
   PREMIUM MODERN SITE FOOTER
   ============================================ */
.site-footer {
    width: 100%;
    background: transparent !important;
    margin: 1.5rem 0 0;
    padding: 0 0 2rem;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.footer-card {
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border, #eef0f3);
    border-radius: 24px;
    padding: 1.75rem 1.25rem 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03), 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.footer-top-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand-header {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.footer-logo-link:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-brand-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 600px;
}

.footer-brand-name {
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--color-text, #111827);
    margin: 0;
    letter-spacing: -0.01em;
}

.footer-brand-desc {
    font-size: 0.84rem;
    color: var(--color-text-muted, #64748b);
    margin: 0;
    line-height: 1.65;
}

/* Social Buttons Strip */
.footer-social-strip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.45rem;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    color: var(--color-text-muted, #64748b);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-btn svg {
    width: 19px;
    height: 19px;
    transition: transform 0.2s ease;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.footer-social-btn.facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social-btn.youtube:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.footer-social-btn.telegram:hover {
    background: #0088cc;
    color: #ffffff;
    border-color: #0088cc;
}

.footer-social-btn.twitter:hover {
    background: #0f1419;
    color: #ffffff;
    border-color: #0f1419;
}

.footer-social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    color: #ffffff;
    border-color: transparent;
}

/* Links & Back to top */
.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-nav-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-nav-pill {
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    color: var(--color-text, #334155);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-nav-pill:hover {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    transform: translateY(-1px);
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: transparent;
    border: 1px dashed var(--color-border, #cbd5e1);
    color: var(--color-text-muted, #64748b);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s ease;
}

.footer-back-to-top svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.footer-back-to-top:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    border-style: solid;
}

.footer-back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Bottom Divider & Copyright Bar */
.footer-bottom-bar {
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border, #eef0f3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright-text {
    font-size: 0.82rem;
    color: var(--color-text-muted, #94a3b8);
    font-weight: 600;
}

.footer-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-text-muted, #64748b);
    font-weight: 600;
    background: var(--color-bg-secondary, #f8fafc);
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid var(--color-border, #e2e8f0);
}

.secure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Mobile Responsive Optimization for Footer */
@media (max-width: 768px) {
    .footer-card {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 20px;
    }
    .footer-brand-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    .footer-logo-img {
        height: 52px;
    }
    .footer-brand-titles {
        align-items: center;
        text-align: center;
    }
    .footer-brand-name {
        font-size: 1.15rem;
        text-align: center;
    }
    .footer-brand-desc {
        font-size: 0.82rem;
        text-align: center;
        line-height: 1.65;
    }
    .footer-social-strip {
        justify-content: center;
    }
    .footer-links-column {
        align-items: center;
        gap: 1rem;
    }
    .footer-nav-pills {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        flex-wrap: wrap;
    }
    .footer-nav-pill {
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
        flex: 0 0 auto;
        text-align: center;
        white-space: nowrap;
        border-radius: 12px;
    }
    .footer-back-to-top {
        margin: 0 auto;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    .footer-copyright-text {
        text-align: center;
    }
}

/* Dark Mode Overrides for Footer */
body.dark-mode .site-footer {
    background: transparent;
}

body.dark-mode .footer-card {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

body.dark-mode .footer-logo-img,
body.dark-mode .footer-logo-link img {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
    opacity: 0.95;
}

body.dark-mode .footer-brand-name {
    color: #f1f5f9;
}

body.dark-mode .footer-brand-desc,
body.dark-mode .footer-copyright-text {
    color: #94a3b8;
}

body.dark-mode .footer-social-btn,
body.dark-mode .footer-nav-pill,
body.dark-mode .footer-secure-badge {
    background: #1c2033;
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.dark-mode .footer-nav-pill:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.4);
    color: #ff6b64;
}

body.dark-mode .footer-back-to-top {
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

body.dark-mode .footer-bottom-bar {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .footer-social-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .footer-social-btn.telegram:hover {
    background: #0088cc;
    color: #ffffff;
    border-color: #0088cc;
}

body.dark-mode .footer-social-btn.twitter:hover {
    background: #ffffff;
    color: #0f1419;
    border-color: #ffffff;
}

body.dark-mode .footer-nav-link {
    color: #a5adc3;
}

body.dark-mode .footer-nav-link:hover {
    color: #ff5e62;
}

body.dark-mode .footer-nav-dot {
    color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .footer-copyright-row {
    color: #6b7280;
}

body.dark-mode .contact-option-card {
    background: #1c2033;
    border-color: rgba(255, 255, 255, 0.06);
    color: #f3f4f6;
    box-shadow: none;
}
body.dark-mode .contact-option-card:hover {
    background: #23283c;
    border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .contact-option-card span:first-child {
    color: #9ca3af;
}
body.dark-mode .contact-option-card span:last-child {
    color: #ffffff;
}


/* ============================================
   SINGLE POST DETAIL PAGE (PREMIUM EDITORIAL)
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.single-main-layout {
    width: 100%;
    box-sizing: border-box;
}

.single-primary-col {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .single-primary-col {
        padding: 0 0.25rem;
    }
}

/* Unified Hero Card: Seamless Blended Layout */
.single-hero-card {
    position: relative;
    margin: 0.75rem 0 2rem;
    width: 100%;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #182033 !important;
    border: none;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: -webkit-radial-gradient(white, black);
}

/* Image Container - Positioned absolutely under the seamless gradient to completely eliminate any division or line */
.single-hero-card .single-hero-inner-img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 52%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    background: #182033;
    z-index: 1;
}

[dir="ltr"] .single-hero-card .single-hero-inner-img,
body.ltr .single-hero-card .single-hero-inner-img {
    left: auto;
    right: 0;
}

.single-hero-card .single-hero-inner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: none !important;
    transition: opacity 0.3s ease;
}

/* Seamless Gradient Blend from #182033 Solid into Transparent Image (Softened Shadow for clearer photo) */
.single-hero-card .single-hero-inner-img::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to left, #182033 0%, rgba(24, 32, 51, 0.85) 12%, rgba(24, 32, 51, 0.25) 45%, transparent 80%),
                linear-gradient(to top, rgba(24, 32, 51, 0.35) 0%, transparent 30%);
    z-index: 2;
}

[dir="ltr"] .single-hero-card .single-hero-inner-img::after,
body.ltr .single-hero-card .single-hero-inner-img::after {
    background: linear-gradient(to right, #182033 0%, rgba(24, 32, 51, 0.85) 12%, rgba(24, 32, 51, 0.25) 45%, transparent 80%),
                linear-gradient(to top, rgba(24, 32, 51, 0.35) 0%, transparent 30%);
}

.single-hero-card:hover .single-hero-inner-img img {
    transform: none !important;
    opacity: 0.96;
}

/* Content Box on top of the card */
.single-hero-card .single-hero-overlay {
    position: relative;
    z-index: 3;
    width: 58%;
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: transparent;
    color: #ffffff;
    box-sizing: border-box;
}

.single-hero-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* Embedded Breadcrumb Home Link */
.single-hero-crumb-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 750;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.single-hero-crumb-home svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.single-hero-crumb-home:hover {
    color: #ff5e62;
    transform: translateY(-1px);
}

.single-hero-crumb-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.15rem;
    line-height: 1;
    margin: 0 -2px;
    display: inline-block;
    user-select: none;
}

[dir="rtl"] .single-hero-crumb-arrow,
body.rtl .single-hero-crumb-arrow {
    transform: scaleX(-1);
}

.single-hero-cat-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.single-hero-cat-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.04);
}

.single-hero-title {
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.45;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Dark Mode */
body.dark-mode .single-hero-card {
    background: #182033 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    border: none;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 860px) {
    .single-hero-card {
        height: 420px;
        flex-direction: column;
        border-radius: 20px;
        margin: 0.5rem 0 1.5rem;
        border: none;
        display: block;
    }

    .single-hero-card .single-hero-inner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        flex-shrink: 0;
        margin-inline-end: 0;
    }

    .single-hero-card .single-hero-inner-img img {
        aspect-ratio: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .single-hero-card .single-hero-inner-img::after {
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(24, 32, 51, 0.88) 0%, rgba(24, 32, 51, 0.45) 30%, rgba(24, 32, 51, 0.12) 55%, transparent 80%);
    }

    [dir="ltr"] .single-hero-card .single-hero-inner-img::after,
    body.ltr .single-hero-card .single-hero-inner-img::after {
        background: linear-gradient(to top, rgba(24, 32, 51, 0.88) 0%, rgba(24, 32, 51, 0.45) 30%, rgba(24, 32, 51, 0.12) 55%, transparent 80%);
    }

    .single-hero-card .single-hero-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 2.5rem 1.5rem;
        gap: 12px;
        background: transparent;
        justify-content: flex-end;
        z-index: 10;
        color: #ffffff;
    }

    .single-hero-meta-row {
        gap: 6px;
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .single-hero-title {
        font-size: 1.25rem;
        line-height: 1.45;
        color: #ffffff;
    }
}


/* Author Info Bar */
.single-author-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.single-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.single-author-meta {
    display: flex;
    flex-direction: column;
}

.single-author-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text);
}

.single-author-handle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.single-author-follow-btn {
    background: var(--color-accent-red);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.single-author-follow-btn:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.single-author-follow-btn.followed {
    background: #10b981;
    color: #ffffff;
}

/* Post Content */
.single-post-content {
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text);
    word-wrap: break-word;
    box-sizing: border-box;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2,
.single-post-content h3 {
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--color-text);
}

.single-post-content h2 {
    font-size: 1.4rem;
}

.single-post-content h3 {
    font-size: 1.2rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
}

.single-post-content blockquote {
    border-inline-start: 4px solid var(--color-accent-red);
    margin: 1.5rem 0;
    padding-inline-start: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-inline-start: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

/* Post Tags */
.post-tags-wrap,
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-tag {
    background: var(--color-bg);
    color: var(--color-text-muted);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
}

.post-tag:hover {
    color: var(--color-accent-red);
    border-color: var(--color-accent-red);
    background: rgba(255, 59, 48, 0.04);
}


body.dark-mode .single-post-wrapper,
body.dark-mode .single-author-bar {
    background: transparent;
}

body.dark-mode .single-hero-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Author Action Buttons */
.single-author-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-author-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.single-author-share-btn:hover {
    background: var(--color-border);
    transform: scale(1.05);
    color: var(--color-accent-red);
}

.single-author-share-btn svg {
    width: 18px;
    height: 18px;
}

body.dark-mode .single-author-share-btn {
    background: #1c2033;
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .single-author-share-btn:hover {
    background: #23283c;
    color: var(--color-accent-red);
}

/* Share Modal Overlay & Mobile Bottom Sheet */
.khro-share-modal-overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center; /* Center horizontally and vertically */
    justify-content: center;
    opacity: 0;
    transition: opacity 0.28s ease;
    box-sizing: border-box;
    padding: 1.5rem; /* Padding to keep it off screen edges on mobile */
}

.khro-share-modal-overlay.active {
    opacity: 1;
}

.khro-share-box {
    width: 100%;
    max-width: 500px;
    background: var(--color-card-bg, #ffffff);
    border-radius: 28px; /* Full rounded corners */
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
    transform: scale(0.94) translateY(15px); /* Pop up from center */
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.khro-share-box.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Grab Handle on Mobile */
.khro-share-handle {
    display: none;
}

/* Modal Header: Title + Close Button */
.khro-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
    position: relative;
}

.khro-share-box-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--color-text, #1e293b);
    text-align: right;
    flex: 1;
}

[dir="ltr"] .khro-share-box-title {
    text-align: left;
}

.khro-share-close-btn {
    background: var(--color-bg, #f1f5f9);
    color: var(--color-text-muted, #64748b);
    border: 1px solid var(--color-border, #e2e8f0);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
}

.khro-share-close-btn:hover,
.khro-share-close-btn:active {
    color: var(--color-text, #0f172a);
    background: var(--color-border, #cbd5e1);
    transform: scale(1.06);
}

/* Platform Grid with Brand Colored Badges */
.khro-share-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.khro-share-platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text, #334155);
    font-size: 0.78rem;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 6px 0;
    border-radius: 12px;
}

.khro-share-platform-link:active {
    transform: scale(0.92);
}

.khro-share-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.khro-share-icon-wrap svg {
    width: 24px;
    height: 24px;
}

/* Distinct Vibrant Network Styling */
.khro-share-platform-link.whatsapp .khro-share-icon-wrap {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.khro-share-platform-link.telegram .khro-share-icon-wrap {
    background: linear-gradient(135deg, #2aabee, #0088cc);
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.35);
}

.khro-share-platform-link.twitter-x .khro-share-icon-wrap {
    background: linear-gradient(135deg, #1e293b, #090d16);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.khro-share-platform-link.linkedin .khro-share-icon-wrap {
    background: linear-gradient(135deg, #0a66c2, #004182);
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.35);
}

.khro-share-platform-link:hover .khro-share-icon-wrap {
    transform: translateY(-3px) scale(1.05);
}

/* Copy URL Container */
.khro-share-url-container {
    background: var(--color-bg, #f1f5f9);
    border: 1px solid var(--color-border, #cbd5e1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 5px 6px;
    gap: 8px;
    box-sizing: border-box;
}

.khro-share-url-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-muted, #64748b);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    outline: none;
    padding: 8px 10px;
    direction: ltr;
    text-align: left;
    min-width: 0;
}

#khro-copy-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.22s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

#khro-copy-btn:active {
    transform: scale(0.96);
}

#khro-copy-btn.copied {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

#khro-copy-btn svg {
    width: 15px;
    height: 15px;
}

/* Desktop Modal Enhancements */
@media (min-width: 768px) {
    .khro-share-modal-overlay {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .khro-share-box {
        border-radius: 28px;
        padding: 1.75rem 2rem 2.25rem;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
        transform: scale(0.94) translateY(15px);
        opacity: 0;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
    }

    .khro-share-box.active {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    .khro-share-handle {
        display: none;
    }
}

/* Dark Mode Share Sheet */
body.dark-mode .khro-share-modal-overlay {
    background: rgba(5, 7, 13, 0.78);
}

body.dark-mode .khro-share-box {
    background: #141829;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
}

body.dark-mode .khro-share-handle {
    background: #334155;
}

body.dark-mode .khro-share-box-title {
    color: #f8fafc;
}

body.dark-mode .khro-share-close-btn {
    background: #1e243b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.dark-mode .khro-share-close-btn:hover {
    background: #334155;
    color: #ffffff;
}

body.dark-mode .khro-share-platform-link {
    color: #cbd5e1;
}

body.dark-mode .khro-share-platform-link.twitter-x .khro-share-icon-wrap {
    background: linear-gradient(135deg, #2b354f, #161b2e);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.dark-mode .khro-share-url-container {
    background: #0f1220;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .khro-share-url-container input {
    color: #f1f5f9;
}

/* Unified Article Footer Bar (Tags + Share Integrated) */
.single-article-footer-bar,
.single-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 0;
    margin-top: 1.75rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.post-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

.single-share-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.single-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff3b30 0%, #e02d22 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 7px 18px 7px 10px;
    font-size: 0.90rem;
    font-weight: 800;
    font-family: var(--font-primary);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .single-share-btn,
body.rtl .single-share-btn {
    padding: 7px 10px 7px 18px;
}

.single-share-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}

.single-share-icon-wrap svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.3;
}

.single-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
    background: linear-gradient(135deg, #ff4d45 0%, #eb3429 100%);
}

.single-share-btn:hover .single-share-icon-wrap {
    transform: scale(1.1) rotate(-10deg);
    background: rgba(255, 255, 255, 0.3);
}

.single-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

body.dark-mode .single-article-footer-bar,
body.dark-mode .single-share-bar {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .post-tag {
    background: #161a29;
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

body.dark-mode .post-tag:hover {
    color: #ff5e62;
    border-color: #ff5e62;
    background: rgba(255, 94, 98, 0.08);
}

body.dark-mode .single-share-btn {
    background: linear-gradient(135deg, #ff3b30 0%, #ff5e62 100%);
    box-shadow: 0 4px 18px rgba(255, 94, 98, 0.25);
}

body.dark-mode .single-share-btn:hover {
    box-shadow: 0 8px 26px rgba(255, 94, 98, 0.42);
}

@media (max-width: 600px) {
    .single-article-footer-bar,
    .single-share-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0;
        margin-top: 1.5rem;
        margin-bottom: 1.75rem;
    }
    
    .single-article-footer-bar .post-tags-wrap,
    .single-share-bar .post-tags-wrap {
        width: 100%;
        flex: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .single-article-footer-bar .post-tag,
    .single-share-bar .post-tag {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .single-article-footer-bar .single-share-action,
    .single-share-bar .single-share-action {
        width: 100%;
        display: flex;
    }

    .single-article-footer-bar .single-share-btn,
    .single-share-bar .single-share-btn,
    body.rtl .single-article-footer-bar .single-share-btn,
    body.rtl .single-share-bar .single-share-btn {
        width: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 10px 16px;
        font-size: 0.92rem;
        box-sizing: border-box;
    }
}

/* ============================================
   CONTACT PAGE TEMPLATE STYLES
   ============================================ */
.contact-page-wrapper {
    max-width: 900px;
    margin: 2rem auto 8rem;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-page-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-options-grid.page-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.025);
    box-sizing: border-box;
}

body.dark-mode .contact-card-form {
    background: #1c2033;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: start;
}

.form-field-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
}

body.dark-mode .form-field-label {
    color: #9ca3af;
}

.form-field-input,
.form-field-textarea {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: #111827;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: all 0.25s ease;
}

body.dark-mode .form-field-input,
body.dark-mode .form-field-textarea {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.form-field-input:focus,
.form-field-textarea:focus {
    border-color: #ff3b30;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

body.dark-mode .form-field-input:focus,
body.dark-mode .form-field-textarea:focus {
    border-color: #ff5e62;
    background: #121524;
    box-shadow: 0 0 0 3px rgba(255, 94, 98, 0.15);
}

.contact-form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff3b30;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .contact-form-submit-btn {
    background: #ff5e62;
}

.contact-form-submit-btn:hover {
    background: #e02f25;
    transform: translateY(-1px);
}

body.dark-mode .contact-form-submit-btn:hover {
    background: #e04b50;
}

.contact-form-submit-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.contact-form-status-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.contact-form-status-msg.success {
    color: #22c55e;
}

.contact-form-status-msg.error {
    color: #ef4444;
}

.contact-form-status-msg.info {
    color: #3b82f6;
}

/* ========================================================
   HEADER & MOBILE PLATFORM ACTION BUTTONS (GLOBAL)
   ======================================================== */
.desktop-action-btn.header-platform-btn,
.mobile-platform-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0.52rem 1.15rem !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: var(--color-text, #1c2033) !important;
    font-weight: 750;
    font-size: 0.88rem;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    border: 1.5px solid rgba(255, 59, 48, 0.22) !important;
    box-shadow: 0 2px 10px rgba(255, 59, 48, 0.06);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.desktop-action-btn.header-platform-btn > *,
.mobile-platform-btn > * {
    position: relative;
    z-index: 2;
}

/* Rotating Glowing Red Laser Beam running around the border */
.desktop-action-btn.header-platform-btn::before,
.mobile-platform-btn::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: conic-gradient(
        transparent 0deg,
        transparent 260deg,
        rgba(255, 59, 48, 0.2) 290deg,
        rgba(255, 59, 48, 0.85) 340deg,
        #ff3b30 360deg
    );
    animation: rotateRedBorderBeam 3.5s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Solid Inner Background Card (White in light mode, Dark in dark mode) */
.desktop-action-btn.header-platform-btn::after,
.mobile-platform-btn::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 12px;
    background: var(--color-bg-card, #ffffff);
    z-index: 1;
    transition: background 0.25s ease;
    pointer-events: none;
}

html.dark-mode .desktop-action-btn.header-platform-btn,
body.dark-mode .desktop-action-btn.header-platform-btn,
html.dark-mode .mobile-platform-btn,
body.dark-mode .mobile-platform-btn {
    color: #f1f5f9 !important;
    border-color: rgba(255, 59, 48, 0.3) !important;
}

html.dark-mode .desktop-action-btn.header-platform-btn::after,
body.dark-mode .desktop-action-btn.header-platform-btn::after,
html.dark-mode .mobile-platform-btn::after,
body.dark-mode .mobile-platform-btn::after {
    background: var(--color-bg-card, #161a29);
}

.desktop-action-btn.header-platform-btn:hover,
.mobile-platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 59, 48, 0.25);
}

.desktop-action-btn.header-platform-btn:hover::before,
.mobile-platform-btn:hover::before {
    animation-duration: 1.8s;
}

@keyframes rotateRedBorderBeam {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Quick Platforms Bar */
.mobile-platforms-bar {
    display: block;
    padding: 0.5rem 1rem 0.25rem;
    width: 100%;
    box-sizing: border-box;
}

.mobile-platforms-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    align-items: center;
}

.mobile-platform-btn {
    padding: 0.48rem 0.45rem !important;
    font-size: 0.76rem !important;
    letter-spacing: -0.25px;
    gap: 5px !important;
    width: 100%;
}

.mobile-platform-btn .platform-arrow-icon {
    display: none !important;
}

.mobile-platform-btn .platform-text-rotator {
    max-width: calc(100% - 20px);
    width: 100%;
    text-align: center;
}

.mobile-platform-btn .rotator-text {
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
}

/* Platform Icon Badge */
.platform-btn-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff3b30;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.desktop-action-btn.header-platform-btn svg {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    stroke: currentColor;
    flex-shrink: 0;
}

.mobile-platform-btn svg,
.mobile-platform-btn .platform-btn-icon-wrap svg {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    stroke: currentColor;
    flex-shrink: 0;
}

.desktop-action-btn.header-platform-btn .platform-btn-icon-wrap svg,
.mobile-platform-btn .platform-btn-icon-wrap svg {
    stroke: #ff3b30;
}

/* Platform Dynamic Rotating Text Container */
.platform-text-rotator {
    display: inline-grid;
    height: 1.4em;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    align-items: center;
    text-align: right;
}

html[dir="ltr"] .platform-text-rotator,
html[lang="en"] .platform-text-rotator {
    text-align: left;
}

.rotator-text {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.4;
    will-change: transform, opacity;
}

/* 4-Item Carousel Keyframe Timing (Total: 14s cycle) */
.rotator-item-1 {
    animation: rotText1 14s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    color: var(--color-text, #1c2033);
    font-weight: 800;
}

html.dark-mode .rotator-item-1,
body.dark-mode .rotator-item-1 {
    color: #ffffff;
}

.rotator-item-2 {
    animation: rotText2 14s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    color: #ff3b30;
    font-weight: 850;
}

.rotator-item-3 {
    animation: rotText3 14s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    color: #e60023;
    font-weight: 850;
}

.rotator-item-4 {
    animation: rotText4 14s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    color: #ff5e3a;
    font-weight: 850;
}

/* Item 1: 0% - 20% */
@keyframes rotText1 {
    0%, 20% { opacity: 1; transform: translateY(0); visibility: visible; }
    25%, 95% { opacity: 0; transform: translateY(-120%); visibility: hidden; }
    100% { opacity: 1; transform: translateY(0); visibility: visible; }
}

/* Item 2: 25% - 45% */
@keyframes rotText2 {
    0%, 20% { opacity: 0; transform: translateY(120%); visibility: hidden; }
    25%, 45% { opacity: 1; transform: translateY(0); visibility: visible; }
    50%, 100% { opacity: 0; transform: translateY(-120%); visibility: hidden; }
}

/* Item 3: 50% - 70% */
@keyframes rotText3 {
    0%, 45% { opacity: 0; transform: translateY(120%); visibility: hidden; }
    50%, 70% { opacity: 1; transform: translateY(0); visibility: visible; }
    75%, 100% { opacity: 0; transform: translateY(-120%); visibility: hidden; }
}

/* Item 4: 75% - 95% */
@keyframes rotText4 {
    0%, 70% { opacity: 0; transform: translateY(120%); visibility: hidden; }
    75%, 95% { opacity: 1; transform: translateY(0); visibility: visible; }
    100% { opacity: 0; transform: translateY(-120%); visibility: hidden; }
}

.desktop-action-btn.header-platform-btn .platform-arrow-icon,
.mobile-platform-btn .platform-arrow-icon {
    width: 11px !important;
    height: 11px !important;
    opacity: 0.55;
    color: #ff3b30;
    stroke: #ff3b30;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.desktop-action-btn.header-platform-btn:hover .platform-arrow-icon,
.mobile-platform-btn:hover .platform-arrow-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

@media (max-width: 1023px) {
    .desktop-header-actions {
        display: none !important;
    }
}

/* ========================================================
   RESPONSIVE DESKTOP ARCHITECTURE (SCREEN WIDTH >= 1024px)
   ======================================================== */
@media (min-width: 1024px) {
    
    /* Expand Main Site Container */
    .site-main-wrapper {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    /* Hide Mobile Drawer, Bar and Bottom Navigation Dock */
    .menu-toggle-btn {
        display: none !important;
    }
    .mobile-bottom-nav {
        display: none !important;
    }
    .mobile-platforms-bar {
        display: none !important;
    }
    .mobile-menu-drawer,
    .mobile-menu-overlay {
        display: none !important;
    }

    /* Desktop Header */
    .newzia-header {
        padding: 1rem 0;
        border-bottom: none;
        background: var(--color-bg) !important;
        position: sticky;
        top: 0;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1000;
    }

    .header-main-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .header-brand-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .site-brand-link {
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        transition: transform 0.2s ease;
    }

    .site-brand-link:hover {
        transform: translateY(-1px);
    }

    .site-custom-logo {
        height: auto;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0;
        border: none !important;
        box-shadow: none !important;
    }

    .site-custom-logo img {
        max-height: 72px;
        width: auto;
    }

    .site-brand-titles {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        width: fit-content;
    }

    .site-title-line {
        font-size: 0.70rem;
        font-weight: 800;
        text-align: justify;
        text-align-last: justify;
        width: 100%;
    }

    .site-title-line.site-title-en {
        font-size: 0.69rem;
    }

    .site-title-line.site-title-ar {
        font-size: 0.74rem;
        font-weight: 850;
    }

    .site-title-line.site-title-fa {
        font-size: 0.70rem;
    }

    .site-brand-link:hover .site-title-line {
        color: #ff3b30;
    }

    /* Desktop Primary Navigation Links */
    .desktop-primary-nav {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex: 1;
        justify-content: center;
        flex-wrap: wrap;
    }

    .desktop-nav-link {
        padding: 0.55rem 1rem;
        font-size: 0.94rem;
        font-weight: 700;
        color: var(--color-text-muted);
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
    }

    .desktop-nav-link:hover {
        color: #ff3b30;
        background: rgba(255, 59, 48, 0.06);
    }

    .desktop-nav-link.active {
        color: #ff3b30;
        background: rgba(255, 59, 48, 0.1);
        font-weight: 800;
    }

    /* Desktop Header Action Controls */
    .desktop-header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .desktop-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0.55rem 1rem;
        border-radius: 12px;
        border: 1px solid var(--color-border);
        background: var(--color-bg-card);
        color: var(--color-text);
        font-weight: 700;
        font-size: 0.88rem;
        cursor: pointer;
        transition: all 0.2s ease;
        outline: none;
    }

    .desktop-action-btn:hover {
        border-color: #ff3b30;
        color: #ff3b30;
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(255, 59, 48, 0.15);
    }

    .desktop-action-btn svg {
        width: 17px;
        height: 17px;
    }

    .desktop-action-btn.theme-toggle-btn {
        padding: 0.55rem;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    .desktop-lang-switcher {
        display: inline-flex;
        align-items: center;
        background: var(--color-bg-secondary, #f1f5f9);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 3px;
        gap: 2px;
    }

    .desktop-lang-pill {
        padding: 5px 12px;
        font-size: 0.82rem;
        font-weight: 700;
        border-radius: 9px;
        text-decoration: none;
        color: var(--color-text-muted);
        transition: all 0.2s ease;
    }

    .desktop-lang-pill:hover {
        color: var(--color-text);
    }

    .desktop-lang-pill.active {
        background: var(--color-bg-card, #ffffff);
        color: var(--color-text, #111827);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    /* Homepage Hero Showcase Grid (Slider + Trending News Side-by-Side) */
    .hero-showcase-section,
    .hero-arch-section {
        padding: 0;
        margin-top: 1.5rem;
        margin-bottom: 2.25rem;
    }

    .hero-showcase-grid {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 1.5rem;
        align-items: stretch;
    }

    .hero-slider-col {
        min-width: 0;
        height: 400px;
    }

    .hero-mobile-progress-wrap {
        display: none !important;
    }

    .hero-arch-slider {
        aspect-ratio: auto !important;
        height: 400px !important;
        max-height: 400px !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        display: flex !important;
        overflow: visible !important;
    }

    .hero-arch-slides {
        display: flex !important;
        gap: 12px !important;
        height: 100% !important;
        position: relative !important;
    }

    .hero-arch-slide {
        position: relative !important;
        inset: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 100% !important;
        border-radius: 18px !important;
        background: transparent !important;
        cursor: pointer;
        transition: flex 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease !important;
        overflow: hidden !important;
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
    }

    body.dark-mode .hero-arch-slide,
    html.dark-mode .hero-arch-slide {
        background: transparent !important;
        box-shadow: none !important;
    }

    .hero-arch-slide:hover:not(.active) {
        transform: translateY(-3px);
        box-shadow: none !important;
    }

    .hero-arch-slide.active {
        flex: 0 0 400px !important;
        width: 400px !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 24px !important;
        cursor: default;
        z-index: 2 !important;
        box-shadow: none !important;
    }

    .hero-arch-slide .hero-arch-card {
        width: 100% !important;
        height: 100% !important;
        border-radius: inherit !important;
        overflow: hidden !important;
        background: transparent !important;
        border: none !important;
    }

    .hero-arch-slide .hero-arch-card-link {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        border-radius: inherit !important;
        overflow: hidden !important;
        background: transparent !important;
    }

    .hero-arch-slide:not(.active) .hero-arch-card-link::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(24, 38, 64, 0.45) 0%, rgba(24, 32, 51, 0.4) 40%, rgba(24, 32, 51, 0.85) 68%, rgba(24, 32, 51, 0.98) 90%, #182033 100%);
        pointer-events: none;
        z-index: 1;
        transition: opacity 0.3s ease;
    }

    .hero-arch-slide .hero-arch-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        border-radius: inherit !important;
        transition: transform 0.5s ease, filter 0.5s ease !important;
    }

    .hero-arch-slide:not(.active) .hero-arch-card img {
        filter: grayscale(85%) brightness(0.85) contrast(1.1);
    }

    .hero-arch-slide.active .hero-arch-card img {
        filter: grayscale(0%) brightness(1) contrast(1);
        transform: scale(1.02);
    }

    .hero-arch-slide:not(.active) .hero-arch-overlay {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(14px) !important;
    }

    .hero-arch-slide.active .hero-arch-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .hero-arch-card {
        height: 100% !important;
        border-radius: 0 !important;
    }

    .hero-arch-title {
        font-size: 1.25rem;
        line-height: 1.4;
        max-width: 100%;
        display: block;
        overflow: visible;
    }

    .hero-arch-excerpt {
        font-size: 0.88rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.92);
        margin: 6px 0 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Side News Box Beside Hero (Desktop) */
    .hero-trending-col {
        display: flex;
        flex-direction: column;
        height: 400px;
    }

    .hero-trending-card {
        background: var(--color-bg-card, #ffffff);
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 20px;
        padding: 0.85rem 1.1rem 0.75rem;
        height: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .hero-trending-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-border-light, #f0f1f3);
        margin-bottom: 0.2rem;
    }

    .hero-trending-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .hero-side-accent-bar {
        display: inline-block;
        width: 4px;
        height: 18px;
        border-radius: 99px;
        background: linear-gradient(135deg, #ff3b30, #ff6b4a);
    }

    .hero-trending-heading {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--color-text, #111827);
        margin: 0;
        letter-spacing: -0.01em;
    }

    .hero-trending-more-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--color-bg-secondary, #f1f5f9);
        color: var(--color-text-muted);
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .hero-trending-more-link svg {
        width: 15px;
        height: 15px;
        stroke-width: 2.5;
        transform: rotate(0deg);
        transition: transform 0.2s ease;
    }

    body.ltr .hero-trending-more-link svg,
    html[dir="ltr"] .hero-trending-more-link svg {
        transform: rotate(180deg);
    }

    .hero-trending-more-link:hover {
        background: #ff3b30;
        color: #ffffff;
        transform: scale(1.08);
    }

    .hero-trending-items {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        gap: 0;
        min-height: 0;
    }

    .hero-trending-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0.48rem 0.55rem;
        border-radius: 12px;
        border-bottom: 1px solid var(--color-border-light, #f0f1f3);
        text-decoration: none;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        box-sizing: border-box;
    }

    .hero-trending-item:last-child {
        border-bottom: none !important;
    }

    .hero-trending-item:hover {
        background: var(--color-bg-secondary, rgba(0, 0, 0, 0.035));
    }

    [dir="rtl"] .hero-trending-item:hover {
        transform: translateX(-4px);
    }

    [dir="ltr"] .hero-trending-item:hover {
        transform: translateX(4px);
    }

    .hero-trending-item:hover .hero-trending-post-title {
        color: #ff3b30;
    }

    .hero-trending-item:hover .hero-trending-img-wrap img {
        transform: scale(1.08);
    }

    .hero-trending-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .hero-trending-tag {
        font-size: 0.72rem;
        font-weight: 750;
        color: #ff3b30;
        background: rgba(255, 59, 48, 0.08);
        padding: 1px 7px;
        border-radius: 5px;
        display: inline-flex;
        align-items: center;
        line-height: 1.3;
        width: fit-content;
        margin-bottom: 2px;
        letter-spacing: 0.01em;
    }

    .hero-trending-post-title {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--color-text, #111827);
        line-height: 1.45;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.2s ease;
    }

    .hero-trending-time {
        font-size: 0.72rem;
        color: var(--color-text-muted);
        display: block;
        margin-top: 1px;
    }

    .hero-trending-img-wrap {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--color-bg-secondary, #f1f5f9);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    }

    .hero-trending-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    /* Category Nav Segmented Control on Desktop (Evenly Distributed & Full Width) */
    .categories-nav {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
        padding: 6px;
        margin: 0 0 2.25rem 0 !important;
        background: var(--color-bg-card, #ffffff);
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 18px;
        box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
        overflow: visible;
        width: 100% !important;
        box-sizing: border-box;
    }

    .categories-nav::-webkit-scrollbar {
        display: none;
    }

    .categories-nav .nav-pill {
        flex: 1;
        width: 100%;
        padding: 10px 8px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }

    /* Homepage Full-Width Layout */
    .homepage-main-layout {
        display: block;
        width: 100%;
    }

    .homepage-primary-col {
        width: 100%;
        min-width: 0;
    }

    .newzia-cards-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 1.5rem;
        padding: 0;
    }

    .load-more-container {
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 2rem 0 3.5rem;
    }

    .load-more-btn {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 18px;
    }

    .newzia-card {
        background: var(--color-bg-card, #ffffff);
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 20px;
        padding: 1.15rem 1.25rem;
        gap: 1.15rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: center;
        text-decoration: none;
    }

    .newzia-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
        border-color: #ff3b30;
    }

    .newzia-card:hover .newzia-card-title {
        color: #ff3b30;
    }

    .newzia-card-img-wrap {
        width: 92px;
        height: 92px;
        border-radius: 14px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--color-bg-secondary, #f1f5f9);
    }

    .newzia-card:hover .newzia-card-img-wrap .newzia-card-img {
        transform: scale(1.06);
    }

    .newzia-card-title {
        font-size: 1rem;
        font-weight: 750;
        line-height: 1.55;
        color: var(--color-text);
        transition: color 0.2s ease;
    }

    .newzia-card-excerpt {
        font-size: 0.85rem;
        line-height: 1.6;
        margin: 3px 0 0;
    }

    /* Single Post Desktop Layout */
    .single-main-layout {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 2.5rem;
        align-items: start;
        margin-top: 1.5rem;
    }

    .single-primary-col {
        min-width: 0;
        padding: 0 !important;
    }

    .single-sidebar-col {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        position: -webkit-sticky;
        position: sticky;
        top: 90px;
        align-self: start;
        height: fit-content;
        z-index: 50;
    }



    .single-post-content {
        padding: 0;
        font-size: 1.15rem;
        line-height: 1.95;
    }

    .single-related-section {
        margin-top: 3.5rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-border, #e5e7eb);
    }

    .single-related-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .single-related-accent-bar {
        display: inline-block;
        width: 4px;
        height: 22px;
        border-radius: 99px;
        background: linear-gradient(135deg, #ff3b30, #ff6b4a);
    }

    .single-related-title {
        font-size: 1.35rem;
        font-weight: 850;
        color: var(--color-text);
        margin: 0;
        letter-spacing: -0.01em;
    }

    .related-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Desktop Sidebar Widgets */
    .widget-box {
        background: var(--color-bg-card, #ffffff);
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    }

    .widget-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }

    .widget-title {
        font-size: 1.08rem;
        font-weight: 800;
        color: var(--color-text);
        margin: 0;
    }

    .widget-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--color-bg-secondary, #f1f5f9);
        color: var(--color-text-muted);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .widget-more-btn svg {
        width: 14px;
        height: 14px;
        stroke-width: 2.2;
        transform: rotate(0deg);
        transition: transform 0.2s ease;
    }

    body.ltr .widget-more-btn svg,
    html[dir="ltr"] .widget-more-btn svg {
        transform: rotate(180deg);
    }

    .widget-more-btn:hover {
        background: #ff3b30;
        color: #ffffff;
    }

    .trending-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--color-border-light, #f0f1f3);
        text-decoration: none;
        transition: transform 0.2s ease;
    }

    .trending-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    [dir="rtl"] .trending-item:hover {
        transform: translateX(-4px);
    }

    [dir="ltr"] .trending-item:hover {
        transform: translateX(4px);
    }

    .trending-item-image {
        width: 76px;
        height: 76px;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .trending-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .trending-item-content {
        flex: 1;
        min-width: 0;
    }

    .trending-item-tag {
        font-size: 0.8rem;
        font-weight: 800;
        color: #ff3b30;
        text-transform: uppercase;
        display: block;
        margin-bottom: 4px;
        letter-spacing: 0.02em;
    }

    .trending-item-title {
        font-size: 0.98rem;
        font-weight: 700;
        color: var(--color-text);
        line-height: 1.55;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .trending-section-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
        text-decoration: none;
        color: var(--color-text);
        transition: background 0.2s ease;
    }

    .trending-section-item:hover {
        background: var(--color-hover, #f3f4f6);
    }

    .trending-section-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .trending-section-name {
        font-size: 0.92rem;
        font-weight: 700;
    }

    .trending-section-chevron {
        width: 16px;
        height: 16px;
        color: var(--color-text-muted, #94a3b8);
        transition: transform 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
    }

    .trending-section-item:hover .trending-section-name,
    .trending-section-item:hover .trending-section-icon,
    .trending-section-item:hover .trending-section-chevron {
        color: #ff3b30;
    }

    [dir="rtl"] .trending-section-item:hover .trending-section-chevron {
        transform: translateX(-3px);
    }

    [dir="ltr"] .trending-section-chevron {
        transform: rotate(180deg);
    }

    [dir="ltr"] .trending-section-item:hover .trending-section-chevron {
        transform: rotate(180deg) translateX(-3px);
    }

    /* Contact Page Desktop Grid */
    .khro-contact-page-container {
        max-width: 100%;
        padding: 2.5rem 0 3.5rem;
        width: 100%;
    }

    .khro-contact-desktop-grid {
        display: grid;
        grid-template-columns: 1fr 1.25fr;
        gap: 2.5rem;
        align-items: start;
        width: 100%;
    }

    .khro-contact-cards-grid {
        margin-bottom: 0;
    }

    .site-footer {
        margin-top: 3.5rem;
        padding-bottom: 3.5rem;
        width: 100%;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .footer-card {
        padding: 2.25rem 2.5rem 1.75rem;
    }

    .footer-top-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2.5rem;
    }

    .footer-brand-column {
        gap: 1rem;
    }

    .footer-links-column {
        align-items: flex-end;
    }

    html[dir="rtl"] .footer-links-column,
    body.rtl .footer-links-column {
        align-items: flex-start;
    }

    .footer-nav-pills {
        justify-content: flex-end;
    }

    html[dir="rtl"] .footer-nav-pills,
    body.rtl .footer-nav-pills {
        justify-content: flex-start;
    }
}

/* ========================================================
   DARK MODE ADAPTATION FOR DESKTOP ELEMENTS
   ======================================================== */
body.dark-mode .site-custom-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode .site-custom-logo img,
body.dark-mode img.custom-logo,
body.dark-mode .custom-logo {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
    opacity: 0.95;
}

body.dark-mode .site-title-line,
body.dark-mode .desktop-site-title {
    color: #ffffff;
}

body.dark-mode .site-brand-link:hover .site-title-line {
    color: #ff5e62;
}

body.dark-mode .desktop-nav-link {
    color: #a5adc3;
}

body.dark-mode .desktop-nav-link:hover {
    color: #ff5e62;
    background: rgba(255, 94, 98, 0.1);
}

body.dark-mode .desktop-nav-link.active {
    color: #ff5e62;
    background: rgba(255, 94, 98, 0.15);
}

body.dark-mode .desktop-action-btn {
    background: #1c2033;
    border-color: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

body.dark-mode .desktop-action-btn:hover {
    border-color: #ff5e62;
    color: #ff5e62;
}

body.dark-mode .drawer-site-link {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .drawer-site-link.link-sv {
    --site-accent: #38bdf8;
    --site-accent-bg: rgba(56, 189, 248, 0.15);
}

body.dark-mode .drawer-site-link.link-pri {
    --site-accent: #a78bfa;
    --site-accent-bg: rgba(167, 139, 250, 0.15);
}

body.dark-mode .drawer-site-name {
    color: #f1f5f9;
}

body.dark-mode .drawer-site-link:hover {
    background: #1c223a;
    border-color: var(--site-accent);
}

body.dark-mode .desktop-lang-switcher {
    background: #151828;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .desktop-lang-pill {
    color: #8c96b0;
}

body.dark-mode .desktop-lang-pill:hover {
    color: #ffffff;
}

body.dark-mode .desktop-lang-pill.active {
    background: #23283c;
    color: #ffffff;
}

body.dark-mode .widget-box {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .widget-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .widget-title {
    color: #ffffff;
}

body.dark-mode .widget-more-btn {
    background: #1c2033;
    color: #8c96b0;
}

body.dark-mode .trending-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .trending-item-title {
    color: #ffffff;
}

body.dark-mode .trending-section-item {
    color: #f1f5f9 !important;
    border-bottom: none !important;
}

body.dark-mode .trending-section-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .trending-section-name {
    color: #f1f5f9 !important;
}

body.dark-mode .trending-section-icon {
    color: #94a3b8 !important;
}

body.dark-mode .trending-section-icon svg {
    stroke: #94a3b8 !important;
}

body.dark-mode .trending-section-chevron {
    color: #64748b !important;
}

body.dark-mode .trending-section-item:hover .trending-section-name {
    color: #ff5e62 !important;
}

body.dark-mode .trending-section-item:hover .trending-section-icon {
    color: #ff5e62 !important;
}

body.dark-mode .trending-section-item:hover .trending-section-icon svg {
    stroke: #ff5e62 !important;
}

body.dark-mode .trending-section-item:hover .trending-section-chevron {
    color: #ff5e62 !important;
}

@media (min-width: 1024px) {
    body.dark-mode .hero-trending-card {
        background: #121524;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    body.dark-mode .hero-trending-heading {
        color: #ffffff;
    }

    body.dark-mode .hero-trending-header {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .hero-trending-item {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .hero-trending-item:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .hero-trending-post-title {
        color: #f1f5f9;
    }

    body.dark-mode .hero-trending-item:hover .hero-trending-post-title {
        color: #ff5e62 !important;
    }

    body.dark-mode .hero-trending-more-link {
        background: #1c2033;
        color: #8c96b0;
    }

    body.dark-mode .hero-trending-tag {
        background: rgba(255, 59, 48, 0.16);
        color: #ff5e62;
    }

    body.dark-mode .hero-trending-img-wrap {
        background: #1c2033;
        border-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode .newzia-card {
        background: #121524;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    body.dark-mode .newzia-card:hover {
        border-color: #ff5e62;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    }

    body.dark-mode .newzia-card-title {
        color: #ffffff;
    }

    body.dark-mode .newzia-card:hover .newzia-card-title {
        color: #ff5e62 !important;
    }

    body.dark-mode .newzia-card-img-wrap {
        background: #1c2033;
    }

    body.dark-mode .newzia-card-date {
        color: #8c96b0;
    }

    body.dark-mode .newzia-card-date svg {
        stroke: #8c96b0;
    }

    body.dark-mode .newzia-card:hover .newzia-card-date {
        color: #cbd5e1;
    }

    body.dark-mode .newzia-card:hover .newzia-card-date svg {
        stroke: #ff5e62;
    }

    body.dark-mode .single-related-section {
        border-top-color: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .single-related-title {
        color: #ffffff;
    }
}

/* ============================================
   ABOUT US PAGE (درباره ما) STYLES
   ============================================ */

.khro-about-page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    width: 100%;
    box-sizing: border-box;
}

.khro-about-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.khro-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
    padding: 0.4rem 1.1rem;
    border-radius: 99px;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.khro-about-heading {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.khro-about-subheading {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 680px;
    line-height: 1.65;
    margin: 0;
}

/* Main Introduction Card */
.khro-about-intro-card {
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 24px;
    padding: 2rem 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.khro-about-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3b30, #ff6b4a);
}

.khro-intro-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.25rem;
}

.khro-intro-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.khro-intro-icon-wrap svg {
    width: 26px;
    height: 26px;
}

.khro-intro-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.khro-intro-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
}

.khro-intro-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.khro-pill-tag {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    background: var(--color-bg-secondary, #f1f5f9);
    color: var(--color-text-muted);
}

.khro-pill-tag.accent {
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
}

.khro-intro-paragraph {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0;
}

/* Sections Header */
.khro-about-section {
    margin-bottom: 3rem;
}

.khro-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.khro-section-accent-line {
    width: 4px;
    height: 24px;
    border-radius: 99px;
    background: #ff3b30;
    flex-shrink: 0;
    margin-top: 4px;
}

.khro-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.khro-section-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Activities Grid */
.khro-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.khro-activity-card {
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s ease;
}

.khro-activity-card:hover {
    transform: translateY(-3px);
    border-color: #ff3b30;
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.08);
}

.khro-activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--color-bg-secondary, #f8fafc);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.khro-activity-card:hover .khro-activity-icon {
    background: #ff3b30;
    color: #ffffff;
    transform: scale(1.05);
}

.khro-activity-icon svg {
    width: 24px;
    height: 24px;
}

.khro-activity-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.4rem;
    line-height: 1.4;
}

.khro-activity-text {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Dual Grid: Vision & Mission */
.khro-about-dual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.khro-about-feature-card {
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.khro-feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.khro-feature-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.khro-feature-icon-wrap.eye-icon {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.khro-feature-icon-wrap.target-icon {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.khro-feature-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.khro-feature-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
}

.khro-feature-paragraph {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0 0 1.25rem;
}

.khro-mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.khro-mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

.khro-mission-list .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.15);
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.khro-mission-list .check-icon svg {
    width: 12px;
    height: 12px;
}

/* Values Grid */
.khro-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.khro-value-card {
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.khro-value-card:hover {
    transform: translateY(-3px);
    border-color: #ff3b30;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.khro-value-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255, 59, 48, 0.18);
    line-height: 1;
    margin-bottom: 0.6rem;
    font-family: monospace, var(--font-primary);
}

.khro-value-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.khro-value-text {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* CTA Banner */
.khro-about-cta-banner {
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.khro-cta-heading {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.75rem;
}

.khro-cta-paragraph {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.khro-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff3b30;
    color: #ffffff !important;
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(255, 59, 48, 0.35);
}

.khro-cta-btn:hover {
    background: #e02d22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.45);
}

.khro-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* Dark Mode Overrides for About Page */
body.dark-mode .khro-about-badge {
    background: rgba(255, 59, 48, 0.15);
    color: #ff5e62;
}

body.dark-mode .khro-about-intro-card,
body.dark-mode .khro-activity-card,
body.dark-mode .khro-about-feature-card,
body.dark-mode .khro-value-card {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .khro-about-intro-card:hover,
body.dark-mode .khro-activity-card:hover,
body.dark-mode .khro-value-card:hover {
    border-color: #ff3b30;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .khro-activity-icon {
    background: #1c2033;
}

body.dark-mode .khro-pill-tag {
    background: #1c2033;
    color: #94a3b8;
}

body.dark-mode .khro-pill-tag.accent {
    background: rgba(255, 59, 48, 0.15);
    color: #ff5e62;
}

body.dark-mode .khro-about-cta-banner {
    background: #121524;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   DESKTOP SEARCH MODAL & RESULTS PAGE STYLES
   ============================================ */

/* Desktop Search Modal Floating Dialog */
@media (min-width: 768px) {
    .search-modal-overlay {
        top: 0;
        left: 0;
        transform: none;
        max-width: 100vw;
        width: 100vw;
        height: 100vh;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 9999999;
    }

    .search-modal-content {
        max-width: 580px;
        width: 90%;
        border-radius: 28px;
        padding: 2.25rem;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transform: scale(0.95);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .search-modal-overlay.active .search-modal-content {
        transform: scale(1);
    }

    .search-modal-content .modal-drag-indicator {
        display: none;
    }

    .search-modal-header {
        margin-bottom: 1.5rem;
    }

    .search-modal-title-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .search-modal-icon-badge {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: rgba(255, 59, 48, 0.1);
        color: #ff3b30;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-modal-icon-badge svg {
        width: 20px;
        height: 20px;
    }

    .search-modal-title {
        font-size: 1.3rem;
        font-weight: 800;
    }

    .khro-search-input-box {
        padding: 6px 16px 6px 8px;
        border-radius: 9999px;
        border-width: 2px;
        gap: 8px;
    }

    [dir="rtl"] .khro-search-input-box {
        padding: 6px 16px 6px 8px;
    }

    [dir="ltr"] .khro-search-input-box {
        padding: 6px 8px 6px 16px;
    }

    .khro-search-input {
        font-size: 1.05rem;
        font-weight: 600;
        text-align: right;
    }

    [dir="ltr"] .khro-search-input {
        text-align: left;
    }

    .khro-search-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem;
        font-weight: 800;
        border-radius: 9999px;
        gap: 6px;
    }

    .khro-search-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Quick Topic Chips in Search Modal */
.search-modal-quick-topics {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border-light, #f0f1f3);
}

.search-quick-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.75rem;
}

.search-quick-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-quick-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 99px;
    background: var(--color-bg-secondary, #f1f5f9);
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-quick-chip:hover {
    background: #ff3b30;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
}

/* Search Results Page Desktop Container & Stream */
@media (min-width: 1024px) {
    .khro-search-page-wrapper {
        max-width: 100%;
        margin: 0 auto;
        padding: 2.5rem 0 4rem;
        width: 100%;
    }

    .khro-search-page-bar {
        width: 100%;
        max-width: 100%;
        margin: 0 0 2rem;
    }

    .khro-search-page-bar .khro-search-input-box {
        height: 60px;
        background: var(--color-bg-card, #ffffff);
        border: 2px solid var(--color-border, #e5e7eb);
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        padding: 6px 8px 6px 20px;
        box-sizing: border-box;
    }

    [dir="rtl"] .khro-search-page-bar .khro-search-input-box {
        padding: 6px 20px 6px 8px;
    }

    .khro-search-page-bar .khro-search-input-box:focus-within {
        border-color: #ff3b30;
        box-shadow: 0 6px 24px rgba(255, 59, 48, 0.14);
    }

    .khro-search-page-bar .khro-search-input {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .khro-search-page-bar .khro-search-btn {
        height: 46px;
        padding: 0 1.75rem;
        border-radius: 14px;
        font-size: 0.98rem;
        font-weight: 800;
    }

    .khro-search-filters-section {
        margin-bottom: 2rem;
        gap: 0.85rem;
    }

    .khro-search-chips-row {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px;
        padding: 0;
    }

    .khro-filter-pill {
        padding: 0.45rem 0.95rem;
        font-size: 0.84rem;
        border-radius: 9999px;
        flex-shrink: 0;
    }

    .khro-search-chips-row.secondary-chips {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px;
        padding: 0;
    }

    .khro-filter-chip {
        padding: 0.38rem 0.85rem;
        font-size: 0.78rem;
        border-radius: 9999px;
        flex-shrink: 0;
    }

    .khro-search-meta-header {
        margin-bottom: 2rem;
        padding-bottom: 1.25rem;
    }

    .khro-search-meta-query {
        font-size: 1.8rem;
    }

    .newzia-cards-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Dark Mode Overrides for Desktop Search Modal */
body.dark-mode .search-modal-content {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .search-modal-icon-badge {
    background: rgba(255, 59, 48, 0.15);
    color: #ff5e62;
}

body.dark-mode .search-modal-quick-topics {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .search-quick-chip {
    background: #1c2033;
    color: #cbd5e1;
}

body.dark-mode .search-quick-chip:hover {
    background: #ff3b30;
    color: #ffffff;
}

body.dark-mode .khro-search-page-bar .khro-search-input-box {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .khro-search-page-bar .khro-search-input-box:focus-within {
    border-color: #ff3b30;
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.25);
}

/* ========================================================
   PREMIUM BREAKING NEWS TICKER (شريط الأخبار العاجلة)
   ======================================================== */
.khro-ticker-container {
    padding: 0 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .khro-ticker-container {
        padding: 0;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
}

.khro-ticker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.khro-ticker-inner {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 14px;
    padding: 6px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    min-height: 44px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.khro-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff5e62 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
    letter-spacing: -0.01em;
}

.khro-ticker-pulse {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    animation: tickerPulse 1.8s infinite;
}

@keyframes tickerPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.khro-ticker-icon {
    width: 13px;
    height: 13px;
    fill: #ffffff;
    flex-shrink: 0;
}

.khro-ticker-content {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 28px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to left, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to left, black calc(100% - 24px), transparent 100%);
}

html[dir="ltr"] .khro-ticker-content,
html[lang="en"] .khro-ticker-content {
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}

.khro-ticker-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.khro-ticker-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.khro-ticker-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.khro-ticker-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    max-width: 100%;
    min-width: 0;
}

.khro-ticker-cat-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.khro-ticker-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text, #1e293b);
    white-space: nowrap;
    display: inline-block;
    transition: color 0.2s ease;
    will-change: transform;
}

.khro-ticker-link:hover .khro-ticker-title {
    color: #ff3b30;
}

.khro-ticker-time {
    font-size: 0.73rem;
    color: var(--color-text-muted, #94a3b8);
    white-space: nowrap;
    flex-shrink: 0;
}

.khro-ticker-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    direction: ltr !important;
}

.khro-ticker-nav-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--color-bg-secondary, #f1f5f9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.khro-ticker-nav-btn svg {
    width: 14px;
    height: 14px;
}

.khro-ticker-nav-btn:hover {
    background: #ff3b30;
    color: #ffffff;
    transform: scale(1.05);
}

/* Single Post External Breadcrumbs (خارج شريط الأخبار وعلى يمينه) */
.ticker-external-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 14px;
    padding: 0 16px;
    min-height: 44px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ticker-ext-crumb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text-muted, #64748b);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-ext-crumb-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.ticker-ext-crumb-link:hover {
    color: #ff3b30;
}

.ticker-ext-crumb-sep {
    color: var(--color-text-muted, #94a3b8);
    opacity: 0.5;
    font-size: 0.85rem;
    margin: 0 2px;
}

.ticker-ext-crumb-cat {
    display: inline-flex;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 800;
    color: #ff3b30;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ticker-ext-crumb-cat:hover {
    color: #d32f2f;
    text-decoration: underline;
}

/* Dark Mode Adaptation for Ticker & External Breadcrumbs */
body.dark-mode .khro-ticker-inner,
body.dark-mode .ticker-external-breadcrumbs {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

body.dark-mode .ticker-ext-crumb-link {
    color: #94a3b8;
}

body.dark-mode .ticker-ext-crumb-link:hover {
    color: #ff5e62;
}

body.dark-mode .ticker-ext-crumb-cat {
    color: #ff5e62;
}

body.dark-mode .khro-ticker-title {
    color: #f1f5f9;
}

body.dark-mode .khro-ticker-link:hover .khro-ticker-title {
    color: #ff5e62;
}

body.dark-mode .khro-ticker-nav-btn {
    background: #1c2033;
    color: #94a3b8;
}

body.dark-mode .khro-ticker-nav-btn:hover {
    background: #ff3b30;
    color: #ffffff;
}

body.dark-mode .khro-ticker-cat-tag {
    background: rgba(255, 94, 98, 0.15);
    color: #ff5e62;
}

@media (max-width: 640px) {
    .khro-ticker-container {
        padding: 0 1rem;
        margin-top: 0.65rem;
        margin-bottom: 0.65rem;
    }

    .khro-ticker-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .ticker-external-breadcrumbs {
        display: none;
    }

    .ticker-ext-crumb-link,
    .ticker-ext-crumb-cat {
        font-size: 0.78rem;
    }

    .khro-ticker-inner {
        width: 100%;
        gap: 8px;
        padding: 4px 8px;
        min-height: 38px;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .khro-ticker-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
        border-radius: 7px;
        gap: 4px;
    }

    .khro-ticker-icon {
        width: 11px;
        height: 11px;
    }

    .khro-ticker-pulse {
        width: 5px;
        height: 5px;
    }

    .khro-ticker-cat-tag {
        display: none;
    }

    .khro-ticker-title {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .khro-ticker-controls {
        display: none;
    }
}
/* ========================================================
   TAGS DIRECTORY & TAG ARCHIVE STYLES (صفحه موضوعات و برچسب‌ها)
   ======================================================== */

.khro-tags-page-container,
.khro-tag-archive-container {
    max-width: 1240px;
    margin: 1.5rem auto 4rem;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .khro-tags-page-container,
    .khro-tag-archive-container {
        padding: 0;
        margin-top: 2rem;
    }
}

/* Tags Hero Banner */
.tags-hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.05) 0%, rgba(28, 32, 51, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.tags-hero-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.15) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.tags-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tags-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.tags-hero-badge svg {
    width: 14px;
    height: 14px;
}

.tags-hero-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 0.6rem 0;
    line-height: 1.3;
}

.tags-hero-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    max-width: 680px;
}

.tags-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tags-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.84rem;
    color: var(--color-text-muted);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tags-stat-pill strong {
    color: #ff3b30;
    font-weight: 800;
}

/* Live Search Box */
.tags-live-search-box {
    position: relative;
    width: 100%;
    max-width: 580px;
    display: flex;
    align-items: center;
    background: var(--color-bg-card, #ffffff);
    border: 1.5px solid var(--color-border);
    border-radius: 9999px;
    padding: 6px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.tags-live-search-box:focus-within {
    border-color: #ff3b30;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.15);
}

.tags-search-icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    margin-inline-end: 10px;
    flex-shrink: 0;
}

.tags-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.94rem;
    font-family: var(--font-primary) !important;
    color: var(--color-text) !important;
    padding: 6px 0;
}

.tags-search-input::placeholder {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.tags-search-clear-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.tags-search-clear-btn:hover {
    color: #ff3b30;
}

.tags-search-clear-btn svg {
    width: 14px;
    height: 14px;
}

/* Section Header */
.tags-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-section-accent {
    width: 4px;
    height: 20px;
    background: #ff3b30;
    border-radius: 4px;
}

.tags-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
}

.tags-total-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-bg-secondary, #f1f5f9);
    padding: 4px 12px;
    border-radius: 8px;
}

/* Popular Tags Grid */
.tags-popular-section {
    margin-bottom: 2.5rem;
}

.tags-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.tag-popular-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tag-popular-card:hover {
    transform: translateY(-2px);
    border-color: #ff3b30;
    box-shadow: 0 6px 18px rgba(255, 59, 48, 0.12);
}

.tag-card-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.tag-card-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.tag-popular-card:hover .tag-card-icon-wrap {
    background: #ff3b30;
    color: #ffffff;
    transform: scale(1.05);
}

.tag-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tag-card-name {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.tag-popular-card:hover .tag-card-name {
    color: #ff3b30;
}

.tag-card-count {
    font-size: 0.74rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.tag-card-arrow {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.tag-popular-card:hover .tag-card-arrow {
    opacity: 1;
    color: #ff3b30;
    transform: translateX(-3px);
}

body.ltr .tag-popular-card:hover .tag-card-arrow {
    transform: translateX(3px);
}

/* Alphabet Filter Bar Wrapper & Navigation */
.tags-alphabet-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.alphabet-nav-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.alphabet-nav-arrow svg {
    width: 14px;
    height: 14px;
}

.alphabet-nav-arrow:hover {
    color: #ff3b30;
    border-color: #ff3b30;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.15);
}

.alphabet-nav-arrow:active {
    transform: scale(0.95);
}

.tags-alphabet-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: smooth;
    flex: 1;
    min-width: 0;
}

.tags-alphabet-bar.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.tags-alphabet-bar::-webkit-scrollbar {
    display: none;
}

.alphabet-pill {
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card, #ffffff);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.alphabet-pill:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

.alphabet-pill.active {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
}

/* Tags Cloud Chips */
.tags-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1.5rem;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.tag-cloud-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.86rem;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-cloud-chip .chip-hash {
    color: #ff3b30;
    font-weight: 800;
}

.tag-cloud-chip .chip-count {
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-text-muted);
    padding: 1px 6px;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tag-cloud-chip:hover {
    transform: translateY(-2px);
    border-color: #ff3b30;
    background: #ff3b30;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
}

.tag-cloud-chip:hover .chip-hash {
    color: #ffffff;
}

.tag-cloud-chip:hover .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.tags-no-search-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
}

.tags-no-search-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.tags-no-search-results h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* ========================================================
   SINGLE TAG ARCHIVE PAGE (tag.php)
   ======================================================== */

.tag-archive-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.06) 0%, rgba(28, 32, 51, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tag-archive-hero-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.tag-archive-hero-inner {
    position: relative;
    z-index: 2;
}

.tag-hero-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.tag-breadcrumbs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.tag-crumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tag-crumb-link svg {
    width: 14px;
    height: 14px;
}

.tag-crumb-link:hover {
    color: #ff3b30;
}

.tag-crumb-sep {
    opacity: 0.5;
}

.tag-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0.75rem;
}

.tag-main-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff5e62 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.25);
}

.tag-main-badge-icon svg {
    width: 24px;
    height: 24px;
}

.tag-title-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tag-heading-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-main-heading {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    line-height: 1.25;
}

.tag-articles-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 9999px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.dark-mode .tag-articles-count-badge {
    background: rgba(255, 59, 48, 0.2);
    color: #ff6b64;
}

.tag-main-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-browse-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 10px;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-browse-all-btn svg {
    width: 14px;
    height: 14px;
    color: #ff3b30;
}

.tag-browse-all-btn:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.12);
}

/* Dark Mode Overrides for Tags */
body.dark-mode .tags-hero-banner,
body.dark-mode .tag-archive-hero {
    background: linear-gradient(135deg, rgba(255, 94, 98, 0.08) 0%, rgba(18, 21, 36, 0.4) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .tags-stat-pill,
body.dark-mode .tags-live-search-box,
body.dark-mode .tag-popular-card,
body.dark-mode .alphabet-pill,
body.dark-mode .tags-cloud-container,
body.dark-mode .tag-browse-all-btn {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .tag-hero-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tag-title-row {
        gap: 12px;
    }
    .tag-main-heading {
        font-size: 1.45rem;
    }
}

body.dark-mode .tag-cloud-chip {
    background: #1a1e32;
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .tag-cloud-chip .chip-count {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

body.dark-mode .tag-cloud-chip:hover {
    background: #ff3b30;
    color: #ffffff;
    border-color: #ff3b30;
}

body.dark-mode .tags-total-badge {
    background: #1a1e32;
    color: #94a3b8;
}

/* ============================================
   PRIVACY POLICY PAGE STYLES
   ============================================ */
.khro-privacy-page-container {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}

.privacy-hero-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.05) 0%, rgba(255, 94, 98, 0.02) 100%), var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    padding: 2.25rem 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.privacy-hero-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.12) 0%, rgba(255, 59, 48, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.privacy-hero-inner {
    position: relative;
    z-index: 2;
}

.privacy-badge-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.privacy-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    font-size: 0.82rem;
    font-weight: 800;
}

.privacy-top-badge svg {
    width: 14px;
    height: 14px;
}

.privacy-updated-badge {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.privacy-main-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.privacy-main-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 780px;
}

/* Security Pillars 2x2 Grid */
.privacy-pillars-section {
    margin-bottom: 2rem;
}

.privacy-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .privacy-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.privacy-pillar-card {
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.privacy-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: #ff3b30;
}

.privacy-pillar-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.privacy-pillar-icon-box svg {
    width: 22px;
    height: 22px;
}

.privacy-pillar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.privacy-pillar-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Detailed Policy Clauses */
.privacy-clauses-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.privacy-clause-card {
    display: flex;
    gap: 1.25rem;
    background: var(--color-bg-card, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.privacy-clause-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff3b30;
    opacity: 0.35;
    line-height: 1;
    flex-shrink: 0;
}

.privacy-clause-content {
    flex: 1;
}

.privacy-clause-title {
    font-size: 1.12rem;
    font-weight: 850;
    color: var(--color-text);
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.privacy-clause-text {
    font-size: 0.90rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0;
}

/* Bottom Action Banner */
.privacy-action-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: linear-gradient(135deg, #ff3b30 0%, #ff5e62 100%);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.25);
}

.privacy-action-info {
    flex: 1;
    min-width: 260px;
}

.privacy-action-title {
    font-size: 1.2rem;
    font-weight: 850;
    color: #ffffff;
    margin: 0 0 0.4rem;
}

.privacy-action-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.privacy-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    background: #ffffff;
    color: #ff3b30;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.privacy-action-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.privacy-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .privacy-action-btn:hover svg {
    transform: translateX(-3px);
}

[dir="ltr"] .privacy-action-btn:hover svg {
    transform: translateX(3px);
}

/* Dark Mode Overrides for Privacy Page */
body.dark-mode .privacy-hero-card {
    background: linear-gradient(135deg, rgba(255, 94, 98, 0.06) 0%, rgba(18, 21, 36, 0.5) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .privacy-pillar-card,
body.dark-mode .privacy-clause-card {
    background: #121524;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .privacy-pillar-icon-box {
    background: rgba(255, 59, 48, 0.15);
}

body.dark-mode .privacy-clause-num {
    opacity: 0.5;
}

/* ============================================
   SMART COPY ATTRIBUTION TOAST NOTIFICATION
   ============================================ */
.khro-copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    max-width: 90vw;
    width: auto;
}

.khro-copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.khro-copy-toast.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(30px);
    transition: all 0.3s ease;
}

.khro-toast-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: 18px;
    background: rgba(18, 21, 36, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 59, 48, 0.2);
}

.khro-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff5e62 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
}

.khro-toast-icon svg {
    width: 20px;
    height: 20px;
}

.khro-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.khro-toast-title {
    font-size: 0.94rem;
    font-weight: 850;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.khro-toast-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .khro-copy-toast {
        bottom: 5.5rem; /* sits nicely above mobile bottom dock */
        width: calc(100% - 2rem);
    }
    .khro-toast-inner {
        padding: 12px 16px;
        gap: 12px;
    }
    .khro-toast-title {
        font-size: 0.88rem;
    }
    .khro-toast-desc {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   YOUTUBE VIDEO SECTION & MEDIA INTEGRATION
   ========================================================================== */
.khro-video-section {
    margin: 2.5rem 0 3rem;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .khro-video-section,
body.dark-mode .khro-video-section {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.06) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    [data-theme="dark"] .video-section-header,
    body.dark-mode .video-section-header {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.08);
    }
}


.video-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.video-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.video-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff0000 0%, #d90429 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

.video-brand-badge svg {
    flex-shrink: 0;
}

.video-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[dir="rtl"] .video-brand-badge,
body.rtl .video-brand-badge {
    order: 2;
}

[dir="rtl"] .video-title-wrap,
body.rtl .video-title-wrap {
    order: 1;
}

.video-section-title {
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--text-color, #0f172a);
    margin: 0;
    line-height: 1.25;
}

.video-section-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.video-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-card, #ffffff);
    color: var(--text-color, #1e293b);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.video-channel-btn:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.video-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-carousel-nav-btns {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.video-carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card, #ffffff);
    color: var(--text-color, #1e293b);
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0;
}

.video-carousel-btn:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
}

.video-carousel-btn:active {
    transform: translateY(0) scale(0.94);
}

/* Video Carousel Layout */
.video-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 6px 2px 14px;
}

.video-carousel-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 2px 2px 8px;
}

.video-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Edge */
}

.video-carousel-slide {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    height: auto;
}

@media (max-width: 1200px) {
    .video-carousel-slide {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (max-width: 860px) {
    .video-carousel-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .khro-video-section {
        padding: 0 0.5rem;
        margin: 1.5rem 0 2rem;
        border-radius: 0;
        border: none;
        background: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box;
        width: 100%;
    }
    .video-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
        background: rgba(255, 255, 255, 0.5);
        padding: 12px 14px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    }
    .video-header-left {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 12px;
    }
    .video-title-wrap {
        flex: 0 1 auto;
        min-width: 0;
    }
    .video-section-title {
        font-size: 1.15rem;
        line-height: 1.3;
    }
    .video-section-subtitle {
        font-size: 0.74rem;
        line-height: 1.4;
    }
    .video-brand-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    .video-header-right {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }
    .video-channel-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 12px;
        font-size: 0.78rem;
    }
    .video-carousel-nav-btns {
        display: inline-flex;
        gap: 6px;
        flex-shrink: 0;
    }
    .video-carousel-btn {
        width: 35px;
        height: 35px;
    }
    .video-carousel-wrapper {
        margin: 0;
        width: 100%;
        padding: 0;
        overflow: hidden;
    }
    .video-carousel-track {
        gap: 12px;
        padding: 4px 0 8px;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .video-carousel-track::-webkit-scrollbar {
        display: none;
    }
    .video-carousel-slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
    .video-content-body {
        padding: 12px 14px 14px;
    }
    .video-item-title {
        font-size: 0.92rem;
        line-height: 1.4;
        min-height: auto;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .video-actions-row {
        gap: 8px;
        padding-top: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .video-quick-watch-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        white-space: nowrap;
    }
    .video-read-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}


/* Video Card Item */
.video-card-item {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
}

/* Thumbnail Wrap */
.video-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.video-card-item:hover .video-thumb-img {
    transform: scale(1.06);
}

.video-placeholder-thumb {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.video-thumb-container.has-thumb-fallback {
    background: radial-gradient(circle at center, #2a3447 0%, #111827 100%) !important;
}

.video-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

/* Play Button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    padding: 0;
}

.video-play-btn svg {
    width: 22px;
    height: 22px;
    margin-right: -2px; /* slight visual optical center */
}

.video-card-item:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.14);
    box-shadow: 0 8px 28px rgba(255, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.4);
}

/* Badges */
.video-badges-top {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}

.video-yt-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-yt-tag svg {
    color: #ff0000;
}

.video-cat-badge {
    background: var(--primary-color, #7057e8);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.video-badges-bottom {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    pointer-events: none;
}

.video-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Video Body Content */
.video-content-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.video-item-title {
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.45;
    min-height: 2.9em;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item-title a {
    color: var(--text-color, #1e293b);
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-item-title a:hover {
    color: #ff0000;
}

.video-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid var(--border-color, #f1f5f9);
}

.video-read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted, #64748b);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-read-link:hover {
    color: var(--primary-color, #7057e8);
}

.video-quick-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 0, 0, 0.08);
    color: #dc2626;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.video-quick-watch-btn:hover {
    background: #ff0000;
    color: #ffffff;
    transform: scale(1.03);
}

/* Card Video Play Badge */
.card-video-play-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.card-video-play-badge svg {
    margin-right: -1px;
}

/* Single Post Video Player */
.single-video-player-container {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

.single-video-aspect-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.single-video-aspect-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.single-video-meta-block {
    padding: 20px 22px 16px;
}

.single-video-page-title {
    font-size: 1.6rem;
    font-weight: 850;
    line-height: 1.35;
    color: var(--text-color, #0f172a);
    margin: 0;
}

.single-header-plain {
    padding: 10px 0 20px;
}

/* Lightbox Video Modal */
.khro-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 29, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.khro-video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal-dialog {
    width: 100%;
    max-width: 920px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.khro-video-modal.active .video-modal-dialog {
    transform: scale(1) translateY(0);
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 14px;
}

.video-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.video-modal-yt-badge {
    background: #ff0000;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.video-modal-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.video-modal-close-btn:hover {
    background: #ff0000;
    transform: rotate(90deg);
}

.video-modal-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-modal-iframe-box {
    width: 100%;
    height: 100%;
}

.video-modal-iframe-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   DARK MODE - YOUTUBE VIDEO SECTION & COMPONENTS
   ========================================================================== */
body.dark-mode .khro-video-section,
html.dark-mode .khro-video-section {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, #1e293b 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.4);
}

body.dark-mode .video-section-title,
html.dark-mode .video-section-title {
    color: #ffffff !important;
}

body.dark-mode .video-section-subtitle,
html.dark-mode .video-section-subtitle {
    color: #94a3b8 !important;
}

body.dark-mode .video-channel-btn,
html.dark-mode .video-channel-btn {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .video-channel-btn:hover,
html.dark-mode .video-channel-btn:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
    border-color: #ff0000 !important;
}

body.dark-mode .video-card-item,
html.dark-mode .video-card-item {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .video-card-item:hover,
html.dark-mode .video-card-item:hover {
    border-color: rgba(255, 0, 0, 0.4) !important;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .video-item-title a,
html.dark-mode .video-item-title a {
    color: #f8fafc !important;
}

body.dark-mode .video-item-title a:hover,
html.dark-mode .video-item-title a:hover {
    color: #ff4d4d !important;
}

body.dark-mode .video-actions-row,
html.dark-mode .video-actions-row {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .video-read-link,
html.dark-mode .video-read-link {
    color: #94a3b8 !important;
}

body.dark-mode .video-read-link:hover,
html.dark-mode .video-read-link:hover {
    color: #a78bfa !important;
}

body.dark-mode .video-quick-watch-btn,
html.dark-mode .video-quick-watch-btn {
    background: rgba(255, 0, 0, 0.15) !important;
    color: #ff6b6b !important;
}

body.dark-mode .video-quick-watch-btn:hover,
html.dark-mode .video-quick-watch-btn:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
}

body.dark-mode .single-video-player-container,
html.dark-mode .single-video-player-container {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .single-video-page-title,
html.dark-mode .single-video-page-title {
    color: #ffffff !important;
}

body.dark-mode .video-carousel-btn,
html.dark-mode .video-carousel-btn {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .video-carousel-btn:hover,
html.dark-mode .video-carousel-btn:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
    border-color: #ff0000 !important;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4) !important;
}

/* ==========================================================================
   SOCIAL MEDIA EMBEDS (X / TWITTER & INSTAGRAM)
   ========================================================================== */
.khro-embed-wrapper {
    margin: 28px auto;
    max-width: 550px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both;
    position: relative;
}

.khro-embed-wrapper blockquote.twitter-tweet {
    margin: 0 auto !important;
}

.khro-embed-wrapper.khro-instagram-embed iframe {
    max-width: 540px !important;
    width: 100% !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff;
}

body.dark-mode .khro-embed-wrapper.khro-instagram-embed iframe,
html.dark-mode .khro-embed-wrapper.khro-instagram-embed iframe {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 640px) {
    .khro-embed-wrapper {
        margin: 20px 0;
        max-width: 100%;
    }
    .khro-embed-wrapper.khro-instagram-embed iframe {
        min-height: 420px;
    }
}

/* =========================================================================
   SINGLE POST - RELATED POSTS (مطالب مرتبط) MOBILE & DESKTOP POLISH
   ========================================================================= */
.single-related-section {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.single-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.single-related-accent-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: 99px;
    background: linear-gradient(135deg, #ff3b30, #ff6b4a);
    flex-shrink: 0;
}

.single-related-title {
    font-size: 1.2rem;
    font-weight: 850;
    color: var(--color-text, #0f172a);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Mobile Layout (< 992px) */
@media (max-width: 991px) {
    .single-related-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .single-related-section .related-cards-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }

    .single-related-section .newzia-card {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        background: var(--color-bg-card, #ffffff);
        border: 1px solid var(--color-border, #e5e7eb);
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .single-related-section .newzia-card:active {
        transform: scale(0.985);
        opacity: 0.9;
    }

    .single-related-section .newzia-card-img-wrap {
        width: 80px;
        height: 80px;
        min-width: 80px;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--color-bg-secondary, #f1f5f9);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .single-related-section .newzia-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .single-related-section .newzia-card-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }

    .single-related-section .newzia-card-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
        color: var(--color-text-muted, #94a3b8);
    }

    .single-related-section .newzia-card-cat-tag {
        font-size: 0.75rem;
        font-weight: 750;
        color: #ff3b30;
    }

    .single-related-section .newzia-card-title {
        font-size: 0.875rem;
        font-weight: 750;
        line-height: 1.48;
        color: var(--color-text, #0f172a);
        margin: 2px 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .single-related-section .newzia-card-footer {
        display: flex;
        align-items: center;
        margin-top: 3px;
    }

    .single-related-section .newzia-card-date {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.72rem;
        color: var(--color-text-muted, #94a3b8);
    }

    .single-related-section .newzia-card-date svg {
        width: 12px;
        height: 12px;
        stroke: var(--color-text-muted, #94a3b8);
        flex-shrink: 0;
    }
}

/* Dark Mode for Related Posts */
body.dark-mode .single-related-section,
html.dark-mode .single-related-section {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .single-related-title,
html.dark-mode .single-related-title {
    color: #f1f5f9;
}

body.dark-mode .single-related-section .newzia-card,
html.dark-mode .single-related-section .newzia-card {
    background: #0d121c;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.dark-mode .single-related-section .newzia-card:hover,
html.dark-mode .single-related-section .newzia-card:hover {
    border-color: rgba(255, 59, 48, 0.35);
    background: #121824;
}

body.dark-mode .single-related-section .newzia-card-title,
html.dark-mode .single-related-section .newzia-card-title {
    color: #f1f5f9;
}



/* Empty State Design */
.empty-state-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    margin: 2rem auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.empty-state-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.empty-state-icon svg {
    width: 32px;
    height: 32px;
}
.empty-state-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}
.empty-state-box p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 1rem;
}
.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.empty-state-btn svg {
    width: 18px;
    height: 18px;
}
.empty-state-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

