/* ==========================================================================
   Base & Variables
   ========================================================================== */
   :root {
    /* Colors */
    --clr-gold: #D4AF37;
    --clr-gold-light: #F3E5AB;
    --clr-gold-hover: #B5952F;
    --clr-gold-transparent: rgba(212, 175, 55, 0.15);
    
    --clr-green-dark: #081C15;
    --clr-green-main: #1B4332;
    --clr-green-light: #2D6A4F;
    
    --clr-bg: #F7F5EE;
    --clr-surface: #FFFFFF;
    
    --clr-text-main: #1A1A1A;
    --clr-text-muted: #6B7280;
    --clr-text-light: #F9FAFB;
    
    --clr-success: #10B981;
    --clr-success-bg: #D1FAE5;
    --clr-warning: #F59E0B;
    --clr-warning-bg: #FEF3C7;
    --clr-blue: #3B82F6;
    
    /* Typography */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(8, 28, 21, 0.05);
    --shadow-md: 0 4px 12px rgba(8, 28, 21, 0.08);
    --shadow-lg: 0 12px 24px rgba(8, 28, 21, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-main: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    /* Islamic Geometric Pattern Background */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C5A059' stroke-width='0.5' opacity='0.13'%3E%3C!-- Outer square frame --%3E%3Crect x='2' y='2' width='76' height='76' rx='1'/%3E%3C!-- Inner rotated square (diamond) --%3E%3Cpolygon points='40,4 76,40 40,76 4,40'/%3E%3C!-- 8-pointed star --%3E%3Cpolygon points='40,14 45,31 62,27 50,40 62,53 45,49 40,66 35,49 18,53 30,40 18,27 35,31'/%3E%3C!-- Center cross lines --%3E%3Cline x1='40' y1='2' x2='40' y2='78'/%3E%3Cline x1='2' y1='40' x2='78' y2='40'/%3E%3C!-- Diagonal lines --%3E%3Cline x1='4' y1='4' x2='76' y2='76'/%3E%3Cline x1='76' y1='4' x2='4' y2='76'/%3E%3C!-- Corner ornaments --%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3Ccircle cx='78' cy='2' r='2'/%3E%3Ccircle cx='2' cy='78' r='2'/%3E%3Ccircle cx='78' cy='78' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 80px 80px;
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    word-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.relative {
    position: relative;
}

.text-gold {
    color: var(--clr-gold);
}

.text-blue {
    color: var(--clr-blue);
}

.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 1.5rem !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-main);
    border: none;
    outline: none;
}

.btn i {
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--clr-green-main);
    color: var(--clr-text-light);
}

.btn-primary:hover {
    background-color: var(--clr-green-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
}

.btn-outline:hover {
    background-color: var(--clr-gold);
    color: var(--clr-green-dark);
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
}

.btn-outline-gold:hover {
    background-color: var(--clr-gold);
    color: var(--clr-green-dark);
}

.btn-light {
    background-color: var(--clr-bg);
    color: var(--clr-green-dark);
    border: 1px solid #E5E7EB;
}

.btn-light:hover {
    background-color: #E5E7EB;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
}

.btn-block {
    width: 100%;
    margin-top: auto;
}

/* Spacing Utilities */
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }
.pt-12 { padding-top: 3rem; }
.pb-12 { padding-bottom: 3rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-main);
}

.header.scrolled {
    position: fixed;
    background-color: var(--clr-green-dark);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--clr-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    color: var(--clr-gold);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--clr-surface);
    min-width: 120px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    z-index: 100;
    overflow: hidden;
    padding: 8px 0;
}

.lang-dropdown:hover .lang-dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-content a {
    color: var(--clr-text-main);
    padding: 8px 16px;
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    transition: var(--transition-main);
    text-align: left;
}

.lang-dropdown-content a:hover, .lang-dropdown-content a.active {
    background-color: var(--clr-bg);
    color: var(--clr-green-main);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--clr-text-light);
}

.logo-text {
    text-align: right; /* Since RTL, right alignment looks better next to the icon on the right */
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--clr-gold);
    font-family: var(--font-body);
    display: block;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-main);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: var(--clr-text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-gold);
    transition: var(--transition-main);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--clr-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-gold);
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg,
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 28, 21, 0.4); /* Uniform transparent overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Right side in RTL */
    padding-top: 60px;
}

