/*
Theme Name: Tetouan 44
Description: Custom news theme for Tetouan 44
Author: Antigravity
Version: 1.0.0
Text Domain: tetouan44
*/

:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --ink: #111827;
  --accent: #1A56DB;
  --muted: #6B7280;
  --font-display: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    direction: rtl;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background-color: var(--surface);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-md);
}

.main-navigation a {
    color: var(--ink);
    font-weight: 700;
}

.site-main {
    max-width: 1200px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}
/* Typography & Layout additions */
body {
    font-size: 16px;
    line-height: 1.7;
}

h1, .entry-title {
    font-size: clamp(22px, 4vw, 26px);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h2 { font-size: clamp(20px, 3.5vw, 24px); line-height: 1.3; }
h3 { font-size: 1.2rem; }

.post-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.post-content {
    font-size: 16px;
}

/* Ad slots */
.ad-slot {
    background-color: var(--bg);
    border: 1px dashed var(--muted);
    text-align: center;
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    font-size: 12px;
    color: var(--muted);
}

.site-layout {
    display: flex;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .site-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}
/* --- Mega Menu Header Styles --- */
.site-header { display: none; } /* Hide old header if it conflicts */
.site-header-mega {
    background-color: #111827;
    color: #ffffff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
    position: relative; /* Fixed anchor for dropdowns */
}
.logo-area {
    background-color: var(--accent);
    display: flex;
    align-items: center;
    padding: 0 24px;
}
.brand-logo {
    color: #fff !important;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: center;
}
.brand-logo .logo-num { font-size: 28px; font-weight: 900; }
.brand-logo .logo-text { font-size: 14px; }

.main-navigation-mega {
    flex: 1;
    display: flex;
    align-items: stretch;
}
ul.mega-menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
}
.mega-menu-item {
    /* Removed position: relative so dropdown aligns to header-container */
    display: flex;
    align-items: stretch;
}
.mega-menu-link {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.3s;
}
.mega-menu-item:hover > .mega-menu-link,
.mega-menu-link:hover {
    background-color: var(--accent);
}

/* Dropdown Container */
.mega-menu-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    width: 100%;
    background-color: #1f2937;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    border-top: 3px solid var(--accent);
    padding: 30px;
}
.mega-menu-item.has-mega:hover .mega-menu-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Mega Menu Thumbnails */
.mega-thumb {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
}
.mega-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mega-thumb:hover img {
    transform: scale(1.08);
}
.mega-thumb.placeholder {
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
}
.mega-title a {
    color: #f3f4f6 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}
.mega-title a:hover {
    color: var(--accent) !important;
}

/* Layout 0: Horizontal Grid */
.mega-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

/* Layout 1: Grid + Sidebar */
.mega-grid-sidebar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}
.mega-main-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mega-sidebar {
    border-right: 1px solid #4b5563;
    padding-right: 20px;
}
.mega-subcats {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-subcats li {
    margin-bottom: 15px;
}
.mega-subcats a {
    color: #d1d5db !important;
    font-size: 15px;
    font-weight: 700;
}
.mega-subcats a:hover {
    color: var(--accent) !important;
}

/* Layout 2: List + Featured */
.mega-list-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mega-title-large a {
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}
.mega-list-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mega-list-item {
    display: flex;
    gap: 16px;
    align-items: center;
}
.mega-list-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}
.mega-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.action-btn {
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    margin-right: 8px;
    transition: color 0.3s;
}
.action-btn:hover {
    color: #fff;
}
/* =========================================
   MAGAZINE HOME GRID (front-page.php)
   ========================================= */
.home-magazine {
    padding: var(--space-xl) 0;
}
.home-magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 30px;
    align-items: start;
}
.col-left, .col-center, .col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
/* Section Heading */
.section-heading {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
    position: relative;
}
.section-heading h3 {
    display: inline-block;
    background: #fff;
    padding-right: 15px; /* RTL */
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    top: 1px;
}
.section-heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    z-index: -1;
}

/* Post Thumbnails General */
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease;
}
.post-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
article:hover .post-thumb img {
    transform: scale(1.05);
}

