/* ================== style.css ================== */

/* ================== المتغيرات الأساسية (CSS Variables) ================== */
:root {
    --color-primary: #0B2447;      /* Deep Navy Blue */
    --color-primary-light: #1A3C6E; 
    --color-accent: #C5A028;       /* Sophisticated Gold */
    --color-accent-light: #E5C35C;
    --color-accent-hover: #D4AF37;
    --color-bg-main: #F4F7F9;
    --color-bg-secondary: #FFFFFF;
    --color-text-dark: #1A1A1A;
    --color-text-muted: #666666;
    
    --shadow-soft: 0 10px 40px rgba(11, 36, 71, 0.05);
    --shadow-medium: 0 15px 50px rgba(11, 36, 71, 0.12);
    --shadow-hover: 0 20px 60px rgba(11, 36, 71, 0.18);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    
    --font-main: 'Cairo', Tahoma, Arial, sans-serif;
    --container-max: 1440px;
}

/* ================== الستايلات الأساسية ================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    direction: rtl;
    margin: 0;
    padding: 0;
    background: var(--color-bg-main);
    color: var(--color-text-dark);
    overflow-x: hidden;
}

/* ================== Top Bar (Premium Addition) ================== */
.top-bar {
    background: #061121;
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 25px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.top-bar-social a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ================== الهيدر والبنر ================== */
header {
    background: var(--color-bg-secondary);
    position: relative;
    z-index: 1000;
}

.main-banner {
    background: #000;
    padding: 0;
    position: relative;
    z-index: 2;
}

.banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
}

.banner-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 12px 40px;
}

.banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

#bannerCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
}

.banner-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 180, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(100, 200, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 120, 200, 0.05) 0%, transparent 40%);
    background-size: 200% 200%;
    animation: bannerGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.banner-brand > a,
.banner-brand > .banner-text {
    position: relative;
    z-index: 2;
}