.hero-text-content {
    max-width: 650px;
    text-align: right;
}

.hero-title {
    font-size: 4rem;
    color: var(--clr-text-light);
    margin-bottom: 20px;
    word-spacing: 0.15em;
    letter-spacing: -0.01em; /* Slight tightening of letters but keep words apart */
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #E5E7EB;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-main);
}

.dot.active {
    background-color: var(--clr-gold);
    width: 24px;
    border-radius: 4px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(8, 28, 21, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: var(--transition-main);
}

.slider-nav:hover {
    background: var(--clr-gold);
    color: var(--clr-green-dark);
    border-color: var(--clr-gold);
}

.slider-nav.prev { right: 20px; }
.slider-nav.next { left: 20px; }

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-wrapper {
    background-color: var(--clr-green-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -60px; /* Replaces transform: translateY(-50%) */
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--clr-text-light);
    flex: 1;
    justify-content: center;
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--clr-green-light);
    transition: var(--transition-main);
}

.stat-item:hover .stat-icon i {
    color: var(--clr-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 1.125rem;
    color: var(--clr-gold);
}

.stat-number {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    display: inline-block;
}

.stat-plus {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--clr-gold);
}

.stat-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Main Grid Layout
   ========================================================================== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 40px; /* Add breathing room after the stats section */
    margin-bottom: 24px;
}

.dashboard-card {
    background-color: var(--clr-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-main);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.25rem;
    color: var(--clr-green-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-card {
    border: 1px solid #F3F4F6;
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition-main);
    background-color: #FAFAFA;
}

.service-card:hover {
    border-color: var(--clr-green-light);
    background-color: var(--clr-surface);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background-color: var(--clr-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-green-main);
    font-size: 1.5rem;
    transition: var(--transition-main);
}

.service-card:hover .service-icon {
    background-color: var(--clr-green-main);
    color: var(--clr-gold);
}

.service-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--clr-green-dark);
}

.service-card p {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Schedule Section
   ========================================================================== */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #F3F4F6;
    border-radius: var(--radius-sm);
    background-color: #FAFAFA;
    transition: var(--transition-main);
}

.schedule-item:hover {
    border-color: #E5E7EB;
    background-color: var(--clr-surface);
}

.schedule-time-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 16px;
    background: var(--clr-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.schedule-info {
    flex: 1;
}

.schedule-info h4 {
    font-size: 1rem;
    color: var(--clr-text-main);
    margin-bottom: 2px;
}

.schedule-info span {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    font-family: var(--font-body);
}

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.status-badge.available {
    background-color: var(--clr-success-bg);
    color: var(--clr-success);
}

.status-badge.busy {
    background-color: var(--clr-warning-bg);
    color: var(--clr-warning);
}

/* ==========================================================================
   Message Section
   ========================================================================== */
.message-section {
    height: 100%;
}

.message-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
}

.message-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.message-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 28, 21, 0.95) 0%, rgba(8, 28, 21, 0.7) 50%, rgba(8, 28, 21, 0.2) 100%);
}

.message-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: var(--clr-text-light);
    text-align: center;
}

.message-content h3 {
    font-size: 1.5rem;
    color: var(--clr-gold);
    margin-bottom: 12px;
}

.message-content p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ==========================================================================
   Lower Grid (Locations & Gallery)
   ========================================================================== */
.lower-grid {
    display: grid;
    grid-template-columns: 1.65fr 1.35fr;
    gap: 24px;
    margin-bottom: 60px;
}

.map-container {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: auto;
    aspect-ratio: 800 / 808;
    background-color: transparent;
}

/* ==========================================================================
   Upgraded Interactive Locations CSS
   ========================================================================== */

/* Counters Above Map */
.locations-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.counter-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-gold-transparent);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.counter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-gold);
}

.counter-card .counter-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--clr-gold);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.counter-card .counter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-green-dark);
    font-family: 'Cairo', sans-serif;
}