/* Post Meta (Cat & Date) */
.meta {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.post-cat {
    font-weight: 700;
    color: var(--accent);
}
.post-date {
    color: #6b7280;
}

/* 1. Left Column: Stacked */
.post-stacked .post-thumb {
    height: 180px;
    margin-bottom: 12px;
}
.post-stacked .post-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

/* 2. Center Column: Featured */
.post-featured-center .post-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
}
.post-featured-center .meta-top {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.post-featured-center .post-excerpt {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
}
.post-featured-center .post-thumb {
    height: 450px;
}

/* 3. Right Column: Overlay + List */
.post-overlay {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 200px;
}
.post-overlay .post-thumb {
    height: 100%;
    border-radius: 0;
}
.post-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}
.post-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    color: #fff;
}
.post-overlay .post-cat, .post-overlay .post-date {
    color: #e5e7eb;
}
.post-overlay .post-cat {
    color: #fff;
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.post-overlay .post-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.post-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.post-list-small {
    display: flex;
    gap: 12px;
    align-items: center;
}
.post-list-small .post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.post-list-small .post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Latest News List */
.latest-news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.latest-news-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.latest-news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.latest-news-list .post-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
    display: inline-block;
}
.latest-news-list .post-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}

.see-all-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.see-all-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* 4. Bottom Span */
.col-bottom-span {
    grid-column: 1 / span 2;
    margin-top: 20px;
}
.post-horizontal-large {
    display: flex;
    gap: 30px;
    align-items: center;
}
.post-horizontal-large .post-thumb {
    width: 50%;
    height: 300px;
    flex-shrink: 0;
}
.post-horizontal-large .post-details {
    width: 50%;
}
.post-horizontal-large .post-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}
.post-horizontal-large .post-excerpt {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-magazine-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-right {
        grid-column: 1 / span 2;
        margin-top: 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .home-magazine-grid {
        grid-template-columns: 1fr;
    }
    .col-bottom-span, .col-right {
        grid-column: 1;
    }
    .col-right {
        display: flex;
    }
    .post-horizontal-large {
        flex-direction: column;
    }
    .post-horizontal-large .post-thumb, .post-horizontal-large .post-details {
        width: 100%;
    }
}
/* Grid Row Fix */
.col-right {
    grid-column: 3;
    grid-row: 1 / span 2;
}
.col-bottom-span {
    grid-column: 1 / span 2;
    grid-row: 2;
}
/* Title Color Fix */
.home-magazine-grid .post-title a {
    color: #000 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.home-magazine-grid .post-title a:hover {
    color: var(--accent) !important;
}
/* =========================================
   RECOMMENDED FOR YOU SECTION
   ========================================= */
.recommended-section {
    margin-bottom: 60px;
}
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.post-recommended {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative; /* Required for the border pseudo-element */
}
/* Creating perfect borders in the exact middle of the gap */
.post-recommended:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -15px; /* Half of the 30px gap */
    width: 1px;
    height: 100%;
    background-color: #e5e7eb;
}
.post-recommended .post-thumb {
    height: 220px;
}
.post-recommended .post-title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
}
.post-recommended .meta {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .post-recommended::after {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    .post-recommended {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 20px;
    }
    .post-recommended:last-child {
        border-bottom: none;
    }
    .post-recommended::after {
        display: none !important;
    }
}
/* =========================================
   CATEGORY TABS SECTION
   ========================================= */
.tabs-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.tabs-line {
    flex-grow: 1;
    height: 1px;
    background-color: #e5e7eb;
    margin: 0 20px;
}
.tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}
.tabs-nav li {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}
.tabs-nav li:hover {
    color: var(--accent);
}
.tabs-nav li.active {
    background-color: var(--accent);
    color: #fff;
}
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.tab-overlays, .tab-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.large-overlay {
    height: 380px;
    position: relative;
}
.large-overlay .post-thumb {
    height: 100%;
}
.large-overlay .post-overlay-content {
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.large-overlay .post-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}
.large-overlay .post-excerpt {
    font-size: 14px;
    color: #d1d5db;
    margin: 0;
    line-height: 1.5;
}
.post-list-horizontal {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}
.post-list-horizontal .post-thumb {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
}
.post-list-horizontal .post-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}
.post-list-horizontal .post-excerpt {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

@media (max-width: 1024px) {
    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .tabs-line {
        display: none;
    }
    .tabs-nav {
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {
    .tab-overlays, .tab-lists {
        grid-template-columns: 1fr;
    }
    .post-list-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-list-horizontal .post-thumb {
        width: 100%;
        height: 200px;
    }
}
/* Tabs Section Title Colors */
.large-overlay .post-title a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.large-overlay .post-title a:hover {
    color: #e5e7eb !important;
}

.post-list-horizontal .post-title a {
    color: #000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-list-horizontal .post-title a:hover {
    color: var(--accent) !important;
}
/* Fix Overlay Padding Overflow */
.post-overlay-content {
    box-sizing: border-box !important;
}
/* Recommended Section Title Colors */
.post-recommended .post-title a {
    color: #000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-recommended .post-title a:hover {
    color: var(--accent) !important;
}
/* =========================================
   OPINION WRITERS SECTION
   ========================================= */
.opinion-writers-section {
    border-top: 2px solid var(--accent);
    position: relative;
    text-align: center;
    padding-top: 50px;
}
.opinion-heading {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 30px;
}
.opinion-heading h3 {
    margin: 0;
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
}
.writers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.writer-card {
    text-align: center;
    position: relative;
    padding: 0 15px;
}
.writer-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -15px; /* RTL trick for left border */
    width: 1px;
    height: 100%;
    background-color: #e5e7eb;
}
.writer-avatar-wrapper {
    display: inline-block;
    padding: 5px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    margin-bottom: 20px;
    /* Adding the outer white border trick */
    box-shadow: 0 0 0 4px #fff inset;
}
.writer-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    /* Adding inner border trick */
    border: 3px solid #fff;
}
.writer-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}
.writer-separator {
    width: 30px;
    margin: 0 auto 20px;
    border: none;
    border-top: 2px solid #e5e7eb;
}
.writer-name {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 5px 0;
}
.writer-name a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.writer-name a:hover {
    color: var(--accent);
}
.writer-title {
    display: block;
    font-size: 14px;
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .writers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 50px;
    }
    .writer-card::after {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .writers-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   LOCAL NEWS MONTH SECTION
   ========================================= */
.local-news-grid {
    display: grid;
    grid-template-columns: 1fr 2.3fr;
    gap: 30px;
}

/* Narrow Column (Left) */
.local-narrow-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.small-overlay {
    height: 250px;
    position: relative;
}
.small-overlay .post-thumb {
    height: 100%;
}
.small-overlay .post-overlay-content {
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box !important;
}
.small-overlay .post-title {
    font-size: 18px;
    font-weight: 800;
    margin: 5px 0 0;
}
.small-overlay .post-title a {
    color: #fff;
    text-decoration: none;
}
.small-overlay .post-title a:hover {
    color: #e5e7eb;
}
.small-overlay .post-cat {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.local-list-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.post-list-tiny {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}
.post-list-tiny:last-child {
    border-bottom: none;
}
.post-list-tiny .post-thumb {
    width: 90px;
    height: 70px;
    flex-shrink: 0;
}
.post-list-tiny .post-cat {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.post-list-tiny .post-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}
.post-list-tiny .post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.post-list-tiny .post-title a:hover {
    color: var(--accent);
}

/* Wide Column (Right) */
.local-wide-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.post-horizontal-large {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Make items stretch to same height */
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 30px;
}
.post-horizontal-large .post-thumb {
    width: 65%;
    flex-shrink: 0;
}
.post-horizontal-large .post-thumb img {
    height: 100%;
    object-fit: cover;
}
.post-horizontal-large .post-details {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}
.post-horizontal-large .meta {
    margin-bottom: 10px;
}
.post-horizontal-large .post-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
}
.post-horizontal-large .post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.post-horizontal-large .post-title a:hover {
    color: var(--accent);
}
.post-horizontal-large .post-excerpt {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.local-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
.post-grid-item {
    display: flex;
    flex-direction: column;
    position: relative;
}
/* Vertical separators */
.post-grid-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 1px;
    height: 100%;
    background-color: #e5e7eb;
}
[dir="rtl"] .post-grid-item:not(:last-child)::after {
    left: -15px; /* wait, in RTL, the next element is on the left, so border should be on the left */
}
.post-grid-item .post-thumb {
    height: 180px;
    margin-bottom: 15px;
}
.post-grid-item .post-cat {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}
.post-grid-item .post-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}
.post-grid-item .post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.post-grid-item .post-title a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .local-news-grid {
        grid-template-columns: 1fr;
    }
    .post-horizontal-large {
        flex-direction: column;
    }
    .post-horizontal-large .post-thumb,
    .post-horizontal-large .post-details {
        width: 100%;
    }
    .post-grid-item::after {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .local-bottom-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   NATIONAL NEWS MONTH SECTION
   ========================================= */
.national-news-grid {
    display: grid;
    grid-template-columns: 1fr 2.3fr;
    gap: 30px;
}

/* Narrow Column (Left) */
.national-narrow-col {
    display: flex;
    flex-direction: column;
}
.national-narrow-col .local-list-posts {
    height: 100%;
}
.national-narrow-col .post-list-tiny {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Wide Column (Right) */
.national-wide-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Large Featured Post */
.national-featured-post {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 30px;
}
.national-featured-post .post-details {
    width: 40%;
    padding-right: 30px; /* RTL trick, in LTR this should be padding-right anyway if text is first, wait. Since text is first, padding-right separates text from image. In RTL it should be padding-left. Let's just use margin or gap. */
    padding-right: 0;
}
[dir="rtl"] .national-featured-post .post-details {
    padding-left: 30px;
}
.national-featured-post .post-thumb {
    width: 60%;
}
.national-featured-post .post-title {
    font-size: 32px;
}

/* Wide Bottom */
.national-wide-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.national-bullets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}
/* Border between the two bottom columns */
.national-bullets-list::before {
    content: '';
    position: absolute;
    top: 0;
    right: -15px; /* RTL trick */
    width: 1px;
    height: 100%;
    background-color: #e5e7eb;
}

.post-list-bullet {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}
.post-list-bullet:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.post-list-bullet .post-date {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}
.post-list-bullet .post-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}
.post-list-bullet .post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.post-list-bullet .post-title a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .national-news-grid {
        grid-template-columns: 1fr;
    }
    .national-wide-bottom {
        grid-template-columns: 1fr;
    }
    .national-bullets-list::before {
        display: none;
    }
    .national-featured-post .post-details {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* =========================================
   BOTTOM NEWS SECTION
   ========================================= */
.bottom-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Wide Column */
.bottom-wide-col {
    display: flex;
    flex-direction: column;
}
.post-huge-vertical {
    margin-bottom: 30px;
}
.post-huge-vertical .post-thumb {
    height: 450px;
    margin-bottom: 20px;
}
.post-huge-vertical .post-thumb img {
    height: 100%;
    object-fit: cover;
}
.post-huge-vertical .meta {
    margin-bottom: 10px;
}
.post-huge-vertical .post-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}
.post-huge-vertical .post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.post-huge-vertical .post-title a:hover {
    color: var(--accent);
}
.post-huge-vertical .post-excerpt {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.bottom-horizontal-list {
    display: flex;
    flex-direction: column;
}
.post-horizontal-medium {
    display: flex;
    gap: 20px;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
}
.post-horizontal-medium .post-thumb {
    width: 250px;
    height: 150px;
    flex-shrink: 0;
}
.post-horizontal-medium .post-thumb img {
    height: 100%;
    object-fit: cover;
}
.post-horizontal-medium .post-details {
    flex: 1;
}
.post-horizontal-medium .post-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 5px 0 0;
}
.post-horizontal-medium .post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}
.post-horizontal-medium .post-title a:hover {
    color: var(--accent);
}
.post-horizontal-medium .post-cat {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

/* Narrow Column */
.bottom-narrow-col {
    display: flex;
    flex-direction: column;
}
.bottom-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.bottom-regional-item::after {
    display: none !important; /* Remove vertical separator from post-grid-item */
}
.bottom-regional-item .post-thumb {
    height: 200px;
}

@media (max-width: 1024px) {
    .bottom-news-grid {
        grid-template-columns: 1fr;
    }
    .post-horizontal-medium {
        flex-direction: column;
    }
    .post-horizontal-medium .post-thumb {
        width: 100%;
        height: auto;
    }
}
/* =========================================
   CUSTOM FOOTER
   ========================================= */
.custom-footer {
    background-color: #3325b0;
    color: #fff;
    padding: 80px 0 0 0;
    margin-top: 60px;
    font-family: 'Tajawal', sans-serif;
}
.footer-grid {
    display: flex;
    justify-content: center; /* Center everything in the container */
    gap: 120px; /* Big gap between the columns */
    padding-bottom: 80px;
}
.footer-col {
    display: flex;
    flex-direction: column;
}
.footer-cats {
    text-align: right;
}
.footer-pages {
    text-align: right;
}
.footer-brand {
    text-align: center;
    align-items: center;
    justify-content: center; /* Vertically center content */
    position: relative;
}
/* Vertical line separator is now on the LEFT of the logo column */
.footer-brand::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -60px; /* Halfway between logo and pages */
    width: 1px;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.4);
}

