/* ================= DESIGN SYSTEM ================= */
:root {
    /* Colors based on RTCC reference */
    --primary-blue: #0B3D75;
    --primary-green: #165d31;
    --secondary-blue: #123F73;
    --accent-gold: #D2A679;
    --bg-light: #F5F5F5;
    --text-dark: #1F3556;
    --text-gray: #6B7280;
    --white: #FFFFFF;
    --orange: #F83C2A;
    
    /* Typography */
    --font-en: 'Montserrat', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    
    /* Layout & Utilities */
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(11, 61, 117, 0.08);
    --shadow-hover: 0 12px 30px rgba(11, 61, 117, 0.15);
}

/* ================= RESET & GLOBALS ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* تطبيق الخطوط بشكل جذري على كامل الموقع والأزرار */
body, button, input, textarea, select {
    font-family: var(--font-en); 
    color: var(--text-dark);
    line-height: 1.6;
}

/* التبديل للخط العربي بسلاسة */
html[dir="rtl"] body, 
html[dir="rtl"] button, 
html[dir="rtl"] input, 
html[dir="rtl"] textarea, 
html[dir="rtl"] select {
    font-family: var(--font-ar);
}

body {
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, a, span {
    overflow-wrap: break-word;
}

.nav-left,
.hero-text,
.about-text,
.projects-content,
.careers-text,
.leadership-content,
.card-content,
.footer-col {
    min-width: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-blue); }
.text-white { color: var(--white); }
.text-primary { color: var(--primary-blue); }
.text-dark { color: var(--text-dark); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ================= TYPOGRAPHY & TITLES ================= */
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.section-title.title-white { color: var(--white); }

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-gold:hover {
    background-color: #3a4019;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(22, 93, 49, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-link {
    color: var(--primary-green);
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}

.btn-link:hover { color: var(--primary-blue); transform: translateX(5px); }
html[dir="rtl"] .btn-link:hover { transform: translateX(-5px); }

/* ================= HEADER: TOP BAR ================= */
.top-bar {
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 13px; 
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-info span {
    margin-inline-end: 30px;
    display: inline-flex;
    align-items: center;
    direction: ltr; 
    font-weight: 500;
}

.top-info i {
    margin-inline-end: 8px;
    color: var(--accent-gold);
}

.top-links {
    display: flex;
    align-items: center;
}

.top-links a {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 4px 16px;
    border-radius: 30px;
    margin-inline-start: 10px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 12px;
}

.top-links a:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.lang-toggle {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 4px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    margin-inline-start: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.lang-toggle:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ================= HEADER: NAVBAR ================= */
.navbar {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 50px; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 26px;
    letter-spacing: 0.5px;
}

.logo img { 
    height: 80px; 
    object-fit: contain; 
}

.nav-menu {
    display: flex;
    gap: 24px; 
    align-items: center;
}

.nav-menu a { 
    color: var(--primary-blue); 
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition); 
}
.nav-menu a:hover { color: var(--primary-green); }

.search-bar {
    border: 1px solid var(--primary-blue); 
    border-radius: 50px; 
    padding: 8px 18px;
    display: flex;
    align-items: center;
    width: 250px;
    background: transparent;
    transition: var(--transition);
}
.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(11, 61, 117, 0.1);
}
.search-bar i { color: var(--primary-blue); font-size: 14px; cursor: pointer; }
.search-bar input {
    border: none;
    outline: none;
    padding-inline-start: 10px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}

.mobile-toggle {
    display: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 10px;
    user-select: none;
}

.search-hidden { display: none !important; }
.search-match { outline: 2px solid rgba(75, 83, 32, 0.28); outline-offset: 4px; }

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ================= HERO SECTION (SWIPER) ================= */
.hero-section {
    position: relative;
    height: 85vh;
}
.heroSwiper { width: 100%; height: 100%; }
.heroSwiper .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide-1 { background-image: url('Hero2.jpg'); }
.hero-slide-2 { background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }
.hero-slide-3 { background-image: url('Hero3.png'); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}
html[dir="rtl"] .hero-overlay {
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero-text {
    max-width: 650px;
    color: var(--primary-blue);
}

.hero-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary-blue);
}

.hero-text p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--text-dark);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: var(--transition);
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 20px !important; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--primary-green); }
.swiper-pagination-bullet { background: var(--white) !important; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--primary-green) !important; opacity: 1; width: 24px; border-radius: 10px; }

/* ================= ABOUT US ================= */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 16px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

html[dir="rtl"] .about-text {
    padding-inline-end: 20px;
}

.about-img img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ================= CORE VALUES ================= */
.core-values {
    background: url('https://images.unsplash.com/photo-1541888081622-1dca37fb2f76?ixlib=rb-4.0.3') center/cover fixed;
    position: relative;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.core-values::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 117, 0.9);
}

.core-values-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.core-logo {
    border: 2px solid var(--accent-gold);
    padding: 14px;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.05);
}

