/* Main Website Styles - Complete Version */
:root {
    --primary-color: #0d3b3b;
    --secondary-color: #d4af37;
    --accent-color: #f4d03f;
    --text-color: #2c3e50;
    --text-light: #5a6a7a;
    --bg-light: #f5f7f6;
    --border-color: #d0ddd8;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(13, 59, 59, 0.1);
    --shadow-hover: 0 5px 20px rgba(13, 59, 59, 0.2);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #0d3b3b 0%, #1a4a4a 50%, #0f3535 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: #ffffff !important;
    font-size: 16px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    background: #ffffff !important;
    display: block !important;
    visibility: visible !important;
}

/* Top Bar */
.top-bar {
    /* Top bar background matching footer theme - Dark Teal/Green */
    background: linear-gradient(135deg, #0d3b3b 0%, #1a4a4a 50%, #0f3535 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 4px solid #d4af37;
}

.top-bar .container {
    background: transparent !important; /* Fix: avoid white-on-white date text */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-content{ position: relative; }

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-left: auto; /* push to right */
    justify-content: flex-end;
    text-align: right;
}

.top-lang-switcher {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.top-lang-switcher a {
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #0d3b3b 0%, #1a4a4a 100%);
    transition: var(--transition);
}

.top-lang-switcher a:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0d3b3b;
    transform: translateY(-1px);
}

.top-lang-switcher a.active {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0d3b3b;
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.date-display i {
    color: var(--secondary-color);
}

.date-display,
.date-display * {
    color: #fff;
}

.date-display i {
    color: #ffd166;
}

.social-icons-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Top-bar icons should be compact */
.top-bar .social-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Podcast Grid Layout - YouTube Style */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.podcast-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
    cursor: pointer;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.podcast-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    background: #0d3b3b;
}

.podcast-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 350ms ease;
}

.podcast-card:hover .podcast-thumb img {
    transform: scale(1.05);
}

.podcast-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 250ms ease;
    background: radial-gradient(circle at center, rgba(0,0,0,0.45), rgba(0,0,0,0.0) 60%);
    pointer-events: none;
}

.podcast-play i {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border: none;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    font-size: 24px;
    color: #0d3b3b;
}

.podcast-card:hover .podcast-play {
    opacity: 1;
}

.podcast-info {
    padding: 15px;
}

.podcast-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.podcast-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
}

/* Legacy podcast list item styling (fallback) */
.excerpt-item .podcast-thumb {
    width: 220px;
    height: 124px;
    padding-bottom: 0;
    min-width: 220px;
    max-width: 220px;
    border-radius: 10px;
}

.excerpt-item .podcast-thumb img {
    position: static;
}

.excerpt-item:hover .podcast-thumb img {
    transform: scale(1.05);
}

.excerpt-item:hover .podcast-play {
    opacity: 1;
}

@media (max-width: 768px) {
    .podcast-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}


.top-bar .social-x svg {
    width: 16px;
    height: 16px;
}

html[dir="rtl"] .top-bar-content {
    flex-direction: row-reverse;
}

/* Column positioning rules moved to main layout section */

/* Social Icons - Beautiful Animated Icons with Hover Effects */
.social-icon {
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.social-icon i,
.social-icon svg {
    color: white !important;
    fill: white !important;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

/* Shine sweep effect on hover */
.social-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    transform: rotate(45deg) translateX(-150%);
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Glow ring effect */
.social-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: blur(8px);
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.15);
}

.social-icon:hover::before {
    transform: rotate(45deg) translateX(150%);
}

.social-icon:hover::after {
    opacity: 0.6;
    transform: scale(1.2);
}

.social-icon:hover i,
.social-icon:hover svg {
    transform: scale(1.1);
    animation: iconPulse 0.4s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.25); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ========== SOCIAL ICON PLATFORM COLORS ========== */

/* Facebook - Blue */
.social-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fcc 100%) !important;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.5) !important;
}
.social-facebook:hover {
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.7) !important;
}

/* Instagram - Rainbow Gradient */
.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.5) !important;
}
.social-instagram:hover {
    box-shadow: 0 8px 30px rgba(220, 39, 67, 0.7) !important;
}