/* Filter Tabs */
.locations-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.locations-filter-tabs {
    display: inline-flex;
    background: rgba(8, 28, 21, 0.04);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.filter-tab {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: var(--clr-green-dark);
    color: var(--clr-surface);
    box-shadow: var(--shadow-sm);
}

/* Interactive Layout */
.locations-interactive-layout {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr;
    gap: 30px;
    align-items: start;
}

/* Interactive Map Card */
.map-dashboard-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-gold-transparent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Custom Map Container (Homepage Only) */
.map-container-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 20px 0;
    width: 100%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .map-container-custom {
        min-height: 440px;
    }
}

.map-container-custom .iraq-map-svg {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 460px;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.08));
    transform: scale(0.98);
    transform-origin: center center;
}

/* Iraq SVG Map */
.iraq-map-svg {
    width: 100%;
    height: auto;
    max-height: 580px;
    display: block;
    filter: drop-shadow(0px 8px 24px rgba(0, 0, 0, 0.06));
}

/* Governorate Styles */
.governorate {
    fill: url(#inactive-grad);
    stroke: #E4E0D5;
    stroke-width: 0.8px;
    stroke-linejoin: round;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0px 2px 4px rgba(8, 28, 21, 0.02));
}

/* Inactive Hover */
.governorate:not(.active-gov):hover {
    fill: #F0EDE2;
    stroke: #D0CAB8;
}