.footer-col h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s, opacity 0.3s;
}
.footer-col ul li a:hover {
    opacity: 0.8;
}

.footer-logo {
    margin-bottom: 30px;
}
.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    transition: transform 0.3s;
}
.footer-social a:hover {
    transform: translateY(-3px);
}
.footer-social svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.footer-bottom {
    background-color: #f3f4f6;
    color: #6b7280;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    font-weight: 600;
}
.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 60px;
    }
    .footer-cats, .footer-pages, .footer-brand {
        text-align: center;
        align-items: center;
    }
    .footer-brand::after {
        display: none;
    }
    .footer-bottom {
        text-align: center;
    }
}
/* Fix post overlay title color and size */
.post-overlay .post-title,
.post-overlay .post-title a {
    color: #ffffff !important;
    font-size: 14px !important;
}
/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
    padding: 60px 0 0 0;
    background-color: #f9fafb;
}
.newsletter-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}
.newsletter-content {
    margin-bottom: 30px;
}
.newsletter-icon {
    color: var(--accent);
    margin-bottom: 20px;
}
.newsletter-icon svg {
    width: 48px;
    height: 48px;
}
.newsletter-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 15px 0;
}
.newsletter-content p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
}
.newsletter-form-wrapper {
    width: 100%;
    max-width: 550px;
}
.newsletter-form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}
.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 25px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    color: #333;
    outline: none;
}
.newsletter-form button {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}
.newsletter-form button:hover {
    background-color: #241a85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 37, 176, 0.3);
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
        border-radius: 12px;
        padding: 10px;
        background: transparent;
        box-shadow: none;
        gap: 15px;
        border: none;
    }
    .newsletter-form input {
        background: #fff;
        border-radius: 50px;
        padding: 15px 25px;
        width: 100%;
        border: 1px solid #e5e7eb;
    }
    .newsletter-form button {
        width: 100%;
        padding: 15px;
    }
}
/* =========================================
   NEWS TICKER
   ========================================= */