.core-logo img {
    display: block;
    width: 72px;
    height: auto;
    max-width: 100%;
}

.core-values h2 {
    text-align: start;
    line-height: 1.4;
}

.font-light { font-weight: 500; font-size: 24px; }
.gold-text { color: var(--accent-gold); }
.large-text { font-size: 36px; font-weight: 800; display: block; margin: 5px 0; }

/* ================= LEADERSHIP ================= */
.leadership-section {
    background-color: var(--white);
}

.leadership-desc {
    max-width: 760px;
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
}

.leadershipSwiper {
    padding: 5px 8px 58px;
}

.leadership-card {
    height: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.leadership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.leadership-img-wrapper {
    height: 320px;
    overflow: hidden;
}

.leadership-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: transform 0.5s ease;
}

.leadership-card:hover .leadership-img-wrapper img {
    transform: scale(1.05);
}

.leadership-content {
    padding: 30px;
}

.leadership-content h3 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.leadership-content span {
    display: block;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.leadership-content p {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 0;
}

.leadershipSwiper .swiper-pagination {
    bottom: 8px !important;
}

.leadershipSwiper .swiper-button-next,
.leadershipSwiper .swiper-button-prev {
    color: var(--primary-blue) !important;
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow);
}

.leadershipSwiper .swiper-button-next:hover,
.leadershipSwiper .swiper-button-prev:hover {
    background: var(--primary-green);
    color: var(--white) !important;
}

/* ================= WORKING FIELDS ================= */
.fields-desc {
    max-width: 700px;
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 16px;
    font-weight: 500;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card h3 {
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.read-more {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover { color: var(--primary-blue); gap: 12px;}

/* ================= REPORTS BANNER ================= */
.reports-banner {
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3') center/cover fixed;
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.reports-banner .overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 61, 117, 0.85);
}

.reports-banner h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ================= PROJECTS & CAREERS ================= */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.projects-content p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 500;
}

.projects-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.careers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.careers-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #E2E8F0;
    font-weight: 500;
}

.careers-img img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ================= CLIENTS CAROUSEL ================= */
.clients-desc {
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
}

.client-icon {
    font-size: 60px;
    color: #9CA3AF;
    transition: var(--transition);
}

.swiper-slide:hover .client-icon {
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* ================= NEWSLETTER ================= */
.newsletter {
    background-color: var(--bg-light);
    border-top: 1px solid #E5E7EB;
}

.news-form {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 750px;
    margin: 0 auto;
}

.news-form input {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid #D1D5DB;
    border-radius: 50px;
    outline: none;
    font-size: 15px;
    transition: var(--transition);
}

.news-form input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 61, 117, 0.1);
}

.news-form button {
    border-radius: 50px;
    padding: 16px 40px;
    border: none;
    font-size: 16px;
}

/* ================= FOOTER ================= */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo img { height: 45px; }
.footer-logo span { font-size: 24px; font-weight: 800; }

.footer-col h3 {
    color: var(--accent-gold);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
}

.footer-col p, .footer-col ul li {
    color: #CBD5E1;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.twitter-feed li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.twitter-feed i { color: #1DA1F2; margin-top: 4px; }

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr; 
}
html[dir="rtl"] .contact-info li { justify-content: flex-end; }
html[dir="rtl"] .contact-info li span { text-align: right; direction: rtl; } 

.contact-info i { color: var(--accent-gold); width: 16px; text-align: center; }

.map-box {
    background: #E2E8F0;
    height: 150px;
    border-radius: var(--border-radius);
    background-image: url('https://developers.google.com/static/maps/images/landing/hero_maps_static_api.png');
    background-size: cover;
    background-position: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94A3B8;
}

.footer-links a {
    margin-inline-end: 24px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--white); }


/* تنسيق الرقم الضريبي في الفوتر */
.tax-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold); /* يمكنك تغييره إلى var(--primary-green) إذا أردت */
    font-size: 15px;
    font-weight: 700;
    margin-top: -12px; /* لتقليل المسافة بينه وبين اللوجو */
    margin-bottom: 20px;
    direction: ltr; /* لضمان ظهور الأرقام بشكل صحيح دائماً */
}

html[dir="rtl"] .tax-number {
    direction: rtl;
}

.tax-number i {
    font-size: 16px;
}

/* ================= ANIMATIONS ================= */
.reveal {
    opacity: 0;
    visibility: hidden;
}

.reveal-up { transform: translateY(40px); transition: all 700ms ease-out; }
.reveal-left { transform: translateX(40px); transition: all 700ms ease-out; }
.reveal-right { transform: translateX(-40px); transition: all 700ms ease-out; }
.reveal-scale { transform: scale(0.95); transition: all 700ms ease-out; }

html[dir="rtl"] .reveal-left { transform: translateX(-40px); }
html[dir="rtl"] .reveal-right { transform: translateX(40px); }

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0) scale(1);
}