@keyframes bannerFluid {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes bannerGlow {
    0%   { opacity: 0.6; transform: scale(1); }
    50%  { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.6; transform: scale(1); }
}


.banner-brand img {
    height: 70px;
    width: auto;
    transition: var(--transition-smooth);
}

.banner-text {
    border-right: 2px solid rgba(197, 160, 40, 0.6);
    padding-right: 25px;
}

.banner-text h1 {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.banner-text p {
    margin: 3px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ================== Navigation ================== */
.nav {
    background: rgba(11, 36, 71, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: var(--shadow-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-list-search {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.nav-list-search > ul {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav ul li {
    position: relative;
}

.nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.nav ul li a {
    padding: 12px 20px !important; /* تقليص الحشو العلوي والسفلي من 22px إلى 12px */
    font-size: 0.95rem !important;  /* ضبط حجم الخط ليتناسق مع الارتفاع الجديد */
    display: flex;
    align-items: center;
    padding: 22px 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav ul li a:hover::before {
    width: 100%;
}

/* Search Button in Nav */
.nav-search-btn {
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.nav.sticky {
    padding: 0;
    background: rgba(6, 17, 33, 0.98);
}

/* إخفاء عناصر التحكم وقائمة الهواتف افتراضياً في الشاشات الكبيرة */
.mobile-controls {
    display: none;
}

.mobile-nav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(11, 36, 71, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-medium);
    z-index: 999;
}

.mobile-nav.open {
    display: block !important; /* تظهر فقط عند تفعيلها بزر البرجر */
}

.mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ================== شاشات التجاوب (Responsive) ================== */
@media (max-width: 992px) {
    /* إخفاء قائمة الشاشات الكبيرة بالكامل */
    .nav-list-search {
        display: none !important;
    }

    /* إظهار شريط التحكم الخاص بالهاتف (الشعار وزر البرجر) */
    .mobile-controls {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 20px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        text-decoration: none;
        font-weight: 700;
    }

    .mobile-logo img {
        height: 40px;
    }

    .nav-toggle {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px 10px;
    }
}/* ================== Dropdowns ================== */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Automatic arrow for all dropdown toggles */
.dropdown-toggle::after {
    content: '\f078'; /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7em;
    opacity: 0.6;
    transition: transform 0.3s ease;
    margin-right: 8px; /* For RTL, it will be on the left of the text */
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 20px 60px rgba(11, 36, 71, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    border-top: 3px solid var(--color-accent);
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s;
    pointer-events: none;
}

.nav li.dropdown.open .dropdown-menu,
.nav li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav li.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

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

.dropdown-menu li a {
    padding: 12px 25px;
    color: var(--color-primary) !important;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-fast);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.dropdown-menu li a::before {
    display: none;
}

.dropdown-menu li a:hover {
    background: #f4f7fb;
    color: var(--color-accent) !important;
    padding-right: 35px;
}

/* Active nav link */
.nav ul li a.active-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav ul li a.active-link::before {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ================== Mobile Navigation ================== */
.mobile-controls {
    display: none;
    padding: 15px 25px;
    background: var(--color-primary);
    justify-content: space-between;
    align-items: center;
}

.nav-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-primary); /* matches mobile-responsive.css */
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav li a {
    display: block;
    padding: 15px 25px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ================== News Ticker (Ribbon) ================== */
.news-ticker-container {
    background: linear-gradient(90deg, #061121, var(--color-primary-light));
    color: #fff;
    height: 48px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ticker-label {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 900;
    padding: 0 30px;
    display: flex;
    align-items: center;
    z-index: 100;
    box-shadow: 5px 0 20px rgba(0,0,0,0.3);
}

/* RTL: Label on Right */
body:not(.ltr-mode) .ticker-label {
    right: 0;
}

/* LTR: Label on Left */
body.ltr-mode .ticker-label {
    left: 0;
}

.news-ticker {
    width: 100%;
    overflow: hidden;
    background: var(--color-primary-light);
    color: #fff;
    padding: 10px 0;
}

.scrolling {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    padding: 0 50px;
}

.news-ticker-container:hover .scrolling {
    animation-play-state: paused;
}

.news-ticker a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 40px;
    font-size: 1.05rem;
    transition: color 0.3s;
    white-space: nowrap;
}

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

.news-logo {
    height: 18px;
    width: auto;
    opacity: 0.4;
}

/* Smooth Looping Animation */
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(50%); } /* Shift by half because content is duplicated */
}

/* Correct direction for LTR */
body.ltr-mode @keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Add specific animation for LTR because of direction flip */
body.ltr-mode .scrolling {
    animation: ticker-scroll-ltr 60s linear infinite;
}

@keyframes ticker-scroll-ltr {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

body:not(.ltr-mode) .scrolling {
    animation: ticker-scroll-rtl 60s linear infinite;
}

@keyframes ticker-scroll-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ================== YouTube-Style Hero Section ================== */
.yt-hero {
    background: #f8fafc;
    padding: 20px 0 0;
}

.yt-hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 20px;
    min-height: 480px;
    flex-direction: row-reverse;
}

/* ── Main Slider ── */
.yt-slider {
    flex: 0 0 68%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    min-height: 460px;
}

.yt-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.yt-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.yt-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.yt-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
}

.yt-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 35px;
    z-index: 2;
}

.yt-slide-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yt-slide-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-slide-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 550px;
}

.yt-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.yt-slide-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.4);
}

/* Slider Arrows */
.yt-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.yt-slider:hover .yt-slider-arrow {
    opacity: 1;
}

.yt-slider-arrow:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.yt-prev { left: 16px; }
.yt-next { right: 16px; }

/* Slider Dots */
.yt-slider-dots {
    position: absolute;
    bottom: 16px;
    right: 35px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.yt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.yt-dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: 5px;
}

/* Progress Bar */
.yt-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.yt-slider-progress-bar {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* ── Sidebar ── */
.yt-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.yt-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.yt-sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.yt-sidebar-header a {
    font-size: 0.78rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.yt-sidebar-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.yt-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    border-right: 3px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.yt-sidebar-item:hover {
    background: #f8fafc;
}

.yt-sidebar-item.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-right-color: var(--color-accent);
    box-shadow: inset 0 0 30px rgba(197, 160, 40, 0.15), 0 2px 12px rgba(197, 160, 40, 0.1);
    transform: scale(1.02);
    animation: sidebarFlow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sidebarFlow {
    0% {
        background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
        border-right-color: transparent;
        box-shadow: none;
        transform: scale(1);
    }
    40% {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-right-color: var(--color-accent);
        box-shadow: inset 0 0 40px rgba(197, 160, 40, 0.3), 0 2px 20px rgba(197, 160, 40, 0.25);
        transform: scale(1.03);
    }
    100% {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-right-color: var(--color-accent);
        box-shadow: inset 0 0 30px rgba(197, 160, 40, 0.15), 0 2px 12px rgba(197, 160, 40, 0.1);
        transform: scale(1.02);
    }
}

.yt-sidebar-item.active .yt-sidebar-info h4 {
    color: var(--color-primary);
    font-weight: 800;
    animation: titlePulse 0.8s ease;
}

@keyframes titlePulse {
    0% { color: var(--color-text-dark); }
    40% { color: var(--color-accent); }
    100% { color: var(--color-primary); }
}

.yt-sidebar-item.active .yt-sidebar-thumb {
    animation: thumbFlow 0.8s ease;
}

@keyframes thumbFlow {
    0% { box-shadow: none; transform: scale(1); }
    40% { box-shadow: 0 0 0 3px var(--color-accent), 0 0 20px rgba(197, 160, 40, 0.5); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 2px var(--color-accent); transform: scale(1); }
}

.yt-sidebar-thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    background: #e5e7eb;
}

.yt-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-sidebar-num {
    display: none;
}

.yt-sidebar-info {
    flex: 1;
    min-width: 0;
}

.yt-sidebar-info h4 {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-sidebar-date {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Section Header ── */
.section-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto 24px;
    padding: 0 40px;
}

.section-header-custom h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-custom h2 i {
    color: var(--color-accent);
}

.btn-view-all {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-view-all:hover {
    color: var(--color-accent-hover);
}

@media (max-width: 1024px) {
    .nav-list-search { display: none; }
    .mobile-controls { display: flex; }
}

/* ================== Hero Section ================== */
.hero-video-section {
    position: relative;
    height: 100px;
    min-height: 100px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-section video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 17, 33, 0.4) 0%,
        rgba(11, 36, 71, 0.65) 60%,
        rgba(6, 17, 33, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    max-width: 860px;
    padding: 0 30px;
    animation: heroFadeIn 1.2s ease forwards;
}

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


.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 35px;
    font-weight: 500;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 16px 35px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(197, 160, 40, 0.35);
}

.hero-btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(197, 160, 40, 0.5);
}

.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.5);
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    transform: translateY(-3px);
}

.hero-search-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    max-width: 620px;
    margin: 0 auto;
}

.hero-search-container form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-search-container > form > i {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 5px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
}

.hero-search-input::placeholder { color: rgba(255,255,255,0.5); }

.hero-search-button {
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.hero-search-button:hover {
    background: var(--color-accent-hover);
    transform: scale(1.03);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    animation: bounce 2s ease infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* ================== Stats Strip ================== */
.stats-strip {
    background: var(--color-primary);
    border-top: 4px solid var(--color-accent);
    padding: 40px 0;
}

.stats-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 0 60px;
    flex: 1;
    max-width: 200px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-number::after {
    content: '+';
    font-size: 1.8rem;
    opacity: 0.7;
}

.stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ================== Section Shared Styles ================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(197, 160, 40, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(197, 160, 40, 0.3);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2, .main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-header h2::after, .main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* ================== Quick Links ================== */
.quick-links-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.quick-link-card {
    background: #fff;
    padding: 40px 30px 35px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: right;
}

.quick-link-card:hover::before {
    transform: scaleX(1);
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.qlc-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #f0f4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 22px;
    transition: var(--transition-smooth);
}

.quick-link-card:hover .qlc-icon {
    background: var(--color-primary);
    color: var(--color-accent);
    border-radius: 50%;
}

.quick-link-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--color-primary);
}

.quick-link-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

.qlc-arrow {
    width: 36px;
    height: 36px;
    background: #f0f4fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.quick-link-card:hover .qlc-arrow {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateX(-5px);
}

/* ================== Top Hero Split Layout ================== */
.top-hero-split {
    display: flex;
    gap: 0;
    width: 100%;
    height: 78vh;
    min-height: 520px;
    overflow: hidden;
    background: #fff;
}

/* Left: Main News Splide (flex: 2) */
.top-hero-split .splide-main {
    flex: 2;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Left: Main News Custom Slider (flex: 2) */
.top-hero-split .splide-main {
    flex: 2;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* ── Custom Slider ── */
.alsalam-slider .slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.alsalam-slider .slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.alsalam-slider .slider-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

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

.alsalam-slider .slider-slide:hover img {
    transform: scale(1.05);
}

.alsalam-slider .slider-slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 17, 33, 0.1) 0%,
        rgba(11, 36, 71, 0.25) 40%,
        rgba(6, 17, 33, 0.8) 100%
    );
    z-index: 1;
}

.alsalam-slider .slider-slide .slide-caption {
    position: absolute;
    bottom: 25px;
    right: 15px;
    left: 15px;
    z-index: 2;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

.alsalam-slider .slider-slide .slide-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 3px 14px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.alsalam-slider .slider-slide .slide-caption h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ── Slider Arrows ── */
.alsalam-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s;
}
.alsalam-slider .slider-viewport:hover .slider-arrow {
    opacity: 1;
}
.alsalam-slider .slider-arrow:hover {
    background: rgba(255,255,255,0.25);
}
.alsalam-slider .slider-arrow-prev {
    right: 15px;
}
.alsalam-slider .slider-arrow-next {
    left: 15px;
}

/* ── Slider Dots ── */
.alsalam-slider .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}
.alsalam-slider .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.alsalam-slider .slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.top-hero-split .splide-sidebar .splide {
    visibility: visible !important;
}

/* ================== Decorative Separator ================== */
.split-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
    background: #f8fafc;
    gap: 6px;
}

.split-separator .sep-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

.split-separator .sep-diamond {
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 0.85rem;
    background: rgba(197, 160, 40, 0.08);
    animation: sepPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes sepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197, 160, 40, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(197, 160, 40, 0); }
}