/* YouTube - Red */
.social-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5) !important;
}
.social-youtube:hover {
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.7) !important;
}

/* TikTok - Black with Pink/Cyan */
.social-tiktok {
    background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%) !important;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.5) !important;
}
.social-tiktok:hover {
    box-shadow: 0 8px 30px rgba(254, 44, 85, 0.7) !important;
}

/* WhatsApp - Green */
.social-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5) !important;
}
.social-whatsapp:hover {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7) !important;
}

/* X (Twitter) - Black */
.social-x {
    background: linear-gradient(135deg, #14171a 0%, #000000 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}
.social-x svg {
    width: 14px;
    height: 14px;
}
.social-x:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7) !important;
}

/* Telegram - Blue */
.social-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.5) !important;
}
.social-telegram:hover {
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.7) !important;
}


/* News Ticker - Same color as "بریکنگ نیوز" label */
.news-ticker-container {
    /* Dark Teal/Green background matching footer */
    background: linear-gradient(135deg, #0d3b3b 0%, #1a4a4a 50%, #0f3535 100%) !important;
    color: white;
    padding: 14px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(13, 59, 59, 0.4) !important;
    border-bottom: 3px solid #d4af37;
    display: flex;
    align-items: center;
}

@keyframes ticker-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6); }
}

.news-ticker-label {
    display: inline-flex;
    align-items: center;
    /* Golden accent background */
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%) !important;
    color: #0d3b3b !important;
    padding: 10px 25px;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    border-right: 1px solid rgba(255,255,255,0.25);
    min-width: 180px;
    box-shadow: 8px 0 18px rgba(0,0,0,0.18);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.breaking-news-label {
    font-weight: 900;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: #ffffff !important;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 15px rgba(255, 215, 0, 0.5);
    }
    50% { 
        opacity: 0.95;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

.news-ticker-wrapper {
    overflow: hidden;
    margin-left: 180px;
    margin-right: 20px;
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.news-ticker-content {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    animation: scroll-ticker-ltr 70s linear infinite; /* Slowed down from 35s to 70s */
    will-change: transform;
}

.news-ticker-text {
    font-weight: 600;
    font-size: 16px;
    padding-right: 100px;
    display: inline-block;
    /* White text on blue background */
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    line-height: 1.5;
}

.news-ticker-separator {
    padding: 0 50px;
    font-size: 18px;
    color: rgba(255,255,255,0.9); /* White separator */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes scroll-ticker-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

html[dir="rtl"] .news-ticker-label {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 3px solid rgba(255,255,255,0.5);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

html[dir="rtl"] .news-ticker-wrapper {
    margin-left: 20px;
    margin-right: 180px;
}

html[dir="rtl"] .news-ticker-content {
    animation: scroll-ticker-rtl 70s linear infinite !important; /* Slowed down to match LTR */
}

@keyframes scroll-ticker-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.333%); }
}

/* Remove gap between ticker and menu */
.news-ticker-container {
    margin-bottom: 0 !important;
}

/* Navigation with Logo */
.main-navigation {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: none;
    position: relative;
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* Logo in navigation bar */
.nav-logo {
    flex-shrink: 0;
    order: 1; /* Default: left side in English */
}

.nav-logo a {
    display: block;
}

.nav-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    background: white;
    padding: 3px;
    transition: var(--transition);
}

.nav-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* In Urdu (RTL): Logo on RIGHT side */
html[dir="rtl"] .nav-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-logo {
    order: 2;
}

html[dir="rtl"] .nav-menu {
    order: 1;
}

/* In English (LTR): Logo on LEFT side */
html[dir="ltr"] .nav-logo {
    order: 1;
}

html[dir="ltr"] .nav-menu {
    order: 2;
}

/* Same stylish divider at bottom of menu bar */
.main-navigation::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    gap: 25px !important;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: inline-block;
    list-style: none !important;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 15px !important;
    position: relative;
    transition: var(--transition);
    display: inline-block;
    border-radius: 5px;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-switcher a {
    padding: 8px 15px !important;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.lang-switcher a.active,
.lang-switcher a:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
    clear: both;
    position: relative;
    width: 100%;
    overflow: visible;
    min-height: 400px;
    background: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.three-column-layout {
    display: grid !important;
    /* Ensure A and B stay perfectly equal (even with long content) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 350px !important; /* default: A, B, C (right) */
    grid-template-areas: "left center right" !important;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    width: 100%;
    min-height: 300px;
    visibility: visible !important;
    opacity: 1 !important;
    direction: inherit !important;
}

html[dir="rtl"] .three-column-layout,
body[dir="rtl"] .three-column-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 350px !important;
    direction: ltr !important; /* Keep grid columns physically stable in RTL */
}

.column-right { grid-area: right; }
.column-left { grid-area: left; }
.column-center { grid-area: center; }

/* Section C should be LEFT on Urdu (RTL) pages EXCEPT columns listing page */
html[dir="rtl"] body:not(.page-columns) .three-column-layout {
    grid-template-columns: 350px minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas: "right left center" !important;
}

/* Ensure columns listing page stays normal order (EN only). */
body.page-columns .three-column-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 350px !important;
    grid-template-areas: "left center right" !important;
}