/* ================= RESPONSIVE ================= */
@media(max-width: 1024px) {
    .section-padding { padding: 72px 0; }
    .container { padding: 0 20px; }
    .navbar { position: sticky; }
    .nav-inner { min-height: 74px; }
    .nav-left { gap: 0; }
    .logo img { height: 58px; }
    .logo span { font-size: 21px; }
    .search-container { display: none; }
    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(11, 61, 117, 0.12);
        border-top: 1px solid #eaeaea;
        gap: 8px;
        z-index: 1001;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 12px 8px;
    }
    .mobile-toggle { display: block; }
    .mobile-toggle.active { color: var(--primary-green); }
    .about-grid, .projects-grid, .careers-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-text h1 { font-size: 40px; }
    .core-values-content { flex-direction: column; text-align: center; gap: 20px; }
    .core-values h2 { text-align: center; }
    .leadership-img-wrapper { height: 300px; }
    .reveal {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media(max-width: 768px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 56px 0; }
    .top-info { display: none; }
    .top-bar-inner { justify-content: center; }
    .top-links a,
    .lang-toggle {
        padding: 4px 12px;
        font-size: 11px;
    }
    .hero-section { height: 76vh; min-height: 560px; }
    .hero-text { max-width: 100%; }
    .hero-text h4 { font-size: 15px; }
    .hero-text h1 { font-size: 32px; line-height: 1.25; }
    .hero-text p { font-size: 16px; margin-bottom: 28px; }
    .hero-btns .btn { width: 100%; text-align: center; }
    .section-title { font-size: 26px; }
    .font-light { font-size: 20px; }
    .large-text { font-size: 30px; }
    .cards-grid { grid-template-columns: 1fr; }
    .card-content { padding: 24px; }
    .reports-banner { padding: 72px 0; background-attachment: scroll; }
    .reports-banner h2 { font-size: 30px; letter-spacing: 1px; }
    .leadership-content { padding: 24px; }
    .leadership-content h3 { font-size: 21px; }
    .leadershipSwiper .swiper-button-next,
    .leadershipSwiper .swiper-button-prev { display: none; }
    .news-form { flex-direction: column; }
    .news-form input,
    .news-form button {
        width: 100%;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-links a { margin: 0 10px; }
}

@media(max-width: 480px) {
    .logo img { height: 48px; }
    .logo span { font-size: 18px; }
    .hero-text h1 { font-size: 28px; }
    .hero-text p,
    .about-text p,
    .projects-content p,
    .careers-text p,
    .fields-desc,
    .leadership-desc,
    .clients-desc {
        font-size: 15px;
    }
    .leadership-img-wrapper { height: 260px; }
    .card-img-wrapper { height: 210px; }
}

/* ================= SERVICE MODAL (POPUP) ================= */
.custom-modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(11, 61, 117, 0.85); /* خلفية زرقاء داكنة شفافة */
    z-index: 9999; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    padding: 20px; 
}

.custom-modal.show { 
    display: flex; 
    opacity: 1; 
}

.custom-modal .modal-content { 
    background: var(--white); 
    width: 100%; 
    max-width: 850px; 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    position: relative; 
    max-height: 90vh; 
    overflow-y: auto; 
    transform: translateY(-30px); 
    transition: transform 0.3s ease; 
}

.custom-modal.show .modal-content { 
    transform: translateY(0); 
}

.close-modal { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 28px; 
    font-weight: bold; 
    color: var(--primary-blue); 
    cursor: pointer; 
    z-index: 10; 
    background: rgba(255,255,255,0.9); 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    transition: var(--transition); 
}

html[dir="rtl"] .close-modal { 
    right: auto; 
    left: 20px; 
}

.close-modal:hover { 
    background: var(--orange); 
    color: var(--white); 
}

.custom-modal img { 
    width: 100%; 
    height: 380px; 
    object-fit: cover; 
}

.modal-body-text { 
    padding: 40px; 
}

.modal-body-text h2 { 
    color: var(--primary-blue); 
    margin-bottom: 20px; 
    font-size: 28px; 
    font-weight: 800; 
}

.modal-body-text p { 
    color: var(--text-gray); 
    line-height: 1.8; 
    margin-bottom: 15px; 
    font-size: 16px; 
    font-weight: 500; 
}

@media(max-width: 768px) {
    .custom-modal img { height: 250px; }
    .modal-body-text { padding: 24px; }
    .modal-body-text h2 { font-size: 22px; }
}
/* ================= MAP SECTION ================= */
.location-section {
    background-color: var(--bg-light);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 6px solid var(--white); /* إطار أبيض أنيق يتماشى مع التصميم */
    transition: var(--transition);
}

.map-container:hover {
    box-shadow: var(--shadow-hover);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* التجاوب مع الهواتف */
@media(max-width: 768px) {
    .map-container {
        height: 320px;
        border-width: 4px;
    }
}