/*
Theme Name: Avocato Pro
Theme URI: http://localhost/
Description: A premium, highly optimized custom WordPress theme for Avocato News based on the provided design screenshot.
Version: 1.0.0
Author: Deepmind Antigravity
Author URI: https://deepmind.google/
Text Domain: avocato-pro
Domain Path: /languages
*/

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

/* --- Custom Fonts --- */
@font-face {
    font-family: 'Hanimation Arabic';
    src: url('fonts/ArbFONTS-Hanimation_Arabic_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hanimation Arabic';
    src: url('fonts/ArbFONTS-Hanimation_Arabic_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hanimation Arabic';
    src: url('fonts/ArbFONTS-Hanimation_Arabic_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hanimation Arabic';
    src: url('fonts/ArbFONTS-Hanimation_Arabic_SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hanimation Arabic';
    src: url('fonts/ArbFONTS-Hanimation_Arabic_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-dark: #072a40;
    --navy-solid: #072a40;
    --navy-medium: #114466;
    --navy-light: #1a5c8a;
    --gold-primary: #b88e2c;
    --gold-light: #dac0a3;
    --gold-hover: #9c7620;
    --red-logo: #cc1e23;
    --green-ticker: #28a745;
    --pure-white: #ffffff;
    --off-white: #f5f7fa;
    --gray-text: #667085;
    --text-dark: #1d2939;
    --border-color: #eaecf0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
}

/* Global Reset & Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hanimation Arabic', 'Tajawal', sans-serif;
    background-color: var(--pure-white);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Hanimation Arabic', 'Tajawal', sans-serif;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.3;
}

/* Form controls inherit the theme font (browsers default to system font) */
input, button, select, textarea {
    font-family: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Hanimation Arabic', 'Tajawal', sans-serif;
}

.btn-navy {
    background-color: var(--navy-solid);
    color: var(--pure-white);
}

.btn-navy:hover {
    background-color: var(--navy-solid);
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--pure-white);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
}

/* Header Re-design */
.main-header {
    background-color: var(--pure-white);
    padding: 15px 0 0 0;
    position: relative;
}

.header-blue-shape {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48%; /* Adjust to cover the left side */
    background-color: var(--navy-solid);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 1;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 15px;
}

.logo-text h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--red-logo);
    text-shadow: 2px 2px 0px var(--navy-dark), -1px -1px 0px var(--pure-white);
    letter-spacing: -1px;
    margin-bottom: -5px;
    font-family: 'Hanimation Arabic', sans-serif;
}

.logo-text span {
    font-size: 13px;
    color: var(--pure-white);
    background-color: var(--text-dark);
    padding: 2px 10px;
    font-weight: bold;
}

.header-search-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 45%;
}

.header-search-form {
    display: flex;
    background-color: var(--pure-white);
}

.header-search-form input {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 0;
    outline: none;
    font-family: 'Hanimation Arabic', sans-serif;
    color: var(--navy-dark);
}

.header-search-form button {
    background-color: var(--navy-solid);
    color: var(--pure-white);
    border: none;
    padding: 8px 20px;
    font-family: 'Hanimation Arabic', sans-serif;
    font-weight: bold;
    cursor: pointer;
}

/* Navigation Menu */
.main-nav {
    background-color: var(--navy-solid);
    color: var(--pure-white);
    position: relative;
}

.main-nav .container {
    background-color: var(--navy-solid);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 2% 100%);
}

.nav-menu ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-menu ul li {
    flex-grow: 1;
    text-align: center;
}