/* Columns page (UR): Section C on LEFT */
html[dir="rtl"] body.page-columns .three-column-layout {
    grid-template-columns: 350px minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas: "right left center" !important;
}

.three-column-layout.no-sidebar {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: "left center" !important;
}

.column-left,
.column-center,
.column-right {
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 200px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Avoid forced ordering; grid-template-areas controls placement */

/* Article detail layout */
.article-detail-layout {
    display: grid;
    grid-template-columns: 350px 1fr; /* Section C left */
    gap: 40px;
    align-items: start;
}

/* Full column reading page (article.php): keep Section C on LEFT in Urdu */
html[dir="rtl"] .article-detail-layout {
    direction: ltr;
}
html[dir="rtl"] .article-main {
    direction: rtl;
    text-align: right;
}

/* Mobile fix for article/column content - prevent blank left side */
@media (max-width: 1024px) {
    .article-detail-layout {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
    }
    
    .article-detail-layout aside {
        order: 2;
    }
    
    .article-detail-layout .article-main {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }
    
    html[dir="rtl"] .article-detail-layout .article-main {
        direction: rtl !important;
        text-align: right !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.article-detail-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.article-detail-layout.no-sidebar aside {
    display: none !important;
}

.column-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    text-align: left;
}

/* Underline starts where listings start (not full width) */
.column-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: min(520px, 70%);
    background: linear-gradient(90deg, #0d3b3b 0%, #d4af37 50%, #f4d03f 100%);
    border-radius: 999px;
}

html[dir="rtl"] .column-section-title {
    text-align: right;
}
html[dir="rtl"] .column-section-title::after {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, #f4d03f 0%, #d4af37 50%, #0d3b3b 100%);
}

.excerpt-list {
    display: flex !important;
    flex-direction: column;
    gap: 25px;
    visibility: visible !important;
    opacity: 1 !important;
}

.excerpt-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    align-items: center;
}

/* Columns page: prevent card clipping in narrower columns */
body.page-columns .excerpt-item {
    overflow: visible;
}
body.page-columns .excerpt-content {
    min-width: 0 !important;
}
/* Keep columns listing excerpts slightly bolder (as requested) */
body.page-columns .excerpt-text {
    font-weight: 600 !important;
}

/* Columns page cards: show only image (fully) + title below */
body.page-columns .excerpt-item.column-page-card {
    display: block;
    overflow: hidden;
    padding: 14px;
}
body.page-columns .excerpt-item.column-page-card:hover {
    transform: translateY(-2px);
}
body.page-columns .excerpt-image.column-page-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border-radius: 14px;
    background: #f3f4f6;
}
body.page-columns .excerpt-image.column-page-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full picture (no crop) */
    background: #f3f4f6;
}
body.page-columns .excerpt-item.column-page-card .excerpt-title {
    margin: 12px 0 0 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    text-align: left;
}
html[dir="rtl"] body.page-columns .excerpt-item.column-page-card .excerpt-title {
    text-align: right;
}

