/* ========================================
   سبق - News Website Styles
   Similar to eremnews.com design
======================================== */

/* CSS Variables */
:root {
    --primary-color: #c41e3a;
    --primary-dark: #a01830;
    --secondary-color: #1a1a2e;
    --accent-color: #e94560;
    --primary-rgb: 196 30 58;
    --accent-rgb: 233 69 96;
    --dark-rgb: 26 26 46;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-light: #888;
    --bg-primary: #ffffff;
    --bg-secondary: #fdfdfd; /* Background updated globally */
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.14);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
    --ring: 0 0 0 3px rgba(196, 30, 58, 0.18);
    --container: 1400px;
}

/* Dark Mode Variables */
html.dark-mode {
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-light: #888;
    --bg-primary: #1a1a2e;
    --bg-secondary: #141425;
    --bg-dark: #0f0f1a;
    --border-color: #2a2a4a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html.dark-mode body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

html.dark-mode .news-card,
html.dark-mode .article-content,
html.dark-mode .section-header,
html.dark-mode .widget-section {
    background: var(--bg-primary);
    color: var(--text-primary);
}

html.dark-mode .news-card .card-title,
html.dark-mode .news-card .card-content h3 {
    color: var(--text-primary);
}

html.dark-mode .news-card .card-excerpt,
html.dark-mode .news-card .card-meta {
    color: var(--text-secondary);
}

html.dark-mode .skeleton-title,
html.dark-mode .skeleton-main-card,
html.dark-mode .skeleton-small-img,
html.dark-mode .skeleton-text-line,
html.dark-mode .skeleton-news-img {
    background: linear-gradient(90deg, #2a2a4a 25%, #3a3a5a 50%, #2a2a4a 75%);
    background-size: 200% 100%;
}

html.dark-mode .skeleton-news-card {
    background: var(--bg-primary);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 150px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-popup {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-popup {
    transform: translateY(0);
}

.close-search {
    position: absolute;
    top: -50px;
    left: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.close-search:hover {
    color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    padding: 15px 25px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #fdfdfd; /* Updated to user preference */
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.35;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Sabq Meta Bar - Final Override for mobile */
.sabq-meta-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 15px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    background: #fff !important;
    flex-wrap: nowrap !important;
}

.sabq-meta-bar span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.sabq-meta-bar i {
    color: #c41e3a !important;
    font-size: 16px !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.sabq-meta-bar a {
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.sabq-meta-bar time {
    color: #555 !important;
    font-size: 13px !important;
}

/* Meta Share Dropdown - Base styles for desktop */
.meta-share-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 8px;
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
    flex-direction: row;
    gap: 8px;
    min-width: 150px;
    justify-content: space-around;
}

.meta-share-dropdown.show {
    display: flex;
}

.meta-share-dropdown a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #333;
    font-size: 16px;
    transition: 0.2s;
    text-decoration: none;
}

.meta-share-dropdown a.whatsapp { color: #25D366; background: #e8f5e9; }
.meta-share-dropdown a.twitter { color: #000; background: #eef; }
.meta-share-dropdown a.facebook { color: #1877F2; background: #eaf3ff; }
.meta-share-dropdown a.telegram { color: #0088cc; background: #e0f2f1; }

/* ========================================
   Top Bar
======================================== */
.top-bar {
    display: none;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date i {
    margin-left: 8px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* ========================================
   Header - Modern Design
======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0f192b;
    transition: box-shadow 0.3s ease;
}

.header-container {
    background: #0f192b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Two-row header (reference-like): white top + black nav bar */
.header-top {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-top .header-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 92px;
    padding: 10px 0;
}

.header-top .logo {
    grid-column: 2;
    justify-self: center;
}

.header-top .header-actions {
    grid-column: 3;
    justify-self: end;
}

.header-bottom {
    background: #111;
}

.header-bottom .header-bottom-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-bottom .header-bottom-wrapper .main-nav {
    grid-column: 2;
}

.header-bottom .header-bottom-wrapper .header-actions {
    grid-column: 3;
    justify-self: end;
}

.header-bottom .main-nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.header-bottom .search-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
}

.header-bottom .search-btn:hover {
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

/* Remove keyboard focus ring specifically for the header search icon */
.header .search-btn:focus,
.header .search-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.header-bottom .main-nav ul {
    width: fit-content;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.header-bottom .main-nav a {
    padding: 16px 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border-bottom: none;
}

.header-bottom .main-nav a:hover,
.header-bottom .main-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.header-bottom .main-nav .dropdown-menu {
    background: #111;
    border-radius: 0;
}

.header-bottom .main-nav .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.header-top .search-btn {
    background: #f1f1f1;
    color: #111;
}

.header-top .search-btn:hover {
    background: #e7e7e7;
    transform: none;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 75px;
}

/* Logo */
.header .logo {
    display: flex;
    align-items: center;
}

.header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header .logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.header .logo:hover .logo-img {
    transform: scale(1.05);
}

/* Navigation */
.header .main-nav {
    display: flex;
    align-items: center;
}

.header .main-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .main-nav a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.header .main-nav a:hover {
    color: #fff;
    border-bottom-color: var(--primary-color);
}

.header .main-nav a.active {
    color: #fff;
    border-bottom-color: var(--primary-color);
}

/* Dropdown Menu */
.header .main-nav .has-dropdown {
    position: relative;
}

.header .main-nav .has-dropdown > a i {
    font-size: 10px;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.header .main-nav .has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.header .main-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #252547 100%);
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.header .main-nav .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header .main-nav .dropdown-menu li {
    list-style: none;
}

.header .main-nav .dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
    transition: all 0.3s ease;
}

.header .main-nav .dropdown-menu a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Header Actions */
.header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .search-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.header .search-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* When search button is in the black categories bar, keep hover subtle (no red) */
.header-bottom .search-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
}

.header-bottom .search-btn:hover {
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.header-bottom .search-btn:active {
    background: transparent;
    box-shadow: none;
}

/* Header Scroll Effect */
.header.is-scrolled .header-container {
    background: #0f192b;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.is-scrolled .header-top {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Header Responsive */
@media (max-width: 1100px) {
    .header .main-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.98);
}

.mobile-menu-btn:focus,
.mobile-menu-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer styles removed for clean rebuild */


/* .menu-btn removed */

/* ========================================
   Breaking News Ticker
======================================== */
.breaking-news {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 10px 0;
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background-color: #fff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
}

.ticker {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    will-change: transform;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========================================
   Main Content
======================================== */
.main-content {
    padding: 30px 0;
}

@media (max-width: 576px) {
    .main-content {
        padding: 14px 0;
    }
}

/* ========================================
   HERO GRID SECTION - New Design
======================================== */
.hero-grid-section {
    margin-bottom: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* Card spanning */
.hero-card-main {
    grid-column: span 2;
}

.hero-card-tall {
    grid-column: span 1;
}

.hero-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Hero Card Base */
.hero-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover img {
    transform: scale(1.05);
}

/* Overlay */
.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
}

/* Card Sizes */
.hero-card-main {
    height: 480px;
}

.hero-card-tall {
    height: 480px;
}

.hero-card-small {
    height: 220px;
}

/* Card Content */
.hero-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    color: #fff;
}

.hero-card-source {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.hero-card-content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-card-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Badges */
.hero-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.hero-card-badge-red {
    background: #c41e3a;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .hero-card-main {
        grid-column: 1 / -1;
        height: 380px;
    }
    
    .hero-card-tall {
        grid-column: 1 / -1;
        height: 260px;
    }
    
    .hero-card-content h2 {
        font-size: 24px;
    }
    
    .hero-bottom-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-card-main {
        grid-column: 1 / -1;
        height: 300px;
    }
    
    .hero-card-tall {
        grid-column: 1 / -1;
        height: 220px;
    }
    
    .hero-bottom-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .hero-card-small {
        height: 180px;
    }
    
    /* Third small card - full width below */
    .hero-bottom-row .hero-card-small:nth-child(3) {
        grid-column: 1 / -1;
        height: 220px;
    }
    
    .hero-card-content h2 {
        font-size: 22px;
    }
    
    .hero-card-content h3 {
        font-size: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-card-content h4 {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-card-small .hero-card-content {
        padding: 12px;
    }
    
    .hero-bottom-row .hero-card-small:nth-child(3) .hero-card-content h4 {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .hero-grid-section {
        margin-bottom: 30px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* Main card - full width */
    .hero-card-main {
        grid-column: 1 / -1;
        height: 240px;
        border-radius: 14px;
    }
    
    .hero-card-main .hero-card-content h2 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .hero-card-main .hero-card-badge {
        padding: 5px 12px;
        font-size: 10px;
        border-radius: 8px;
        top: 10px;
        right: 10px;
    }
    
    /* Tall card - full width */
    .hero-card-tall {
        grid-column: 1 / -1;
        height: 180px;
        border-radius: 12px;
    }
    
    .hero-card-tall .hero-card-content {
        padding: 12px;
    }
    
    .hero-card-tall .hero-card-content h3 {
        font-size: 15px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-card-tall .hero-card-badge {
        padding: 4px 10px;
        font-size: 9px;
        border-radius: 6px;
        top: 8px;
        right: 8px;
    }
    
    /* Bottom row - 2 columns */
    .hero-bottom-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .hero-bottom-row .hero-card-small:first-child {
        grid-column: span 1;
    }
    
    /* Third small card - full width at bottom */
    .hero-bottom-row .hero-card-small:nth-child(3) {
        grid-column: 1 / -1;
        height: 140px;
    }
    
    .hero-card-small {
        height: 160px;
        border-radius: 12px;
    }
    
    .hero-card-small .hero-card-content {
        padding: 10px;
    }
    
    .hero-card-small .hero-card-content h4 {
        font-size: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-card-small .hero-card-badge {
        padding: 4px 10px;
        font-size: 9px;
        border-radius: 6px;
        top: 8px;
        right: 8px;
    }
    
    .hero-card-small .hero-card-source {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .hero-card-content {
        padding: 12px;
    }
    
    .hero-card-source {
        font-size: 10px;
        margin-bottom: 6px;
    }
}

/* ========================================
   MUNAWAAT SECTION - 4 Cards Layout
======================================== */
.munawaat-section {
    margin-bottom: 40px;
}

.munawaat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.munawaat-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 25, 43, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.munawaat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 38px rgba(15, 25, 43, 0.14);
}

.munawaat-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.munawaat-image {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.munawaat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.munawaat-card:hover .munawaat-image img {
    transform: scale(1.05);
}

.munawaat-content {
    padding: 22px 18px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.munawaat-content h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    color: #0f192b;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1200px) {
    .munawaat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .munawaat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .munawaat-grid {
        grid-template-columns: 1fr;
    }
    
    .munawaat-image {
        height: 200px;
    }
}

/* ========================================
   FEATURED BOX SECTION - Big Right + 3 Small Left
======================================== */
.featured-box-section {
    margin-bottom: 56px;
}

.featured-box-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.featured-box-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-box-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.featured-box-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-box-card.big {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.featured-box-card.big a {
    position: absolute;
    inset: 0;
    display: block;
}

.featured-box-card.big .card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.featured-box-card.big .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-box-card.big .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.featured-box-card.big .card-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px;
    color: #fff;
    z-index: 2;
}

.featured-box-card.big .category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-box-card.big h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.featured-box-card.big p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.featured-box-card.big .card-meta .time {
    font-size: 13px;
    opacity: 0.8;
}

.featured-box-small-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-box-card.small {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    min-height: 220px;
}

.featured-box-card.small a {
    display: block;
    height: 100%;
}

.featured-box-card.small .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-box-card.small .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-box-card.small .card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 18px;
    width: 100%;
    background: #fff;
}

.featured-box-card.small .category {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    background: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.featured-box-card.small h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    color: #000;
    margin-bottom: 8px;
}

.featured-box-card.small .time {
    font-size: 13px;
    color: #333;
}

/* Vertical Cards Row */
.featured-box-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.featured-box-card.vertical {
    display: flex;
    flex-direction: column;
}

.featured-box-card.vertical .card-image {
    width: 100%;
    height: 180px;
}

.featured-box-card.vertical .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-box-card.vertical .card-content {
    padding: 16px 8px;
    height: 90px;
    display: flex;
    align-items: center;
    background: #fff;
}

.featured-box-card.vertical h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #000;
    text-align: right;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .featured-box-section {
        margin-bottom: 35px;
    }
    
    .featured-box-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Big card on mobile - full width hero style */
    .featured-box-card.big {
        min-height: 280px;
        border-radius: 16px;
    }
    
    .featured-box-card.big .card-content {
        padding: 20px;
    }
    
    .featured-box-card.big h2 {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .featured-box-card.big p {
        display: none;
    }
    
    .featured-box-card.big .category-badge {
        padding: 5px 12px;
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    /* Small cards container */
    .featured-box-small-cards {
        gap: 0;
    }
    
    /* Small card on mobile - horizontal list style */
    .featured-box-card.small {
        min-height: auto;
        border-radius: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 12px 0;
    }
    
    .featured-box-card.small:hover {
        transform: none;
        box-shadow: none;
    }
    
    .featured-box-card.small .card-image {
        position: relative;
        width: 100px;
        height: 75px;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .featured-box-card.small .card-content {
        position: relative;
        padding: 0 12px;
        background: transparent;
        flex: 1;
    }
    
    .featured-box-card.small h3 {
        font-size: 14px;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .featured-box-card.small .category {
        display: none;
    }
    
    .featured-box-card.small .time {
        font-size: 11px;
        color: #888;
    }
    
    /* Vertical cards row - 2 columns */
    .featured-box-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 12px;
    }
    
    .featured-box-card.vertical {
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    
    .featured-box-card.vertical:first-child {
        transform: translateY(-5px);
    }
    
    .featured-box-card.vertical .card-image {
        height: 130px;
    }
    
    .featured-box-card.vertical .card-content {
        padding: 12px 10px;
        height: auto;
        min-height: 65px;
    }
    
    .featured-box-card.vertical h3 {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* ========================================
   FEATURED FIVE SECTION - 2-1-2 Layout
======================================== */
.featured-five-section {
    margin-bottom: 56px;
}

.featured-five-grid {
    display: grid;
    grid-template-columns: 1fr 1.9fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 15px;
}

/* Side columns - stacked cards */
.featured-side {
    display: contents;
}

.featured-side-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    min-height: 180px;
}

.featured-side-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-side-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 1;
}

.featured-side-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.featured-side-card:hover .card-image img {
    transform: scale(1.03);
}

.featured-side-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px;
    z-index: 2;
}

.featured-side-card h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
}

.featured-side-card .card-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

/* Right side positioning */
.featured-right .featured-side-card:first-child {
    grid-column: 3;
    grid-row: 1;
}

.featured-right .featured-side-card:last-child {
    grid-column: 3;
    grid-row: 2;
}

/* Left side positioning */
.featured-left .featured-side-card:first-child {
    grid-column: 1;
    grid-row: 1;
}

.featured-left .featured-side-card:last-child {
    grid-column: 1;
    grid-row: 2;
}

/* Main center card - spans 2 rows */
.featured-main-card {
    grid-column: 2;
    grid-row: 1 / 3;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    min-height: 100%;
}

.featured-main-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-main-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.featured-main-card:hover .card-image img {
    transform: scale(1.03);
}

.featured-main-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 45%, transparent 100%);
    color: #fff;
}

.featured-main-card .category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-main-card h3 {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 8px;
}

.featured-main-card .card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin: 0 0 12px;
    max-width: 880px;
}

.featured-main-card .card-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.featured-main-card .card-meta i {
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-five-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 350px 200px 200px;
        gap: 12px;
    }
    
    .featured-main-card {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .featured-right .featured-side-card:first-child {
        grid-column: 1;
        grid-row: 2;
    }
    
    .featured-right .featured-side-card:last-child {
        grid-column: 2;
        grid-row: 2;
    }
    
    .featured-left .featured-side-card:first-child {
        grid-column: 1;
        grid-row: 3;
    }
    
    .featured-left .featured-side-card:last-child {
        grid-column: 2;
        grid-row: 3;
    }
    
    .featured-main-card h3 {
        font-size: 22px;
    }
    
    .featured-main-card .card-content {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .featured-five-section {
        margin-bottom: 40px;
    }
    
    .featured-five-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }
    
    /* Main card - full width at top */
    .featured-main-card {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 240px;
        border-radius: 14px;
    }
    
    .featured-main-card .card-content {
        padding: 16px;
    }
    
    .featured-main-card h3 {
        font-size: 17px;
        line-height: 1.4;
    }
    
    .featured-main-card .card-excerpt {
        display: none;
    }
    
    .featured-main-card .category {
        padding: 4px 12px;
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    /* Side cards - 2 columns grid */
    .featured-side-card {
        border-radius: 12px;
        height: 150px;
    }
    
    .featured-right .featured-side-card:first-child {
        grid-column: 1;
        grid-row: 2;
    }
    
    .featured-right .featured-side-card:last-child {
        grid-column: 2;
        grid-row: 2;
    }
    
    .featured-left .featured-side-card:first-child {
        grid-column: 1;
        grid-row: 3;
    }
    
    .featured-left .featured-side-card:last-child {
        grid-column: 2;
        grid-row: 3;
    }
    
    .featured-side-card .card-content {
        padding: 12px;
    }
    
    .featured-side-card h3 {
        font-size: 13px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .category-badge {
        padding: 3px 8px;
        font-size: 9px;
        top: 8px;
        right: 8px;
        border-radius: 8px;
    }
}

/* ========================================
   BENTO HERO - Modern Grid Layout (Legacy)
======================================== */
.bento-hero {
    margin-bottom: 50px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 350px 200px;
    gap: 16px;
}

/* Grid Placement */
.bento-main { 
    grid-column: 2; 
    grid-row: 1; 
}
.bento-secondary { 
    grid-column: 1; 
    grid-row: 1; 
}
.bento-tall { 
    display: none; 
}
.bento-small { 
    display: none; 
}
.bento-wide { 
    display: none; 
}

/* Bottom row - 3 cards */
.bento-grid::after {
    content: '';
    display: none;
}

/* Base Item */
.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bento-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.bento-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.bento-item:hover img {
    transform: scale(1.03);
}

/* Overlay Gradient */
.bento-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    transition: background 0.3s ease;
}

.bento-item:hover .bento-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Content */
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    z-index: 2;
    color: #1a1a2e;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 70%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(8px);
}

.bento-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.bento-content h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.bento-content h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.bento-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
}

.bento-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Badges */
.bento-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c41e3a, #e94560);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bento-badge--gold {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

/* Hover Effects */
.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    z-index: 4;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.bento-item:hover::before {
    border-color: rgba(196, 30, 58, 0.3);
}

/* Size-specific adjustments */
.bento-main .bento-content { padding: 24px 28px; }
.bento-main h2 { 
    font-size: 26px; 
    color: #1a1a2e;
    line-height: 1.4;
}

.bento-secondary .bento-content { padding: 20px 24px; }
.bento-secondary h3 {
    font-size: 18px;
    color: #1a1a2e;
}

.bento-small .bento-content { padding: 14px 18px; }
.bento-small .bento-cat { font-size: 10px; padding: 0; margin-bottom: 6px; }

.bento-wide .bento-content {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-tall .bento-content { padding: 20px; }

/* ========================================
   NEW BENTO LAYOUT - Matching Design
======================================== */
.bento-top-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 16px;
    margin-bottom: 16px;
}

.bento-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bento-card .bento-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-card:hover img {
    transform: scale(1.03);
}

/* Card Sizes */
.bento-card-main {
    height: 420px;
}

.bento-card-secondary {
    height: 420px;
}

.bento-card-small {
    height: 220px;
}

/* Card Content */
.bento-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(10px);
}

.bento-card-cat {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

.bento-card-content h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0;
}

.bento-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a2e;
    margin: 0;
}

.bento-card-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a2e;
    margin: 0;
}

/* Badges */
.bento-badge-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.bento-badge-special {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #c41e3a;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-top-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-card-main,
    .bento-card-secondary {
        height: 350px;
    }
    
    .bento-card-content h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .bento-top-row {
        grid-template-columns: 1fr;
    }
    
    .bento-bottom-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-card-main,
    .bento-card-secondary {
        height: 280px;
    }
    
    .bento-card-small {
        height: 200px;
    }
    
    .bento-bottom-row .bento-card-small:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .bento-bottom-row {
        grid-template-columns: 1fr;
    }
    
    .bento-card-main,
    .bento-card-secondary {
        height: 260px;
    }
    
    .bento-card-small {
        height: 180px;
    }
    
    .bento-card-content h2 {
        font-size: 18px;
    }
    
    .bento-card-content h3 {
        font-size: 16px;
    }
}

/* OLD Responsive - Keep for compatibility */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr 1.5fr;
        grid-template-rows: repeat(3, 160px);
    }
    
    .bento-main h2 { font-size: 26px; }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 180px 180px;
        gap: 12px;
    }
    
    .bento-main { 
        grid-column: 1 / 3; 
        grid-row: 1; 
    }
    .bento-secondary { 
        grid-column: 1; 
        grid-row: 2; 
    }
    .bento-tall { 
        grid-column: 2; 
        grid-row: 2; 
    }
    .bento-small:nth-of-type(3) { 
        grid-column: 1; 
        grid-row: 3; 
    }
    .bento-small:nth-of-type(4) { 
        grid-column: 2; 
        grid-row: 3; 
    }
    
    .bento-main h2 { font-size: 24px; }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }
    
    .bento-main,
    .bento-secondary,
    .bento-tall,
    .bento-small { 
        grid-column: 1; 
        grid-row: auto;
        min-height: 220px;
    }
    
    .bento-main { min-height: 300px; }
    
    .bento-main h2 { font-size: 22px; }
    .bento-content h3 { font-size: 16px; }
    .bento-item { border-radius: 0; }
    .bento-item::before { border-radius: 0; }
}

.hero-main .hero-article {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-main .hero-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.hero-article .article-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-article .article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 260px at 70% 30%, rgba(0,0,0,0.10), transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.65));
    pointer-events: none;
}

.hero-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-article:hover .article-image img {
    transform: scale(1.05);
}

.hero-article .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-article .article-content .category {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    letter-spacing: 0.2px;
}

.hero-article .article-content h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    text-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.hero-article .article-content p {
    max-width: 70ch;
}

.hero-article .article-content p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #aaa;
}

.article-meta i {
    margin-left: 5px;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgb(var(--primary-rgb) / 0.92);
    color: #fff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-badge.exclusive {
    background: rgb(243 156 18 / 0.92);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-article {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow);
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.sidebar-article .article-image {
    position: relative;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.sidebar-article .article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.62));
    pointer-events: none;
}

.sidebar-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sidebar-article:hover .article-image img {
    transform: scale(1.05);
}

.sidebar-article .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.74));
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-article .article-content .category {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.sidebar-article .article-content h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* ========================================
   Section Styles
======================================== */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
}

.section-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.section-title a:hover {
    opacity: 0.8;
}

.section-title-wrap .section-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.section-dots span:nth-child(1) {
    opacity: 1;
}

.section-dots span:nth-child(2) {
    opacity: 0.6;
}

.section-dots span:nth-child(3) {
    opacity: 0.35;
}

.section-title i {
    display: none;
}

/* Section Title Decoration - Line with dots */
.section-title-decoration {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.section-title-decoration .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title-decoration .dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title-decoration .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.8;
}

.section-title-decoration .dot:nth-child(2) {
    opacity: 0.6;
}

.section-title-decoration .dot:nth-child(3) {
    opacity: 0.4;
}

.see-all {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.see-all:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========================================
   News Grid
======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.18));
    opacity: 0.0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.news-card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 15px;
}