/* Active Governorates */
.governorate.active-gov {
    fill: url(#gold-ivory-grad);
    stroke: #D3C9B0;
    stroke-width: 1.2px;
    cursor: pointer;
    filter: drop-shadow(0px 4px 8px rgba(8, 28, 21, 0.05));
}

.governorate.active-gov:hover {
    fill: url(#gold-ivory-active-grad);
    stroke: #C5A059;
    stroke-width: 1.6px;
    filter: drop-shadow(0px 6px 14px rgba(197, 160, 89, 0.18));
}

.governorate.active-gov.highlighted {
    fill: url(#gold-ivory-active-grad);
    stroke: #C5A059;
    stroke-width: 2px;
    filter: drop-shadow(0px 8px 20px rgba(197, 160, 89, 0.28));
}

/* Map Markers */
.map-marker {
    cursor: pointer;
    outline: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    transform-box: fill-box;
}

.map-marker:hover {
    transform: scale(1.2);
}

.map-marker.active {
    transform: scale(1.2);
}

.map-marker .marker-pulse {
    transform-origin: center;
    animation: none; /* No looping pulse */
    opacity: 0.35;
    fill: none;
    stroke: #C5A059;
    stroke-width: 1px;
    r: 12px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
}

.map-marker:hover .marker-pulse,
.map-marker.active .marker-pulse,
.map-marker.hovered .marker-pulse {
    opacity: 0.8;
    r: 14px;
    stroke-width: 1.5px;
    filter: drop-shadow(0px 0px 4px rgba(197, 160, 89, 0.6));
}

.map-marker .marker-dot {
    fill: #FAF8F3;
    stroke: #C5A059;
    stroke-width: 1.5px;
    filter: drop-shadow(0px 2px 4px rgba(197, 160, 89, 0.3));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
}

/* Active & Hover Marker State */
.map-marker:hover .marker-dot,
.map-marker.active .marker-dot,
.map-marker.hovered .marker-dot {
    fill: #C5A059 !important;
    stroke: #FAF8F3 !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0px 0px 8px rgba(197, 160, 89, 0.8));
    
}

/* Border Crossing Marker (Diamond shape) */
.map-marker.border-marker .marker-dot {
    fill: #C5A059;
    stroke: #FAF8F3;
    stroke-width: 1.5px;
    filter: drop-shadow(0px 2px 4px rgba(197, 160, 89, 0.3));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.map-marker.border-marker:hover .marker-dot,
.map-marker.border-marker.active .marker-dot,
.map-marker.border-marker.hovered .marker-dot {
    fill: #081C15 !important;
    stroke: #C5A059 !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0px 0px 8px rgba(197, 160, 89, 0.8));
}

/* Route Lines & Flow Glow */
.route-bg {
    stroke: rgba(197, 160, 89, 0.2); /* Faint gold trail guide */
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.route-flow {
    stroke: #C5A059;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 8, 24;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: drop-shadow(0px 0px 3px rgba(197, 160, 89, 0.4));
}

/* Active Routes */
.route-bg.active,
.route-flow.active {
    opacity: 1;
}

.route-flow.active {
    animation: flowGoldKey 2.5s linear infinite;
}

@keyframes flowGoldKey {
    to {
        stroke-dashoffset: -96px;
    }
}

/* Details Sidebar / Selected Location Card */
.locations-details-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.selected-location-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-gold-transparent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Cover Image */
.selected-location-card .card-cover-container {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FAF8F2, #F4E6C9);
}

.selected-location-card .card-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, opacity 0.5s ease;
}

.selected-location-card .card-cover-image.img-fade-out {
    opacity: 0;
    transform: scale(1.04);
}

.selected-location-card .card-cover-image.img-fade-in {
    animation: imgFadeIn 0.6s ease-out forwards;
}

@keyframes imgFadeIn {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: scale(1); }
}

.selected-location-card:hover .card-cover-image:not(.img-fade-out) {
    transform: scale(1.05);
}

.selected-location-card .card-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(8, 28, 21, 0.55), rgba(8, 28, 21, 0.1), transparent);
    pointer-events: none;
}

/* Card Body */
.selected-location-card .card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Badges row */
.selected-location-card .badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-luxury {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-luxury.badge-type {
    background: rgba(197, 160, 89, 0.1);
    color: var(--clr-gold);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.badge-luxury.badge-status {
    background: rgba(8, 28, 21, 0.05);
    color: var(--clr-green-main);
    border: 1px solid rgba(8, 28, 21, 0.1);
}

.badge-luxury.badge-status.active-status {
    background: rgba(45, 106, 79, 0.08);
    color: #2D6A4F;
    border: 1px solid rgba(45, 106, 79, 0.15);
}

/* Title */
.selected-location-card .location-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-green-dark);
    font-family: 'Cairo', sans-serif;
    margin: 0;
}

/* Description */
.selected-location-card .location-card-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Services section */
.selected-location-card .services-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.selected-location-card .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-item-badge {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.service-item-badge:hover {
    border-color: var(--clr-gold-transparent);
    background: rgba(197, 160, 89, 0.02);
}

.service-item-badge i {
    color: var(--clr-gold);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.service-item-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-green-dark);
    font-family: 'Cairo', sans-serif;
}

/* Sidebar List */
.sidebar-list-container {
    background: var(--clr-surface);
    border: 1px solid var(--clr-gold-transparent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.sidebar-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-green-dark);
    margin-bottom: 16px;
    font-family: 'Cairo', sans-serif;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 10px;
}

.interactive-locations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

[dir="rtl"] .interactive-locations-list {
    padding-right: 0;
    padding-left: 4px;
}

.interactive-locations-list::-webkit-scrollbar {
    width: 4px;
}

.interactive-locations-list::-webkit-scrollbar-thumb {
    background: var(--clr-gold-transparent);
    border-radius: 4px;
}

.interactive-location-item {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: var(--clr-surface);
    cursor: pointer;
    transition: all 0.3s ease;
}

.markers-group {
}

.map-marker {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.interactive-location-item:hover {
    background: rgba(197, 160, 89, 0.03);
    border-color: rgba(197, 160, 89, 0.15);
    transform: translateY(-2px);
}

.interactive-location-item.active {
    background: rgba(8, 28, 21, 0.03);
    border-color: var(--clr-gold);
    box-shadow: var(--shadow-sm);
}

.interactive-location-item .item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9CA3AF;
    transition: all 0.3s ease;
}

.interactive-location-item.active .item-dot {
    background: var(--clr-gold);
    box-shadow: 0 0 8px var(--clr-gold);
}

.interactive-location-item .item-info {
    flex-grow: 1;
}

.interactive-location-item .item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clr-green-dark);
    margin: 0 0 2px 0;
    font-family: 'Cairo', sans-serif;
}

.interactive-location-item .item-desc {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin: 0;
}

.interactive-location-item .item-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--clr-gold);
    background: rgba(197, 160, 89, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
}

/* Animations for card content switch */
.fade-transition {
    animation: fadeTransitionKey 0.4s ease-out forwards;
}

@keyframes fadeTransitionKey {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(2) {
    grid-column: span 3;
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) {
    grid-column: span 2;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 28, 21, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-main);
}