.excerpt-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* RTL fixes (stop "cutting" from right side) */
html[dir="rtl"] .excerpt-item {
    flex-direction: row-reverse;
}
html[dir="rtl"] .excerpt-image {
    margin-right: 0;
    margin-left: 12px;
}
html[dir="rtl"] .excerpt-item:hover {
    transform: translateY(-2px);
}

/* Columns page: avoid hover shift that can "cut" on left */
html[dir="rtl"] body.page-columns .excerpt-item:hover {
    transform: none !important;
}

/* Top line banner styling (aligned with container) */
.top-line-banner {
    background: linear-gradient(135deg, #0d3b3b 0%, #1a4a4a 50%, #0f3535 100%);
    color: #fff;
    padding: 14px 0;
    margin-bottom: 18px;
}
.top-line-banner .container {
    background: transparent !important;
}
.top-line-banner .banner-text {
    font-weight: 900;
    letter-spacing: 0.5px;
    font-size: 22px;
    color: #fff;
    text-align: center;
}

.excerpt-image {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    min-width: 74px;
    max-width: 74px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.excerpt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.excerpt-item:hover .excerpt-image img {
    transform: scale(1.1);
}

.excerpt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    padding-left: 0;
}

.excerpt-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--primary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.excerpt-text {
    font-size: 16px;
    font-weight: 400; /* remove bold from listings (except columns listing page) */
    color: var(--text-color);
    line-height: 1.8;
    flex: 1;
    display: block;
    overflow: visible;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.excerpt-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Social share (article + travelling) */
.social-share {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-share-title {
    font-weight: 800;
    color: var(--text-light);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #0d3b3b; }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0a66c2; }
.share-email { background: #6b7280; }

/* Travelling page */
.travel-gallery,
.travel-posts {
    margin-top: 30px;
}

.travel-slider {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #0d3b3b;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.travel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 800ms ease;
}

.travel-slide.active {
    opacity: 1;
}

.travel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 900ms ease;
}

.travel-slide-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 60px;
}

.travel-slide.active img {
    transform: scale(1.08);
}

.travel-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
    color: #fff;
    font-weight: 700;
}

.travel-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.travel-slider-btn:hover {
    background: rgba(0,0,0,0.65);
}

.travel-slider-btn.prev { left: 12px; }
.travel-slider-btn.next { right: 12px; }

.travel-post-list {
    display: grid;
    gap: 22px;
}

.travel-post {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 16px;
}

.travel-post-media {
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.travel-post-fallback {
    color: #999;
    font-size: 50px;
}

.travel-post-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
}

.travel-post-content {
    color: var(--text-color);
    line-height: 1.9;
}

@media (max-width: 1024px) {
    .travel-post {
        grid-template-columns: 1fr;
    }
    .travel-post-media {
        height: 260px;
    }
}

.sidebar-columns {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 120px;
}

/* Section C heading alignment + multicolor underline */
.sidebar-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    position: relative;
    text-align: left;
}
.sidebar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #0d3b3b 0%, #d4af37 50%, #f4d03f 100%);
    border-radius: 999px;
}
html[dir="rtl"] .sidebar-title {
    text-align: right;
}
html[dir="rtl"] .sidebar-title::after {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, #f4d03f 0%, #d4af37 50%, #0d3b3b 100%);
}

.column-excerpt-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #0d3b3b;
    box-shadow: 0 2px 10px rgba(13, 59, 59, 0.15);
    margin: 0 auto 10px auto;
}

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

.column-excerpt-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    color: var(--primary-color);
    margin: 10px 0 8px 0;
    text-align: right;
}

.column-excerpt-date {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

html[dir="rtl"] .column-excerpt-title {
    text-align: right;
}
html[dir="ltr"] .column-excerpt-title {
    text-align: left;
}

.column-excerpt-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer !important;
    transition: var(--transition);
    text-align: center;
}

.column-excerpt-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.column-excerpt-image-banner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 8px;
    overflow: hidden !important;
    margin-bottom: 0;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block !important;
    position: relative;
    flex-shrink: 0;
}

.column-excerpt-image-banner img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
    margin: 0 auto;
}