/* Right: Promo Splide (flex: 1) */
.top-hero-split .splide-sidebar {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.top-hero-split .splide-sidebar .splide,
.top-hero-split .splide-sidebar .splide__track,
.top-hero-split .splide-sidebar .splide__list {
    height: 100% !important;
}

.top-hero-split .splide-sidebar .splide__slide {
    height: 100% !important;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.top-hero-split .splide-sidebar .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.top-hero-split .splide-sidebar .splide__slide:hover img {
    transform: scale(1.05);
}

.top-hero-split .splide-sidebar .splide__slide .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 17, 33, 0.1) 0%,
        rgba(11, 36, 71, 0.3) 50%,
        rgba(6, 17, 33, 0.8) 100%
    );
    z-index: 1;
}

.top-hero-split .splide-sidebar .splide__slide .slide-caption {
    position: absolute;
    bottom: 20px;
    right: 10px;
    left: 10px;
    z-index: 2;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    text-align: center;
}

.top-hero-split .splide-sidebar .splide__slide .slide-caption h3 {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 3px;
    color: var(--color-accent);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.top-hero-split .splide-sidebar .splide__slide .slide-caption p {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.8;
}

/* Splide arrows for sidebar */
.top-hero-split .splide-sidebar .splide__arrow {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    width: 34px;
    height: 34px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-hero-split .splide-sidebar:hover .splide__arrow {
    opacity: 1;
}

.top-hero-split .splide-sidebar .splide__arrow svg {
    fill: #fff;
}

/* Splide pagination dots (shared) */
.top-hero-split .splide__pagination {
    bottom: 6px;
}

.top-hero-split .splide__pagination__page {
    background: rgba(255,255,255,0.35);
    border: 1.5px solid rgba(255,255,255,0.5);
    width: 8px;
    height: 8px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.top-hero-split .splide__pagination__page.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.3);
}

/* ================== Top News Slider (Hero News) ================== */
/* ================== News Grid ================== */
.main-content-area {
    max-width: 1280px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.news-list-rows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.news-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer;
    display: block;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-meta i { color: var(--color-accent); }

.news-heading {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-primary);
    line-height: 1.5;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.news-readmore:hover {
    color: var(--color-accent);
    gap: 14px;
}

.news-cta {
    text-align: center;
    margin-top: 55px;
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 16px 45px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-all-news:hover {
    background: var(--color-primary);
    color: #fff;
    gap: 18px;
}

.no-content-block {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.no-content-block i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.3;
}

/* ================== News Cards Section (مصفوفة أخبار مصغرة) ================== */
.news-cards-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 40px;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(11, 36, 71, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11, 36, 71, 0.1);
}

.news-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

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

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

.news-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

.news-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.news-card-meta i {
    color: var(--color-accent);
    margin-left: 4px;
}

.news-card-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.news-card-link:hover {
    color: var(--color-primary);
    gap: 10px;
}

/* LTR adjustments */
body.ltr-mode .news-card-badge {
    right: auto;
    left: 10px;
}

/* ================== CTA Section ================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3c6e 50%, #0d2d54 100%);
    padding: 100px 40px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(197, 160, 40, 0.05);
    border: 1px solid rgba(197, 160, 40, 0.1);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(197, 160, 40, 0.15);
    border: 2px solid rgba(197, 160, 40, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-accent);
    margin: 0 auto 30px;
}

.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin: 0 0 40px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(197, 160, 40, 0.3);
}

.cta-btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(197, 160, 40, 0.45);
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.4);
    transition: var(--transition-smooth);
}

.cta-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ================== Image Modal ================== */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.image-modal-close {
    position: absolute;
    top: 25px;
    left: 30px;
    color: rgba(255,255,255,0.7);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.image-modal-close:hover { color: #fff; }

.image-modal-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform 0.15s ease;
    will-change: transform;
}

.image-modal-content.dragging {
    cursor: grabbing;
    transition: none;
}

.image-modal {
    padding: 24px;
}

.image-modal-close {
    right: 24px;
    left: auto;
}

.image-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.02), rgba(0,0,0,0.88));
    pointer-events: none;
}