.gallery-overlay i {
    color: var(--clr-gold);
    font-size: 2rem;
    transform: scale(0.5);
    transition: var(--transition-main);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-green-dark);
    color: var(--clr-text-light);
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--clr-gold);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .message-section {
        grid-column: span 2;
    }
    
    .message-card {
        min-height: 300px;
    }
    
    .lower-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
    
    /* Make the last item span full width to look centered/balanced */
    .gallery-item:nth-child(5) {
        grid-column: span 2;
    }
    
    .stats-wrapper {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
    
    .stat-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav, .lang-switcher {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 75vh;
        min-height: 550px;
    }
    
    .hero-slide img,
    .hero-bg img {
        object-position: top center;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .message-section {
        grid-column: 1;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .stats-wrapper {
        padding: 20px;
        margin-top: -30px;
    }
    
    .stat-item {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding-right: 20px;
    }
}

/* ==========================================================================
   Professional News Section Styles
   ========================================================================== */
.news-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.news-card-pro {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: var(--clr-gold-light);
}
/* ==========================================================================
   Lightbox / Modal Styles
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-main);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--clr-gold);
}

.modal-content-news {
    background: white;
    max-width: 700px;
    width: 90%;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    text-align: right;
    max-height: 90vh;
    overflow-y: auto;
}
.news-card-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-pro:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 28, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card-overlay i {
    color: white;
    font-size: 2rem;
    background: var(--clr-gold);
    border-radius: 50%;
    padding: 10px;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card-pro:hover .news-card-overlay {
    opacity: 1;
}

.news-card-pro:hover .news-card-overlay i {
    transform: scale(1);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-content h4 {
    color: var(--clr-green-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-pro:hover .news-card-content h4 {
    color: var(--clr-gold);
}

.news-card-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.8rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    margin-top: auto;
}

.news-card-footer i {
    color: var(--clr-gold);
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }
    .message-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .message-section {
        grid-column: span 1;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Localization & Mirroring (RTL/LTR Support)
   ========================================================================== */

/* Logical properties are preferred, but we use specific overrides for precision */

/* LTR Specific (English) */
.lang-en {
    direction: ltr;
    text-align: left;
}

.lang-en .hero-text-content,
.lang-en .hero-subtitle,
.lang-en .section-header,
.lang-en .footer,
.lang-en .dashboard-card,
.lang-en .contact-form,
.lang-en .contact-methods,
.lang-en .logo-text,
.lang-en .schedule-table th,
.lang-en .schedule-table td {
    text-align: left;
}

.lang-en .hero-content {
    align-items: flex-start;
}

.lang-en .logo-text {
    text-align: left;
}

.lang-en .main-nav {
    flex-direction: row;
}

.lang-en .lang-dropdown-content {
    left: auto;
    right: 0;
}

.lang-en .lang-dropdown-content a {
    text-align: left;
}

.lang-en .stat-item {
    flex-direction: row;
}

.lang-en .schedule-time-icon {
    margin-left: 0;
    margin-right: 16px;
}

.lang-en .slider-nav.prev {
    right: auto;
    left: 20px;
}

.lang-en .slider-nav.next {
    left: auto;
    right: 20px;
}

.lang-en .slider-nav.prev i {
    transform: rotate(180deg);
}

.lang-en .slider-nav.next i {
    transform: rotate(180deg);
}

/* Mobile Menu Mirroring */
.lang-en .main-nav.active {
    right: auto;
    left: 0;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

/* Specific component fixes for English */
.lang-en .section-title {
    flex-direction: row;
}

.lang-en .section-title span::after {
    right: auto;
    left: 0;
}


/* Responsive adjustments for Locations Interactive Layout */
@media (max-width: 992px) {
    .locations-interactive-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .locations-counters {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Concise Panel and Card (Homepage only) */
.concise-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
}

.selected-location-card.concise-card {
    border-top: 3px solid var(--clr-gold);
    background: linear-gradient(145deg, var(--clr-surface) 0%, #FCFAF6 100%);
    box-shadow: 0 8px 24px rgba(8, 28, 21, 0.04);
}

.selected-location-card.concise-card .card-body {
    padding: 14px 18px;
    gap: 8px;
}

.selected-location-card.concise-card .badges-row {
    gap: 6px;
    margin-bottom: 2px;
}

.selected-location-card.concise-card .badge-luxury {
    padding: 3px 8px;
    font-size: 0.7rem;
}

.selected-location-card.concise-card .location-card-title {
    font-size: 1.15rem;
    color: var(--clr-green-dark);
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    padding-bottom: 6px;
}

.selected-location-card.concise-card .location-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   PREMIUM ENHANCEMENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-left {
    transform: translateX(40px);
}

.reveal.reveal-right {
    transform: translateX(-40px);
}

.reveal.reveal-scale {
    transform: scale(0.92);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Staggered delay classes */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   2. Animated Gradient Mesh Backgrounds
   -------------------------------------------------------------------------- */
.gradient-mesh-bg {
    position: relative;
    isolation: isolate;
}

.gradient-mesh-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(27, 67, 50, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    animation: meshMove 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes meshMove {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
    33%  { background-position: 30% 20%, 70% 80%, 60% 40%; }
    66%  { background-position: 10% 60%, 90% 30%, 40% 70%; }
    100% { background-position: 50% 100%, 50% 0%, 50% 50%; }
}

.gradient-mesh-bg > * {
    position: relative;
    z-index: 1;
}

/* Subtle section divider glow */
.section-glow {
    position: relative;
}

.section-glow::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   3. Glassmorphism Cards
   -------------------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.12) !important;
    box-shadow:
        0 8px 32px rgba(8, 28, 21, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow:
        0 16px 48px rgba(8, 28, 21, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(212, 175, 55, 0.15) !important;
    transform: translateY(-4px);
}

/* Stats wrapper glassmorphism */
.stats-wrapper {
    background: rgba(8, 28, 21, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

/* --------------------------------------------------------------------------
   4. Typewriter Cursor
   -------------------------------------------------------------------------- */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--clr-gold);
    vertical-align: text-bottom;
    margin-right: 4px;
    animation: cursorBlink 0.8s steps(1) infinite;
    border-radius: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Hero title typewriter wrapper */
.hero-title .typewriter-target {
    display: inline;
}

/* --------------------------------------------------------------------------
   5. Back-to-Top Button with Progress Ring
   -------------------------------------------------------------------------- */
#back-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#back-to-top svg.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}

#back-to-top .progress-ring__bg {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 3;
}

#back-to-top .progress-ring__fill {
    fill: none;
    stroke: var(--clr-gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 138.2; /* 2π × r=22 */
    stroke-dashoffset: 138.2;
    transition: stroke-dashoffset 0.1s linear;
}

#back-to-top .btt-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--clr-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-gold);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(8, 28, 21, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover .btt-icon {
    background: var(--clr-gold);
    color: var(--clr-green-dark);
    transform: scale(1.08);
}

/* RTL: position on left side */
[dir="rtl"] #back-to-top {
    left: 32px;
    right: auto;
}

/* --------------------------------------------------------------------------
   6. Shimmer effect on section titles
   -------------------------------------------------------------------------- */
.shimmer-title {
    background: linear-gradient(
        90deg,
        var(--clr-green-dark) 0%,
        var(--clr-green-dark) 40%,
        var(--clr-gold) 50%,
        var(--clr-green-dark) 60%,
        var(--clr-green-dark) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* --------------------------------------------------------------------------
   7. Hover Lift on Service & Schedule Cards
   -------------------------------------------------------------------------- */
.service-card,
.schedule-item {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease !important;
}

.service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.12) !important;
}

.schedule-item:hover {
    transform: translateX(-4px) !important;
    border-color: var(--clr-gold-transparent) !important;
    box-shadow: 4px 0 0 0 var(--clr-gold) inset !important;
}

[dir="rtl"] .schedule-item:hover {
    transform: translateX(4px) !important;
    box-shadow: -4px 0 0 0 var(--clr-gold) inset !important;
}

/* ==========================================================================
   Islamic Geometric Background — Depth Layers
   ========================================================================== */

/* Warm gradient overlay that blends the pattern with the design palette */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%,  rgba(212, 175, 55, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 60% 70% at 85% 80%,  rgba(27, 67, 50, 0.05)   0%, transparent 65%),
        radial-gradient(ellipse 90% 90% at 50% 50%,  rgba(247, 245, 238, 0.35) 0%, transparent 80%);
    animation: bgPulse 18s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0%   { opacity: 0.75; }
    50%  { opacity: 1;    }
    100% { opacity: 0.85; }
}

/* Cards pop on the textured background with slightly more definition */
.dashboard-card,
.service-card,
.schedule-item,
.news-card-pro,
.selected-location-card,
.counter-card {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow:
        0 2px 8px rgba(8, 28, 21, 0.07),
        0 0 0 1px rgba(212, 175, 55, 0.07) !important;
}

/* Glass-card effect still overrides with more transparency */
.glass-card {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(18px) saturate(190%);
    -webkit-backdrop-filter: blur(18px) saturate(190%);
}

/* Stats bar stays solid to anchor the design */
.stats-wrapper {
    background: rgba(8, 28, 21, 0.97) !important;
}

/* ==========================================================================
   Splash Screen Triumphant Design
   ========================================================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1B4332 0%, #081C15 100%);
    z-index: 999999; /* Must cover header and all page overlays */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1),
                transform 0.8s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0.8s;
}

.splash-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.15'%3E%3Crect x='2' y='2' width='76' height='76' rx='1'/%3E%3Cpolygon points='40,4 76,40 40,76 4,40'/%3E%3Cpolygon points='40,14 45,31 62,27 50,40 62,53 45,49 40,66 35,49 18,53 30,40 18,27 35,31'/%3E%3Cline x1='40' y1='2' x2='40' y2='78'/%3E%3Cline x1='2' y1='40' x2='78' y2='40'/%3E%3Cline x1='4' y1='4' x2='76' y2='76'/%3E%3Cline x1='76' y1='4' x2='4' y2='76'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3Ccircle cx='78' cy='2' r='2'/%3E%3Ccircle cx='2' cy='78' r='2'/%3E%3Ccircle cx='78' cy='78' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 80px 80px;
    opacity: 0.06;
    pointer-events: none;
    animation: splashPatternZoom 30s ease-in-out infinite alternate;
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 600px;
    padding: 20px;
}

.splash-logo-container {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.splash-logo-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.45) 0%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
    animation: splashGlowPulse 4s ease-in-out infinite alternate;
}