.nav-menu ul li a {
    font-size: 15px;
    font-weight: 700;
    color: var(--pure-white);
    padding: 12px 10px;
    display: block;
    border-left: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.nav-menu ul li:first-child a {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-menu ul li a:hover {
    background-color: var(--navy-solid);
}

/* News Ticker Bar */
.single-tts-row { margin-top: 12px; }

.tts-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--green-ticker);
    color: var(--pure-white);
    border: none;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.tts-listen-btn:hover { background-color: #1f9e58; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 160, 90, 0.3); }

.tts-listen-btn:disabled { opacity: 0.75; cursor: wait; }

.tts-listen-btn svg { width: 15px; height: 15px; }

.tts-listen-btn svg[data-lucide="loader-circle"] { animation: tts-spin 1s linear infinite; }

@keyframes tts-spin { to { transform: rotate(360deg); } }

.news-ticker-bar {
    background-color: var(--off-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 14px;
}

.ticker-label {
    background-color: var(--green-ticker);
    color: var(--pure-white);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Hanimation Arabic', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-sep {
    display: inline-block;
    margin: 0 14px;
    vertical-align: middle;
}

.ticker-sep img {
    height: 26px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.ticker-text {
    display: inline-block;
    padding-right: 100%;
    animation: ticker-animation 40s linear infinite;
}

.ticker-text a {
    color: var(--text-dark);
    margin-left: 40px;
    font-weight: 600;
}

.ticker-text span.urgent {
    color: var(--green-ticker);
    font-weight: bold;
    margin-left: 5px;
}

@keyframes ticker-animation {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Ad Banner Area */
.ad-banner-area {
    padding: 20px 0;
    text-align: center;
}

.ad-placeholder {
    background-color: var(--navy-solid);
    color: var(--pure-white);
    display: inline-block;
    padding: 10px 100px;
    font-weight: bold;
    font-size: 18px;
    border: 1px solid var(--border-color);
}

/* Hero Grid Layout (Re-design) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background-color: var(--pure-white);
    margin-bottom: 40px;
}

.hero-main-post {
    position: relative;
    background-color: var(--pure-white);
    display: flex;
    flex-direction: column;
}

.hero-main-image {
    position: relative;
    flex-grow: 1;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    max-height: 400px;
}

.hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 15px 20px;
    color: var(--pure-white);
}

.hero-main-overlay h2 {
    color: var(--pure-white);
    font-size: 28px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.hero-main-white-box {
    background-color: var(--pure-white);
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-top: none;
    text-align: right;
}

.hero-main-white-box h3 {
    font-size: 16px;
    color: var(--navy-dark);
    margin-bottom: 5px;
}

.hero-main-white-box .hero-meta {
    color: var(--gray-text);
    font-size: 11px;
    font-weight: 300;
}

/* Right Grid 2x2 */
.hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
}

.hero-sub-post {
    position: relative;
    background-color: var(--pure-white);
    display: flex;
    flex-direction: column;
}

.hero-sub-image {
    position: relative;
    height: 200px;
}

.hero-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-sub-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    padding: 30px 15px 10px 15px;
    color: var(--pure-white);
}

.hero-sub-overlay h3 {
    color: var(--pure-white);
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.hero-sub-white-box {
    background-color: var(--pure-white);
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.hero-sub-white-box h4 {
    font-size: 14px;
    color: var(--navy-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.hero-sub-white-box .hero-meta {
    color: var(--gray-text);
    font-size: 11px;
    font-weight: 300;
}

/* Floating Sidebar */
.floating-social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    background-color: var(--navy-solid);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.floating-social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--pure-white);
    font-size: 18px;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.floating-social-sidebar a:hover {
    background-color: var(--navy-solid);
}

.floating-social-sidebar .social-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 15px 0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--pure-white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.floating-social-sidebar .sidebar-link {
    border-bottom: none;
}
.floating-social-sidebar .sidebar-link:hover {
    opacity: 0.8;
}
.floating-social-sidebar .whatsapp-link {
    background-color: #25d366;
    border-bottom: none;
}
.floating-social-sidebar .whatsapp-link:hover {
    background-color: #1ebe57;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(255,255,255,0.8);
    pointer-events: none;
}

/* Main Body Layout (3 Columns) */
.main-body-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .main-body-layout {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.column-right, .column-left {
    background-color: var(--pure-white);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.column-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Rest of the original CSS... keeping it simple */
.section { padding: 40px 0; }
.section-title {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--navy-dark);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0;
}
.section-title h2 {
    font-size: 16px;
    color: var(--pure-white);
    background-color: var(--navy-solid);
    padding: 8px 25px 8px 45px;
    margin: 0;
    margin-bottom: -2px;
    line-height: 1.2;
    clip-path: polygon(25px 0, 100% 0, 100% 100%, 0 100%);
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}
.section-title h2 i {
    color: var(--gold-light) !important;
}

.news-card { background-color: var(--pure-white); border: 1px solid var(--border-color); overflow: hidden; transition: all 0.3s ease; height: 100%; display: flex; flex-direction: column; border-radius: 10px; position: relative; }
.news-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--gold-primary); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; z-index: 2; }
.news-card:hover::before { transform: scaleX(1); }
.news-card:hover { border-color: var(--navy-light); box-shadow: 0 8px 22px rgba(7,42,64,0.10); transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background-color: var(--navy-solid); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .card-img img { transform: scale(1.05); }
.card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.card-meta { font-size: 11px; color: var(--gray-text); margin-bottom: 8px; display: flex; gap: 12px; }
.card-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--navy-solid); color: var(--pure-white); font-size: 10px; font-weight: 700; padding: 3px 9px; margin-bottom: 8px; }
.card-badge svg { width: 12px; height: 12px; color: var(--gold-light); }
.card-read-more { margin-top: auto; padding-top: 10px; font-size: 11px; font-weight: 700; color: var(--gold-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card-read-more:hover { color: var(--navy-light); }
.card-read-more svg { width: 12px; height: 12px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; line-height: 1.4; }
.card-title a:hover { color: var(--navy-light); }
.card-excerpt { font-size: 13px; color: var(--gray-text); line-height: 1.5; flex-grow: 1; }

/* ==========================================================================
   Homepage Improvements: Articles 2-col grid, mini news lists, view-all,
   image placeholders, hero badges
   ========================================================================== */

/* Articles column: compact 2-column card grid */
.articles-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.articles-grid-2 .news-card .card-img { aspect-ratio: 16/11; }
.articles-grid-2 .card-content { padding: 12px; }
.articles-grid-2 .card-meta { font-size: 10px; margin-bottom: 6px; gap: 8px; }
.articles-grid-2 .card-title { font-size: 13.5px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.articles-grid-2 .card-excerpt { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Mini news lists (side columns) */
.mini-news-list { display: flex; flex-direction: column; gap: 12px; }
.mini-news-item { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.mini-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.mini-news-thumb { width: 60px; height: 60px; flex-shrink: 0; overflow: hidden; display: block; border: 1px solid var(--border-color); background-color: var(--navy-solid); }
.mini-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-news-info { flex: 1; min-width: 0; }
.mini-news-info h4, .mini-news-info h5 { font-size: 12px; font-weight: 600; line-height: 1.45; margin: 0; }
.mini-news-info h4 a, .mini-news-info h5 a { color: var(--navy-dark); }
.mini-news-info h4 a:hover, .mini-news-info h5 a:hover { color: var(--navy-light); }
.mini-news-date { font-size: 10px; color: var(--gray-text); display: block; margin-top: 4px; }

/* Side box titles */
.side-box-title { font-size: 14px; color: var(--navy-dark); margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.side-box-title svg { width: 14px; height: 14px; flex-shrink: 0; }

/* View-all links */
.view-all-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--gold-primary); text-decoration: none; white-space: nowrap; margin-bottom: 6px; align-self: flex-end; }
.view-all-link svg { width: 12px; height: 12px; }
.view-all-link:hover { color: var(--navy-light); }

/* Governorate pill buttons */
.gov-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--navy-dark); background: var(--pure-white); border: 1px solid var(--border-color); padding: 3px 10px; border-radius: 20px; text-decoration: none; }
.gov-pill svg { width: 11px; height: 11px; color: var(--gold-primary); flex-shrink: 0; }
.gov-pill:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

/* Image placeholder for posts without thumbnail */
.img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-solid) 0%, #0c3d5a 100%); color: var(--gold-light); font-weight: 700; text-decoration: none; }
.hero-main-image .img-ph { font-size: 42px; }
.hero-sub-image .img-ph { font-size: 22px; }
.card-img .img-ph { font-size: 26px; }
.mini-news-thumb .img-ph { font-size: 13px; }

/* Hero category badge */
.hero-badge { position: absolute; top: 10px; right: 10px; z-index: 2; }
.hero-badge .cat-badge { margin: 0; background: var(--gold-primary); color: var(--navy-solid); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero-badge .cat-badge:hover { background: var(--gold-primary); color: var(--navy-solid); }


.horizontal-strip { background-color: var(--navy-solid); color: var(--pure-white); padding: 15px 0; text-align: center; font-size: 18px; font-weight: 700; border-top: 3px solid var(--gold-primary); border-bottom: 3px solid var(--gold-primary); }
.horizontal-strip span { color: var(--gold-light); }

.legislation-tabs-container { background-color: var(--pure-white); padding: 25px; border: 1px solid var(--border-color); }
.tabs-navigation { display: flex; gap: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 20px; overflow-x: auto; }
.tab-btn { padding: 8px 16px; background: var(--off-white); border: 1px solid var(--border-color); font-weight: 700; color: var(--navy-dark); cursor: pointer; white-space: nowrap; transition: all 0.3s ease; }
.tab-btn.active, .tab-btn:hover { background-color: var(--navy-solid); color: var(--pure-white); border-color: var(--navy-solid); }
.tabs-content { display: none; }
.tabs-content.active { display: block; }

.media-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.video-container, .photos-container { background-color: var(--pure-white); padding: 20px; border: 1px solid var(--border-color); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.consultations-jobs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-box {
    background-color: var(--pure-white);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-top: 3px solid var(--navy-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.case-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.subscription-panel { background-color: var(--navy-solid); color: var(--pure-white); border: 2px solid var(--gold-primary); padding: 40px; margin-top: 40px; }
.subscription-title { text-align: center; color: var(--gold-light); margin-bottom: 15px; font-size: 24px; }
.subscription-desc { text-align: center; color: rgba(255,255,255,0.8); font-size: 14px; max-width: 700px; margin: 0 auto 30px auto; }
.subscription-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.sub-card { background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 25px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; }
.sub-card:hover, .sub-card.featured { border-color: var(--gold-primary); background-color: rgba(255,255,255,0.08); transform: translateY(-5px); }
.sub-card h3 { color: var(--pure-white); font-size: 18px; margin-bottom: 10px; }
.sub-price { font-size: 28px; font-weight: 700; color: var(--gold-primary); margin: 15px 0; }
.sub-features { list-style: none; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 20px; flex-grow: 1; }
.sub-features li { margin-bottom: 8px; }
.auth-sub-form { max-width: 450px; margin: 0 auto; background-color: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 6px; font-weight: 600; }
.form-control { width: 100%; padding: 10px 15px; border: 1px solid rgba(255,255,255,0.2); background-color: rgba(0,0,0,0.2); color: var(--pure-white); font-family: 'Hanimation Arabic', sans-serif; font-size: 14px; }
.form-control:focus { outline: none; border-color: var(--gold-primary); }

/* --- High-end Premium Footer Styles --- */
.footer {
    background-color: var(--navy-solid); /* Match site primary color */
    color: #b0c4de;
    padding: 60px 0 0 0;
    border-top: 4px solid var(--gold-primary);
    font-family: 'Hanimation Arabic', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Subtle background accent glow */
.footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, rgba(7, 42, 64, 0) 70%);
    pointer-events: none;
}

.footer-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.8;
    color: #8fa0b3;
    max-width: 750px;
    margin-top: 5px;
}

.footer-social-wrapper {
    text-align: left;
}

.footer-social-wrapper h4 {
    color: var(--pure-white);
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8fa0b3;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icon:hover {
    color: var(--pure-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon.fb:hover { background-color: #1877f2; border-color: #1877f2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.4); }
.social-icon.tw:hover { background-color: #000000; border-color: #333333; box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); }
.social-icon.yt:hover { background-color: #ff0000; border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
.social-icon.ln:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: #833ab4; box-shadow: 0 0 15px rgba(131, 58, 180, 0.4); }
.social-icon.wa:hover { background-color: #25d366; border-color: #25d366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }

.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to left, rgba(197, 160, 89, 0) 0%, rgba(197, 160, 89, 0.2) 20%, rgba(197, 160, 89, 0.2) 80%, rgba(197, 160, 89, 0) 100%);
    margin: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 50px 0;
}

.footer-col-title {
    color: var(--pure-white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background-color: var(--gold-primary);
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 14px;
}

.footer-nav-list li a {
    color: #a0b3c6;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.footer-nav-list li a i {
    font-size: 10px;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.25s ease;
    color: var(--gold-primary);
}

.footer-nav-list li a:hover {
    color: var(--gold-light);
}

.footer-nav-list li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.footer-contact-list li i {
    color: var(--gold-primary);
    font-size: 16px;
    margin-top: 3px;
    background: rgba(197, 160, 89, 0.08);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.footer-contact-list li span {
    font-size: 13.5px;
    line-height: 1.6;
    color: #a0b3c6;
}

.ltr-text {
    direction: ltr !important;
    display: inline-block;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-license p {
    font-size: 12.5px;
    color: #72889e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-license p i {
    color: var(--gold-primary);
    font-size: 14px;
}

.footer-copyright p {
    font-size: 12.5px;
    color: #72889e;
    margin: 0;
}

.text-red {
    color: var(--red-logo);
}

/* --- Single Post Page Styles --- */
.single-post-wrapper { padding: 30px 15px; }

.breadcrumb { font-size: 13px; color: var(--gray-text); margin-bottom: 20px; }
.breadcrumb a { color: var(--navy-dark); font-weight: bold; }
.breadcrumb a:hover { color: var(--gold-primary); }

.single-post-layout { display: grid; grid-template-columns: 7fr 3fr; gap: 30px; }

.single-header { margin-bottom: 20px; }
.single-title { font-size: 32px; font-weight: 700; color: var(--navy-dark); margin-bottom: 15px; line-height: 1.4; }
.single-meta { display: flex; gap: 20px; font-size: 14px; color: var(--gray-text); border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.single-meta i { color: var(--gold-primary); }

.single-featured-image { margin-bottom: 25px; border-radius: 5px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.single-featured-image img { width: 100%; height: auto; display: block; }

/* Share row under featured image */
.single-image-share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    margin: -10px 0 25px;
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
}
.single-image-share .share-btn { width: 34px; height: 34px; font-size: 14px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--pure-white); padding: 0; transition: opacity 0.3s; }
.single-image-share .share-btn:hover { opacity: 0.8; }

.single-entry-content { font-size: 18px; line-height: 1.9; color: var(--text-dark); margin-bottom: 30px; }
.single-entry-content h2, .single-entry-content h3 { color: var(--navy-dark); margin: 25px 0 15px 0; font-weight: 700; }
.single-entry-content p { margin-bottom: 15px; }
.single-entry-content img { max-width: 100%; height: auto; border-radius: 5px; margin: 15px 0; }

.single-tags { margin-bottom: 30px; }
.tag-title { font-weight: bold; color: var(--navy-dark); margin-left: 10px; }
.single-tags a { display: inline-block; background-color: var(--off-white); color: var(--navy-dark); padding: 5px 12px; border-radius: 3px; font-size: 13px; margin-left: 5px; margin-bottom: 5px; transition: all 0.3s; }
.single-tags a:hover { background-color: var(--navy-solid); color: var(--pure-white); }

.single-share { display: flex; align-items: center; gap: 10px; padding: 15px; background-color: var(--off-white); border-radius: 5px; border: 1px solid var(--border-color); }
.share-title { font-weight: bold; color: var(--navy-dark); font-size: 16px; margin-left: 10px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--pure-white); font-size: 16px; transition: opacity 0.3s; border: none; cursor: pointer; padding: 0; }
.share-btn:hover { opacity: 0.8; color: var(--pure-white); }
.share-btn svg { flex-shrink: 0; }
.share-btn.fb { background-color: #1877f2; }
.share-btn.tw { background-color: #000; }
.share-btn.wa { background-color: #25d366; }
.share-btn.tg { background-color: #229ed9; }
.share-btn.cp { background-color: var(--navy-solid); }
.share-btn.cp.copied { background-color: var(--green-ticker); }

/* Sidebar Widget Styles */
.sidebar-widget { margin-bottom: 30px; background-color: var(--pure-white); border: 1px solid var(--border-color); padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.widget-title { font-size: 18px; color: var(--pure-white); background-color: var(--navy-solid); padding: 10px 15px; margin: -20px -20px 20px -20px; border-bottom: 3px solid var(--gold-primary); }
.sidebar-post { display: flex; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.sidebar-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-post-img { width: 80px; flex-shrink: 0; }
.sidebar-post-img img { width: 100%; height: 60px; object-fit: cover; border-radius: 3px; }
.sidebar-post-info h4 { font-size: 14px; line-height: 1.5; color: var(--navy-dark); }
.sidebar-post-info h4 a:hover { color: var(--gold-primary); }
.ad-widget .widget-content { text-align: center; }

img.fallback-logo {
    object-fit: contain !important;
    padding: 15%;
    background-color: var(--navy-solid);
}

/* Archive & Search Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.posts-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.posts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    color: var(--navy-dark);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}
.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
    background-color: var(--navy-solid);
    color: var(--pure-white);
    border-color: var(--navy-solid);
}

/* Responsive Design (Mobile & Tablets) */
@media (max-width: 991px) {
    /* Header Layout */
    .header-container { flex-direction: column; align-items: center; }
    .header-blue-shape { display: none; }
    .logo-wrapper { padding-bottom: 0; padding-top: 15px; }
    .logo-wrapper img { max-height: 60px !important; }
    .header-search-block { 
        width: calc(100% + 30px); 
        margin-left: -15px; 
        margin-right: -15px; 
        padding: 15px; 
        background-color: var(--navy-dark); 
        margin-top: 15px;
    }
    .header-search-form { width: 100%; display: flex; }
    .header-search-form input { flex-grow: 1; width: auto; }
    
    /* Navigation Menu (Horizontal Scrollable) */
    .main-nav .container { clip-path: none; padding: 0; }
    .nav-menu ul { 
        overflow-x: auto; 
        justify-content: flex-start; 
        -ms-overflow-style: none;  
        scrollbar-width: none; 
    }
    .nav-menu ul::-webkit-scrollbar { display: none; }
    .nav-menu ul li { flex: 0 0 auto; }
    
    /* News Ticker */
    .news-ticker-bar .container { flex-direction: row !important; align-items: center !important; }
    .ticker-label { width: auto !important; text-align: right; white-space: nowrap; padding: 8px 15px; font-size: 13px; }
    .ticker-content { font-size: 13px; }
    
    /* Hero Grid */
    .hero-grid { display: flex; flex-direction: column; }
    .hero-main-post { order: -1; margin-bottom: 15px; }
    .hero-sub-grid { grid-template-columns: 1fr; gap: 15px; }
    .hero-main-image img { aspect-ratio: 16/9; max-height: 300px; }
    
    /* Main Body Layout */
    .main-body-layout { display: flex; flex-direction: column; }
    
    /* Single Post Layout */
    .single-post-layout { display: flex; flex-direction: column; }
    .single-title { font-size: 24px; }
    
    /* Footer */
    .footer-top-row { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .footer-social-wrapper { text-align: center; }
    .footer-social-icons { justify-content: center; }
    .footer-logo img { margin: 0 auto 15px auto !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
    .footer-col { text-align: center; }
    .footer-col-title::after { right: 50%; transform: translateX(50%); }
    .footer-contact-list li { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
    .footer-bottom-row { flex-direction: column; gap: 15px; text-align: center; }
    
    /* Floating Sidebar */
    .floating-social-sidebar { display: none; }

    /* Archive Grid Mobile */
    .archive-grid { grid-template-columns: 1fr; }

    /* New Layouts Mobile */
    .grid-3, .consultations-jobs-grid, .cases-grid { grid-template-columns: 1fr; }
    .media-section-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* === Lawyer Directory Header Button === */
.lawyers-header-btn { transition: transform 0.2s, box-shadow 0.2s; }
.lawyers-header-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(0,0,0,0.35); }
.lawyers-header-btn:active { transform: translateY(0); }

/* === Radio Logo Animations (keyframes) === */
@keyframes radioLogoPulseH {
    0%, 100% { box-shadow: 0 0 0 2px rgba(197,40,44,0.6), 0 0 12px rgba(197,40,44,0.3); }
    50% { box-shadow: 0 0 0 4px rgba(197,40,44,0.85), 0 0 22px rgba(197,40,44,0.55); }
}
@keyframes radioLiveBlinkH {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@media (max-width: 991px) {
    .lawyers-header-btn { margin-top: 8px; }
    .lawyers-header-btn span span:last-child { display: none; }
}

/* === Lawyer Cards (global — homepage + directory) === */
.lw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lawyer-card { background: var(--pure-white); border: 1px solid var(--border-color); overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.lawyer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lawyer-card-img { position: relative; aspect-ratio: 4/3; background: var(--navy-solid); overflow: hidden; }
.lawyer-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lw-badge { position: absolute; font-size: 10px; font-weight: 700; color: #fff; padding: 3px 9px; border-radius: 20px; }
.lw-badge-verified { top: 10px; right: 10px; background: #1877f2; }
.lw-badge-online { bottom: 10px; right: 10px; background: #22c55e; }
.lawyer-card-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.lawyer-card-name { font-size: 15px; font-weight: 800; color: var(--navy-dark); margin: 0 0 2px; }
.lawyer-card-name a { color: inherit; }
.lawyer-card-name a:hover { color: var(--navy-light); }
.lawyer-card-specialty { font-size: 11.5px; color: var(--gold-primary); font-weight: 700; margin-bottom: 7px; }
.lawyer-card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.lw-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.lw-rating-num { font-size: 12px; font-weight: 700; color: var(--text-dark); }
.lw-reviews { font-size: 10.5px; color: var(--gray-text); }
.lawyer-card-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10.5px; color: var(--gray-text); margin-bottom: 8px; }
.lawyer-card-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.lw-flag { font-size: 9.5px; background: var(--off-white); border: 1px solid var(--border-color); color: var(--gray-text); padding: 2px 8px; border-radius: 20px; }
.lawyer-card-price { font-size: 12.5px; color: var(--navy-dark); margin-bottom: 12px; }
.lawyer-card-price strong { color: var(--gold-primary); font-size: 15px; }
.lawyer-card-actions { display: flex; gap: 8px; margin-top: auto; }
.lw-btn { flex: 1; text-align: center; padding: 8px 10px; font-size: 12px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: 'Hanimation Arabic', sans-serif; transition: all 0.2s; display: inline-block; }
.lw-btn-gold { background: var(--gold-primary); color: var(--navy-solid); }
.lw-btn-gold:hover { background: var(--gold-light); }
.lw-btn-outline { background: var(--off-white); color: var(--navy-dark); border: 1px solid var(--border-color); }
.lw-btn-outline:hover { background: var(--navy-solid); color: #fff; border-color: var(--navy-solid); }

/* === Homepage: Lawyers Directory Highlight === */
.home-lawyers { background: linear-gradient(180deg, var(--pure-white) 0%, var(--off-white) 100%); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.home-lawyers-cta { text-align: center; margin-top: 25px; }
.home-lawyers-cta .lw-btn { flex: none; padding: 12px 32px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; background: var(--navy-solid); color: var(--pure-white); }
.home-lawyers-cta .lw-btn:hover { background: var(--navy-solid); }

/* === Category Badge (cards) === */
.cat-badge { display: inline-block; background: var(--navy-solid); color: var(--pure-white); font-size: 10px; font-weight: 700; padding: 3px 9px; margin-bottom: 8px; text-decoration: none; transition: background 0.2s; }
.cat-badge:hover { background: var(--navy-solid); color: var(--pure-white); }

/* === Section Title Icons (uniform 18px) === */
.section-title h2 i[data-lucide] { width: 18px; height: 18px; vertical-align: -3px; }

@media (max-width: 991px) {
    .lw-grid, .lw-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .lw-grid, .lw-grid-4 { grid-template-columns: 1fr; }
}

/* === Comments === */
.comments-area { margin-top: 35px; padding-top: 25px; border-top: 2px solid var(--navy-dark); }
.comments-title, .comment-reply-title { font-size: 17px; font-weight: 800; color: var(--navy-dark); margin: 0 0 18px; }
.comment-list { list-style: none; margin: 0 0 25px; padding: 0; }
.comment-list .comment { margin-bottom: 15px; }
.comment-list .comment-body { background: var(--off-white); border: 1px solid var(--border-color); padding: 14px 16px; border-radius: 5px; }
.comment-list .comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-list .comment-author { font-weight: 800; color: var(--navy-dark); font-size: 13px; }
.comment-list .comment-author .avatar { border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.comment-list .comment-metadata { font-size: 11px; color: var(--gray-text); }
.comment-list .comment-content { font-size: 13px; color: var(--text-dark); line-height: 1.8; }
.comment-list .reply { margin-top: 6px; font-size: 11.5px; }
.comment-list .reply a { color: var(--gold-primary); font-weight: 700; text-decoration: none; }
.comment-list .children { list-style: none; margin: 15px 25px 0 0; padding: 0; }
.comment-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy-dark); margin: 12px 0 5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 13px;
    font-family: 'Hanimation Arabic', 'Tajawal', sans-serif; color: var(--text-dark); box-sizing: border-box; background: var(--pure-white);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .form-submit { margin-top: 15px; }
.comment-form .submit { background: var(--navy-solid); color: var(--pure-white); border: none; padding: 10px 26px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: 'Hanimation Arabic', 'Tajawal', sans-serif; transition: background 0.2s; }
.comment-form .submit:hover { background: var(--navy-solid); }
.comment-notes, .comment-form-comment .comment-notes { font-size: 11.5px; color: var(--gray-text); }
.comment-navigation { display: flex; justify-content: space-between; margin: 15px 0; font-size: 12.5px; }

/* === Screen Reader Text (visually hidden H1) === */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* === Homepage: Radio Card === */
.home-radio { background: linear-gradient(135deg, #0a0e1a 0%, #1a2a4a 100%); border-top: 3px solid #c5282c; border-bottom: 3px solid #c5282c; padding: 22px 0; }
.home-radio-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.home-radio-logo { width: 62px; height: 62px; border-radius: 50%; object-fit: contain; box-shadow: 0 0 0 3px rgba(197,40,44,0.55); flex-shrink: 0; }
.home-radio-info { flex: 1; min-width: 220px; }
.home-radio-info h3 { color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 3px; }
.home-radio-info p { color: rgba(255,255,255,0.6); font-size: 12.5px; margin: 0; }
.home-radio-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(197,40,44,0.85); padding: 2px 10px; border-radius: 20px; margin-bottom: 7px; }
.home-radio-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55); flex-shrink: 0; }
.home-radio-badge.live::before { background: #fff; animation: radioLiveBlinkH 1.1s infinite; }
.home-radio-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-radio-play { background: #c5282c; color: #fff; border: none; padding: 10px 20px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: 'Hanimation Arabic', 'Tajawal', sans-serif; display: inline-flex; align-items: center; gap: 7px; transition: background 0.2s; }
.home-radio-play:hover { background: #e03a3e; }
.home-radio-link { color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700; padding: 10px 16px; border: 1px solid rgba(255,255,255,0.3); transition: all 0.2s; }
.home-radio-link:hover { border-color: #c5282c; color: #c5282c; }
.home-radio-link.wa { border-color: #25d366; color: #25d366; }
.home-radio-link.wa:hover { background: #25d366; color: #fff; }

/* === Dark Mode === */
body.dark-mode { --pure-white: #0e1926; --off-white: #132133; --border-color: #223349; --gray-text: #93a6bc; --text-dark: #e6edf5; --navy-dark: #aec9e2; --navy-medium: #7fa5c9; --navy-light: #9cc1e0; --navy-solid: #072a40; background-color: var(--pure-white); color: var(--text-dark); }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: var(--text-dark); }
body.dark-mode .tab-btn { color: var(--text-dark); }
body.dark-mode .lw-btn-outline { color: var(--text-dark); }
body.dark-mode .lw-btn-outline:hover { color: #fff; }
body.dark-mode .lawyer-card-price { color: var(--text-dark); }
body.dark-mode .single-share, body.dark-mode .single-image-share { background-color: var(--off-white); }
body.dark-mode .comment-form input[type="text"], body.dark-mode .comment-form input[type="email"], body.dark-mode .comment-form input[type="url"], body.dark-mode .comment-form textarea { background: var(--pure-white); border-color: var(--border-color); }
body.dark-mode .form-control { background-color: rgba(255,255,255,0.08); }
body.dark-mode .breadcrumb a { color: var(--gray-text); }
body.dark-mode .main-header, body.dark-mode .main-nav { background-color: var(--off-white); }
body.dark-mode .header-search-form input { background: var(--pure-white); color: var(--text-dark); border-color: var(--border-color); }
/* Text on dark backgrounds must stay light */
body.dark-mode .widget-title, body.dark-mode .cat-badge, body.dark-mode .tab-btn.active, body.dark-mode .comment-form .submit { color: #fff; }
body.dark-mode .hero-main-overlay, body.dark-mode .hero-main-overlay h2, body.dark-mode .hero-main-overlay a, body.dark-mode .hero-sub-overlay, body.dark-mode .hero-sub-overlay h3, body.dark-mode .hero-sub-overlay a, body.dark-mode .hero-overlay-meta { color: #fff; }
body.dark-mode .horizontal-strip, body.dark-mode .subscription-panel, body.dark-mode .sub-card h3, body.dark-mode .sub-price, body.dark-mode .subscription-panel .subscription-desc, body.dark-mode .subscription-panel p, body.dark-mode .subscription-panel label { color: #fff; }
body.dark-mode .home-lawyers-cta .lw-btn, body.dark-mode .home-radio-play { color: #fff; }
body.dark-mode .header-blue-shape { opacity: 0.5; }
/* Header menu, search button, ticker & section bars stay white */
body.dark-mode .main-nav, body.dark-mode .nav-menu ul li a, body.dark-mode .header-search-form button, body.dark-mode .btn-navy, body.dark-mode .ad-placeholder, body.dark-mode .section-title h2, body.dark-mode .lw-section-title h2, body.dark-mode .radio-episodes-header h2, body.dark-mode .share-btn, body.dark-mode .ticker-label, body.dark-mode .footer-social-wrapper h4, body.dark-mode .footer-col-title { color: #fff; }
/* Contact & social buttons become white */
body.dark-mode .social-icon { background: #fff; color: #072a40; border-color: #fff; }
body.dark-mode .social-icon:hover { color: #fff; }
body.dark-mode .social-icon.fb:hover { background-color: #1877f2; border-color: #1877f2; }
body.dark-mode .social-icon.tw:hover { background-color: #000; border-color: #333; }
body.dark-mode .social-icon.yt:hover { background-color: #ff0000; border-color: #ff0000; }
body.dark-mode .social-icon.ln:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: #833ab4; }
body.dark-mode .social-icon.wa:hover { background-color: #25d366; border-color: #25d366; }
body.dark-mode .floating-social-sidebar a { background: #fff !important; color: #072a40; }
body.dark-mode .floating-social-sidebar a:hover { color: #fff; }
body.dark-mode .floating-social-sidebar .social-text { color: #fff; }

/* --- New Homepage Layout --- */
.avocato-home-wrapper { display: flex; flex-direction: column; gap: 40px; margin-top: 30px; margin-bottom: 50px; }
.home-section { padding: 30px 0; }
.bg-gray { background-color: var(--off-white); }
.section-heading { font-size: 22px; font-weight: bold; margin-bottom: 20px; color: var(--navy-solid); position: relative; padding-right: 15px; }
.section-heading::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 5px; background: var(--gold-primary); }
.full-width-heading { text-align: center; padding-right: 0; }
.full-width-heading::before { display: none; }

/* Full Width Articles Grid */
.fw-articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fw-article-card { background: var(--pure-white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--border-color); }
.fw-article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.08); }
.fw-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.fw-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.fw-thumb:hover img { transform: scale(1.05); }
.fw-article-card h4 { padding: 15px; font-size: 16px; line-height: 1.5; margin: 0; font-weight: 700; }
.fw-article-card h4 a { color: var(--navy-solid); text-decoration: none; transition: color 0.3s; }
.fw-article-card h4 a:hover { color: var(--gold-primary); }

/* 3 Cols Layout */
.layout-3cols { display: grid; grid-template-columns: 1fr 2.5fr 1fr; gap: 30px; }
.side-news-list { display: flex; flex-direction: column; gap: 15px; }
.side-news-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.side-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-news-thumb { width: 85px; height: 85px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.side-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.side-news-item:hover .side-news-thumb img { transform: scale(1.1); }
.side-news-item h5 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 700; }
.side-news-item h5 a { color: var(--navy-solid); text-decoration: none; transition: color 0.2s; }
.side-news-item h5 a:hover { color: var(--gold-primary); }

.center-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.center-article-item { background: var(--pure-white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.04); border: 1px solid var(--border-color); }
.center-article-thumb { display: block; aspect-ratio: 1/1; overflow: hidden; }
.center-article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.center-article-item:hover .center-article-thumb img { transform: scale(1.05); }
.center-article-item h4 { padding: 12px; font-size: 14px; margin: 0; font-weight: 700; line-height: 1.5; }
.center-article-item h4 a { color: var(--navy-solid); text-decoration: none; transition: color 0.3s; }
.center-article-item h4 a:hover { color: var(--gold-primary); }

.center-hero-layout { display: flex; flex-direction: column; gap: 20px; }
.center-hero-card { display: block; position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 16/9; }
.center-hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.center-hero-card:hover img { transform: scale(1.05); }
.center-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.center-small-card { display: flex; flex-direction: column; gap: 10px; }
.center-small-card a { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-sm); }
.center-small-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.center-small-card:hover img { transform: scale(1.08); }
.center-small-card h5 { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 700; }
.center-small-card h5 a { color: var(--navy-solid); text-decoration: none; transition: color 0.2s; }
.center-small-card h5 a:hover { color: var(--gold-primary); }

.center-jobs-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.center-job-item { background: var(--pure-white); padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); border-right: 4px solid var(--gold-primary); transition: background-color 0.3s; }
.center-job-item:hover { background-color: var(--off-white); }
.center-job-item h5 { margin: 0 0 5px 0; font-size: 16px; font-weight: 700; }
.center-job-item h5 a { color: var(--navy-solid); text-decoration: none; transition: color 0.2s; }
.center-job-item h5 a:hover { color: var(--gold-primary); }
.job-date { font-size: 12px; color: var(--gray-text); display: flex; align-items: center; gap: 5px; }

/* Ads */
.ad-banner-placeholder { background: rgba(0,0,0,0.02); border: 2px dashed var(--border-color); text-align: center; padding: 40px; border-radius: var(--radius-md); }
.ad-banner-placeholder h3 { color: var(--gray-text); margin: 0; font-family: 'Hanimation Arabic', sans-serif; font-size: 20px; }

@media (max-width: 991px) {
    .layout-3cols { grid-template-columns: 1fr; }
    .hero-bottom-grid { grid-template-columns: 1fr; }
    .fw-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-main-card { aspect-ratio: 16/9; }
}
@media (max-width: 576px) {
    .fw-articles-grid, .center-articles-grid, .center-grid-3 { grid-template-columns: 1fr; }
}

/* === New Hero Magazine Grid === */
.hero-magazine-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    height: 480px;
    margin-bottom: 25px;
    direction: ltr; /* لضمان ترتيب الأعمدة اليسار واليمين بشكل سليم */
}
.hero-magazine-grid > * {
    direction: rtl; /* إعادة التوجيه للداخل لدعم اللغة العربية */
}
.hero-left {
    height: 100%;
}
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.hero-right-top {
    height: 50%;
}
.hero-right-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 50%;
}
.hero-card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-card:hover img {
    transform: scale(1.03);
}
.hero-card .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.hero-card.main-card .hero-overlay h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.4;
    font-family: 'Hanimation Arabic', 'Tajawal', sans-serif;
}
.hero-card.top-card .hero-overlay h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}
.hero-card.bottom-card .hero-overlay h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}
.hero-date {
    font-size: 11px;
    color: #e2e8f0;
}

@media (max-width: 991px) {
    .hero-magazine-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-left {
        height: 320px;
    }
    .hero-right-top {
        height: 220px;
    }
    .hero-right-bottom {
        height: 180px;
    }
}
@media (max-width: 576px) {
    .hero-right-bottom {
        grid-template-columns: 1fr;
        height: auto;
        gap: 12px;
    }
    .hero-right-bottom .hero-card {
        height: 160px;
    }
}

/* Custom layout overrides */
.sub-syndicates-list .side-news-item {
    flex-direction: row-reverse;
}