.main-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 80px 0 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 60px;
    /* margin-bottom: 60px; */
}

.footer-section h3 {
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 2px;
    background: var(--color-accent);
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

/* ================== News Ticker (duplicate removed — correct block at line 517) ================== */

/* ================== Responsive ================== */
/* ── Base responsive tweaks (≤1200px) ──
   Full mobile responsiveness is handled by mobile-responsive.css
   which is loaded after this file. ── */
@media (max-width: 1200px) {
    .stats-container { padding: 0 20px; }
    .stat-item { padding: 0 30px; }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .stats-container { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }
    .stat-item { padding: 15px 20px; max-width: none; }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .news-list-rows { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}


/* ================== Single Post (post.php) ================== */
.post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-color: var(--color-primary);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.post-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 36, 71, 0.95) 0%, rgba(11, 36, 71, 0.4) 60%, transparent 100%);
    z-index: 2;
}

.post-hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px 60px;
    width: 100%;
}

.post-hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
    max-width: 900px;
}

.post-hero-meta {
    display: flex;
    gap: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
}

.post-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.post-body-container {
    max-width: 900px;
    margin: -50px auto 80px;
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 10;
}

.post-article-content {
    color: var(--color-text-dark);
    line-height: 2;
    font-size: 1.15rem;
}

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