.news-ticker {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 45px;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.ticker-label {
    background: var(--accent);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    z-index: 2;
    position: relative;
    white-space: nowrap;
}
.ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -15px; /* RTL left */
    width: 0;
    height: 0;
    border-top: 22.5px solid transparent;
    border-bottom: 22.5px solid transparent;
    border-right: 15px solid var(--accent);
}
.ticker-label svg {
    width: 18px;
    height: 18px;
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 280s linear infinite; width: max-content;
}
.ticker-track:hover {
    animation-play-state: paused;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    position: relative;
}
.ticker-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #ff3366; /* Red dot separator */
    border-radius: 50%;
}
.ticker-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}
.ticker-item a:hover {
    color: var(--accent);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); } 
    100% { transform: translateX(50%); }
}

@media (max-width: 768px) {
    .ticker-label span { display: none; }
    .ticker-label { padding: 0 15px; }
}
/* =========================================
   SINGLE POST STYLES
   ========================================= */

/* Author Meta */
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: var(--space-lg);
    padding: 15px;
    background: #f9fafb;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    display: inline-flex;
}
.author-avatar img {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.meta-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
}
.meta-details .author {
    color: var(--muted);
}
.meta-details .posted-on {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

/* Post Share Section */
.post-share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}
.share-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: #fff;
}
.share-btn i {
    font-size: 16px;
}
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #000000; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.telegram { background-color: #0088cc; }
.share-btn.copy-link { 
    background-color: #f1f5f9; 
    color: var(--text);
    border: 1px solid #e2e8f0;
}
.share-btn.copy-link:hover {
    background-color: #e2e8f0;
    color: var(--text);
}