/* Homepage: special tiles that preview Latest News page Section C */
.home-sectionc-tile {
    cursor: pointer;
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

/* Home page: C tiles injected into A/B (same look as Latest News section C) */
.home-c-tile {
    border-bottom: none;
    padding: 12px 0;
}
.home-sectionc-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.home-sectionc-tile .column-excerpt-image-banner {
    border-radius: 12px;
}

.columns-banner {
    position: relative;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.columns-banner-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.columns-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.columns-banner-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* ========== CREATIVE FOOTER ========== */
.creative-footer {
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

/* Decorative Elements */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-shape {
    position: absolute;
    border: 2px solid rgba(212, 175, 55, 0.15);
}

.footer-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.footer-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    right: 20%;
    transform: rotate(45deg);
    animation: floatShape 15s ease-in-out infinite reverse;
}

.footer-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Main Footer Area - Compact */
.footer-main {
    background: linear-gradient(135deg, #0d3b3b 0%, #1a4a4a 40%, #0f3535 100%);
    padding: 30px 0 20px;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr 1fr;
    gap: 25px;
    align-items: start;
}

/* Brand Section */
.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0d3b3b;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
}

.footer-logo h2 {
    font-size: 15px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    letter-spacing: 0.3px;
}

.footer-tagline {
    color: #000000;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Footer Social Buttons */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-btn.social-facebook { background: linear-gradient(135deg, #1877f2, #0d5fcc); }
.social-btn.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.social-youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.social-btn.social-x { background: linear-gradient(135deg, #14171a, #000); }
.social-btn.social-tiktok { background: linear-gradient(135deg, #000, #25f4ee, #fe2c55); }
.social-btn.social-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-btn.social-telegram { background: linear-gradient(135deg, #0088cc, #229ED9); }

/* Back to Top Button */
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #d4af37;
    color: #0d3b3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.back-to-top i {
    font-size: 14px;
    animation: bounceUp 2s infinite;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.footer-newsletter h3 {
    color: #000000;
    font-size: 14px;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-newsletter h3 i {
    color: #d4af37;
}

.footer-newsletter > p {
    color: #000000;
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Divider above subscribe button */
.subscribe-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    margin: 5px 0;
}

.newsletter-form .input-wrapper {
    position: relative;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    background: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 6px;
    color: #000000;
    font-size: 12px;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: #666666;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #f4d03f;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #0d3b3b;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.subscribe-btn i {
    transition: transform 0.3s ease;
}

.subscribe-btn:hover i {
    transform: translateX(5px);
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-top: 10px;
}

.privacy-note i {
    color: #25d366;
}

/* Footer Links Sections */
.footer-links h3 {
    display: none;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links ul li {
    margin: 0;
    padding: 0;
    line-height: 1.15;
}

.footer-links ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0;
    margin: 0;
}

.footer-links ul li a:hover {
    color: #d4af37;
}

/* Copyright Bar */
.footer-copyright {
    background: linear-gradient(90deg, #d4af37, #c9a227);
    padding: 4px 0;
}

.footer-copyright .container {
    background: transparent !important;
}

.copyright-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright-content p {
    margin: 0;
    color: #0d3b3b;
    font-size: 11px;
    font-weight: 600;
}

.copyright-content .separator {
    margin: 0 8px;
    opacity: 0.5;
}


/* RTL Support for Footer */
[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .subscribe-btn:hover i {
    transform: translateX(-5px);
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .back-to-top {
        margin: 0 auto;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links ul li a {
        justify-content: center;
    }
    
    .footer-links ul li a:hover {
        transform: none;
    }
    
    .footer-logo h2 {
        font-size: 18px;
    }
    
    .footer-shape-1,
    .footer-shape-2 {
        display: none;
    }
}

/* Simple pagination */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.0);
}

.pagination a {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination a:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.pagination .active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* Two-column pages (no sidebar) */
.three-column-layout.no-sidebar {
    grid-template-columns: 1fr 1fr !important;
}
.three-column-layout.no-sidebar .column-right {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .three-column-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Override any page-specific 3-col rules on mobile/tablet */
    body:not(.page-columns) .three-column-layout,
    body.page-columns .three-column-layout,
    html[dir="rtl"] body:not(.page-columns) .three-column-layout,
    html[dir="rtl"] body.page-columns .three-column-layout {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "right"
            "left"
            "center" !important;
    }

    /* Sidebar should not be sticky on small screens */
    .sidebar-columns {
        position: static !important;
        top: auto !important;
    }

    footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Better mobile layout - prevent scattered view */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    main {
        padding: 20px 0 !important;
    }
    
    /* Navigation with logo on mobile */
    .nav-wrapper {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .nav-logo {
        order: 1 !important;
    }
    
    .nav-logo img {
        width: 50px;
        height: 50px;
    }
    
    html[dir="rtl"] .nav-wrapper {
        flex-direction: column !important;
    }
    
    html[dir="rtl"] .nav-logo,
    html[dir="ltr"] .nav-logo {
        order: 1 !important;
    }
    
    html[dir="rtl"] .nav-menu,
    html[dir="ltr"] .nav-menu {
        order: 2 !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 12px 20px !important;
        text-align: center;
        border-radius: 8px;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-bottom: 5px;
    }
    
    .nav-menu li a:hover {
        background: var(--secondary-color);
        color: white;
        transform: none;
    }
    
    .main-navigation .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .top-bar-left {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-left: auto !important;
    }
    
    .top-bar-left .date-display {
        display: none !important;
    }

    .social-icons-top {
        flex-shrink: 0;
    }
    
    .social-icons-top .social-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    .top-lang-switcher {
        flex-shrink: 0;
    }
    
    .top-lang-switcher a {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }
    
    /* Fix scattered excerpt items on mobile */
    .excerpt-list {
        gap: 15px !important;
    }
    
    .excerpt-item {
        flex-direction: column;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
    }

    /* RTL: ensure mobile stacks (override row-reverse) */
    html[dir="rtl"] .excerpt-item {
        flex-direction: column !important;
        text-align: right !important;
    }
    
    html[dir="rtl"] .excerpt-image {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    html[dir="rtl"] .excerpt-content {
        text-align: right !important;
    }
    
    .excerpt-item:hover,
    html[dir="rtl"] .excerpt-item:hover {
        transform: none !important;
    }
    
    .excerpt-image {
        width: 100% !important;
        height: 180px !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
    }
    
    .excerpt-content {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .excerpt-title {
        font-size: 16px !important;
    }
    
    .excerpt-text {
        font-size: 14px !important;
    }
    
    /* Column section titles on mobile */
    .column-section-title {
        font-size: 20px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    html[dir="rtl"] .column-section-title {
        text-align: center !important;
    }
    
    .column-section-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80% !important;
    }
    
    html[dir="rtl"] .column-section-title::after {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .news-ticker-label {
        padding: 8px 15px;
        font-size: 12px;
        min-width: 120px;
    }
    
    .news-ticker-wrapper {
        margin-left: 120px;
    }
    
    html[dir="rtl"] .news-ticker-wrapper {
        margin-right: 120px;
        margin-left: 10px;
    }

    footer .container {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar on mobile */
    .sidebar-columns {
        margin-top: 20px;
    }
    
    /* Fix C-tiles on mobile */
    .column-excerpt-item,
    .home-c-tile {
        width: 100% !important;
    }
    
    .column-excerpt-image-banner {
        width: 100% !important;
    }
}

.text-center {
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

/* Article page specific styling */
.article-main {
    flex: 1;
    min-width: 0;
}

.article-featured-image-large {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-featured-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.article-featured-image-large.column-image img {
    max-width: 100%;
    height: auto;
}

.article-content-wrapper {
    padding: 0;
}

.article-header {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.5;
    margin: 0;
}

html[dir="rtl"] .article-header h1 {
    text-align: right;
    line-height: 1.8;
}

.article-excerpt {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

html[dir="rtl"] .article-excerpt {
    border-left: none;
    border-right: 4px solid var(--secondary-color);
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
}

html[dir="rtl"] .article-content {
    font-size: 18px;
    line-height: 2.2;
    text-align: right;
}

/* Mobile article page fixes */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-excerpt {
        font-size: 16px;
        padding: 12px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    html[dir="rtl"] .article-content {
        font-size: 16px;
    }
}