/* Modern Post Gallery */
.post-gallery-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.modern-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
}

.modern-gallery-grid.one-image {
    grid-template-columns: 1fr;
}

.modern-gallery-grid.two-images {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

/* Modern Post Gallery Slider & Thumbnails */
.post-hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 5;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
    pointer-events: auto;
}

.slider-controls button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.post-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.thumb-item {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 36, 71, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    color: #fff;
    font-size: 1.2rem;
}

.thumb-item:hover .thumb-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .post-thumbnails-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 576px) {
    .post-thumbnails-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================== Posts List (posts.php) ================== */
.page-header {
    background: var(--color-primary);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: url('../images/pattern.png'); If you have a pattern */
    opacity: 0.1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 2;
}

.posts-filter-bar {
    background: #fff;
    padding: 20px 40px;
    margin: -30px auto 40px;
    max-width: 1280px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 20;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.pagination-item:hover, .pagination-item.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .post-hero { height: 45vh; }
    .post-hero-title { font-size: 1.8rem; }
    .post-body-container { padding: 30px; margin: -30px 15px 60px; }
    .post-hero-content { padding: 0 20px 40px; }
    .page-header h1 { font-size: 2.2rem; }
}

/* ================== Masonry Gallery ================== */
.masonry-gallery {
    columns: 4;
    column-gap: 25px;
    padding: 40px 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 36, 71, 0.9) 0%, transparent 100%);
    padding: 30px 20px 15px;
    color: #fff;
    opacity: 0;
    transition: var(--transition-fast);
}