@media (max-width: 576px) {
    .share-buttons {
        flex-direction: column;
    }
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    .single-post-meta {
        width: 100%;
        box-sizing: border-box;
    }
}
/* Avatar */
img.author-img-circle {
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    object-fit: cover !important;
    margin: 0 !important;
}
/* Circular Share Buttons Override */
.share-btn {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
}
.share-btn i {
    font-size: 18px !important;
    margin: 0 !important;
}
/* =========================================
   AUTHOR BIO BOX
   ========================================= */
.author-bio-box {
    display: flex;
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid #e5e7eb;
    gap: 25px;
    align-items: center;
}
.author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.author-bio-content {
    flex: 1;
}
.author-bio-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 800;
}
.author-bio-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}
.author-bio-name a:hover {
    color: var(--accent);
}
.author-bio-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}
.author-bio-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.author-bio-link:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .author-bio-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}
/* Post Content Font Size */
.post-content p, .post-content li, .post-content {
    font-size: 18px !important;
    line-height: 1.8;
}
/* =========================================
   RELATED POSTS
   ========================================= */
.related-posts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}
.related-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text);
    position: relative;
    display: inline-block;
}
.related-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50%;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s, box-shadow 0.3s;
}
.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.related-thumb-link img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.related-post-card:hover .related-thumb-link img {
    transform: scale(1.05);
}
.related-post-title {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}
.related-post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}
.related-post-title a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   COMMENTS SECTION
   ========================================= */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}