/* News cards: gray title area under image */
.news-card .card-content {
    background: #f0f0f0;
}

.news-card .card-content h3,
.news-card .card-content h3 a {
    color: #000;
}

.card-content .category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.card-content h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 12px;
    color: var(--text-light);
}

.card-meta i {
    margin-left: 5px;
}

/* ========================================
   Two Columns Layout
======================================== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
}

.two-columns .main-column {
    flex-direction: column;
}

.two-columns .main-column .news-slider-section {
    flex: 0 0 auto;
    height: auto;
    align-self: start;
}

.two-columns .sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.two-columns .sidebar .sidebar-widget:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========================================
   News Slider Section (Main Column)
======================================== */
.news-slider-section {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* News Today + Sidebar: featured title under image */
.news-today-section .news-slider-section {
    border-radius: 18px;
    overflow: hidden;
}

.news-today-section .sidebar-widget {
    border-radius: 18px;
}

.news-today-featured-card {
    background: #fff;
}

.news-today-featured-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-today-featured-media {
    position: relative;
    height: 460px;
    overflow: hidden;
}

.news-today-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-today-featured-card:hover .news-today-featured-media img {
    transform: scale(1.03);
}

.news-today-featured-body {
    padding: 22px 22px 26px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 120px;
}

.news-today-featured-body h2 {
    margin: 0;
    color: #0f192b;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
    text-align: right;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .news-today-featured-media { height: 320px; }
    .news-today-featured-body h2 { font-size: 18px; }
    .news-today-featured-body { min-height: 96px; }
}

/* News Today + Sidebar: modernize the list below the featured card */
.news-today-section .news-pairs-list {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    padding: 16px;
}

.news-today-section .pair-row {
    border-bottom: none;
    gap: 14px;
}

.news-today-section .pair-row + .pair-row {
    margin-top: 14px;
}

.news-today-section .pair-card {
    padding: 0;
    background: #fff;
    border: 1px solid rgba(15, 25, 43, 0.10);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 25, 43, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-today-section .pair-card + .pair-card {
    border-right: none;
}

.news-today-section .pair-card a {
    padding: 12px 14px;
    gap: 12px;
}

.news-today-section .pair-thumb {
    width: 88px;
    height: 64px;
    border-radius: 12px;
}

.news-today-section .pair-content {
    flex: 1;
    min-width: 0;
}

.news-today-section .pair-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: #0f192b;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-today-section .pair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 25, 43, 0.12);
    border-color: rgba(196, 30, 58, 0.35);
}

.news-today-section .pair-card:hover .pair-title {
    color: #c41e3a;
}

@media (max-width: 768px) {
    .news-today-section .news-pairs-list { padding: 12px; }
    .news-today-section .pair-row { grid-template-columns: 1fr; }
    .news-today-section .pair-row + .pair-row { margin-top: 12px; }
}

/* Featured Article (Single) */
.featured-article {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
}

.featured-article a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover img {
    transform: scale(1.03);
}

.article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.article-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.article-content {
    position: absolute;
    bottom: 30px;
    right: 0;
    left: 0;
    padding: 0 30px;
    z-index: 2;
}

.article-content h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

/* News Grid Below */
.news-grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.news-col {
    display: flex;
    flex-direction: column;
}

.news-col:first-child {
    border-left: 1px solid var(--border-color);
}

/* Horizontal News Card */
.news-card-horizontal {
    border-bottom: 1px solid var(--border-color);
}

.news-card-horizontal:last-child {
    border-bottom: none;
}

.news-card-horizontal a {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
    min-height: 100px;
}

.news-card-horizontal:hover a {
    background: #f9f9f9;
}

.news-card-horizontal .card-image {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 0;
    overflow: hidden;
}

.news-card-horizontal .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-horizontal .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f0f0f0;
}