.splash-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    transform: scale(0.65);
    opacity: 0;
    filter: blur(10px);
    animation: splashLogoEntrance 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-text-content {
    text-align: center;
    margin-bottom: 35px;
}

.splash-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: splashFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.splash-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-gold);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: splashFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.splash-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px auto;
    opacity: 0;
    transform: translateY(20px);
    animation: splashFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
    max-width: 250px;
}

.splash-divider .divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-gold) 50%, transparent);
    width: 60px;
    display: block;
    transform-origin: center;
    transform: scaleX(0);
    animation: splashLineExpand 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.splash-divider .divider-icon {
    color: var(--clr-gold);
    font-size: 1.15rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.splash-slogan {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #F3F4F6;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: splashFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.splash-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 240px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: splashFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.splash-loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.splash-loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
    border-radius: var(--radius-pill);
    box-shadow: 0 0 8px var(--clr-gold);
    width: 0;
    animation: splashProgressFill 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-loader-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Splash Screen Exit classes */
.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(8px);
    pointer-events: none;
    visibility: hidden;
}

/* ==========================================================================
   Splash Keyframes
   ========================================================================== */
@keyframes splashPatternZoom {
    0% { transform: scale(1); opacity: 0.04; }
    100% { transform: scale(1.08); opacity: 0.07; }
}

@keyframes splashGlowPulse {
    0% { transform: scale(0.8); opacity: 0.35; }
    100% { transform: scale(1.25); opacity: 0.75; }
}

@keyframes splashLogoEntrance {
    0% { transform: scale(0.6) rotate(-5deg); opacity: 0; filter: blur(12px); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0); }
}

@keyframes splashFadeUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes splashLineExpand {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes splashProgressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@media (max-width: 768px) {
    .splash-title {
        font-size: 1.9rem;
    }
    .splash-logo-container {
        width: 140px;
        height: 140px;
        margin-bottom: 15px;
    }
    .splash-logo {
        height: 110px;
    }
    .splash-slogan {
        font-size: 1.1rem;
    }
}