.comments-title, .comment-reply-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text);
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.comment-list li.comment {
    margin-bottom: 25px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.comment-body {
    display: flex;
    gap: 15px;
}
.comment-author .avatar {
    border-radius: 50%;
}
.comment-meta {
    margin-bottom: 10px;
}
.comment-meta a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}
.comment-meta b.fn {
    font-size: 16px;
    color: var(--text);
    display: block;
}
.comment-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

/* Form Styles */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* Reorder visually */
.comment-form-comment { order: 1; }
.comment-form-author { order: 2; }
.comment-form-email { order: 3; }
.form-submit { order: 4; margin: 0; }
.logged-in-as { order: 0; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.logged-in-as a { color: var(--accent); }

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--accent);
}
.comment-form textarea {
    resize: vertical;
}
.submit-comment-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}
.submit-comment-btn:hover {
    background-color: #241a85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 37, 176, 0.3);
}

@media (max-width: 576px) {
    .submit-comment-btn {
        width: 100%;
    }
}
/* =========================================
   SIDEBAR WIDGETS
   ========================================= */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.sidebar-widget .widget-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    color: var(--text);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}
.sidebar-widget .widget-title span {
    position: relative;
}
.sidebar-widget .widget-title span::after {
    content: '';
    position: absolute;
    bottom: -17px;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Follow Us Grid */
.social-follow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.social-follow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.social-follow-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    color: #fff;
}
.social-follow-item i, .social-follow-item svg {
    font-size: 24px;
    margin-bottom: 8px;
}
.social-name {
    font-size: 13px;
    font-weight: 700;
}
.social-follow-item.facebook { background-color: #1877F2; }
.social-follow-item.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-follow-item.youtube { background-color: #FF0000; }
.social-follow-item.twitter { background-color: #000000; }

/* Latest Posts Widget */
.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.latest-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.latest-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.latest-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.latest-post-item:hover .latest-post-thumb img {
    transform: scale(1.1);
}
.latest-post-info h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}
.latest-post-info h4 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}
.latest-post-info h4 a:hover {
    color: var(--accent);
}
.latest-post-date {
    font-size: 12px;
    color: var(--muted);
}
/* Hide cookies consent checkbox in comments */
.comment-form-cookies-consent {
    display: none !important;
}
/* =========================================
   MODERN SIDEBAR SOCIAL BUTTONS
   ========================================= */
.social-follow-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-btn-modern {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.social-btn-modern:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.social-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-left: 15px; /* RTL margin */
    transition: transform 0.3s ease;
}
.social-btn-modern:hover .social-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}
.social-btn-modern .social-name {
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}
.social-btn-modern .arrow-icon {
    font-size: 12px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}
.social-btn-modern:hover .arrow-icon {
    color: var(--accent);
    transform: translateX(-4px);
}

/* Brand Colors */
.social-btn-modern.facebook .social-icon-wrapper { background: #1877F2; }
.social-btn-modern.facebook:hover { border-color: #1877F2; }

.social-btn-modern.instagram .social-icon-wrapper { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn-modern.instagram:hover { border-color: #dc2743; }

.social-btn-modern.youtube .social-icon-wrapper { background: #FF0000; }
.social-btn-modern.youtube:hover { border-color: #FF0000; }

.social-btn-modern.twitter .social-icon-wrapper { background: #000000; }
.social-btn-modern.twitter:hover { border-color: #000000; }
/* Author Page Avatar */
img.author-page-avatar-img {
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border: 4px solid #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    margin: 0 auto !important;
    display: block !important;
}
/* =========================================
   TOP HEADER
   ========================================= */
.top-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}
.top-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}
.top-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--text);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.top-social-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Adjust Main Navigation since Logo is gone */


@media (max-width: 768px) {
    .top-header-inner {
        flex-direction: column;
        gap: 15px;
    }
}