.masonry-item:hover .masonry-item-info {
    opacity: 1;
}

.masonry-item-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 1200px) { .masonry-gallery { columns: 3; } }
@media (max-width: 768px) { .masonry-gallery { columns: 2; } }
@media (max-width: 480px) { .masonry-gallery { columns: 1; } }

/* ================== Vertical Org Tree ================== */
.vertical-tree {
    max-width: 800px;
    margin: 0 auto;
}

.tree-node {
    position: relative;
    padding-right: 40px;
    margin-bottom: 20px;
}

.tree-node::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: -20px;
    width: 2px;
    background: #e1e8f0;
}

.tree-node:last-child::before {
    bottom: auto;
    height: 30px;
}

.tree-card {
    background: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    border: 1px solid #eef2f8;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.tree-card:hover {
    border-color: var(--color-accent);
    transform: translateX(-5px);
    box-shadow: var(--shadow-medium);
}

.tree-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(11, 36, 71, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.tree-card-info h5 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 800;
}

.tree-card-info p {
    margin: 3px 0 0;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.tree-branch {
    margin-right: 40px;
    padding-top: 10px;
}

/* ================== Information Pages (General) ================== */
.info-section {
    padding: 80px 0;
    max-width: var(--container-max);
    margin: 0 auto;
}

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-medium);
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-item {
    background: #f8faff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eef2f8;
    transition: var(--transition-smooth);
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.info-item h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item h4 i { color: var(--color-accent); }

/* ================== Premium Forms ================== */
.premium-form-container {
    max-width: 800px;
    margin: -60px auto 80px;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: #fcfdfe;
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(197, 160, 40, 0.1);
    background: #fff;
}

.form-control:required:invalid:focus,
.premium-input:required:invalid:focus,
.nav-search-input:required:invalid:focus,
.hero-search-input:required:invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
    background: #fff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-premium {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.btn-premium:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

/* ================== Status Tables ================== */
.status-table-container {
    max-width: var(--container-max);
    margin: 40px auto 80px;
    padding: 0 40px;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.premium-table th {
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 700;
    padding: 15px 25px;
    text-align: right;
    font-size: 0.9rem;
}

.premium-table td {
    background: #fff;
    padding: 20px 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.premium-table td:first-child {
    border-right: 1px solid #f0f0f0;
    border-radius: 0 12px 12px 0;
}

.premium-table td:last-child {
    border-left: 1px solid #f0f0f0;
    border-radius: 12px 0 0 12px;
}

.badge-status {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #f0f4f8;
    color: #5a6b7d;
}

/* ================== Org Chart Refinement ================== */
.org-chart-wrapper {
    background: #f8faff;
    padding: 80px 40px;
    border-radius: 30px;
    margin-bottom: 80px;
    overflow-x: auto;
}

.google-visualization-orgchart-node {
    border: 2px solid var(--color-accent) !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-soft) !important;
    padding: 20px 30px !important;
    font-family: var(--font-main) !important;
    min-width: 180px !important;
}

.google-visualization-orgchart-lineleft { border-left: 2px solid var(--color-primary-light) !important; }
.google-visualization-orgchart-lineright { border-right: 2px solid var(--color-primary-light) !important; }
.google-visualization-orgchart-linebottom { border-bottom: 2px solid var(--color-primary-light) !important; }

/* ================== Premium Search Page ================== */
.search-q-highlight {
    color: var(--color-accent);
    font-weight: 800;
}

.search-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container-premium {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 40px;
}

.search-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

.search-sidebar {
    position: sticky;
    top: 120px;
}

.search-nav-card, .search-again-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.search-nav-card h3, .search-again-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 800;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.search-jump-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-jump-nav li {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.search-jump-nav li i {
    width: 20px;
    text-align: center;
    color: var(--color-primary);
    opacity: 0.6;
}

.search-jump-nav li .count {
    margin-right: auto;
    background: #f0f4fb;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.search-jump-nav li:hover {
    background: #f8faff;
    color: var(--color-primary);
}

.search-jump-nav li.active {
    background: var(--color-primary);
    color: #fff;
}

.search-jump-nav li.active i {
    color: var(--color-accent);
    opacity: 1;
}

.search-jump-nav li.active .count {
    background: var(--color-accent);
    color: var(--color-primary);
}

.search-again-form {
    display: flex;
    gap: 10px;
}

.search-again-form input {
    flex: 1;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.search-again-form button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-again-form button:hover { background: var(--color-accent); color: var(--color-primary); }

.group-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 40px 0 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.group-title i { color: var(--color-accent); }

.premium-search-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    display: flex;
    gap: 25px;
}

.premium-search-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-accent);
}

.psc-content { flex: 1; }

.psc-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4fb;
    color: var(--color-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.psc-tag.tag-project { background: #eefdf3; color: #27ae60; }
.psc-tag.tag-ad { background: #fff8e1; color: #f39c12; }

.premium-search-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.premium-search-card h3 a {
    color: var(--color-primary);
    text-decoration: none;
}

.premium-search-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.psc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 18px;
}

.psc-footer span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.psc-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.psc-link:hover { color: var(--color-accent); gap: 12px; }

.v-card .psc-icon {
    width: 60px;
    height: 60px;
    background: #fdf2f2;
    color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.search-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.search-photo-card {
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.search-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 36, 71, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    padding: 20px;
    text-align: center;
}

.search-photo-card:hover .spc-overlay { opacity: 1; }

.no-results-premium {
    text-align: center;
    padding: 100px 40px;
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.no-results-icon {
    font-size: 5rem;
    color: #eee;
    margin-bottom: 25px;
}

.fade-in-search {
    animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 992px) {
    .search-main-layout { grid-template-columns: 1fr; }
    .search-sidebar { position: static; }
    .search-jump-nav { display: flex; overflow-x: auto; padding-bottom: 10px; gap: 10px; }
    .search-jump-nav li { white-space: nowrap; margin-bottom: 0; }
}

/* ================== Footer Styles ================== */
.main-footer {
    background-color: var(--color-primary);
    color: #f1f5f9;
    padding-top: 60px;
    font-family: 'Cairo', sans-serif;
    border-top: 5px solid var(--color-accent);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    /* margin-bottom: 50px; */
}

.footer-section h3 {
    color: var(--color-accent);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.footer-contact li i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(234, 179, 8, 0.4);
}

.footer-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.05);
}

.footer-map-wrapper iframe {
    width: 100%;
    height: 220px;
    display: block;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ================== Language Switcher & LTR Mode ================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.lang-switcher i {
    color: var(--color-accent);
}

.lang-switcher-label {
    font-family: 'Cairo', sans-serif;
    font-size: 1px;
}

.lang-switcher select {
    background: transparent;
    border: none;
    color: #ffffffbb;
    font-family: 'Cairo', sans-serif;
    font-weight: 100;
    cursor: pointer;
    outline: none;
}

.lang-switcher select option {
    background: var(--color-primary);
    color: #fff;
}

/* LTR Mode Adjustments */
.ltr-mode {
    direction: ltr;
    text-align: left;
}

.ltr-mode .nav-list-search > ul {
    justify-content: flex-start;
}

.ltr-mode .banner-brand {
    flex-direction: row;
}

.ltr-mode .banner-text {
    border-right: none;
    padding-right: 0;
    border-left: 2px solid rgba(197, 160, 40, 0.6);
    padding-left: 25px;
}

/* LTR: main slider caption text align left */
body.ltr-mode .alsalam-slider .slider-slide .slide-caption {
    text-align: left;
}

/* ================== Organizational Tree ================== */
.vertical-tree {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.tree-branch {
    position: relative;
    padding-right: 40px; /* Space for the vertical line */
    border-right: 2px solid #e2e8f0;
    margin-right: 20px;
    padding-top: 20px;
}

.tree-node {
    position: relative;
    margin-bottom: 30px;
}

.tree-node::before {
    content: '';
    position: absolute;
    top: 25px;
    right: -40px;
    width: 40px;
    height: 2px;
    background: #e2e8f0;
}

.tree-card {
    background: #fff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    width: fit-content;
    min-width: 300px;
    max-width: 100%;
}

.tree-card:hover {
    transform: translateX(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tree-card-icon {
    width: 45px;
    height: 45px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.tree-card-info h5 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 800;
}

.tree-card-info p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tree Responsive Fix */
@media (max-width: 768px) {
    .tree-branch {
        padding-right: 20px;
        margin-right: 10px;
    }
    
    .tree-node::before {
        width: 20px;
        right: -20px;
    }
    
    .tree-card {
        min-width: auto;
        width: 100%;
    }
}


/* ===== Search ===== */
.nav-search-wrapper {
    flex-shrink: 0;
    width: clamp(140px, 18vw, 260px);
    min-width: 0;
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    flex-direction: row-reverse;
}

.ltr-mode .nav-search-form {
    flex-direction: row;
}

.nav-search-input {
    height: 34px !important; /* تقليص ارتفاع حقل الإدخال ليتناسب مع النحافة الجديدة */
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 0 15px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    outline: none;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, .65);
}

.nav-search-input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, .12);
}

.nav-search-btn {
    border: none;
}

@media (max-width: 1280px) {
    .nav-list-search {
        padding: 0 24px;
        gap: 10px;
    }

    .nav ul li a {
        padding: 20px 16px;
        font-size: 0.95rem;
    }

    .nav-search-wrapper {
        width: clamp(130px, 16vw, 220px);
    }
}

@media (max-width: 1140px) {
    .nav-list-search {
        padding: 0 16px;
        gap: 8px;
    }

    .nav ul li a {
        padding: 18px 11px;
        font-size: 0.88rem;
    }

    .nav-search-wrapper {
        width: clamp(120px, 14vw, 190px);
    }

    .nav-search-input {
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .nav-search-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
/* 🚨 حجب حديدي نهائي: يمنع تكرار شريط التبويبات المكتبي على الموبايل نهائياً */
@media (max-width: 1024px) {
    /* استهدفنا كل الاحتمالات والمسميات لشريط التبويبات المكتبي لضمان حذفه */
    .nav-list-search, 
    .nav-list-search ul, 
    #mainNav .nav-list-search,
    .desktop-nav,
    .nav-menu { 
        display: none !important; 
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* تأكيد إظهار زر البرجر وعناصر الموبايل فقط */
    .mobile-controls, 
    .nav-toggle { 
        display: flex !important; 
    }
}