.news-card-horizontal h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-horizontal:hover h3 {
    color: #000;
}

.news-card-horizontal .time {
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .featured-article {
        height: 280px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    .news-grid-two-cols {
        grid-template-columns: 1fr;
    }
    
    .news-col:first-child {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ========================================
   News Tiles (2-up grid under big card)
======================================== */
.news-tiles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 20px;
}

.news-tile-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-tile-card a {
    display: block;
}

.news-tile-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.news-tile-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-tile-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    padding: 12px 14px 16px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .news-tiles-grid { grid-template-columns: 1fr; }
    .news-tile-card img { height: 180px; }
}

.two-up { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap:20px !important; }

/* ========================================
   News Pairs List (two horizontal items per row)
======================================== */
.news-pairs-list {
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.pair-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--border-color);
}

.pair-card {
    padding: 14px 18px;
}

.pair-card + .pair-card {
    border-right: 1px solid var(--border-color);
}

.pair-card a {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pair-thumb {
    width: 96px;
    height: 64px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.pair-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pair-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.pair-card:hover .pair-title { color: var(--primary-color); }

@media (max-width: 768px) {
    .pair-row { grid-template-columns: 1fr; }
    .pair-card + .pair-card { border-right: none; border-top: 1px solid var(--border-color); }
}

/* ========================================
   Video Section
======================================== */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow);
}

.video-card.featured {
    grid-row: span 3;
}

.video-thumbnail {
    position: relative;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.video-card.featured .video-thumbnail {
    height: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: var(--transition);
}

.play-button.small {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.video-card:hover .play-button {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.video-content .category {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
}

.video-content h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.video-content h4 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-card.small {
    display: flex;
    gap: 15px;
}

.video-card.small .video-thumbnail {
    width: 140px;
    min-height: 90px;
    flex-shrink: 0;
}

.video-card.small .video-content {
    position: relative;
    background: none;
    color: var(--text-primary);
    padding: 10px 0;
    display: flex;
    align-items: center;
}

/* ========================================
   News List
======================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-article {
    display: flex;
    gap: 20px;
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.list-article:hover {
    box-shadow: var(--shadow-hover);
}

.list-image {
    width: 250px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.list-article:hover .list-image img {
    transform: scale(1.05);
}

.list-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-content .category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.list-content h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

.list-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Sidebar
======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: var(--bg-primary);
    border-radius: 0;
    padding: 27px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--primary-color);
}

/* Most Read */
.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.most-read-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.most-read-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.most-read-item:hover h4 {
    color: var(--primary-color);
}

.most-read-item .number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.most-read-item h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: var(--transition);
}

/* Stories Widget */
.stories-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.story-card {
    position: relative;
    width: 90px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    scroll-snap-align: start;
}

.stories-container::-webkit-scrollbar {
    height: 8px;
}

.stories-container::-webkit-scrollbar-thumb {
    background: rgba(196, 30, 58, 0.55);
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover img {
    transform: scale(1.1);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 5px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 10px;
    text-align: center;
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    direction: rtl;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

/* App Widget */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius);
    transition: var(--transition);
}

.app-btn:hover {
    background-color: #2a2a4e;
}

.app-btn i {
    font-size: 24px;
}

.app-btn span {
    font-size: 13px;
}

/* ========================================
   Sports Section
======================================== */
.sports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.sports-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sports-card.main {
    grid-column: span 2;
    grid-row: span 2;
}

.sports-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sports-card .card-image {
    height: 180px;
}

.sports-card.main .card-image {
    height: 100%;
    min-height: 400px;
}

.sports-card.main .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.sports-card.main .card-content .category {
    color: var(--accent-color);
}

.sports-card.main .card-content h3 {
    font-size: 20px;
    color: #fff;
}

.sports-card.main .card-meta {
    color: #ccc;
}

.sports-card.main {
    position: relative;
}

/* ========================================
   Dual Sections
======================================== */
.dual-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dual-section {
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========================================
   Notifications
======================================== */
.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 14px 18px;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 9999;
    transform: translateX(-10px);
    opacity: 0;
    animation: toastIn 0.2s ease forwards;
}

.notification.info { background: rgba(26, 26, 46, 0.95); }
.notification.success { background: rgba(39, 174, 96, 0.95); }
.notification.error { background: rgba(231, 76, 60, 0.95); }

@keyframes toastIn {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(-10px); opacity: 0; }
}

.compact-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.compact-card {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.compact-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.compact-card:hover h4 {
    color: var(--primary-color);
}

.compact-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.compact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-content h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: var(--transition);
}

.compact-content .time {
    font-size: 12px;
    color: var(--text-light);
}

.compact-content .time i {
    margin-left: 5px;
}

/* ========================================
   Footer - Modern Design
======================================== */
.footer {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}

/* Footer Wave */
.footer-wave {
    position: relative;
    height: 60px;
    background: transparent;
    margin-bottom: -1px;
}

.footer-wave svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
}

