/*
Theme Name: ZaioTV
Theme URI: https://zaiotv.net
Description: A premium, modern, widget-based WordPress desktop theme for ZaioTV. Built from scratch with an asymmetrical top row grid and a 3-column equal bottom row.
Author: Seddik & Antigravity
Version: 1.0.0
Text Domain: zaiotv
Domain Path: /languages
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

/* --- CSS Variables / Design System --- */
:root {
    --primary-color: #ce033e;     /* Crimson Red */
    --accent-color: #fd3428;      /* Bright Red */
    --hover-color: #e82239;       /* Secondary Red */
    --dark-bg: #111417;           /* Premium dark backgrounds */
    --dark-surface: #1e2227;
    --dark-text: #f1f3f5;
    
    --light-bg: #f4f6f8;          /* Light content background */
    --white: #ffffff;
    --text-color: #2b3035;        /* Soft black for news reading */
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --border-dark: #dee2e6;
    
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Tajawal', sans-serif;
    --max-width: 1200px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 6px;
}

/* --- Base RTL Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    unicode-bidi: embed;
    text-align: right;
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* --- Layout Helper Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.clear {
    clear: both;
}

/* --- Header Section --- */
#header-wrapper {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

/* ROW 1: Top Bar (Red brand gradient, Taller) */
.header-top {
    background: linear-gradient(135deg, #ce033e 0%, #e82239 100%);
    color: var(--white);
    font-size: 0.85rem;
    padding: 10px 0; /* exactly 10px 0 */
    font-family: var(--font-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-logo img {
    height: 68px; /* exactly 68px */
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Premium circular social buttons */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background-color: #fff;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --- Brand Specific Social Media Hovers --- */
.social-icon-btn.facebook:hover,
.footer-social-btn.facebook:hover,
.mobile-drawer-socials a.facebook:hover {
    background-color: #ffffff !important;
    color: #1877f2 !important;
    border-color: #ffffff !important;
}

.social-icon-btn.youtube:hover,
.footer-social-btn.youtube:hover,
.mobile-drawer-socials a.youtube:hover {
    background-color: #ffffff !important;
    color: #ff0000 !important;
    border-color: #ffffff !important;
}

.social-icon-btn.instagram:hover,
.footer-social-btn.instagram:hover,
.mobile-drawer-socials a.instagram:hover {
    background-color: #ffffff !important;
    color: #e1306c !important;
    border-color: #ffffff !important;
}

.social-icon-btn.tiktok:hover,
.footer-social-btn.tiktok:hover,
.mobile-drawer-socials a.tiktok:hover {
    background-color: #ffffff !important;
    color: #111111 !important;
    border-color: #ffffff !important;
}

.social-icon-btn.whatsapp:hover,
.footer-social-btn.whatsapp:hover,
.mobile-drawer-socials a.whatsapp:hover {
    background-color: #ffffff !important;
    color: #25d366 !important;
    border-color: #ffffff !important;
}

.social-icon-btn.telegram:hover,
.footer-social-btn.telegram:hover,
.mobile-drawer-socials a.telegram:hover {
    background-color: #ffffff !important;
    color: #26a5e4 !important;
    border-color: #ffffff !important;
}

.social-icon-btn.twitter:hover,
.footer-social-btn.twitter:hover,
.mobile-drawer-socials a.twitter:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.top-bar-search-trigger-btn:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
}

/* Modern Sliding Toggle Switch for Dark Mode */
.theme-toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-switch .toggle-thumb {
    position: absolute;
    top: 2px;
    right: 2px; /* starts on the right in RTL for light mode */
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-switch .toggle-thumb .moon-icon {
    color: var(--dark-bg);
    display: block;
    font-size: 0.65rem;
}

.theme-toggle-switch .toggle-thumb .sun-icon {
    color: #f59e0b;
    display: none;
    font-size: 0.65rem;
}

/* Sliding thumb to the left when dark mode is active */
body.dark-mode .theme-toggle-switch .toggle-thumb {
    right: 26px; /* slides handle left in RTL */
}

body.dark-mode .theme-toggle-switch .toggle-thumb .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle-switch .toggle-thumb .sun-icon {
    display: block;
}

.theme-toggle-switch:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* ROW 2: Branding Area (Logo & Ad Slot) */
.header-main {
    padding: 20px 0;
}

#infinite-scroll-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
}

/* --- Dark Mode Styles --- */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* Navbar dark mode override */
body.dark-mode #menu-category-bar {
    background-color: var(--dark-surface);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .menu-category li a {
    color: var(--dark-text);
}

body.dark-mode .menu-category li:hover > a,
body.dark-mode .menu-category li.current-menu-item > a {
    color: var(--accent-color);
}

body.dark-mode .menu-category ul.sub-menu {
    background-color: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .menu-category ul.sub-menu li a {
    color: var(--dark-text);
}

body.dark-mode .menu-category ul.sub-menu li:hover > a {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--accent-color);
}

body.dark-mode .search-trigger-box form {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-trigger-box input {
    color: var(--dark-text);
}

body.dark-mode .search-trigger-box button {
    color: var(--dark-text);
}

/* Ticker dark mode override */
body.dark-mode .m-s-i-wrapper {
    background-color: var(--dark-surface);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: var(--dark-text);
}

body.dark-mode .ticker-container {
    background-color: var(--dark-surface);
}

/* Widget and cards dark mode overrides */
body.dark-mode .widget {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    box-shadow: none;
}



body.dark-mode .widget-news-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .post-card {
    background-color: var(--dark-surface);
    color: var(--dark-text);
}

body.dark-mode .side-stack-item {
    background-color: var(--dark-surface);
    color: var(--dark-text);
}

body.dark-mode .side-stack-item.active {
    background-color: rgba(206, 3, 62, 0.1);
}

body.dark-mode .featured-main-post {
    box-shadow: none;
}

/* Darker header-top in dark mode */
body.dark-mode .header-top {
    background: linear-gradient(135deg, #5c011b 0%, #8c102a 100%);
    border-bottom-color: rgba(0, 0, 0, 0.3);
}



.header-logo img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
}

.header-advert728x90 {
    max-width: 728px;
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px dashed var(--border-dark);
    border-radius: var(--border-radius);
}

/* ROW 3: Primary Navigation Bar */
#menu-category-bar {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

#menu-category-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.menu-category {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-category li {
    position: relative;
    height: 100%;
}

.menu-category li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: var(--text-color);
    font-weight: 800;
    font-size: 0.91rem;
    position: relative;
    border-left: none;
    border-bottom: none;
    transition: var(--transition-smooth);
}

/* Modern Sliding Accent Underline */
.menu-category li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

body.dark-mode .menu-category li a::before {
    background-color: var(--accent-color);
}

.menu-category li:hover > a::before,
.menu-category li.current-menu-item > a::before {
    width: 60%;
    left: 20%;
}

/* Submenu Arrow Indicators */
.menu-category li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.menu-category li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Sub-menus */
.menu-category ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    border-radius: var(--border-radius);
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 999;
}

.menu-category li:hover > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-category ul.sub-menu li {
    width: 100%;
    height: auto;
    padding: 0;
}

.menu-category ul.sub-menu li a {
    color: var(--text-color);
    padding: 10px 20px;
    border-left: none;
    border-bottom: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    width: 100%;
    height: auto;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-category ul.sub-menu li a::before {
    display: none;
}

.menu-category ul.sub-menu li:hover > a {
    background-color: rgba(206, 3, 62, 0.04);
    color: var(--primary-color);
}

/* Header Search Form */
.search-trigger-box form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2px 12px;
    transition: var(--transition-smooth);
}

.search-trigger-box form:focus-within {
    background-color: var(--white);
}

.search-trigger-box input {
    border: none;
    background: none;
    color: var(--white);
    font-size: 0.85rem;
    padding: 4px 6px;
    width: 150px;
    transition: var(--transition-smooth);
}

.search-trigger-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-trigger-box form:focus-within input {
    color: var(--text-color);
    width: 180px;
}

.search-trigger-box form:focus-within input::placeholder {
    color: var(--text-muted);
}

.search-trigger-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.search-trigger-box form:focus-within button {
    color: var(--text-color);
}

/* ROW 4: Breaking News Ticker */
.m-s-i-wrapper {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.ticker-container {
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
    width: 100%;
}

.ticker-title {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 15px;
    border-radius: 3px;
    margin-left: 15px;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.ticker-marquee-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-marquee {
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-list {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticker-item {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: translateY(0);
}

.ticker-item a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 90%;
    transition: var(--transition-smooth);
}

.ticker-item a:hover {
    color: var(--primary-color);
}

body.dark-mode .ticker-item a {
    color: var(--dark-text);
}

body.dark-mode .ticker-item a:hover {
    color: var(--accent-color);
}

/* Ticker Search Bar Styles */
.m-s-i-wrapper .search-trigger-box {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding-right: 15px;
    z-index: 10;
}

body.dark-mode .m-s-i-wrapper .search-trigger-box {
    background-color: var(--dark-surface);
}

.m-s-i-wrapper .search-trigger-box form {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: 20px;
    padding: 2px 12px;
    border: 1px solid var(--border-dark);
    height: 28px;
    transition: var(--transition-smooth);
}

body.dark-mode .m-s-i-wrapper .search-trigger-box form {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.m-s-i-wrapper .search-trigger-box input {
    border: none;
    background: none;
    font-size: 0.8rem;
    padding: 2px 4px;
    width: 140px;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

body.dark-mode .m-s-i-wrapper .search-trigger-box input {
    color: var(--dark-text);
}

.m-s-i-wrapper .search-trigger-box input::placeholder {
    color: var(--text-muted);
}

.m-s-i-wrapper .search-trigger-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

body.dark-mode .m-s-i-wrapper .search-trigger-box button {
    color: var(--dark-text);
}

/* --- Sticky Header Scrolled States --- */
.header-top {
    position: relative;
    z-index: 200;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolled-menu-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.scrolled-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Scrolled state overrides */
.header-scrolled .header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 0;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #ce033e 0%, #e82239 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

body.dark-mode.header-scrolled .header-top {
    background: linear-gradient(135deg, #5c011b 0%, #8c102a 100%) !important;
    border-bottom-color: rgba(0, 0, 0, 0.3);
}

/* Glassmorphism enabled state overrides */
body.glass-header-enabled.header-scrolled .header-top {
    background: rgba(206, 3, 62, 0.82) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode.glass-header-enabled.header-scrolled .header-top {
    background: rgba(92, 1, 27, 0.82) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-scrolled .header-top-logo img {
    height: 40px !important;
}

.header-scrolled .header-top .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-scrolled .header-top-logo {
    order: 2;
    margin-right: 15px; /* space between hamburger and logo in RTL */
}

.header-scrolled .header-top-controls {
    order: 3;
    margin-right: auto; /* push socials and dark mode to the left in RTL */
}

.header-scrolled .scrolled-menu-toggle {
    display: flex !important;
    order: 1;
}

/* Dropped-down category menu bar when scrolled */
.header-scrolled #menu-category-bar {
    position: fixed;
    top: 52px; /* matches the shrunk height of header-top: 40px + 6px*2 */
    left: 0;
    right: 0;
    z-index: 199;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--border-color);
    display: none;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.dark-mode.header-scrolled #menu-category-bar {
    background-color: var(--dark-surface);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.glass-header-enabled.header-scrolled #menu-category-bar {
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode.glass-header-enabled.header-scrolled #menu-category-bar {
    background-color: rgba(22, 28, 40, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-scrolled.scrolled-menu-open #menu-category-bar {
    display: block !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Main Layout Grid Blocks --- */
.body-container {
    padding: 15px 0;
}

.below-header-ad-banner {
    margin-top: 15px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
}

.above-footer-ad-banner {
    margin: 0px auto;
}

/* 1. Asymmetrical Top Row Grid */
.featured-news-grid {
    display: grid;
    grid-template-columns: 1fr 610px 200px; /* Right (responsive), Center (fixed), Left (fixed) */
    gap: 15px;
    margin-bottom: 0px;
}

.top-right-column {
    /* Responsive width, handled by grid */
}

.top-center-column {
    width: 610px;
}

.top-left-column {
    width: 200px;
}

/* 2. Middle Row (Full Width center div) */
.home-middle-full {
    width: 100%;
    margin-bottom: 0px;
}

/* 3. Bottom Row Grid (3 Equal Columns) */
.bottom-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal divs */
    gap: 15px;
    margin-bottom: 0px;
}

/* Widget General Styles */
.widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 15px;
    margin-bottom: 15px;
}

.widget-title,
.block-title {
    font-size: 1.1rem;
    font-weight: 800;
    border-right: 4px solid var(--primary-color);
    padding-right: 10px;
    padding-bottom: 0;
    line-height: 1.2;
    margin-bottom: 18px;
    position: relative;
}

.widget-title::after,
.block-title::after {
    display: none;
}

/* --- Footer Section --- */
#footer {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding: 45px 0 20px;
    margin-top: 15px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 35px;
}

.footer-widget-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    border-right: 4px solid var(--primary-color);
    padding-right: 10px;
    padding-bottom: 0;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget-title::after {
    display: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-secondary);
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.footer-credits a:hover {
    color: var(--white);
}

.footer-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-social-btn:hover {
    background-color: #fff;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --- ZaioTV Featured Slider Widget --- */
.home-top-center-widget:has(.zaiotv-slider-wrapper) {
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    overflow: hidden;
}

.zaiotv-slider-wrapper {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

body.dark-mode .zaiotv-slider-wrapper {
    background-color: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.zaiotv-main-slider {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.slider-panes {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #000;
    overflow: hidden;
}

.slider-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-pane.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.slide-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.slide-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}

.slider-pane.active .slide-img {
    transform: scale(1.04);
}

/* Content Info Overlay at Bottom (Floating Glassmorphism Card) */
.slide-overlay-content {
    position: absolute;
    bottom: 24px;
    right: 24px;
    max-width: 85%;
    padding: 12px 20px;
    background: rgba(17, 20, 23, 0.60);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-right: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 5;
    text-align: right;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.slider-pane.active .slide-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.slide-title a {
    color: var(--white);
    text-shadow: none; /* No shadow needed over dark glass card */
}

.slide-title a:hover {
    color: var(--accent-color);
}


/* Numbered Pagination (RTL) */
.slider-pagination {
    display: flex;
    flex-direction: row;
    direction: rtl;
    justify-content: flex-start;
    align-items: center;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

body.dark-mode .slider-pagination {
    background-color: var(--dark-surface);
    border-top-color: rgba(255, 255, 255, 0.08);
}

.slider-dot {
    background: none;
    border: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    color: #495057;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

body.dark-mode .slider-dot {
    color: rgba(255, 255, 255, 0.7);
}

.slider-dot:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #000;
}

body.dark-mode .slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.slider-dot.active {
    background-color: #1e2227;
    color: var(--white);
}

body.dark-mode .slider-dot.active {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* --- Play Icon Overlay --- */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 50px;
    height: 50px;
    background: rgba(206, 3, 62, 0.85); /* brand crimson with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 3;
}
a:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--accent-color);
    box-shadow: 0 6px 20px rgba(254, 52, 40, 0.5);
}

/* --- 24-Hour Timeline Widget --- */
.zaiotv-timeline-container {
    position: relative;
    padding-right: 15px; /* RTL spacing */
    margin: 10px 0;
}
.zaiotv-timeline-axis {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 5px;
    width: 2px;
    background: var(--border-color);
}
body.dark-mode .zaiotv-timeline-axis {
    background: rgba(255, 255, 255, 0.08);
}
.zaiotv-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.zaiotv-timeline-item {
    position: relative;
    padding-right: 25px;
    margin-bottom: 20px;
}
.zaiotv-timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    right: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    z-index: 2;
    background: #495057;
}
body.dark-mode .timeline-dot {
    border-color: var(--dark-surface);
}
.timeline-dot.solid-dot {
    background: #adb5bd;
}
.timeline-dot.pulsing-dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(206, 3, 62, 0.7);
    animation: pulse-timeline 1.8s infinite;
}
@keyframes pulse-timeline {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(206, 3, 62, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(206, 3, 62, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(206, 3, 62, 0);
    }
}
.timeline-time {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(206, 3, 62, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 8px; /* RTL spacing: pushes text to the left */
    vertical-align: middle;
}
body.dark-mode .timeline-time {
    background: rgba(206, 3, 62, 0.15);
    color: #ff4d6d;
}
.timeline-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    display: block;
}
.timeline-item-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .timeline-item-title a {
    color: var(--dark-text);
}
.timeline-item-title a:hover {
    color: var(--primary-color);
}
.timeline-video-badge {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* --- Opinions and Authors Widget --- */
.zaiotv-opinions-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.opinion-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
body.dark-mode .opinion-card {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.opinion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(206, 3, 62, 0.3);
}
.opinion-author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.opinion-avatar img {
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: block;
}
body.dark-mode .opinion-avatar img {
    border-color: rgba(255, 255, 255, 0.08);
}
.opinion-author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
}
body.dark-mode .opinion-author-name {
    color: var(--dark-text);
}
.opinion-article-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}
.opinion-article-title a {
    color: #495057;
    transition: color 0.2s ease;
}
body.dark-mode .opinion-article-title a {
    color: rgba(255, 255, 255, 0.8);
}
.opinion-article-title a:hover {
    color: var(--primary-color);
}

/* --- Category Posts Widget Layouts --- */
.bg-preset-none {
    margin-top: 10px;
    background: transparent;
    padding: 0;
}
.bg-preset-surface-card {
    margin-top: 10px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}
body.dark-mode .bg-preset-surface-card {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.bg-preset-subtle-primary {
    margin-top: 10px;
    background: rgba(206, 3, 62, 0.03);
    border: 1px dashed rgba(206, 3, 62, 0.15);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}
body.dark-mode .bg-preset-subtle-primary {
    background: rgba(206, 3, 62, 0.06);
    border-color: rgba(206, 3, 62, 0.25);
}
.bg-preset-subtle-gradient {
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(206, 3, 62, 0.04) 0%, rgba(253, 52, 40, 0.01) 100%);
    border: 1px solid rgba(206, 3, 62, 0.08);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}
body.dark-mode .bg-preset-subtle-gradient {
    background: linear-gradient(135deg, rgba(206, 3, 62, 0.08) 0%, rgba(253, 52, 40, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Layout Modes */
.feat-split-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 769px) {
    .feat-split-container.feat-pos-right {
        flex-direction: row;
        align-items: stretch;
    }
    .feat-split-container.feat-pos-right .feat-post-area {
        flex: 0 0 45%;
        width: 45%;
    }
    .feat-split-container.feat-pos-right .sec-posts-area {
        flex: 1;
        width: 55%;
    }
    .feat-split-container.feat-pos-right .sec-posts-grid {
        margin-top: 0;
    }
}

/* Featured Cards styles */
.feat-post-card {
    transition: var(--transition-smooth);
}
.feat-post-card .card-image-box {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.feat-post-card .card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.feat-post-card:hover .card-image-box img {
    transform: scale(1.04);
}
.feat-post-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
}
.feat-post-card .card-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .feat-post-card .card-title a {
    color: var(--dark-text);
}
.feat-post-card .card-title a:hover {
    color: var(--primary-color);
}
.feat-post-card .card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Featured Overlay style */
.feat-style-overlay-card .card-image-box.overlay-bg {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.feat-style-overlay-card .card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.35s ease;
}
.feat-style-overlay-card:hover .card-content-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
}
.feat-style-overlay-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feat-style-overlay-card:hover .card-title {
    transform: translateX(-10px);
}
.feat-style-overlay-card .card-title::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.feat-style-overlay-card:hover .card-title::before {
    transform: scaleY(1);
    opacity: 1;
}
.feat-style-overlay-card .card-title a {
    color: #fff !important;
    transition: color 0.35s ease;
}
.feat-style-overlay-card:hover .card-title a {
    color: #ffb3c6 !important;
    text-shadow: 0 0 10px rgba(206, 3, 62, 0.2);
}
.card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Featured Horizontal Split style */
.feat-style-horizontal-split .split-flex-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feat-style-horizontal-split .split-flex-container .card-image-box {
    flex: 0 0 45%;
    width: 45%;
}
.feat-style-horizontal-split .split-flex-container .card-content-box {
    flex: 1;
}
@media (max-width: 576px) {
    .feat-style-horizontal-split .split-flex-container {
        flex-direction: column;
    }
    .feat-style-horizontal-split .split-flex-container .card-image-box {
        width: 100%;
        flex: none;
    }
}

/* Play Icon Overlay */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    pointer-events: none;
}
.play-icon-overlay i {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6.5px 0 6.5px 11px;
    border-color: transparent transparent transparent #ffffff;
    margin: 0;
    transform: translateX(2px); /* physically centers triangle tip independent of LTR/RTL margins */
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.35s ease;
}
.play-icon-overlay i::before {
    content: none !important; /* hides font glyph to prevent layout mismatch */
}
.card-image-box:hover .play-icon-overlay,
.item-image-box:hover .play-icon-overlay,
.slider-pane:hover .play-icon-overlay,
.middle-grid-card:hover .play-icon-overlay,
.sec-post-item:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(206, 3, 62, 0.95);
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(206, 3, 62, 0.5);
}
.card-image-box:hover .play-icon-overlay i,
.item-image-box:hover .play-icon-overlay i,
.slider-pane:hover .play-icon-overlay i,
.middle-grid-card:hover .play-icon-overlay i,
.sec-post-item:hover .play-icon-overlay i {
    transform: translateX(2px); /* keeps triangle perfectly centered when parent scales on hover */
}

/* Secondary Posts Area & Grid */
.sec-posts-grid {
    display: grid;
    gap: 10px;
}
.sec-posts-grid.sec-cols-1 {
    grid-template-columns: 1fr;
}
.sec-posts-grid.sec-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.sec-posts-grid.sec-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.sec-posts-grid.sec-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .sec-posts-grid.sec-cols-3,
    .sec-posts-grid.sec-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .sec-posts-grid.sec-cols-2,
    .sec-posts-grid.sec-cols-3,
    .sec-posts-grid.sec-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Secondary Post Items */
.sec-post-item {
    transition: var(--transition-smooth);
}

/* Play Overlay size for secondary thumbnails */
.sec-post-item .play-icon-overlay {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
}
.sec-post-item .play-icon-overlay i {
    margin-left: -1px;
}

/* Compact List Style */
.item-style-compact-list {
    display: flex;
    gap: 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}
body.dark-mode .item-style-compact-list {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.item-style-compact-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}
.item-style-compact-list .item-image-box {
    position: relative;
    width: 90px;
    height: 62px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.item-style-compact-list .item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.item-style-compact-list:hover .item-image-box img {
    transform: scale(1.04);
}
.item-style-compact-list .item-content-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.item-style-compact-list .item-title {
    font-size: 0.81rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}
.item-style-compact-list .item-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .item-style-compact-list .item-title a {
    color: var(--dark-text);
}
.item-style-compact-list .item-title a:hover {
    color: var(--primary-color);
}

/* Grid Card Style */
.item-style-grid-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.dark-mode .item-style-grid-card {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.item-style-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.item-style-grid-card .item-image-box {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.item-style-grid-card .item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.item-style-grid-card:hover .item-image-box img {
    transform: scale(1.04);
}
.item-style-grid-card .item-content-box {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}
.item-style-grid-card .item-title {
    font-size: 0.81rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.item-style-grid-card .item-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .item-style-grid-card .item-title a {
    color: var(--dark-text);
}
.item-style-grid-card .item-title a:hover {
    color: var(--primary-color);
}

/* Secondary Overlay Card Style */
.item-style-overlay-card .item-image-box.overlay-bg {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.item-style-overlay-card .item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.item-style-overlay-card:hover .item-image-box img {
    transform: scale(1.04);
}
.item-style-overlay-card .card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.35s ease;
}
.item-style-overlay-card:hover .card-content-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
}
.item-style-overlay-card .item-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.item-style-overlay-card:hover .item-title {
    transform: translateX(-10px);
}
.item-style-overlay-card .item-title::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.item-style-overlay-card:hover .item-title::before {
    transform: scaleY(1);
    opacity: 1;
}
.item-style-overlay-card .item-title a {
    color: #fff !important;
    transition: color 0.35s ease;
}
.item-style-overlay-card:hover .item-title a {
    color: #ffb3c6 !important;
    text-shadow: 0 0 10px rgba(206, 3, 62, 0.2);
}

/* Numbered List Style */
.item-style-numbered {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
body.dark-mode .item-style-numbered {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
.item-style-numbered:last-child {
    border-bottom: none;
}
.item-style-numbered .numbered-counter {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    opacity: 0.85;
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}
.item-style-numbered .item-content-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.item-style-numbered .item-title {
    font-size: 0.81rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.item-style-numbered .item-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .item-style-numbered .item-title a {
    color: var(--dark-text);
}
.item-style-numbered .item-title a:hover {
    color: var(--primary-color);
}

/* Carousel Style */
.sec-posts-grid.sec-style-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(206, 3, 62, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}
.sec-posts-grid.sec-style-carousel::-webkit-scrollbar {
    height: 5px;
}
.sec-posts-grid.sec-style-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.sec-posts-grid.sec-style-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(206, 3, 62, 0.2);
    border-radius: 3px;
}
.sec-posts-grid.sec-style-carousel::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}
.sec-posts-grid.sec-style-carousel .sec-post-item {
    flex: 0 0 240px;
    width: 240px;
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.dark-mode .sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel .item-image-box {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel .item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel:hover .item-image-box img {
    transform: scale(1.04);
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel .item-content-box {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel .item-title {
    font-size: 0.81rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel .item-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel .item-title a {
    color: var(--dark-text);
}
.sec-posts-grid.sec-style-carousel .sec-post-item.item-style-carousel .item-title a:hover {
    color: var(--primary-color);
}

/* Post Meta Details Styling */
.post-meta-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.post-meta-details span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.post-meta-details span i {
    font-size: 0.8rem;
}


/* --- Social Channels Promoter --- */
.zaiotv-social-promoter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
}
.social-promo-card {
    border-radius: var(--border-radius);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.social-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.facebook-promo {
    background: linear-gradient(135deg, #0866ff 0%, #054ec5 100%);
}
.youtube-promo {
    background: linear-gradient(135deg, #ff0000 0%, #c40000 100%);
}
.social-promo-icon {
    position: absolute;
    left: -15px;
    bottom: -15px;
    font-size: 6rem;
    opacity: 0.12;
    transform: rotate(-15deg);
    pointer-events: none;
}
.social-promo-details {
    margin-bottom: 15px;
}
.social-promo-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}
.social-promo-text {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}
.social-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-facebook {
    color: #0866ff;
}
.btn-youtube {
    color: #ff0000;
}
.social-promo-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Ad Box Centering --- */
.zaiotv-ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 15px 0;
}
.zaiotv-ad-block {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

/* ==========================================================================
   Advanced Customizations, Widgets & Alternative Layout Styles
   ========================================================================== */

/* --- Slider Transitions & Badges --- */
.transition-fade .slider-pane {
    transition: opacity 0.8s ease-in-out;
}
.transition-zoom .slider-pane {
    transition: opacity 0.8s ease-in-out;
}
.transition-zoom .slider-pane .slide-img {
    transform: scale(1.1);
    transition: transform 0.8s ease-in-out;
}
.transition-zoom .slider-pane.active .slide-img {
    transform: scale(1);
}
.transition-slide .slider-pane {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.transition-slide .slider-pane.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-cat-badge {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
body.dark-mode .slide-cat-badge {
    background-color: var(--accent-color);
}
.slide-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}
.slide-meta i {
    margin-left: 4px;
}

/* --- Category Posts Widget: Hero List Layout --- */
.cat-hero-list-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cat-hero-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
body.dark-mode .cat-hero-card {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.cat-hero-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.hero-image-box {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-hero-card:hover .hero-img {
    transform: scale(1.03);
}
.hero-content-box {
    padding: 15px;
}
.hero-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 10px 0;
}
.hero-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .hero-title a {
    color: var(--dark-text);
}
.hero-title a:hover {
    color: var(--primary-color);
}
.hero-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
body.dark-mode .hero-excerpt {
    color: rgba(255, 255, 255, 0.6);
}
.hero-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.hero-date i {
    margin-left: 3px;
}
.cat-hero-sublist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cat-sublist-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}
body.dark-mode .cat-sublist-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.cat-sublist-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sublist-image-box {
    position: relative;
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.sublist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-sublist-item:hover .sublist-img {
    transform: scale(1.05);
}
.sublist-image-box .play-icon-overlay {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
}
.sublist-content-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sublist-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.sublist-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
body.dark-mode .sublist-title a {
    color: var(--dark-text);
}
.sublist-title a:hover {
    color: var(--primary-color);
}
.sublist-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Category Posts Widget: Overlay Grid Layout --- */
.cat-overlay-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (max-width: 576px) {
    .cat-overlay-grid-layout {
        grid-template-columns: 1fr;
    }
}
.cat-overlay-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/11;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.cat-overlay-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.overlay-image-box {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}
.overlay-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.cat-overlay-card:hover .overlay-img {
    transform: scale(1.04);
    opacity: 0.7;
}
.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.overlay-info {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.overlay-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.overlay-title a {
    color: #fff;
    pointer-events: auto;
}
.overlay-title a:hover {
    color: var(--accent-color);
}
.overlay-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.75);
}

/* --- Category Posts Widget: Zigzag List Layout --- */
.cat-zigzag-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cat-zigzag-item {
    display: flex;
    gap: 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}
body.dark-mode .cat-zigzag-item {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.cat-zigzag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}
.zigzag-image-box {
    position: relative;
    width: 40%;
    aspect-ratio: 16/10;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.zigzag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-zigzag-item:hover .zigzag-img {
    transform: scale(1.03);
}
.zigzag-content-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60%;
}
.zigzag-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 5px 0;
}
.zigzag-title a {
    color: var(--text-color);
}
body.dark-mode .zigzag-title a {
    color: var(--dark-text);
}
.zigzag-title a:hover {
    color: var(--primary-color);
}
.zigzag-excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.dark-mode .zigzag-excerpt {
    color: rgba(255, 255, 255, 0.6);
}
.zigzag-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.zigzag-left {
    flex-direction: row-reverse;
}
.zigzag-left .zigzag-content-box {
    text-align: right;
}

/* --- Category Posts Widget: Numbered List Layout --- */
.cat-numbered-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cat-numbered-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
body.dark-mode .cat-numbered-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.cat-numbered-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.numbered-counter {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(206, 3, 62, 0.15);
    line-height: 1;
    width: 45px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
body.dark-mode .numbered-counter {
    color: rgba(255, 255, 255, 0.15);
}
.cat-numbered-item:hover .numbered-counter {
    color: var(--primary-color);
}
.numbered-content-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.numbered-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.numbered-title a {
    color: var(--text-color);
}
body.dark-mode .numbered-title a {
    color: var(--dark-text);
}
.numbered-title a:hover {
    color: var(--primary-color);
}
.numbered-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Category Posts Widget: Carousel Scroll Layout --- */
.cat-carousel-scroll-layout {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.cat-carousel-scroll-layout::-webkit-scrollbar {
    height: 6px;
}
.cat-carousel-scroll-layout::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}
body.dark-mode .cat-carousel-scroll-layout::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
}
.carousel-scroll-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.carousel-scroll-image-box {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.carousel-scroll-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.carousel-scroll-card:hover .carousel-scroll-img {
    transform: scale(1.05);
}
.carousel-scroll-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.carousel-scroll-title a {
    color: var(--text-color);
}
body.dark-mode .carousel-scroll-title a {
    color: var(--dark-text);
}
.carousel-scroll-title a:hover {
    color: var(--primary-color);
}

/* --- Tabbed Category Widget --- */
.zaiotv-tabbed-widget {
    margin-top: 0;
}

.tabbed-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}
body.dark-mode .tabbed-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.tabbed-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabbed-nav::-webkit-scrollbar {
    display: none;
}
.zaiotv-tab-btn {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-right: 4px solid transparent;
    border-bottom: none;
    padding: 10px 16px 10px 20px; /* offset right padding by 4px for the border placeholder in RTL */
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    position: relative;
    bottom: -2px; /* overlaps the 2px bottom border of tabbed-header */
    z-index: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
body.dark-mode .zaiotv-tab-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    border-right-color: transparent;
    color: rgba(255, 255, 255, 0.6);
}
.zaiotv-tab-btn:hover {
    color: var(--primary-color);
    background-color: var(--white);
    border-color: var(--border-color);
    border-right-color: transparent;
}
body.dark-mode .zaiotv-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    border-right-color: transparent;
}
.zaiotv-tab-btn.active {
    color: var(--text-color);
    background-color: var(--white);
    border-color: var(--border-color);
    border-right: 4px solid var(--primary-color) !important; /* matches widget title vertical bar! */
    border-bottom: 2px solid var(--white) !important; /* blends into content background */
    border-top-right-radius: 0; /* straight corner to align with vertical bar */
    z-index: 2;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
    font-weight: 800;
}
body.dark-mode .zaiotv-tab-btn.active {
    background-color: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.08);
    border-right-color: var(--primary-color) !important;
    border-bottom-color: var(--dark-surface) !important;
    box-shadow: none;
    color: #fff;
}
.tabbed-panels {
    position: relative;
}
.tabbed-panel {
    display: none;
}
.tabbed-panel.active {
    display: block;
    animation: tabFadeIn 0.4s ease;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Regional Moroccan Weather Widget --- */
.zaiotv-weather-widget-container {
    width: 100%;
    direction: rtl;
}
.weather-loading {
    padding: 25px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.weather-loading i {
    margin-left: 5px;
}
.weather-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Themes styling */
.weather-style-glass {
    border-radius: var(--border-radius);
    padding: 5px;
}
.weather-style-glass .weather-featured-card {
    background: rgba(17, 20, 23, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}
body.dark-mode .weather-style-glass .weather-featured-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.weather-style-light .weather-featured-card {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
}
.weather-style-dark .weather-featured-card {
    background: #1e2227;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff !important;
}

/* Featured Zaio layout */
.weather-featured-card {
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.3s ease;
}
.weather-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.weather-city-name {
    font-size: 0.95rem;
    font-weight: 800;
}
.weather-city-name i {
    color: var(--primary-color);
    margin-left: 4px;
}
.weather-featured-desc {
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--text-color);
}
body.dark-mode .weather-featured-desc {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
}
.weather-style-dark .weather-featured-desc {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.weather-featured-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 5px 0;
}
.weather-featured-icon {
    font-size: 2.2rem;
    color: #f59e0b; /* sunny amber color */
}
.weather-featured-temp {
    font-family: var(--font-secondary);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: flex-start;
}
.temp-unit {
    font-size: 1.1rem;
    margin-top: 4px;
}
.weather-featured-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    font-size: 0.72rem;
    text-align: center;
}
body.dark-mode .weather-featured-details {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.weather-style-dark .weather-featured-details {
    border-top-color: rgba(255, 255, 255, 0.15);
}
.weather-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.detail-label {
    color: var(--text-muted);
}
body.dark-mode .detail-label {
    color: rgba(255, 255, 255, 0.5);
}
.weather-style-dark .detail-label {
    color: rgba(255, 255, 255, 0.6);
}
.detail-value {
    font-weight: 700;
    color: var(--text-color);
}
body.dark-mode .detail-value {
    color: var(--dark-text);
}
.weather-style-dark .detail-value {
    color: #fff;
}
.weather-detail-item i {
    margin-left: 2px;
}

/* Regional Cities Grid styling */
.weather-regional-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.weather-regional-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.3s ease;
}
body.dark-mode .weather-regional-item {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}
.weather-style-dark .weather-regional-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.weather-regional-item:hover {
    border-color: var(--primary-color) !important;
}
body.dark-mode .weather-regional-item:hover {
    border-color: var(--accent-color) !important;
}
.regional-city-name {
    font-size: 0.8rem;
    font-weight: 800;
}
.regional-weather-icon {
    font-size: 1.1rem;
    color: #3b82f6; /* blue default cloud color */
}
.regional-temp-range {
    display: flex;
    gap: 6px;
    font-family: var(--font-secondary);
    font-size: 0.72rem;
}
.temp-max {
    color: var(--primary-color);
    font-weight: 700;
}
.temp-min {
    color: #3b82f6;
    font-weight: 700;
}
.temp-max i, .temp-min i {
    font-size: 0.6rem;
    margin-left: 1px;
}

/* Color-coded weather icons with simple CSS animations */
.weather-icon-clear {
    color: #f59e0b !important; /* Amber gold */
    animation: weather-spin 20s linear infinite;
    display: inline-block;
}
.weather-icon-cloudy {
    color: #94a3b8 !important; /* Silver slate */
    animation: weather-float 4s ease-in-out infinite;
    display: inline-block;
}
.weather-icon-rainy {
    color: #38bdf8 !important; /* Sky blue */
    animation: weather-pulse-simple 2s ease-in-out infinite;
    display: inline-block;
}
.weather-icon-storm {
    color: #a855f7 !important; /* Purple */
    animation: weather-flash 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes weather-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes weather-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes weather-pulse-simple {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes weather-flash {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; transform: scale(1.03); }
}

/* Premium weather widget touches */
.weather-date-day {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.03);
    padding: 2px 8px;
    border-radius: 6px;
}
body.dark-mode .weather-date-day {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}
.weather-style-dark .weather-date-day {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.weather-featured-card:hover {
    border-color: var(--primary-color);
}
body.dark-mode .weather-featured-card:hover {
    border-color: var(--accent-color);
}

/* ==========================================================================
   Desktop Page, Single, Archive, and Search Layouts
   ========================================================================== */
.main-layout-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.main-content {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

body.dark-mode .main-content {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}

.main-sidebar {
    width: 335px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

@media (max-width: 992px) {
    .main-layout-wrapper {
        flex-direction: column;
    }
    .main-sidebar {
        width: 100%;
    }
}

/* Breadcrumbs Styling */
.post-breadcrumbs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-breadcrumbs-bar a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.post-breadcrumbs-bar a:hover {
    color: var(--primary-color);
}

body.dark-mode .post-breadcrumbs-bar a {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .post-breadcrumbs-bar a:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Title Styling */
.post-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

body.dark-mode .post-main-title {
    color: var(--dark-text);
}

/* Metadata Styling */
.post-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .post-header-meta {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

.post-header-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-header-meta .meta-item i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

body.dark-mode .post-header-meta .meta-item i {
    color: var(--accent-color);
}

/* Featured Media */
.post-featured-media {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    aspect-ratio: 16/10;
}

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

/* Article Content */
.post-article-content {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-color);
    margin-bottom: 35px;
}

body.dark-mode .post-article-content {
    color: var(--dark-text);
}

.post-article-content p {
    margin-bottom: 20px;
}

.post-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px auto;
    display: block;
}

/* Tags list */
.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

body.dark-mode .post-tags-list {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.tags-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

body.dark-mode .tags-title {
    color: var(--dark-text);
}

.post-tags-list a {
    font-size: 0.8rem;
    padding: 4px 12px;
    background-color: var(--light-bg);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

body.dark-mode .post-tags-list a {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
}

.post-tags-list a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Share bar */
.post-desktop-share-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

body.dark-mode .post-desktop-share-bar {
    background-color: rgba(255, 255, 255, 0.02);
}

.share-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

body.dark-mode .share-label {
    color: var(--dark-text);
}

.share-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.d-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.d-share-btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
}

.d-share-btn.whatsapp {
    background-color: #25d366;
}

.d-share-btn.facebook {
    background-color: #1877f2;
}

.d-share-btn.twitter {
    background-color: #111;
}

.d-share-btn.telegram {
    background-color: #0088cc;
}

/* Related Posts Section */
.post-related-posts-section {
    margin-bottom: 40px;
}

.related-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    border-right: 4px solid var(--primary-color);
    padding-right: 12px;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.related-post-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .related-post-card {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.related-img-container {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    padding: 12px;
}

.related-card-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

body.dark-mode .related-card-title a {
    color: var(--dark-text);
}

.related-card-title a:hover {
    color: var(--primary-color);
}

/* Desktop Archive Grid */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
}

.archive-post-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

body.dark-mode .archive-post-card {
    background: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}

.archive-post-card:hover {
    transform: translateY(-3px);
}

.archive-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.archive-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.archive-post-card:hover .archive-card-img {
    transform: scale(1.04);
}

.archive-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.archive-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.archive-card-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

body.dark-mode .archive-card-title a {
    color: var(--dark-text);
}

.archive-card-title a:hover {
    color: var(--primary-color);
}

.archive-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.archive-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.archive-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

body.dark-mode .archive-card-excerpt {
    color: rgba(255,255,255,0.6);
}

.archive-readmore-btn {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.archive-readmore-btn:hover {
    color: var(--text-color);
}

body.dark-mode .archive-readmore-btn:hover {
    color: var(--dark-text);
}

/* Pagination */
.archive-pagination-wrapper {
    margin-top: 30px;
}

.archive-pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.archive-pagination-wrapper .nav-links {
    display: inline-flex;
    gap: 6px;
}

.archive-pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.dark-mode .archive-pagination-wrapper .page-numbers {
    border-color: rgba(255,255,255,0.08);
    color: var(--dark-text);
}

.archive-pagination-wrapper .page-numbers:hover,
.archive-pagination-wrapper .page-numbers.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Comments Section Styling */
.comments-area {
    padding-top: 15px;
}

body.dark-mode .comments-area {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.comments-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-right: 4px solid var(--primary-color);
    padding-right: 12px;
    line-height: 1.2;
}

body.dark-mode .comments-title {
    color: var(--dark-text);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-list .comment {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    list-style-type: none;
}

body.dark-mode .comment-list .comment {
    background-color: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.05);
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

body.dark-mode .comment-author.vcard {
    color: var(--dark-text);
}

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

body.dark-mode .comment-author.vcard img.avatar {
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-author.vcard .says {
    display: none;
}

.comment-metadata {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    padding-right: 56px; /* Align with text after avatar */
}

body.dark-mode .comment-content {
    color: var(--dark-text);
}

.comment-content p {
    margin: 0;
}

.reply {
    text-align: left;
    padding-right: 56px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.25s ease;
}

body.dark-mode .comment-reply-link {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--dark-text);
}

.comment-reply-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* Children/Thread Replies Indentation (RTL) */
.comment-list .children {
    list-style: none;
    margin: 15px 30px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 2px solid var(--border-color);
    padding-right: 20px;
}

body.dark-mode .comment-list .children {
    border-right-color: rgba(255, 255, 255, 0.06);
}

/* Comment reply form */
#respond {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

body.dark-mode #respond {
    background-color: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
}

#reply-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: var(--text-color);
    border-right: 4px solid var(--primary-color);
    padding-right: 12px;
    line-height: 1.2;
}

body.dark-mode #reply-title {
    color: var(--dark-text);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form p {
    margin: 0;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

body.dark-mode .comment-form-comment label,
body.dark-mode .comment-form-author label,
body.dark-mode .comment-form-email label,
body.dark-mode .comment-form-url label {
    color: var(--dark-text);
}

.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

body.dark-mode .comment-form-comment textarea,
body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"] {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--dark-text);
}

.comment-form-comment textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(206, 3, 62, 0.08);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.dark-mode .comment-form-cookies-consent {
    color: rgba(255, 255, 255, 0.6);
}

.comment-form-cookies-consent input[type="checkbox"] {
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-submit {
    margin-top: 10px;
    text-align: left;
}

.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 32px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(206, 3, 62, 0.15);
}

.submit-btn:hover {
    transform: translateY(-2px);
    background-color: #b00234;
    box-shadow: 0 6px 15px rgba(206, 3, 62, 0.25);
}

/* Grids for desktop forms when logged out */
@media (min-width: 768px) {
    .comment-form {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
    
    .comment-notes,
    .logged-in-as {
        grid-column: span 6;
    }
    
    .comment-form-comment {
        grid-column: span 6;
    }
    
    .comment-form-author {
        grid-column: span 2;
    }
    
    .comment-form-email {
        grid-column: span 2;
    }
    
    .comment-form-url {
        grid-column: span 2;
    }
    
    .comment-form-cookies-consent {
        grid-column: span 6;
    }
    
    .form-submit {
        grid-column: span 6;
    }
}

/* Mobile responsive comments styles */
@media (max-width: 576px) {
    .comment-list .comment {
        padding: 15px;
    }
    
    .comment-author.vcard img.avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-content {
        padding-right: 48px;
        font-size: 0.9rem;
    }
    
    .reply {
        padding-right: 48px;
    }
    
    .comment-list .children {
        margin-right: 15px;
        padding-right: 10px;
    }
    
    #respond {
        padding: 20px 15px;
    }
}

/* --- Top Bar Collapsing Search Form (Desktop Options Panel Support) --- */
.top-bar-search-form {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.top-bar-search-form.open {
    max-width: 240px;
    opacity: 1;
    overflow: visible;
    margin-left: 15px;
}

.top-bar-search-form .search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2px 12px;
    transition: var(--transition-smooth);
}

.top-bar-search-form .search-form:focus-within {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.top-bar-search-form .search-field {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.82rem;
    padding: 4px 8px;
    width: 150px;
}

.top-bar-search-form .search-field::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.top-bar-search-form button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
    transition: var(--transition-smooth);
}

.top-bar-search-form button:hover {
    transform: scale(1.15);
}

/* --- Navigation Bar Search Trigger Button --- */
.menu-search-trigger {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px 12px;
    margin-right: auto; /* Push to left in RTL layout */
    transition: var(--transition-smooth);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.menu-search-trigger:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
    transform: scale(1.08);
}

body.dark-mode .menu-search-trigger {
    color: var(--dark-text);
}

body.dark-mode .menu-search-trigger:hover {
    background-color: rgba(255, 255, 255, 0.05);
}


/* ==========================================================================
   MOBILE SCREEN STYLES (WPtouch / Classic Redux Inspired Architecture)
   ========================================================================== */
@media (max-width: 767px) {
    /* Hide Desktop Site Wrappers - Disabled to prevent blank pages on small viewports in desktop mode */
    /*
    .site-wrapper {
        display: none !important;
    }
    */

    body {
        background-color: var(--light-bg);
        font-size: 15px;
    }

    body.dark-mode {
        background-color: var(--dark-bg);
    }

    /* Mobile Header Layout */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(135deg, #ce033e 0%, #e82239 100%) !important;
        color: #fff;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    }

    body.glass-header-enabled .mobile-header {
        background: rgba(206, 3, 62, 0.82) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-header.mobile-header-scrolled {
        height: 52px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    body.dark-mode .mobile-header {
        background: linear-gradient(135deg, #5c011b 0%, #8c102a 100%) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    body.dark-mode.glass-header-enabled .mobile-header {
        background: rgba(92, 1, 27, 0.82) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 15px;
    }

    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-icon-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.25rem;
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .mobile-icon-btn:active {
        transform: scale(0.9);
    }

    /* Dark Mode Toggler */
    .mobile-theme-toggle {
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
    }

    .mobile-sun-icon {
        display: none;
    }

    body.dark-mode .mobile-theme-toggle .mobile-moon-icon {
        display: none;
    }

    body.dark-mode .mobile-theme-toggle .mobile-sun-icon {
        display: block;
        color: #f59e0b;
    }

    /* Logo Image styling */
    .mobile-header-right {
        display: flex;
        align-items: center;
    }

    .mobile-logo-img {
        height: 54px;
        width: auto;
        object-fit: contain;
        display: block;
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-header.mobile-header-scrolled .mobile-logo-img {
        height: 36px;
    }

    /* Slide-down Search Panel */
    .mobile-search-panel-drawer {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-bottom: 2px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        padding: 10px 15px;
        z-index: 998;
        display: none;
        transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-header.mobile-header-scrolled .mobile-search-panel-drawer {
        top: 52px;
    }

    body.dark-mode .mobile-search-panel-drawer {
        background-color: var(--dark-surface);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-search-form {
        display: flex;
        align-items: center;
        background-color: var(--light-bg);
        border-radius: 20px;
        padding: 2px 12px;
        border: 1px solid var(--border-dark);
    }

    body.dark-mode .mobile-search-form {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-search-field {
        flex-grow: 1;
        border: none;
        background: none;
        font-size: 0.85rem;
        padding: 4px 6px;
        color: var(--text-color);
    }

    body.dark-mode .mobile-search-field {
        color: var(--dark-text);
    }

    .mobile-search-submit {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-muted);
        font-size: 0.95rem;
    }

    body.dark-mode .mobile-search-submit {
        color: var(--dark-text);
    }

    /* Main Mobile Layout Content Wrapper */
    .mobile-main-content {
        padding-top: 80px; /* Clears fixed top bar */
        min-height: calc(100vh - 120px);
    }

    .below-header-ad-banner.mobile-only {
        margin-top: 90px !important;
    }

    .below-header-ad-banner.mobile-only + .mobile-main-content {
        padding-top: 10px;
    }

    /* Mobile Breaking News Ticker */
    .mobile-ticker-bar {
        display: flex;
        align-items: center;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        height: 38px;
        padding: 0 15px;
        overflow: hidden;
    }

    body.dark-mode .mobile-ticker-bar {
        background-color: var(--dark-surface);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-ticker-badge {
        background-color: var(--primary-color);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 3px;
        margin-left: 12px;
        white-space: nowrap;
        position: relative;
    }

    .mobile-ticker-badge::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -4px;
        transform: translateY(-50%);
        border-width: 4px 4px 4px 0;
        border-style: solid;
        border-color: transparent var(--primary-color) transparent transparent;
    }

    .mobile-ticker-slider {
        flex-grow: 1;
        height: 100%;
        position: relative;
    }

    .mobile-ticker-list {
        margin: 0;
        padding: 0;
        list-style: none;
        height: 100%;
        position: relative;
    }

    .mobile-ticker-item {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .mobile-ticker-item.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-ticker-item a {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--text-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 95%;
    }

    body.dark-mode .mobile-ticker-item a {
        color: var(--dark-text);
    }

    /* Cover Image Post Card Grid (Like Screenshot) */
    .mobile-posts-feed-container {
        padding: 0px;
    }

    .mobile-post-card {
        position: relative;
        width: 100%;
        margin-bottom: 4px;
        overflow: hidden;
    }

    .mobile-post-image-container {
        width: 100%;
        aspect-ratio: 16/10;
        position: relative;
        background-color: #eee;
    }

    body.dark-mode .mobile-post-image-container {
        background-color: #2c2f33;
    }

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

    /* Overlay content styled exactly like screen */
    .mobile-post-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 15px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
        color: #fff;
        z-index: 2;
        pointer-events: none;
    }

    .mobile-post-title {
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.45;
        margin: 0 0 6px 0;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    .mobile-post-meta {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.82);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Mobile Archive Header */
    .mobile-archive-header-bar {
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 15px;
    }

    body.dark-mode .mobile-archive-header-bar {
        background-color: var(--dark-surface);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-archive-heading-title {
        font-size: 1.05rem;
        font-weight: 800;
        border-right: 4px solid var(--primary-color);
        padding-right: 8px;
        line-height: 1.2;
    }

    /* Mobile Navigation Drawer Modal overlay */
    .mobile-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.56);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-drawer-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-drawer-content {
        position: absolute;
        top: 0;
        left: -280px; /* Slides from left */
        width: 280px;
        height: 100%;
        background-color: var(--white);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-drawer-overlay.open .mobile-drawer-content {
        left: 0;
    }

    body.dark-mode .mobile-drawer-content {
        background-color: var(--dark-surface);
    }

    .mobile-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    body.dark-mode .mobile-drawer-header {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-drawer-title {
        font-weight: 800;
        font-size: 0.95rem;
        color: var(--text-color);
    }

    body.dark-mode .mobile-drawer-title {
        color: var(--dark-text);
    }

    .mobile-drawer-close-btn {
        background: none;
        border: none;
        font-size: 1.35rem;
        cursor: pointer;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .mobile-drawer-nav {
        flex-grow: 1;
        overflow-y: auto;
        padding: 10px 0;
    }

    .mobile-drawer-menu-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-drawer-menu-links li a {
        display: block;
        padding: 12px 20px;
        font-size: 0.92rem;
        font-weight: 700;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
        transition: background 0.2s ease;
    }

    body.dark-mode .mobile-drawer-menu-links li a {
        color: var(--dark-text);
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .mobile-drawer-menu-links li a:active {
        background-color: var(--light-bg);
    }

    /* Mobile Single Post View Layout */
    .mobile-single-post {
        background-color: var(--white);
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    body.dark-mode .mobile-single-post {
        background-color: var(--dark-surface);
    }

    .mobile-single-header {
        padding: 20px 15px 15px 15px;
    }

    .mobile-single-cat-badge {
        margin-bottom: 8px;
    }

    .mobile-single-cat-badge a {
        display: inline-block;
        background-color: var(--primary-color);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 3px;
    }

    .mobile-single-title {
        font-size: 1.3rem;
        font-weight: 800;
        line-height: 1.45;
        margin: 0 0 10px 0;
        color: var(--text-color);
    }

    body.dark-mode .mobile-single-title {
        color: var(--dark-text);
    }

    .mobile-single-meta {
        font-size: 0.75rem;
        color: var(--text-muted);
        display: flex;
        gap: 15px;
    }

    body.dark-mode .mobile-single-meta {
        color: rgba(255, 255, 255, 0.5);
    }

    .mobile-single-featured-image {
        width: 100%;
        position: relative;
    }

    .single-mobile-img {
        width: 100%;
        display: block;
    }

    .mobile-single-content {
        padding: 20px 15px;
        font-size: 1.05rem;
        line-height: 1.85;
        color: var(--text-color);
    }

    body.dark-mode .mobile-single-content {
        color: var(--dark-text);
    }

    .mobile-single-content p {
        margin-bottom: 18px;
    }

    .mobile-single-content img {
        border-radius: var(--border-radius);
        margin: 10px auto;
        display: block;
        max-width: 100%;
        height: auto;
    }

    /* Mobile Social Share Bar */
    .mobile-share-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        background-color: var(--light-bg);
    }

    body.dark-mode .mobile-share-bar {
        background-color: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .share-title {
        font-weight: 800;
        font-size: 0.8rem;
        color: var(--text-color);
    }

    body.dark-mode .share-title {
        color: var(--dark-text);
    }

    .share-buttons {
        display: flex;
        gap: 10px;
    }

    .share-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        color: #fff !important;
        font-size: 0.95rem;
        transition: transform 0.2s ease;
    }

    .share-btn:active {
        transform: scale(0.9);
    }

    .share-btn.whatsapp {
        background-color: #25d366;
    }

    .share-btn.facebook {
        background-color: #1877f2;
    }

    .share-btn.telegram {
        background-color: #0088cc;
    }

    /* Related posts on mobile view */
    .mobile-related-section {
        padding: 20px 15px;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
    }

    body.dark-mode .mobile-related-section {
        background-color: var(--dark-surface);
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-related-header {
        font-size: 0.95rem;
        font-weight: 800;
        margin: 0 0 15px 0;
        border-right: 3px solid var(--primary-color);
        padding-right: 8px;
        line-height: 1.2;
    }

    .mobile-related-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-related-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
    }

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

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

    .related-thumb {
        width: 70px;
        height: 48px;
        border-radius: 3px;
        overflow: hidden;
        flex-shrink: 0;
        background-color: #eee;
    }

    .related-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .related-title {
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.4;
        color: var(--text-color);
    }

    body.dark-mode .related-title {
        color: var(--dark-text);
    }

    /* Mobile Footer Layout */
    .mobile-footer {
        background-color: #111112;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 25px 15px;
        text-align: center;
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.55);
    }

    body.dark-mode .mobile-footer {
        background-color: #0c0c0d;
        border-top-color: rgba(255, 255, 255, 0.03);
    }

    .mobile-footer-logo {
        margin-bottom: 18px;
        display: flex;
        justify-content: center;
    }

    .mobile-footer-logo img {
        max-height: 75px;
        width: auto;
        display: block;
        object-fit: contain;
    }

    .mobile-footer-socials {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
    }

    .mobile-footer-socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.92rem;
        transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
        border: 1px solid rgba(255, 255, 255, 0.05);
        text-decoration: none;
    }

    .mobile-footer-socials a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .mobile-footer-socials a.youtube:hover {
        color: #ff0000;
    }

    .mobile-footer-socials a.facebook:hover {
        color: #1877f2;
    }

    .mobile-footer-socials a.instagram:hover {
        color: #e1306c;
    }

    .mobile-footer-socials a.tiktok:hover {
        color: #00f2fe;
    }

    .mobile-footer-socials a.whatsapp:hover {
        color: #25d366;
    }

    .mobile-footer-socials a.telegram:hover {
        color: #0088cc;
    }

    .mobile-footer-socials a.twitter:hover {
        color: #ffffff;
    }

    .mobile-footer-copy {
        margin-bottom: 5px;
        color: rgba(255, 255, 255, 0.5);
    }

    .mobile-footer-credits {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.35);
    }

    .mobile-footer-credits a {
        color: #fff;
        font-weight: 700;
        transition: color 0.2s ease;
        text-decoration: none;
    }

    .mobile-footer-credits a:hover {
        color: var(--primary-color);
    }

    /* AJAX Load More Button styling */
    .mobile-load-more-container {
        padding: 15px;
    }

    #zaiotv-load-more {
        width: 100%;
        height: 42px;
        background-color: var(--white);
        border: 1px solid var(--border-dark);
        border-radius: 4px;
        color: var(--text-color);
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    body.dark-mode #zaiotv-load-more {
        background-color: var(--dark-surface);
        border-color: rgba(255, 255, 255, 0.08);
        color: var(--dark-text);
    }

    #zaiotv-load-more:active {
        background-color: var(--light-bg);
    }

    body.dark-mode #zaiotv-load-more:active {
        background-color: rgba(255,255,255,0.02);
    }

    #zaiotv-load-more:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-spinner {
        font-size: 1rem;
        line-height: 1;
    }

    /* Animations helper */
    @keyframes slideDownMobile {
        from {
            transform: translateY(-5px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .animate-fade-in {
        animation: fadeInMobile 0.4s ease forwards;
    }

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

    /* Mobile Drawer Social Media Links */
    .mobile-drawer-socials {
        padding: 20px;
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: auto;
    }

    body.dark-mode .mobile-drawer-socials {
        border-top-color: rgba(255, 255, 255, 0.05);
    }

    .mobile-drawer-socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: var(--light-bg);
        color: var(--text-color);
        font-size: 1.1rem;
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    body.dark-mode .mobile-drawer-socials a {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--dark-text);
    }

    .mobile-drawer-socials a:active {
        transform: scale(0.9);
    }

    .mobile-drawer-socials a:hover {
        background-color: var(--primary-color);
        color: #fff;
    }

    /* Mobile Compact List Rows (Alternative Mobile layout style) */
    .mobile-post-compact-row {
        background-color: var(--white);
        border-radius: var(--border-radius);
        margin: 10px 15px;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        transition: var(--transition-smooth);
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    body.dark-mode .mobile-post-compact-row {
        background-color: var(--dark-surface);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .mobile-post-compact-link {
        display: flex;
        padding: 10px;
        gap: 12px;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }

    .mobile-post-compact-image-container {
        width: 100px;
        height: 70px;
        border-radius: 4px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .mobile-post-compact-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-post-compact-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 60px;
    }

    .mobile-post-compact-title {
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.4;
        color: var(--text-color);
        margin: 0 0 5px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.dark-mode .mobile-post-compact-title {
        color: var(--dark-text);
    }

    .mobile-post-compact-meta {
        font-size: 0.72rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Mobile Drawer Sub-menu Accordion Styles */
    .mobile-drawer-menu-links li {
        position: relative;
    }

    .mobile-drawer-menu-links li.menu-item-has-children {
        display: flex;
        flex-direction: column;
    }

    .mobile-drawer-menu-links li.menu-item-has-children > a {
        padding-left: 50px; /* Leave space for toggle button */
        width: 100%;
    }

    .mobile-submenu-toggle {
        position: absolute;
        top: 0;
        left: 0;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-muted);
        z-index: 10;
        border-right: 1px solid var(--border-color);
        transition: var(--transition-smooth);
    }

    body.dark-mode .mobile-submenu-toggle {
        border-right-color: rgba(255, 255, 255, 0.05);
        color: var(--dark-text);
    }

    .mobile-submenu-toggle i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .mobile-drawer-menu-links ul.sub-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.02);
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.dark-mode .mobile-drawer-menu-links ul.sub-menu {
        background-color: rgba(255, 255, 255, 0.02);
    }

    .mobile-drawer-menu-links ul.sub-menu li a {
        padding: 10px 30px 10px 20px; /* Indent submenus */
        font-size: 0.85rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    body.dark-mode .mobile-drawer-menu-links ul.sub-menu li a {
        border-bottom-color: rgba(255, 255, 255, 0.03);
    }
}

/* --- Dark Mode Post Content Text Visibility (Desktop & Mobile) --- */
body.dark-mode .post-article-content,
body.dark-mode .post-article-content p,
body.dark-mode .post-article-content span,
body.dark-mode .post-article-content li,
body.dark-mode .post-article-content a:not(.d-share-btn),
body.dark-mode .mobile-single-content,
body.dark-mode .mobile-single-content p,
body.dark-mode .mobile-single-content span,
body.dark-mode .mobile-single-content li,
body.dark-mode .mobile-single-content a {
    color: var(--dark-text) !important;
}

body.dark-mode .post-article-content a:not(.d-share-btn):hover,
body.dark-mode .mobile-single-content a:hover {
    color: var(--accent-color) !important;
}

/* --- Font Resizer Controls --- */
.font-resizer-controls {
    margin-right: auto; /* Push to the left in RTL flexbox */
    display: flex;
    align-items: center;
    gap: 4px;
}

.font-resizer-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .font-resizer-btn {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

.font-resizer-btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

body.dark-mode .font-resizer-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
}

/* --- Skeleton Placeholders --- */
.skeleton-placeholder-wrapper {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-item {
    background: var(--white);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    box-sizing: border-box;
}

body.dark-mode .skeleton-item {
    background: var(--dark-surface);
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer-anim 1.5s infinite linear;
    border-radius: 4px;
}

body.dark-mode .skeleton-shimmer {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-shimmer-anim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-compact-row {
    align-items: center;
}

.skeleton-compact-row .skeleton-thumb {
    width: 90px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
}

.skeleton-compact-row .skeleton-content-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-compact-row .skeleton-title-line {
    height: 14px;
    width: 90%;
}

.skeleton-compact-row .skeleton-title-line.short {
    width: 60%;
}

.skeleton-compact-row .skeleton-meta-line {
    height: 10px;
    width: 40%;
}

.skeleton-card-row {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.skeleton-card-row .skeleton-cover {
    width: 100%;
    height: 180px;
    border-radius: 8px 8px 0 0;
}

.skeleton-card-row .skeleton-content-box {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-card-row .skeleton-title-line {
    height: 16px;
    width: 85%;
}

.skeleton-card-row .skeleton-meta-line {
    height: 11px;
    width: 30%;
}

/* --- Polite Ad-Blocker Alert Banner --- */
.adblock-alert-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    border-right: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    border-radius: 8px;
    padding: 15px 20px;
    animation: slideUpAdblock 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    direction: rtl;
    box-sizing: border-box;
}

body.dark-mode .adblock-alert-banner {
    background: var(--dark-surface);
    border-right-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.adblock-alert-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.adblock-alert-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.adblock-alert-content {
    flex-grow: 1;
    max-width: 600px;
}

.adblock-alert-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

body.dark-mode .adblock-alert-content h4 {
    color: var(--white);
}

.adblock-alert-content p {
    margin: 0;
    font-size: 0.82rem;
    color: #374151; /* Dark grey for high contrast */
    line-height: 1.5;
}

body.dark-mode .adblock-alert-content p {
    color: var(--light-text);
}

.adblock-alert-actions {
    flex-shrink: 0;
}

.adblock-btn-dismiss {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.adblock-btn-dismiss:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

/* --- Medium-Style Image Zoom --- */
.post-article-content img:not(.d-share-btn), .mobile-single-content img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.post-article-content img:not(.d-share-btn):hover, .mobile-single-content img:hover {
    opacity: 0.92;
}

.img-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

body.dark-mode .img-zoom-overlay {
    background: rgba(0, 0, 0, 0.92);
}

.img-zoom-overlay.open {
    opacity: 1;
}

.img-zoom-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.img-zoom-overlay.open .img-zoom-img {
    transform: scale(1);
}

/* ==========================================================================
   DESKTOP SINGLE POST HEADER HERO REDESIGN
   ========================================================================== */
.post-featured-hero {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #0d0f12;
}

.post-featured-hero .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.post-featured-hero:hover .hero-bg-img {
    transform: scale(1.03);
}

.post-featured-hero .hero-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.1) 100%);
    color: #ffffff;
    z-index: 2;
}

.post-featured-hero .post-breadcrumbs-bar {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.post-featured-hero .post-breadcrumbs-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.post-featured-hero .post-breadcrumbs-bar a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.post-featured-hero .post-main-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.post-featured-hero .post-header-meta {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    color: rgba(255, 255, 255, 0.85);
}

.post-featured-hero .post-header-meta .meta-item i {
    color: var(--accent-color);
}

.post-featured-hero .font-resizer-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.post-featured-hero .font-resizer-btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

body.dark-mode .post-featured-hero .font-resizer-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   MOBILE SINGLE POST HEADER HERO REDESIGN (Under 767px Media Query)
   ========================================================================== */
@media (max-width: 767px) {
    .mobile-post-featured-hero {
        position: relative;
        width: 100%;
        height: 290px;
        overflow: hidden;
        background-color: #0b0c0e;
    }

    .mobile-post-featured-hero .hero-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mobile-post-featured-hero .hero-overlay-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 20px 15px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.15) 100%);
        color: #ffffff;
        z-index: 2;
    }

    .mobile-post-featured-hero .mobile-breadcrumbs-bar {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
        margin-bottom: 10px;
        color: rgba(255, 255, 255, 0.82);
    }

    .mobile-post-featured-hero .mobile-breadcrumbs-bar a {
        color: rgba(255, 255, 255, 0.82);
    }

    .mobile-post-featured-hero .mobile-breadcrumbs-bar a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

    .mobile-post-featured-hero .mobile-single-title {
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1.4;
        margin: 0 0 12px 0;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .mobile-post-featured-hero .mobile-single-meta {
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.72rem;
        display: flex;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .mobile-post-featured-hero .mobile-single-meta .meta-item i {
        color: var(--accent-color);
    }

    .mobile-post-featured-hero .font-resizer-btn {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .mobile-post-featured-hero .font-resizer-btn:hover {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: #ffffff !important;
    }

    /* Fallback mobile text header style */
    .mobile-single-header-text {
        padding: 20px 15px 15px 15px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 15px;
    }

    body.dark-mode .mobile-single-header-text {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-single-header-text .mobile-breadcrumbs-bar {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.75rem;
        margin-bottom: 10px;
        color: var(--text-muted);
    }

    .mobile-single-header-text .mobile-breadcrumbs-bar a {
        color: var(--text-muted);
    }

    body.dark-mode .mobile-single-header-text .mobile-breadcrumbs-bar a {
        color: rgba(255, 255, 255, 0.6);
    }

    .mobile-single-header-text .mobile-breadcrumbs-bar .breadcrumb-separator {
        font-size: 0.65rem;
        opacity: 0.6;
    }
}

/* ==========================================================================
   TYPOGRAPHY AND CONTENT POLISH
   ========================================================================== */
.post-article-content,
.post-article-content p {
    font-size: var(--post-content-font-size, 1.05rem) !important;
    line-height: 1.8 !important;
}

@media (max-width: 767px) {
    .mobile-single-content,
    .mobile-single-content p {
        font-size: var(--post-content-font-size, 1.05rem) !important;
        line-height: 1.8 !important;
    }
}

/* Blockquote / Pull-quote styling */
.post-article-content blockquote,
.mobile-single-content blockquote {
    position: relative;
    margin: 30px 0;
    padding: 18px 24px 18px 18px;
    background-color: var(--light-bg);
    border-right: 4px solid var(--primary-color);
    font-style: italic;
    font-size: calc(var(--post-content-font-size, 1.05rem) * 1.12);
    line-height: 1.75;
    color: var(--text-color);
    border-radius: 0 8px 8px 0;
    box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.02);
}

body.dark-mode .post-article-content blockquote,
body.dark-mode .mobile-single-content blockquote {
    background-color: rgba(255, 255, 255, 0.03);
    border-right-color: var(--accent-color);
    color: var(--dark-text);
}

.post-article-content blockquote p,
.mobile-single-content blockquote p {
    margin-bottom: 0 !important;
    font-size: calc(var(--post-content-font-size, 1.05rem) * 1.12) !important;
    line-height: 1.75 !important;
    display: inline;
}

/* Quote mark icon styling */
.post-article-content blockquote::before,
.mobile-single-content blockquote::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.08);
}

body.dark-mode .post-article-content blockquote::before,
body.dark-mode .mobile-single-content blockquote::before {
    color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   WIDGET: DEDICATED PRAYER TIMES WIDGET
   ========================================================================== */
.zaiotv-prayer-widget-box {
    padding: 18px 15px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

body.dark-mode .zaiotv-prayer-widget-box {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.prayer-date-string {
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(17, 20, 23, 0.02);
    border: 1px solid var(--border-color);
    border-right: 3px solid var(--primary-color);
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}

body.dark-mode .prayer-date-string {
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    border-right-color: var(--primary-color);
}

.prayer-times-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prayer-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: all 0.25s ease;
}

body.dark-mode .prayer-time-row {
    background-color: var(--dark-surface);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
}

.prayer-time-row .p-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prayer-time-row .p-name i {
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

body.dark-mode .prayer-time-row .p-name i {
    color: var(--accent-color);
}

.prayer-time-row .p-time {
    font-weight: 800;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

body.dark-mode .prayer-time-row .p-time {
    color: rgba(255, 255, 255, 0.6);
}

/* Upcoming prayer active row highlight */
.prayer-time-row.active {
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(206, 3, 62, 0.22);
}

body.dark-mode .prayer-time-row.active {
    border-color: var(--accent-color) !important;
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 75, 96, 0.25);
}

.prayer-time-row.active .p-name i,
.prayer-time-row.active .p-time {
    color: #ffffff !important;
}

/* ==========================================================================
   WIDGET: MOST READ / POPULAR ARTICLES
   ========================================================================== */
.zaiotv-popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popular-post-rank {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

body.dark-mode .popular-post-rank {
    border-color: var(--accent-color);
}

.popular-post-item:hover .popular-post-rank {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-mode .popular-post-item:hover .popular-post-rank {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.popular-post-rank .rank-number {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: Cairo,Tajawal,sans-serif;
    transition: color 0.3s ease;
}

body.dark-mode .popular-post-rank .rank-number {
    color: var(--accent-color);
}

.popular-post-item:hover .popular-post-rank .rank-number {
    color: #ffffff;
}

.popular-post-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.dark-mode .popular-post-image {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-image img {
    transform: scale(1.08);
}

.popular-post-details {
    flex-grow: 1;
}

.popular-post-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 4px 0;
}

.popular-post-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

body.dark-mode .popular-post-title a {
    color: var(--dark-text);
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

body.dark-mode .popular-post-title a:hover {
    color: var(--accent-color);
}

.popular-post-meta {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

body.dark-mode .popular-post-meta {
    color: rgba(255, 255, 255, 0.4);
}

.popular-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   WIDGET: INTERACTIVE QUICK POLL
   ========================================================================== */
.zaiotv-quick-poll-box {
    padding: 15px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

body.dark-mode .zaiotv-quick-poll-box {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.poll-question {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--text-color);
    margin: 0 0 15px 0;
    border-right: 3px solid var(--primary-color);
    padding-right: 8px;
}

body.dark-mode .poll-question {
    color: var(--dark-text);
    border-right-color: var(--accent-color);
}

.poll-options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.poll-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-color);
    position: relative;
    padding: 6px 0;
}

body.dark-mode .poll-option-label {
    color: var(--dark-text);
}

.poll-option-label input[type="radio"] {
    display: none;
}

.custom-radio-indicator {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

body.dark-mode .custom-radio-indicator {
    border-color: rgba(255, 255, 255, 0.2);
}

.poll-option-label input[type="radio"]:checked + .custom-radio-indicator {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

body.dark-mode .poll-option-label input[type="radio"]:checked + .custom-radio-indicator {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
}

.poll-option-label input[type="radio"]:checked + .custom-radio-indicator::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.poll-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

body.dark-mode .poll-submit-btn {
    background-color: var(--accent-color);
}

.poll-submit-btn:hover {
    opacity: 0.9;
}

.poll-submit-btn:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Poll Results Styling */
.poll-results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.poll-result-bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poll-result-text-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
}

.poll-opt-name {
    color: var(--text-color);
}

body.dark-mode .poll-opt-name {
    color: var(--dark-text);
}

.poll-opt-percent {
    color: var(--primary-color);
}

body.dark-mode .poll-opt-percent {
    color: var(--accent-color);
}

.poll-progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

body.dark-mode .poll-progress-container {
    background-color: rgba(255, 255, 255, 0.08);
}

.poll-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .poll-progress-bar {
    background-color: var(--accent-color);
}

.poll-results-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
}

body.dark-mode .poll-results-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

/* --- Premium Dual-Column Magazine Widget --- */
/* Strip standard widget styling from the outer container of this widget so the two inner columns look like separate widgets */
.widget:has(.zaiotv-dual-category-widget) {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

.zaiotv-dual-category-widget {
    display: flex;
    gap: 15px;
    width: 100%;
    direction: rtl;
    margin-top: 15px;
}
.zaiotv-dual-category-widget .dual-main-col {
    width: calc(66.6666% - 5px);
    flex: 0 0 calc(66.6666% - 5px);
    min-width: 0;
    margin-bottom: 15px; /* Standard widget margin-bottom */
}
.zaiotv-dual-category-widget .dual-side-col {
    width: calc(33.3333% - 10px);
    flex: 0 0 calc(33.3333% - 10px);
    min-width: 0;
    margin-bottom: 15px;
}

/* Tabbed Magazine Split Layout inside the Main Column (66%) */
.tabbed-magazine-split {
    display: flex;
    gap: 20px;
}
.tabbed-magazine-split .split-featured-col {
    flex: 1.2;
    min-width: 0;
}
.tabbed-magazine-split .split-list-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Featured Card inside Tabbed Panel (Right Side) */
.dual-featured-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dual-featured-card .card-image-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 6px;
}
.dual-featured-card .card-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.dual-featured-card:hover .card-image-box img {
    transform: scale(1.05);
}
.dual-featured-card .card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 800;
    margin: 8px 0 0 0;
}
.dual-featured-card .card-title a {
    color: var(--text-color, #222222);
    text-decoration: none;
    transition: color 0.2s ease;
}
body.dark-mode .dual-featured-card .card-title a {
    color: var(--dark-text, #ffffff);
}
.dual-featured-card:hover .card-title a,
.dual-featured-card .card-title a:hover {
    color: var(--primary-color);
}
.dual-featured-card .card-excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted, #777777);
    margin: 0;
}
body.dark-mode .dual-featured-card .card-excerpt {
    color: rgba(255, 255, 255, 0.6);
}
.dual-featured-card .card-date {
    font-size: 0.78rem;
    color: var(--text-muted, #777777);
    display: flex;
    align-items: center;
    gap: 5px;
}
body.dark-mode .dual-featured-card .card-date {
    color: rgba(255, 255, 255, 0.5);
}

/* List Items inside Tabbed Panel (Left Side) */
.split-list-item {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    transition: transform 0.2s ease;
}
body.dark-mode .split-list-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.split-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.split-list-item:hover {
    transform: translateX(-4px); /* nudge left slightly on hover in RTL */
}
.split-list-item .item-image-box {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.split-list-item .item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.split-list-item:hover .item-image-box img {
    transform: scale(1.08);
}
.split-list-item .item-content-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.split-list-item .item-title {
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0;
}
.split-list-item .item-title a {
    color: var(--text-color, #222222);
    text-decoration: none;
    transition: color 0.2s ease;
}
body.dark-mode .split-list-item .item-title a {
    color: var(--dark-text, #ffffff);
}
.split-list-item:hover .item-title a,
.split-list-item .item-title a:hover {
    color: var(--primary-color);
}
.split-list-item .item-date {
    font-size: 0.75rem;
    color: var(--text-muted, #777777);
    display: flex;
    align-items: center;
    gap: 4px;
}
body.dark-mode .split-list-item .item-date {
    color: rgba(255, 255, 255, 0.5);
}

/* Sidebar Column (33% Width) Content Styles */
.side-post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    transition: transform 0.2s ease;
}

body.dark-mode .side-post-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.side-post-item:hover {
    transform: translateX(-4px); /* nudge left slightly on hover in RTL */
}

.side-post-item .side-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.side-post-item .side-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.side-post-item:hover .side-item-image img {
    transform: scale(1.08);
}

.side-post-item .side-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.side-post-item .side-item-title {
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0;
}

.side-post-item .side-item-title a {
    color: var(--text-color, #222222);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.dark-mode .side-post-item .side-item-title a {
    color: var(--dark-text, #ffffff);
}

.side-post-item:hover .side-item-title a,
.side-post-item .side-item-title a:hover {
    color: var(--primary-color);
}

.side-post-item .side-item-date {
    font-size: 0.75rem;
    color: var(--text-muted, #777777);
    display: flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .side-post-item .side-item-date {
    color: rgba(255, 255, 255, 0.5);
}



/* Remaining Simple Text List Items inside the Sidebar */
.side-simple-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}
body.dark-mode .side-simple-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.side-simple-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.side-simple-item:hover {
    transform: translateX(-4px);
}
.side-simple-title {
    position: relative;
    padding-right: 15px; /* RTL space for the pseudo-bullet */
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 5px 0;
}
.side-simple-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}
.side-simple-title a {
    color: var(--text-color, #222222);
    text-decoration: none;
    transition: color 0.2s ease;
}
body.dark-mode .side-simple-title a {
    color: var(--dark-text, #ffffff);
}
.side-simple-title a:hover {
    color: var(--primary-color);
}
.side-simple-date {
    font-size: 0.75rem;
    color: var(--text-muted, #777777);
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 15px;
}
body.dark-mode .side-simple-date {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles for Dual Widget */
@media (max-width: 991px) {
    .zaiotv-dual-category-widget {
        gap: 15px;
    }
}
@media (max-width: 768px) {
    .zaiotv-dual-category-widget {
        flex-direction: column;
        gap: 20px;
    }
    .zaiotv-dual-category-widget .dual-main-col,
    .zaiotv-dual-category-widget .dual-side-col {
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 0;
    }
    .tabbed-magazine-split {
        flex-direction: column;
        gap: 18px;
    }
}

/* --- Middle Grid Widget --- */
.zaiotv-middle-grid-widget {
    direction: rtl;
    width: 100%;
}
.middle-grid-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-height: 354px; /* (172px * 2 + 10px) */
    aspect-ratio: 1200 / 354;
}
.middle-grid-right {
    flex: 1;
    min-width: 0;
    height: 100%;
}
.middle-grid-left {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}
.middle-grid-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background-color: #000;
}
.middle-grid-card .card-image-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.middle-grid-card .card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85; /* dim slightly to enhance text contrast */
}
.middle-grid-card:hover .card-bg-img {
    transform: scale(1.06);
    opacity: 0.95;
}
.middle-grid-card .card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 65%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.35s ease;
}
.middle-grid-card:hover .card-content-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0) 100%);
}
.middle-grid-card .card-post-title {
    margin: 0;
    line-height: 1.4;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.middle-grid-card:hover .card-post-title {
    transform: translateX(-10px);
}
.middle-grid-card .card-post-title::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.middle-grid-card:hover .card-post-title::before {
    transform: scaleY(1);
    opacity: 1;
}
.middle-grid-card .card-post-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.35s ease;
}
.middle-grid-card:hover .card-post-title a {
    color: #ffb3c6 !important;
    text-shadow: 0 0 10px rgba(206, 3, 62, 0.2);
}
.middle-grid-card .card-post-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured card specific styles */
.grid-item-featured .card-post-title {
    font-size: 1.25rem;
    font-weight: 800;
}

/* Small grid card specific styles */
.grid-item-small {
    /* Placed in 2x2 grid */
}
.grid-item-small .card-post-title {
    font-size: 0.9rem;
    font-weight: 700;
}
.grid-item-small .card-content-overlay {
    padding: 12px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .grid-item-featured .card-post-title {
        font-size: 1.1rem;
    }
    .grid-item-small .card-post-title {
        font-size: 0.82rem;
    }
}
@media (max-width: 768px) {
    .middle-grid-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        aspect-ratio: auto;
        gap: 10px;
    }
    .middle-grid-right {
        width: 100%;
        height: 250px;
    }
    .middle-grid-left {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }
    .grid-item-small {
        height: 172px;
    }
    .grid-item-featured .card-post-title {
        font-size: 1.15rem;
    }
    .grid-item-small .card-post-title {
        font-size: 0.9rem;
    }
}