/* Footer Main */
.footer-main {
    background-color: #0f192b;
    padding: 30px 0 25px;
}

/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(196, 30, 58, 0.3);
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.newsletter-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.newsletter-text p {
    font-size: 14px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    padding: 15px 30px;
    background: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--bg-dark);
    color: #fff;
    transform: translateY(-2px);
}

.newsletter-form button i {
    font-size: 14px;
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 25px;
    border-bottom: none;
}

/* Footer Brand */
.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-logo a {
    display: inline-block;
}

.footer-logo-img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 25px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.08) 100%);
    opacity: 0;
    transition: var(--transition);
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a.social-twitter:hover { background: #000; color: #fff; }
.footer-social a.social-facebook:hover { background: #1877f2; color: #fff; }
.footer-social a.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.footer-social a.social-youtube:hover { background: #ff0000; color: #fff; }
.footer-social a.social-whatsapp:hover { background: #25d366; color: #fff; }
.footer-social a.social-tiktok:hover { background: #000; color: #fff; }

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Links */
.footer-links {
    flex: 0 0 auto;
}

.footer-links h4,
.footer-social-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.footer-links h4 i,
.footer-social-section h4 i {
    color: var(--primary-color);
}

.footer-links-list {
    display: flex;
    flex-direction: row;
    gap: 25px;
    list-style: none;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.footer-links-list a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: #fff;
}

.footer-links-list a:hover::after {
    width: 100%;
}

/* Footer Social Section */
.footer-social-section {
    flex: 0 0 auto;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h4 i {
    color: var(--primary-color);
    font-size: 16px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column li {
    list-style: none;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column a i {
    font-size: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-column a:hover {
    color: #fff;
}

.footer-column a:hover i {
    transform: translateX(-5px);
}

/* Footer Contact */
.footer-contact .contact-list a,
.footer-contact .contact-list span {
    gap: 12px;
}

.footer-contact .contact-list i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    background: #0f192b;
    padding: 15px 0;
    border-top: none;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom-content p strong {
    color: var(--primary-color);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    height: 20px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links .divider {
    color: rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    height: 20px;
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 35px;
        align-items: center;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social-section {
        width: 100%;
    }
    
    .footer-social-section .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-wave {
        height: 60px;
    }
    
    .footer-wave svg {
        height: 60px;
    }
    
    .footer-newsletter {
        padding: 30px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        align-items: center !important;
    }
    
    .footer-bottom-links a {
        padding: 0 12px;
        display: inline-flex !important;
        align-items: center !important;
        height: 20px;
    }
    
    .footer-bottom-links .divider {
        display: inline-flex !important;
        align-items: center !important;
        height: 20px;
    }
    
    .footer-links-list {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column {
        min-width: auto;
    }
    
    .footer-column h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-column a {
        justify-content: center;
    }
    
    .footer-bottom-links {
        display: flex !important;
        align-items: center !important;
    }
    
    .footer-bottom-links a,
    .footer-bottom-links .divider {
        display: inline-flex !important;
        align-items: center !important;
        height: 20px;
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sports-card.main {
        grid-column: span 2;
        grid-row: span 1;
    }

    .sports-card.main .card-image {
        min-height: 300px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        flex-direction: row;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .stories-container {
        flex-wrap: nowrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-btn {
        display: block;
    }

    .dual-sections {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation (CSS-driven; JS only toggles .active) */
@media (max-width: 992px) {
    .header { position: sticky; }

    .header-bottom .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
        border-top: 1px solid rgba(0,0,0,0.06);
        padding: 14px 18px;
    }

    .header-bottom .main-nav.active {
        display: block;
        animation: navIn 0.18s ease;
    }

    @keyframes navIn {
        from { transform: translateY(-6px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .header-bottom .main-nav ul {
        flex-direction: column;
        gap: 6px;
    }

    .header-bottom .main-nav a {
        display: block;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .header-bottom .main-nav a:hover {
        background: rgba(196, 30, 58, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-sidebar {
        flex-direction: column;
    }

    .sidebar-article .article-image {
        height: 200px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card.featured {
        grid-row: span 1;
    }

    .list-article {
        flex-direction: column;
    }

    .list-image {
        width: 100%;
        height: 200px;
    }

    .sports-grid {
        grid-template-columns: 1fr;
    }

    .sports-card.main {
        grid-column: span 1;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo h1 {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-article .article-image {
        height: 300px;
    }

    .hero-article .article-content h2 {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ========================================
   Animations & Utilities
======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Scrollbar - default browser style */

/* ========================================
   Highlight Box Section (Big Card + 4 Boxes)
======================================== */
.highlight-box-section {
    margin-bottom: 40px;
}

.highlight-box-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Big Card */
.highlight-big-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 500px;
}

.highlight-big-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.highlight-big-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 1;
}

.highlight-big-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.highlight-big-card:hover .card-image img {
    transform: scale(1.03);
}

.highlight-big-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.highlight-big-card h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 3 Small Boxes */
.highlight-small-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.highlight-small-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: row;
    height: 150px;
    border: 1px solid #e8e8e8;
}

.highlight-small-card a {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.highlight-small-card .card-image {
    position: relative;
    width: 35%;
    flex-shrink: 0;
    height: 100%;
}

.highlight-small-card .card-image .special-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
}

.highlight-small-card .card-image::after {
    display: none;
}

.highlight-small-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.highlight-small-card:hover .card-image img {
    transform: scale(1.05);
}

.highlight-small-card .card-content {
    position: relative;
    flex: 1;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    background: #f0f0f0;
}

.highlight-small-card .card-subtitle {
    display: none;
}

.highlight-small-card h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #000;
    margin: 0;
    text-shadow: none;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Dual Highlight Section (2 Big + 4 Small)
======================================== */
.dual-highlight-section {
    margin-bottom: 40px;
    background: transparent;
    padding: 0;
}

.dual-highlight-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Two Big Cards */
.dual-big-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dual-big-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dual-big-card .card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.dual-big-card .card-image::after {
    display: none;
}

.dual-big-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dual-big-card:hover .card-image img {
    transform: scale(1.03);
}

.dual-big-card .card-content {
    position: relative;
    padding: 20px 10px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    height: 90px;
    display: flex;
    align-items: center;
}

.dual-big-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
    color: #000;
    margin: 0;
    text-align: right;
    text-shadow: none;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4 Small Cards */
.dual-small-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dual-small-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dual-small-card .card-image {
    position: relative;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.dual-small-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dual-small-card:hover .card-image img {
    transform: scale(1.05);
}

.dual-small-card .card-content {
    position: relative;
    padding: 16px 8px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    height: 90px;
    display: flex;
    align-items: center;
}

.dual-small-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #000;
    margin: 0;
    text-align: right;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Writers & Opinions Section
======================================== */
.writers-section {
    margin-bottom: 40px;
}

.writers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.writer-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.writer-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.writer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.writer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-content {
    flex: 1;
}

.writer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px;
}

.article-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    color: #1a1a2e;
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .writers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .writers-grid {
        grid-template-columns: 1fr;
    }
    
    .writer-card {
        padding: 15px;
    }
    
    .writer-image {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   Currency Rates Section - Premium Design
======================================== */
/* ========================================
   Currency Widget - New Modern Design
======================================== */
.currency-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.currency-new-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.currency-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.currency-icon i {
    color: #fff;
    font-size: 20px;
}

.currency-title-text h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.currency-title-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.curr-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 12px;
    margin: 0 auto;
    flex-shrink: 0;
}

.curr-toggle-btn i {
    transform: rotate(90deg);
}

.curr-toggle-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.curr-toggle-btn:active {
    transform: scale(0.95);
}

.currency-live {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.currency-cards {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.curr-card {
    display: grid;
    /* Grid Columns: Flag | Name (flexible) | Button (fixed) | Price (fixed min-width) */
    grid-template-columns: 50px 1fr 40px 100px;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 14px;
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Adjust mobile styles if needed */
@media (max-width: 480px) {
    .curr-card {
        grid-template-columns: 40px 1fr 34px 80px;
        padding: 10px;
        gap: 6px;
    }
}

.curr-flag {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    /* flex-shrink: 0; removed as grid handles size */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    justify-self: center;
}

/* .curr-info was flex:1, now it just fits in its grid cell */
.curr-info {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow */
}

/* Ensure button is centered in its column */
.curr-toggle-btn {
    margin: 0 auto;
    justify-self: center;
}

/* Ensure rate is right-aligned */
.curr-rate {
    justify-self: end;
    text-align: left; /* LTR for numbers */
}

.curr-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.curr-flag {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    /* flex-shrink: 0; removed as grid handles size */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    justify-self: center;
}

.curr-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.curr-info {
    display: flex; /* Removed flex: 1 */
    flex-direction: column;
    gap: 2px;
    overflow: hidden; /* Prevent text overflow */
}

.curr-code {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
}

.curr-name {
    font-size: 11px;
    color: #888;
}

.curr-rate {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.rate-val {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    font-family: 'Segoe UI', sans-serif;
}

.rate-change {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
}

.rate-change.up {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.rate-change.down {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.rate-change.stable {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

.rate-change i {
    font-size: 9px;
}

.currency-new-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.currency-new-more:hover {
    background: rgba(0, 0, 0, 0.2);
}

.currency-new-more i {
    transition: transform 0.3s ease;
}

.currency-new-more:hover i {
    transform: translateX(-5px);
}

@media (max-width: 576px) {
    .currency-new-header {
        padding: 16px;
    }
    
    .currency-icon {
        width: 40px;
        height: 40px;
    }
    
    .currency-title-text h3 {
        font-size: 16px;
    }
    
    .curr-card {
        padding: 12px 14px;
    }
    
    .curr-flag {
        width: 38px;
        height: 38px;
    }
    
    .rate-val {
        font-size: 16px;
    }
}

/* Keep old styles for backward compatibility */

/* ========================================
   Caricature Widget (Sidebar)
======================================== */
/* ========================================
   Caricature Simple - Like Reference Image
======================================== */
.caricature-simple {
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    padding: 12px;
}

.caricature-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.caricature-top h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.caricature-top .more-link {
    display: none;
}

.caricature-top .more-link:hover {
    color: var(--primary-color);
}

.caricature-top .more-link i {
    font-size: 11px;
}

.caricature-body {
    text-align: center;
}

.caricature-img-box {
    background: #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: opacity 0.15s ease;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caricature-img-box img {
    width: 100% !important;
    min-width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    display: block;
    object-fit: cover !important;
    background: #e8e8e8;
}

.caricature-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #555;
    font-size: 13px;
    margin-bottom: 10px;
}

.caricature-date i {
    color: #333;
    font-size: 16px;
}

.caricature-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.caricature-dots .dot {
    width: 32px;
    height: 5px;
    background: #d0d0d0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.caricature-dots .dot:hover {
    background: #aaa;
}

.caricature-dots .dot.active {
    background: #1a1a1a;
    width: 48px;
}

.caricature-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.caricature-more-btn:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-2px);
}

.caricature-more-btn i {
    transition: transform 0.3s ease;
}

.caricature-more-btn:hover i {
    transform: translateX(-5px);
}

@media (max-width: 576px) {
    .caricature-simple {
        padding: 16px;
    }
    
    .caricature-top h3 {
        font-size: 18px;
    }
    
    .caricature-dots .dot {
        width: 24px;
        height: 4px;
    }
    
    .caricature-dots .dot.active {
        width: 36px;
    }
}

/* ========================================
   Caricature Section (Main)
======================================== */
.caricature-section {
    margin-bottom: 40px;
}

.caricature-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.caricature-main {
    display: flex;
}

.caricature-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.caricature-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.caricature-card.featured {
    width: 100%;
}

.caricature-card.featured .caricature-image {
    height: 400px;
}

.caricature-card.small {
    width: 100%;
}

.caricature-card.small .caricature-image {
    height: 120px;
}

.caricature-image {
    width: 100%;
    overflow: hidden;
}

.caricature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.caricature-card:hover .caricature-image img {
    transform: scale(1.05);
}

.caricature-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
}

.caricature-card.small .caricature-info {
    padding: 10px 12px;
}

.artist-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

.artist-name i {
    margin-left: 5px;
}

.caricature-date {
    font-size: 12px;
    color: #888;
}

.caricature-date i {
    margin-left: 5px;
}

.caricature-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .caricature-grid {
        grid-template-columns: 1fr;
    }
    
    .caricature-card.featured .caricature-image {
        height: 300px;
    }
    
    .caricature-side {
        flex-direction: row;
    }
    
    .caricature-card.small {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .caricature-side {
        flex-direction: column;
    }
    
    .caricature-card.small .caricature-image {
        height: 150px;
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .dual-small-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .dual-small-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .dual-big-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .dual-small-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dual-big-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .dual-big-card .card-image {
        height: 180px;
    }
    
    .dual-big-card .card-content {
        padding: 14px 10px;
        height: 80px;
    }
    
    .dual-big-card h3 {
        font-size: 14px;
    }
    
    .dual-small-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .dual-small-card .card-image {
        height: 140px;
    }
    
    .dual-small-card .card-content {
        height: 75px;
    }
    
    .dual-small-card h3 {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .dual-highlight-section {
        margin-bottom: 30px;
    }
    
    .dual-highlight-grid {
        gap: 12px;
    }
    
    /* Big cards - 2 columns on mobile */
    .dual-big-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .dual-big-card {
        border-radius: 12px;
    }
    
    .dual-big-card .card-image {
        height: 140px;
    }
    
    .dual-big-card .card-content {
        padding: 12px 10px;
        height: 70px;
    }
    
    .dual-big-card h3 {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Small cards - 2 columns grid */
    .dual-small-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .dual-small-card {
        border-radius: 12px;
    }
    
    .dual-small-card .card-image {
        height: 110px;
    }
    
    .dual-small-card .card-content {
        padding: 10px 8px;
        height: 65px;
    }
    
    .dual-small-card h3 {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .highlight-small-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-big-card h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .highlight-small-boxes {
        grid-template-columns: 1fr;
    }
    
    .highlight-big-card {
        height: 280px;
    }
    
    .highlight-big-card h3 {
        font-size: 18px;
    }
    
    .highlight-small-card {
        height: 160px;
    }
}

/* Triple Category Section */
.triple-category-section {
    margin-bottom: 40px;
}

.triple-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-wrapper {
    display: flex;
    flex-direction: column;
}

.category-wrapper .section-header {
    margin-bottom: 15px;
}

.category-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    overflow: hidden;
}

.category-main-card {
    position: relative;
    overflow: hidden;
}

.category-main-card a {
    display: block;
    position: relative;
}

.category-main-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-main-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

.category-content h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.category-small-card {
    border-top: 1px solid #e8e8e8;
}

.category-small-card a {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    gap: 15px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-small-card:hover a {
    background: #f9f9f9;
}

.category-small-card .card-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 12px;
}

.category-small-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-small-card .card-content {
    flex: 1;
    min-width: 0;
}

.category-small-card .card-content h4 {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Widget Rows for flexible width widgets */
.widgets-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    gap: 20px;
    margin-bottom: 0;
}

/* If a widgets row doesn't add up to 100% width, let the last widget expand to fill the remaining space */
.widgets-row.widgets-row--fill > .widget-column:last-child {
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: 100% !important;
}

.widgets-row.widgets-row--fill > .widget-column:only-child {
    flex: 1 1 100% !important;
    width: 100% !important;
}

.widget-column {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.widget-column .section {
    margin-bottom: 0;
}

/* Single Category Section */
.single-category-section {
    margin-bottom: 40px;
}

.triple-category-grid.single-column {
    grid-template-columns: 1fr;
}

.single-category-section .section-header {
    margin-bottom: 15px;
}

/* ========================================
   Article Page Styles
======================================== */
main.article-page {
    padding: 30px 0 0;
    background: var(--bg-secondary);
}

body.article-page {
    padding: 0;
    margin: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
    grid-template-areas:
        "main sidebar"
        "comments sidebar";
}

.article-page .article-layout > .article-main {
    grid-area: main;
}

.article-page .article-layout > .article-sidebar {
    grid-area: sidebar;
}

.article-page .article-layout > .comments-section {
    grid-area: comments;
}

/* Article Main Content */
.article-main {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 25, 43, 0.08);
    overflow-x: hidden;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Article page breadcrumb (match reference: neutral + compact) */
.article-page .breadcrumb {
    color: #666;
    margin-bottom: 12px;
}

.article-page .breadcrumb a {
    color: #666;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.article-page .breadcrumb a:hover {
    color: var(--primary-color);
}

.article-page .breadcrumb i {
    color: #999;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #e53935;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #e53935;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb a:hover {
    color: #c62828;
}

.breadcrumb i {
    font-size: 10px;
    color: #e53935;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Article Header */
.article-header {
    margin-bottom: 25px;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-header .article-title {
    font-size: 28px !important;
    font-weight: 800;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* Article Meta Info */
.article-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Author Simple */
.author-simple {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-simple .author-name {
    font-size: 15px;
    font-weight: 500;
    color: #6c7a89;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-simple .author-name:hover {
    color: var(--primary-color);
}

.author-simple .author-icon {
    font-size: 18px;
    color: #b0bec5;
}

.meta-separator {
    color: #ddd;
    font-size: 14px;
}

.meta-date,
.meta-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #999;
}

.meta-date i,
.meta-time i {
    color: #b0bec5;
}

/* Article Meta Row */
.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

/* Share Button */
.article-share-wrapper {
    position: relative;
    display: inline-block;
}

.share-main-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #b0bec5;
    transition: var(--transition);
}

.share-main-btn:hover {
    color: var(--primary-color);
    background: rgba(196, 30, 58, 0.1);
}

.share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.share-item:hover {
    background: var(--bg-secondary);
}

.share-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.share-item.share-facebook i { color: #1877f2; }
.share-item.share-twitter i { color: #000; }
.share-item.share-whatsapp i { color: #25d366; }
.share-item.share-telegram i { color: #0088cc; }
.share-item.share-copy i { color: #6c757d; }

/* Featured Image */
.article-featured-image {
    margin: 0 0 25px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.article-featured-image figcaption {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

/* Article Body */
.article-body {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

.article-body p {
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-intro {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    border-right: 4px solid var(--primary-color);
    padding-right: 20px;
    margin-bottom: 25px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.article-body ul {
    margin: 20px 0;
    padding-right: 25px;
}

.article-body ul li {
    margin-bottom: 10px;
    position: relative;
}

.article-body ul li::marker {
    color: var(--primary-color);
}

/* Article Quote */
.article-quote {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #252547 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
}

.article-quote::before {
    content: '"';
    font-size: 80px;
    position: absolute;
    top: -10px;
    right: 20px;
    color: var(--primary-color);
    opacity: 0.5;
    font-family: Georgia, serif;
}

.article-quote p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.article-quote cite {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 25px 0;
    margin: 30px 0;
}

.tags-icon {
    font-size: 20px;
    color: var(--primary-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    display: inline-block;
    padding: 10px 22px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.tags-list a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-top: 30px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--primary-color);
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.article-page .related-articles h3 {
    padding-bottom: 0;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}
.article-page .related-articles h3::after {
    display: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
}

/* Article page: related cards should look like image + title bar */
.article-page .related-card {
    background: transparent;
    box-shadow: none;
}

.article-page .related-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-page .related-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ddd;
}

.article-page .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-page .related-card {
    background: transparent;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-page .related-card:hover {
    transform: none;
    box-shadow: none;
}

.related-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.article-page .related-content {
    background: #f0f0f0;
    min-height: 80px;
    height: auto;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: right;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: var(--transition);
}

.article-page .related-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 1.6;
    margin: 0;
}

.article-page .related-card:hover h4 {
    color: #000;
}

/* Related Articles Section - Clean Style */
.article-page #relatedArticles {
    margin-top: 40px;
    padding-top: 30px;
}

.article-page #relatedArticles .section-header {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.article-page #relatedArticles .section-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.article-page #relatedArticles .section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.article-page #relatedArticles .section-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-page #relatedArticles .section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.article-page #relatedArticles .section-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-page #relatedArticles .section-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.article-page #relatedArticles .section-dots span:first-child {
    opacity: 1;
}

.article-page #relatedArticles .section-dots span:nth-child(2) {
    opacity: 0.6;
}

.article-page #relatedArticles .section-dots span:nth-child(3) {
    opacity: 0.35;
}

.related-card:hover h4 {
    color: var(--primary-color);
}

.related-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Article page: comments should be a separate card */
.article-page .comments-section.comments-card {
    margin-top: 22px;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(15, 25, 43, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border-top: none;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: var(--primary-color);
}

.comments-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

/* Add Comment Form */
.add-comment {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.add-comment h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-comment {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: var(--transition);
}

.submit-comment:hover {
    background: #c62828;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.commenter-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: var(--transition);
}

.reply-btn:hover {
    color: #c62828;
}

/* Comment Actions (Like, Dislike, Reply) */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.like-btn,
.dislike-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: var(--transition);
}

.like-btn:hover {
    background: #e8f5e9;
    color: #4caf50;
}

.like-btn.active {
    background: #e8f5e9;
    color: #4caf50;
}

.like-btn.active i {
    font-weight: 900;
}

.dislike-btn:hover {
    background: #ffebee;
    color: #f44336;
}

.dislike-btn.active {
    background: #ffebee;
    color: #f44336;
}

.dislike-btn.active i {
    font-weight: 900;
}

/* Reply Form */
.reply-form-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.submit-reply {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-reply:hover {
    background: #c62828;
}

.cancel-reply {
    background: #eee;
    color: #666;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-reply:hover {
    background: #ddd;
}

/* Replies List */
.replies-list {
    margin-top: 15px;
    padding-right: 20px;
    border-right: 2px solid #eee;
}

.reply-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.reply-item:first-child {
    padding-top: 0;
}

.comment-avatar.small {
    width: 40px;
    height: 40px;
}

.reply-item .comment-text {
    font-size: 13px;
}

.reply-item .comment-actions {
    margin-top: 5px;
}

.reply-item .like-btn,
.reply-item .dislike-btn {
    font-size: 12px;
    padding: 3px 8px;
}

/* Responsive Comments */
@media (max-width: 576px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-page .article-sidebar {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Prevent empty sidebar containers from creating vertical gaps */
.article-page #currencyWidgetContainer:empty,
.article-page #caricatureWidgetContainer:empty {
    display: none;
}

@media (min-width: 992px) {
    .article-page .article-sidebar.is-sticky {
        position: sticky;
        top: 90px;
        align-self: start;
    }

    body.has-admin-bar .article-page .article-sidebar.is-sticky {
        top: 130px;
    }
}

.sidebar-widget {
    background: #fff;
    border-radius: 0;
    padding: 20px;
    box-shadow: var(--shadow);
}

.article-page .sidebar-widget {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 25, 43, 0.08);
}

.article-page .sidebar-widget .section-header {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Simple Widget Title for Article Sidebar */
.widget-title-simple {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 4px solid var(--primary-color);
}

.widget-title-simple i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Latest Widget Styling */
.latest-widget {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Article page: remove heading underline/highlight */
.article-page .article-sidebar .section-title {
    background: transparent;
    border-bottom: none;
    padding: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-color);
    margin: 0 0 4px;
    position: relative;
}

.article-page .article-sidebar .section-title-wrap {
    gap: 2px;
}

.article-page .article-sidebar .section-title::before {
    display: none;
}

/* Latest News Widget */
.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-page .latest-news-list {
    gap: 0;
}

.latest-news-item a {
    display: flex;
    gap: 12px;
}

.article-page .latest-news-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(15, 25, 43, 0.08);
}

.article-page .latest-news-item:last-child a {
    border-bottom: none;
}

.article-page .news-thumb {
    width: 92px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f4f7;
}

.article-page .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.08) saturate(1.04);
}

.article-page .news-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-align: right;
    background: transparent;
}

.article-page .news-info h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: #102a43;
    margin: 0;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-page .latest-news-item a:hover {
    background: rgba(15, 25, 43, 0.03);
}

.news-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.article-page .news-thumb {
    width: 92px;
    height: 70px;
    border-radius: 12px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.news-info {
    flex: 1;
}

.news-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
    transition: var(--transition);
}

.article-page .news-info h4 {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.latest-news-item:hover h4 {
    color: var(--primary-color);
}

.news-info span {
    font-size: 11px;
    color: var(--text-light);
}

/* Sidebar Writers Widget */
.sidebar-writers-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-writer-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-writer-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-writer-item:first-child {
    padding-top: 0;
}

.sidebar-writer-item a {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sidebar-writer-item .writer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #eee;
}

.sidebar-writer-item .writer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-writer-item .writer-info {
    flex: 1;
}

.sidebar-writer-item .writer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.sidebar-writer-item .writer-article {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-writer-item:hover .writer-avatar {
    border-color: var(--primary-color);
}

.sidebar-writer-item:hover .writer-name {
    color: #c62828;
}

/* Caricature Widget */
.caricature-widget {
    background: #fff;
}

.caricature-slider {
    background: #f5f5f7;
}

.caricature-slide {
    margin-left: -27px;
    margin-right: -27px;
    margin-bottom: -27px;
    transition: opacity 0.3s ease;
    height: 260px;
    overflow: hidden;
}

.caricature-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.caricature-caption {
    border: 2px solid transparent;
    transition: var(--transition);
}

.caricature-thumbs .thumb.active,
.caricature-thumbs .thumb:hover {
    border-color: var(--primary-color);
}

.caricature-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    transition: var(--transition);
}

.widget-more:hover {
    color: #c62828;
}

/* Article Page Responsive */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "comments"
            "sidebar";
    }
    
    .article-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        flex: 1;
        min-width: 280px;
    }
    
    .article-header .article-title {
        font-size: 26px !important;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 15px;
    }
    
    .article-header .article-title {
        font-size: 20px !important;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
        line-height: 1.6;
        word-spacing: -1px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-intro {
        font-size: 18px;
    }
    
    .article-body h2 {
        font-size: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .article-meta-info {
        flex-wrap: wrap;
    }
}

/* ========================================
   Article Meta Row - Clean Design
======================================== */
.article-page .article-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background: #f8f8f8 !important;
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    margin-bottom: 25px !important;
    position: relative !important;
}

.article-page .article-meta-row::before {
    display: none !important;
}

.article-page .article-meta-info {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    flex-wrap: nowrap !important;
}

/* Author with Avatar Style */
.article-page .author-simple {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.article-page .author-simple .author-icon {
    width: 32px !important;
    height: 32px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 14px !important;
}

.article-page .author-simple .author-icon i {
    color: #fff !important;
    font-size: 14px !important;
}

.article-page .author-simple .author-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Meta Items */
.article-page .meta-separator {
    display: none !important;
}

.article-page .meta-datetime {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.article-page .meta-datetime > i {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 14px !important;
}

.article-page .meta-datetime span {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

/* Share Button */
.article-page .share-main-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    height: auto !important;
}

.article-page .share-main-btn > i {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 12px !important;
}

.article-page .share-main-btn:hover {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
}

/* Share Dropdown for Article Page */
.article-page .article-share-wrapper {
    position: relative;
}

.article-page .share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.article-page .share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-page .article-meta-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 10px 15px !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 25px !important;
        margin: 0 0 15px !important;
        direction: rtl !important;
    }
    
    .article-page .article-meta-row::before {
        display: none !important;
    }
    
    .article-page .article-meta-info {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        flex: 1 !important;
    }
    
    .article-page .article-meta-info .meta-separator {
        display: none !important;
    }
    
    .article-page .article-meta-info .author-simple {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        order: 1 !important;
    }
    
    .article-page .article-meta-info .author-simple .author-name {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #333 !important;
        white-space: nowrap !important;
    }
    
    .article-page .article-meta-info .author-simple .author-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        background: var(--primary-color) !important;
        border-radius: 50% !important;
        color: #fff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
    }
    
    /* Date and Time wrapper */
    .article-page .article-meta-info .meta-datetime {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 13px !important;
        color: #555 !important;
        order: 2 !important;
        white-space: nowrap !important;
    }
    
    .article-page .article-meta-info .meta-datetime i {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        background: var(--primary-color) !important;
        border-radius: 50% !important;
        color: #fff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
    }
    
    .article-page .article-meta-info .meta-date,
    .article-page .article-meta-info .meta-time {
        display: none !important;
    }
    
    .article-page .article-share-wrapper {
        flex-shrink: 0 !important;
        order: 3 !important;
    }

    .article-page .article-share-wrapper .share-main-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 20px !important;
        color: #333 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        width: auto !important;
        height: auto !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }
    
    .article-page .article-share-wrapper .share-main-btn:hover {
        background: #f5f5f5 !important;
        border-color: #ddd !important;
    }
    
    .article-page .article-share-wrapper .share-main-btn i {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        background: var(--primary-color) !important;
        border-radius: 50% !important;
        color: #fff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 11px !important;
    }
}

@media (max-width: 576px) {
    .article-page .article-meta-row {
        padding: 8px 12px !important;
        gap: 6px !important;
        border-radius: 20px !important;
    }
    
    .article-page .article-meta-info {
        gap: 10px !important;
    }
    
    .article-page .article-meta-info .meta-datetime {
        font-size: 11px !important;
    }
    
    .article-page .article-meta-info .meta-datetime i {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 11px !important;
    }
    
    .article-page .article-meta-info .author-simple .author-name {
        font-size: 12px !important;
    }
    
    .article-page .article-meta-info .author-simple .author-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 11px !important;
    }
    
    .article-page .article-share-wrapper .share-main-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        gap: 5px !important;
    }
    
    .article-page .article-share-wrapper .share-main-btn i {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        font-size: 10px !important;
    }
}

/* ========================================
   Article Top Section - Gulf Echo Style
======================================== */
.article-page .article-top-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.article-page .article-top-main {
    display: flex;
    flex-direction: column;
}

.article-page .article-top-main .article-header {
    margin-bottom: 12px;
}

.article-page .article-top-main .article-title {
    font-size: 32px !important;
    font-weight: 800;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.article-page .article-top-main .article-featured-image {
    margin: 0;
    border-radius: 0;
    width: 100%;
    max-width: 1280px;
    height: auto;
    overflow: hidden;
    position: relative;
    background: #000;
    margin-left: auto;
    margin-right: auto;
}

/* Ultra News Style - Blur Background */
.article-page .article-top-main .article-featured-image.ultra-style {
    display: block;
    aspect-ratio: 16/9;
}

.article-page .article-top-main .article-featured-image .image-blur-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    opacity: 0.7;
}

.article-page .article-top-main .article-featured-image.ultra-style img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-page .article-top-main .article-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 992px) {
    .article-page .article-top-main .article-title {
        font-size: 26px !important;
    }
}

@media (max-width: 768px) {
    .article-page .article-top-main .article-title {
        font-size: 20px !important;
        line-height: 1.6 !important;
        word-spacing: -1px;
    }
}

@media (max-width: 576px) {
    .article-page .article-top-main .article-title {
        font-size: 18px !important;
        line-height: 1.55 !important;
    }
}

/* ========================================
   Writer Page (v2)
======================================== */
.writer-page-v2 {
    background: var(--bg-secondary);
    min-height: 100vh;
}

.writer-hero {
    position: relative;
    padding: 50px 0 40px;
    color: var(--text-primary);
    overflow: hidden;
    background: linear-gradient(135deg, #0f192b 0%, #1a2840 50%, #0f192b 100%);
}

.writer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.writer-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.writer-hero .container {
    position: relative;
    z-index: 1;
}

.writer-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: stretch;
}

.writer-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.writer-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    padding: 4px;
    box-shadow: 0 20px 50px rgba(196, 30, 58, 0.4), 0 0 0 4px rgba(255,255,255,0.1);
    position: relative;
}

.writer-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), #ff6b6b, var(--primary-color));
    animation: avatarGlow 3s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes avatarGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.writer-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0f192b;
}

.writer-profile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.writer-kicker {
    display: none;
}

.writer-pill {
    display: none;
}

.writer-pill-dark {
    display: none;
}

.writer-name {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.writer-bio {
    margin: 0 0 20px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    max-width: 500px;
    font-size: 15px;
}

.writer-stats {
    display: flex;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.writer-stat {
    min-width: 100px;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.writer-stat:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.writer-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.writer-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    font-weight: 500;
}

.writer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
    justify-content: center;
}

.writer-btn {
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    user-select: none;
}

.writer-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.4);
}

.writer-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e63950 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
}

.writer-btn-primary:hover {
    background: linear-gradient(135deg, #e63950 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.5);
}

.writer-btn-ghost {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.writer-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.writer-loading-more {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.writer-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9edf3;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: writerSpin 0.8s linear infinite;
}

@keyframes writerSpin {
    to { transform: rotate(360deg); }
}

.writer-spotlight-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid #e9edf3;
    height: 100%;
}

.writer-spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.writer-spotlight-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f192b;
}

.writer-spotlight-hint {
    font-size: 12px;
    color: #777;
}

.writer-top-list {
    display: flex;
    flex-direction: column;
}

.writer-top-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.writer-top-item:last-child {
    border-bottom: none;
}

.writer-top-rank {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.12);
    flex: 0 0 auto;
}

.writer-top-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f4f7;
    flex: 0 0 auto;
}

.writer-top-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.writer-top-body {
    flex: 1;
    min-width: 0;
}

.writer-top-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 6px;
}

.writer-top-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.75;
    color: #0f192b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.writer-top-title a {
    color: inherit;
    text-decoration: none;
}

.writer-top-title a:hover {
    color: var(--primary-color);
}

.writer-top-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

.writer-content {
    padding: 28px 0 60px;
}

.writer-section-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 900;
    color: #0f192b;
}

.writer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.writer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    min-width: 260px;
    flex: 1;
    max-width: 440px;
}

.writer-search i {
    color: var(--primary-color);
}

.writer-search input {
    border: none;
    outline: none;
    flex: 1;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    background: transparent;
    direction: rtl;
}

.writer-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.writer-article-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.22s ease;
}

.writer-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.writer-article-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.writer-article-media {
    height: 170px;
    overflow: hidden;
    background: #eee;
}

.writer-article-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.writer-article-card:hover .writer-article-media img {
    transform: scale(1.05);
}

.writer-article-body {
    padding: 14px 14px 16px;
    text-align: right;
    background: #fff;
}

.writer-article-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
    color: #0f192b;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
    height: 60px;
}

.writer-skeleton {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    color: #666;
    text-align: center;
}

.writer-load-more {
    margin-top: 20px;
    text-align: center;
}

.writer-empty {
    margin-top: 10px;
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow);
}

.writer-empty h3 {
    margin: 0 0 8px;
    color: #0f192b;
    font-weight: 900;
}

.writer-empty p {
    margin: 0;
    color: #777;
}

@media (max-width: 992px) {
    .writer-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .writer-article-title {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    .writer-articles-grid {
        gap: 18px;
    }
    .writer-article-media {
        height: 180px;
    }
    .writer-article-title {
        font-size: 16px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 768px) {
    .writer-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .writer-name {
        font-size: 28px;
    }
    .writer-bio {
        text-align: center;
    }
    .writer-search {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .writer-hero {
        padding: 40px 0 24px;
    }
    .writer-avatar {
        width: 96px;
        height: 96px;
    }
    .writer-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COMPREHENSIVE RESPONSIVE FIXES
   Mobile-First Responsive Design
======================================== */

/* Container Responsive */
@media (max-width: 1400px) {
    .container {
        padding: 0 20px;
    }
}

/* Triple Category Grid Responsive */
@media (max-width: 1200px) {
    .triple-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .triple-category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-main-card img {
        height: 200px;
    }
    
    .category-small-card .card-image {
        width: 100px;
        height: 75px;
    }
    
    .category-content h3 {
        font-size: 14px;
    }
}

/* Widget Rows Responsive */
@media (max-width: 992px) {
    .widgets-row {
        flex-wrap: wrap;
    }
    
    .widget-column {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* Section Headers Responsive */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-title a {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .section-title,
    .section-title a {
        font-size: 18px;
    }
    
    .section-title-decoration .line {
        width: 40px;
    }
}

/* News Today Section Responsive */
@media (max-width: 1024px) {
    .news-today-section .two-columns {
        flex-direction: column;
    }
    
    .news-today-section .main-column,
    .news-today-section .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news-today-featured-card {
        margin-bottom: 20px;
    }
    
    .news-today-featured-media {
        height: 250px;
    }
    
    .news-today-featured-body h2 {
        font-size: 18px;
    }
    
    .pair-card {
        flex-direction: row;
    }
    
    .pair-thumb {
        width: 100px;
        height: 70px;
    }
}

/* Writers Section Responsive */
@media (max-width: 1200px) {
    .writers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .writers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .writer-card {
        padding: 15px;
    }
    
    .writer-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .writers-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Box Responsive */
@media (max-width: 992px) {
    .featured-box-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-box-card.big {
        height: 350px;
    }
    
    .featured-box-small-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .featured-box-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .featured-box-card.big {
        height: 280px;
    }
    
    .featured-box-small-cards {
        flex-direction: column;
    }
    
    .featured-box-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .featured-box-card.vertical .card-image {
        height: 130px;
    }
}

/* Article Page Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "comments"
            "sidebar";
    }
    
    .article-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 20px;
        border-radius: 12px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .article-featured-image img {
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .article-main {
        padding: 12px;
        border-radius: 8px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-header .article-title {
        font-size: 18px !important;
        line-height: 1.55;
    }
    
    .article-content {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .article-content h2,
    .article-content h3 {
        font-size: 18px;
    }
}

/* Currency Widget Responsive */
@media (max-width: 768px) {
    .currency-new {
        padding: 15px;
    }
    
    .currency-grid {
        grid-template-columns: 1fr;
    }
}

/* Caricature Widget Responsive */
@media (max-width: 768px) {
    .caricature-side {
        flex-direction: column;
    }
    
    .caricature-card.small {
        width: 100%;
    }
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Categories Page Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Popup Responsive */
@media (max-width: 576px) {
    .search-popup {
        width: 95%;
        padding: 20px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
}

/* Sidebar Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 100%;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
}

/* General Mobile Fixes */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        margin-bottom: 30px;
    }
    
    /* Fix overflow issues */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    .main-content {
        overflow-x: hidden;
    }
}

/* Tablet Specific Fixes */
@media (min-width: 577px) and (max-width: 992px) {
    .container {
        padding: 0 25px;
    }
    
    .hero-grid {
        gap: 15px;
    }
    
    .munawaat-grid {
        gap: 15px;
    }
}

/* ========================================
   Article Meta Row - Final Override
======================================== */
body.article-page .article-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    background: #f8f8f8 !important;
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    margin-bottom: 25px !important;
}

body.article-page .article-meta-row::before {
    display: none !important;
    content: none !important;
}

body.article-page .article-meta-row .article-meta-info {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

body.article-page .article-meta-row .author-simple {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.article-page .article-meta-row .author-simple .author-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: #c41e3a !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.article-page .article-meta-row .author-simple .author-icon i {
    color: #fff !important;
    font-size: 14px !important;
}

body.article-page .article-meta-row .author-simple .author-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
}

body.article-page .article-meta-row .meta-datetime {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.article-page .article-meta-row .meta-datetime > i {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: #c41e3a !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 14px !important;
}

body.article-page .article-meta-row .meta-datetime span {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

body.article-page .article-share-wrapper .share-main-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: auto !important;
    height: auto !important;
}

body.article-page .article-share-wrapper .share-main-btn > i {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    background: #c41e3a !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 12px !important;
}

/* Mobile Override */
@media (max-width: 768px) {
    body.article-page .article-meta-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 10px 15px !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 25px !important;
        margin: 0 0 15px !important;
        direction: rtl !important;
    }
    
    body.article-page .article-meta-row .article-meta-info {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 !important;
    }
    
    body.article-page .article-meta-row .author-simple {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    body.article-page .article-meta-row .author-simple .author-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
    
    body.article-page .article-meta-row .author-simple .author-icon i {
        font-size: 13px !important;
    }
    
    body.article-page .article-meta-row .meta-datetime {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        white-space: nowrap !important;
    }
    
    body.article-page .article-meta-row .meta-datetime > i {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 13px !important;
    }
    
    body.article-page .article-share-wrapper {
        flex-shrink: 0 !important;
    }
    
    body.article-page .article-share-wrapper .share-main-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        gap: 6px !important;
    }
    
    body.article-page .article-share-wrapper .share-main-btn > i {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 11px !important;
    }
}
/* ========================================
   FINAL Mobile Article Meta - FIXED NO RED CIRCLES
======================================== */
@media screen and (max-width: 768px) {
    html body.article-page .article-meta-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        background: #fff !important;
        border: 1px solid #eee !important;
        border-radius: 12px !important;
        margin: 0 0 20px 0 !important;
        direction: rtl !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
        height: auto !important;
        min-height: 50px !important;
    }
    
    html body.article-page .article-meta-row .article-meta-info {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    
    /* Author Section */
    html body.article-page .article-meta-row .author-simple {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        height: 28px !important;
    }
    
    html body.article-page .article-meta-row .author-simple .author-icon {
        width: 28px !important;
        height: 28px !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    html body.article-page .article-meta-row .author-simple .author-icon i {
        color: #c41e3a !important; /* RED ICON */
        font-size: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    html body.article-page .article-meta-row .author-simple .author-name {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #333 !important;
        white-space: nowrap !important;
        display: block !important;
        position: relative !important;
        top: 4px !important; /* Pushed down to align with icon 'body' */
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        height: auto !important;
    }
    
    /* Date Section */
    html body.article-page .article-meta-row .meta-datetime {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        height: 28px !important;
    }
    
    html body.article-page .article-meta-row .meta-datetime > i {
        width: 28px !important;
        height: 28px !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #c41e3a !important; /* RED ICON */
        font-size: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
    
    html body.article-page .article-meta-row .meta-datetime span {
        font-size: 13px !important;
        color: #333 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        display: block !important;
        position: relative !important;
        top: 3px !important; /* Pushed down to align with icon bottom */
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        height: auto !important;
    }
    
    /* Share Section */
    html body.article-page .article-meta-row .article-share-wrapper {
        flex-shrink: 0 !important;
        margin-right: 5px !important;
        padding-right: 0 !important;
        border: none !important;
    }
    
    html body.article-page .article-meta-row .article-share-wrapper .share-main-btn {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 16px !important;
        background: #f5f5f5 !important; /* LIGHT GREY BG */
        border: none !important;
        border-radius: 8px !important;
        color: #333 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        width: auto !important;
        height: auto !important;
        cursor: pointer !important;
    }
    
    html body.article-page .article-meta-row .article-share-wrapper .share-main-btn span {
        display: inline !important;
    }
    
    html body.article-page .article-meta-row .article-share-wrapper .share-main-btn > i {
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        display: block !important;
        color: #c41e3a !important; /* RED ICON */
        font-size: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
/* Mobile Article Meta - USER EXACT MATCH SNIPPET */
@media screen and (max-width: 768px) {
    .article-meta {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Spread elements */
        gap: 10px;
        padding: 12px 15px; /* Internal spacing */
        border: 1px solid #e5e5e5; /* The Missing Border */
        border-radius: 12px; /* Rounded Corners */
        margin-bottom: 20px;
        background: #fff;
        flex-wrap: nowrap; /* Keep adjacent */
        box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Subtle depth */
    }

    .meta-author, .meta-date {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #333;
        font-size: 13px !important;
        font-weight: 500;
        white-space: nowrap;
    }

    .meta-author i, .meta-date i {
        color: #c41e3a; /* Red Icon */
        font-size: 16px;
        display: inline-block;
        vertical-align: middle;
    }

    .meta-author a {
        color: #333;
        text-decoration: none;
        font-weight: 700;
        font-size: 14px !important;
        position: relative;
        top: 3px; /* Forced alignment adjustment */
        line-height: 1;
    }
    
    .meta-date time {
        font-size: 13px !important;
        color: #555;
        position: relative;
        top: 3px; /* Forced alignment adjustment */
        line-height: 1;
    }

    /* Share Container - Force Left Alignment in RTL */
    .meta-share-container {
        margin-right: auto; /* Pushes to the far left in RTL */
        position: relative;
    }

    .meta-share-button {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #f5f5f5;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        color: #333;
    }
    
    .meta-share-button i {
        color: #c41e3a;
        font-size: 14px;
    }
    
    .meta-share-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        padding: 8px;
        border-radius: 8px;
        z-index: 1000;
        margin-top: 5px;
        flex-direction: row;
        gap: 8px;
        min-width: 150px;
        justify-content: space-around;
    }

    .meta-share-dropdown.show {
        display: flex;
    }

    .meta-share-dropdown a {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f8f9fa;
        color: #333;
        font-size: 16px;
        transition: 0.2s;
        text-decoration: none;
    }
    
    .meta-share-dropdown a.whatsapp { color: #25D366; background: #e8f5e9; }
    .meta-share-dropdown a.twitter { color: #000; background: #eef; }
    .meta-share-dropdown a.facebook { color: #1877F2; background: #eaf3ff; }
    .meta-share-dropdown a.telegram { color: #0088cc; background: #e0f2f1; }
}

/* ==========================================================================
   MOBILE DRAWER & NAVIGATION SYSTEM (REBUILT CLEAN)
   Date: 2026-02-25
   Author: GitHub Copilot
   ========================================================================== */

/* 1. Base / Desktop Defaults */
.header .main-nav {
    display: flex;
    align-items: center;
}

.header .main-nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .main-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #fff; /* Restored white text for dark header */
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.header .main-nav a:hover,
.header .main-nav a.active {
    color: #fff;
    border-bottom-color: var(--primary-color);
}

/* Hide mobile-specific elements on desktop */
.mobile-drawer-header,
.mobile-drawer-quick,
.mobile-nav-overlay,
.mobile-menu-btn,
.header .main-nav .drawer-icon,
.header .main-nav .drawer-chevron {
    display: none !important;
}

.header .main-nav .drawer-item {
    display: inline-block;
}

/* 2. Mobile / Tablet Breakpoint (max-width: 1200px) */
@media screen and (max-width: 1200px) {

    /* Reveal the toggle button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        padding: 5px;
        order: 1; /* Leftmost */
    }

    /* Adjust Header Layout */
    .header-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        gap: 10px;
    }

    .header .logo {
        order: 2; /* Center */
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .header-actions {
        order: 3; /* Rightmost */
    }

    /* The Main Nav (becomes the Drawer) */
    .header .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -320px; /* Hidden off-canvas right */
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #1a1a2e; /* CHANGED: Dark Blue Background (was #fff) */
        flex-direction: column;
        z-index: 9999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding: 0;
        margin: 0;
    }

    .header .main-nav.active {
        right: 0; /* Slide in */
    }

    /* Overlay */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none; /* Initially hidden */
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mobile-nav-overlay.active {
        display: block !important;
        opacity: 1;
    }

    /* Drawer Header (Logo + Close) */
    .mobile-drawer-header {
        display: flex !important;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        direction: rtl; /* Ensure RTL matches site direction */
        justify-content: space-between;
        background: #1a1a2e; /* CHANGED: Dark Blue to match site header */
        padding: 15px 20px;
        border-bottom: 1px solid #333; /* Darker border */
    }

    .mobile-drawer-logo img {
        height: 60px; /* Increased from 40px */
        width: auto;
        max-width: 160px; /* Ensure it doesn't get too wide */
        object-fit: contain;
        /* Filter removed to show original logo colors */
    }

    .mobile-drawer-close {
        background: none;
        border: none;
        color: #fff; /* CHANGED: White close button */
        font-size: 24px;
        cursor: pointer;
        padding: 0 5px;
        margin-right: auto; /* Force push to the left in RTL */
    }

    /* Drawer Quick Links Grid */
    .mobile-drawer-quick {
        display: block !important;
        background: #f8f9fa;
        padding: 15px 10px;
        border-bottom: 1px solid #eee;
    }

    .mobile-drawer-quick-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        text-align: center;
        direction: rtl;
    }

    .quick-item {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: #333;
        font-size: 13px;
        cursor: pointer;
    }

    .quick-item i {
        font-size: 20px;
        color: var(--primary-color); 
        /* Gold specific color override if needed */
    }
    
    .quick-item[aria-label='?????'] i { color: #d4af37; }
    .quick-item[aria-label='???????'] i { color: #2ecc71; }
    .quick-item[aria-label='?????'] i { color: #3498db; }
    .quick-item[aria-label='??????'] i { color: #9b59b6; }

    /* Drawer List (The main menu) */
    .header .main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
    }

    .header .main-nav li {
        width: 100%;
        border-bottom: 1px solid #2a2a40; /* Darker border */
        direction: rtl;
        background: #1a1a2e; /* CHANGED: Dark Blue Background */
    }

    .header .main-nav a {
        display: flex !important; /* Force flex */
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 15px;
        box-sizing: border-box;
        color: #fff; /* CHANGED: White text */
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        position: relative;
    }

    .header .main-nav a:hover,
    .header .main-nav a.active {
        background-color: #252538; /* Slightly lighter dark for hover */
        color: var(--primary-color);
    }
    
    /* Disable the desktop underline effect */
    .header .main-nav a::after {
        display: none !important;
    }

    /* Inside the link generated by JS */
    .drawer-item {
        display: flex !important;
        align-items: center;
        gap: 15px;
        flex: 1; /* Takes available space */
        min-width: 0;
    }

    .drawer-icon {
        display: inline-flex !important;
        width:2px;
        flex: 1; /* Takes available space */
        min-width: 0;
    }

    .drawer-icon {
        display: inline-block !important;
        width: 24px;
        text-align: center;
        color: #888;
        font-size: 16px;
    }
}

/* Admin Bar Adjustment (Mobile Only) */
@media screen and (max-width: 1200px) {
    body.has-admin-bar .header .main-nav {
        top: 40px !important;
        height: calc(100vh - 40px) !important;
    }

    body.has-admin-bar .mobile-nav-overlay {
        top: 40px !important;
    }
}


/* Restore Desktop Header Layout */
@media screen and (min-width: 1201px) {
    .header-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header .logo {
        flex: 0 0 auto;
        margin-left: 20px;
    }

    .header .main-nav {
        flex: 1;
        justify-content: center;
    }

    .header .main-nav ul {
        display: flex;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .header-actions {
        flex: 0 0 auto;
        margin-right: 20px;
    }
}


