/* =========================================
   1. إعدادات عامة (Global Styles)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #89CFF0;      /* بيبي بلو */
    --navy-dark: #0a2342;    /* كحلي غامق جداً */
    --navy-light: #1c4e80;   /* أزرق بترولي */
    --text-color: #2b3d4f;   
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --font-main: 'Roboto', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-light); 
    color: var(--text-color);
    overflow-x: hidden; 
}

/* =========================================
   2. الهيدر والقائمة (Header)
   ========================================= */
.main-header {
    position: fixed; top: 0; width: 100%; padding: 15px 0;
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.container { 
    width: 90%; max-width: 1200px; margin: auto; 
    display: flex; justify-content: space-between; align-items: center; 
}

.logo { 
    color: var(--primary); font-size: 1.8rem; font-weight: 900; 
    text-decoration: none; letter-spacing: 1px; text-transform: uppercase; 
}

.navbar ul { list-style: none; display: flex; gap: 25px; }

.navbar a { 
    color: var(--white); text-decoration: none; font-weight: 500; 
    transition: 0.3s; font-size: 1rem; position: relative;
}

.navbar a:hover, .navbar a.active { color: var(--primary); }

.navbar a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary);
    transition: width 0.3s ease;
}
.navbar a:hover::after, .navbar a.active::after { width: 100%; }

.lang-btn { 
    border: 1px solid var(--primary); padding: 5px 15px; 
    color: var(--white); text-decoration: none; border-radius: 30px; 
    font-size: 0.9rem; margin-left: 20px; transition: 0.3s;
}
.lang-btn:hover { background: var(--primary); color: var(--navy-dark); }

.menu-toggle { 
    color: var(--white); display: none; font-size: 1.5rem; 
    cursor: pointer; margin-left: 15px; 
}

/* =========================================
   3. الصفحة الرئيسية (Home Hero)
   ========================================= */
.hero {
    width: 100%; height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.back-video {
    position: absolute; right: 0; bottom: 0; 
    min-width: 100%; min-height: 100%;
    z-index: -1; object-fit: cover;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 35, 66, 0.4), rgba(10, 35, 66, 0.7));
    z-index: 0;
}

.hero-content {
    z-index: 1; text-align: center; color: #fff; padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 { 
    font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; 
    text-transform: uppercase; letter-spacing: 2px; font-family: var(--font-ar);
}

.hero-content p { 
    font-size: 1.2rem; margin-bottom: 40px; color: #e6f2ff; 
    max-width: 700px; margin-left: auto; margin-right: auto;
}

.cta-button {
    padding: 12px 35px; background: var(--primary); color: var(--navy-dark);
    text-decoration: none; font-weight: bold; text-transform: uppercase;
    border-radius: 50px; transition: 0.3s; display: inline-block;
    border: 2px solid var(--primary);
}
.cta-button.outline { background: transparent; color: #fff; border: 2px solid #fff; margin-left: 15px; }
.cta-button:hover { transform: translateY(-3px); background: #fff; border-color: #fff; }

/* =========================================
   4. الهيدر الداخلي (Page Header)
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
    color: var(--white);
    padding: 160px 0 80px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-header h1 { font-size: 3rem; margin-bottom: 15px; font-family: var(--font-ar); }
.page-header p { opacity: 0.9; font-size: 1.2rem; }

/* =========================================
   5. صفحة المنتجات
   ========================================= */
.products-detailed {
    padding: 80px 0;
    background-color: var(--white);
}

.products-detailed .container {
    display: block !important; 
    width: 90%; max-width: 1100px; margin: 0 auto;
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
    border-bottom: 1px solid #eee;
    padding-bottom: 60px;
}
.product-row:last-child { border-bottom: none; }

.product-row.reverse { flex-direction: row-reverse; }

.prod-image, .prod-text { flex: 1; }

.prod-image img {
    width: 100%; height: 400px; object-fit: cover;
    border-radius: 15px; box-shadow: 0 15px 40px rgba(10, 35, 66, 0.15);
}

.prod-text h2 { font-size: 2.5rem; color: var(--navy-dark); margin-bottom: 20px; }
.prod-text p { line-height: 1.7; color: #555; margin-bottom: 20px; }

.specs-list { list-style: none; margin-bottom: 25px; }
.specs-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--navy-dark); font-weight: 500; }
.specs-list i { color: var(--primary); }

.prod-badge {
    background: #e3f2fd; color: var(--navy-light);
    padding: 5px 15px; border-radius: 20px; 
    font-size: 0.85rem; font-weight: bold; margin-bottom: 15px; display: inline-block;
}

/* =========================================
   6. صفحة من نحن (NEW DESIGN - التصميم الجديد)
   ========================================= */
.about-section { 
    padding: 80px 0; 
}

/* 1. الجزء العلوي (القصة والصورة) */
.about-top-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text-main { flex: 1.2; }

.about-text-main .subtitle {
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.about-text-main p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.about-image-main {
    flex: 1;
    position: relative;
}

.about-image-main img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* بادج الخبرة */
.exp-badge {
    position: absolute;
    bottom: -30px;
    right: -30px; /* في العربي هيتعكس تلقائي */
    background: var(--primary);
    color: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 5px solid #fff;
    min-width: 120px;
}

.exp-badge h3 { font-size: 2.2rem; margin: 0; line-height: 1; }
.exp-badge span { font-size: 0.85rem; }

/* 2. قسم الكروت (المواقع) */
.locations-wrapper {
    background: #f4f7f9;
    padding: 60px 40px;
    border-radius: 30px;
    margin-bottom: 60px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}
.section-header-center h3 { color: var(--navy-dark); font-size: 2rem; margin-bottom: 10px; }

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.loc-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.loc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary);
}

.icon-wrapper {
    width: 70px; height: 70px;
    background: rgba(10, 35, 66, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--navy-dark);
    font-size: 1.8rem;
    transition: 0.3s;
}

.loc-card:hover .icon-wrapper {
    background: var(--primary);
    color: #fff;
}

.loc-card h4 {
    margin-bottom: 15px;
    color: var(--navy-dark);
    font-size: 1.2rem;
}

.loc-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 3. الجزء السفلي (النص الأخير) */
.about-bottom-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.about-bottom-text h3 { color: var(--navy-dark); margin-bottom: 20px; }
.about-bottom-text p { color: #555; line-height: 1.8; margin-bottom: 15px; }

/* Responsive About Page */
@media (max-width: 768px) {
    .about-top-content { flex-direction: column; }
    .exp-badge { right: 0; bottom: -20px; }
    .locations-wrapper { padding: 40px 20px; }
}

/* =========================================
   7. الفوتر (Footer)
   ========================================= */
.main-footer {
    background-color: var(--navy-dark);
    color: #b0c4de;
    padding-top: 60px;
    border-top: 4px solid var(--primary);
}
.footer-container {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col { flex: 1; min-width: 200px; margin-bottom: 30px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; margin-top: 0; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; margin-top: 0;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #b0c4de; text-decoration: none; }
.footer-col a:hover { color: var(--primary); }

.social-links { display: flex; gap: 10px; margin-top: 15px; }

.footer-bottom {
    background: #06182e; text-align: center; padding: 20px;
    margin-top: 40px; font-size: 0.9rem; color: #666;
}

/* =========================================
   8. الموبايل (General Responsive)
   ========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .container { flex-direction: column; }
    
    .navbar {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(10, 35, 66, 0.98); 
        flex-direction: column; align-items: center; padding: 20px 0; display: none;
    }
    .navbar.active { display: flex; }
    .menu-toggle { display: block; align-self: flex-end; margin-right: 20px; }
    .header-actions { align-self: flex-end; display: flex; align-items: center; }
    
    .product-row, .product-row.reverse { flex-direction: column !important; }
    
    .prod-image img { height: 300px; }
    .page-header { clip-path: none; padding-bottom: 50px; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .cta-button { margin: 0 0 10px 0; width: 100%; text-align: center; }
}

/* =========================================
   9. تنسيق سلايدر المنتجات (Product Slider)
   ========================================= */
.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(10, 35, 66, 0.2);
    height: 400px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.slider-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 35, 66, 0.7);
    color: var(--white);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background-color: var(--primary); color: var(--navy-dark); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* =========================================
   10. نافذة تكبير الصورة (Lightbox)
   ========================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; align-items: center;
}

.lightbox-content {
    margin: auto; display: block;
    width: 80%; max-width: 900px; max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute; top: 20px; right: 35px;
    color: #f1f1f1; font-size: 40px; font-weight: bold;
    transition: 0.3s; cursor: pointer;
}
.close-btn:hover { color: var(--primary); }

@keyframes zoomIn { from {transform:scale(0)} to {transform:scale(1)} }

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 50px; font-weight: bold;
    padding: 20px; cursor: pointer; user-select: none;
    transition: 0.3s; z-index: 10001;
}
.lightbox-nav:hover { color: var(--primary); }
.prev-lightbox { left: 20px; }
.next-lightbox { right: 20px; }

@media (max-width: 768px) {
    .lightbox-nav { font-size: 30px; padding: 10px; }
    .prev-lightbox { left: 10px; }
    .next-lightbox { right: 10px; }
}

/* =========================================
   11. صفحة المعرض (Gallery Hover Effect)
   ========================================= */
.gallery-section { padding: 80px 0; background-color: var(--white); }

/* =========================================
   12. قسم الفيديوهات (Video Gallery)
   ========================================= */
/* =========================================
   تعديل شبكة الفيديوهات (3 جنب بعض)
   ========================================= */

/* ===============================
   Video Gallery – FINAL VERSION
   =============================== */

.video-gallery {
    padding: 80px 0;
    background: #f7f9fc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    color: #0a2342;
    margin-bottom: 50px;
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Card */
.video-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(10, 35, 66, 0.1);
    transition: transform 0.3s ease;
    border-bottom: 4px solid #0a2342;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-10px);
}

/* Video Wrapper – الحل السحري */
.video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;   /* 👈 للفيديوهات العمودية */
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Video */
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* 👈 يمنع أي فراغ أو قص */
    display: block;
    background: #000;
}

/* Info */
.video-info {
    padding: 12px 14px;   /* كان 20px */
    text-align: center;
}

.video-info h3 {
    color: #0a2342;
    font-size: 1.6rem;      /* كان 1.2rem */
    margin-bottom: 4px;   /* كان 8px */
    font-weight: 600;
}

.video-info p {
    color: #555;
    font-size: 0.85rem;   /* كان 0.95rem */
    line-height: 1.4;     /* كان 1.6 */
}


/* Responsive */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* =========================================
   13. Modern Gallery Grid
   ========================================= */
.modern-gallery { padding: 50px 20px; background-color: var(--bg-light); padding-bottom: 80px; }

.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

.gallery-tile {
    position: relative; overflow: hidden;
    border-radius: 15px; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 280px; background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-tile:hover img { transform: scale(1.08); }

.tile-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.4));
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: white; opacity: 0; transition: all 0.3s ease;
    transform: translateY(10px); z-index: 10;
}
.gallery-tile:hover .tile-overlay { opacity: 1; transform: translateY(0); }

.tile-overlay i { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); }
.tile-overlay span { 
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase; 
    font-size: 1.6rem; border-bottom: 2px solid var(--primary); padding-bottom: 5px; margin-top: 10px;
}

.play-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; pointer-events: none; transition: 0.3s;
}
.gallery-tile:hover .play-icon { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
.play-icon i { color: var(--white); font-size: 1.5rem; margin-left: 4px; }

.media-container { width: 90%; max-width: 900px; display: flex; justify-content: center; align-items: center; }
.modal-content { max-width: 100%; max-height: 80vh; border-radius: 5px; box-shadow: 0 0 40px rgba(0,0,0,0.6); }

/* =========================================
   14. Gallery Controls
   ========================================= */
.gallery-controls {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; margin: 50px auto 30px; padding: 10px;
}

.filter-btn {
    padding: 10px 35px; background-color: transparent;
    border: 2px solid var(--navy-dark); color: var(--navy-dark);
    font-family: var(--font-main); font-weight: bold; font-size: 1rem;
    border-radius: 50px; cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--navy-dark); color: var(--primary);
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(10, 35, 66, 0.3);
}

/* =========================================
   15. إصلاح كروت المنتجات في الصفحة الرئيسية
   ========================================= */
.services-section { text-align: center; padding: 80px 0; }
.services-section .cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; padding: 0 20px; margin-top: 40px;
}
.services-section .card {
    background: #fff; padding: 40px 30px;
    border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease; border-bottom: 4px solid var(--primary);
    text-align: center;
}
.services-section .card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.services-section .icon-box { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.services-section .card h3 { font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 15px; }

/* =========================================
   16. صفحة التواصل (Contact Page)
   ========================================= */
.contact-section { padding: 80px 0; background-color: var(--white); }
.contact-wrapper { display: flex; justify-content: space-between; gap: 60px; }
.contact-info { flex: 1; }

.info-card {
    display: flex; align-items: flex-start; gap: 20px;
    margin-bottom: 30px; padding: 20px;
    background: var(--bg-light); border-radius: 10px; transition: 0.3s;
}
.info-card:hover {
    transform: translateX(10px); box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: #fff; border-left: 4px solid var(--primary);
}

.info-card .icon {
    width: 50px; height: 50px; background-color: var(--navy-dark);
    color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.info-card h4 { color: var(--navy-dark); margin-bottom: 5px; font-size: 1.1rem; }
.info-card p { color: #666; line-height: 1.5; font-size: 0.95rem; }

.social-icons-contact { margin-top: 40px; display: flex; gap: 15px; }
.social-icons-contact a {
    width: 45px; height: 45px; background: var(--navy-dark);
    color: var(--white); display: flex; align-items: center; justify-content: center;
    border-radius: 50%; text-decoration: none; transition: 0.3s;
}
.social-icons-contact a:hover {
    background: var(--primary); color: var(--navy-dark);
    transform: translateY(-5px);
}

.contact-form-box {
    flex: 1.2; background: #fff; padding: 40px;
    border-radius: 20px; box-shadow: 0 10px 40px rgba(10, 35, 66, 0.1);
}
.contact-form-box h2 { color: var(--navy-dark); margin-bottom: 30px; font-size: 1.8rem; }

.input-group { margin-bottom: 20px; }
.input-group input, .input-group textarea {
    width: 100%; padding: 15px 20px;
    border: 1px solid #ddd; border-radius: 8px;
    background: #f9f9f9; font-family: var(--font-main);
    font-size: 1rem; transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none; border-color: var(--primary);
    background: #fff; box-shadow: 0 0 10px rgba(137, 207, 240, 0.2);
}

/* =========================================
   17. تجميل الخريطة
   ========================================= */
/* الحاوية الكبيرة التي تجمع الخريطتين */
.map-section {
    display: flex;
    gap: 25px; /* المسافة الفاصلة بين الإطارين */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 80px;
    height: 450px;
}

/* الإطار المستقل لكل خريطة */
.map-card {
    flex: 1; /* لجعل الخريطتين متساويتين في الحجم */
    border-radius: 20px; /* زوايا منحنية لكل إطار */
    overflow: hidden;
    border: 4px solid #0a2342; /* لون الإطار (Navy Dark) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* ظل لكل خريطة */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير عند تمرير الماوس فوق أي خريطة */
.map-card:hover {
    transform: translateY(-5px); /* حركة بسيطة للأعلى */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(10%);
    transition: filter 0.5s ease;
}

.map-card:hover iframe {
    filter: grayscale(0%);
}
/* تنسيق العناوين فوق الخرائط (طلبك الجديد) */
        .map-item h3 {
            color: #1a2a3a;
            font-size: 1.4rem;
            margin-bottom: 20px;
            font-family: 'Cairo', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .map-item h3 i { color: #3498db; }

/* التوافق مع الجوال */
@media (max-width: 768px) {
    .map-section {
        flex-direction: column;
        height: auto; /* السماح بارتفاع مرن في الموبايل */
        gap: 30px;
    }
    
    .map-card {
        height: 350px; /* ارتفاع ثابت لكل خريطة في الموبايل */
        width: 100%;
    }
}
/* =========================================
   تنسيق الفيديو الطولي (Vertical Video Hero)
   ========================================= */

/* الحاوية الكبيرة (الشاشة كلها) */
.hero-vertical-wrapper {
    position: relative;
    width: 100%;
    height: 100vh; /* ارتفاع الشاشة بالكامل */
    overflow: hidden;
    display: flex;
    justify-content: center; /* توسيط الفيديو الأمامي */
    align-items: center;
    background: #000; /* خلفية سوداء احتياطي */
}

/* 1. فيديو الخلفية (اللي ورا) */
.bg-video-blur {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; /* يملأ الشاشة بالعافية */
    filter: blur(25px) brightness(0.5); /* تغويش قوي + تغميق 50% */
    transform: scale(1.1); /* تكبير سنة عشان حواف التغويش متظهرش بيضاء */
    z-index: 1;
}

/* طبقة تغميق إضافية (اختياري) */
.overlay-dark {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 35, 66, 0.3); /* لون كحلي شفاف خفيف */
    z-index: 2;
}

/* 2. الفيديو الأمامي (البطل) */
.main-video-vertical {
    position: relative;
    z-index: 3; /* يظهر فوق الخلفية */
    height: 85%; /* طوله 85% من الشاشة */
    width: auto; /* العرض يتظبط أوتوماتيك حسب الطول */
    aspect-ratio: 9/16; /* يحافظ على نسبة الموبايل */
    border-radius: 20px; /* حواف ناعمة */
    box-shadow: 0 20px 60px rgba(0,0,0,0.6); /* ضل قوي يفصله عن الخلفية */
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1); /* برواز خفيف جداً */
}

/* 3. تنسيق الكلام (عشان يظهر فوق الفيديو) */
.hero-vertical-wrapper .hero-content {
    position: absolute;
    z-index: 4; /* أعلى طبقة خالص */
    width: 100%;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9); /* ضل للكلام عشان يقرأ بوضوح */
}

/* تعديل للموبايل: الفيديو يملأ الشاشة عادي */
@media (max-width: 768px) {
    .bg-video-blur { display: none; } /* نخفي الخلفية */
    .overlay-dark { background: rgba(0,0,0,0.4); }
    
    .main-video-vertical {
        position: absolute;
        width: 100%; height: 100%;
        border-radius: 0;
        border: none;
        z-index: 1;
    }
}
/* =========================================
   تنسيق خاص للفيديوهات الطولية في المعرض (Reels Style)
   ========================================= */

/* تنسيق الكارت الطولي */
.video-card.vertical-mode {
    /* شيلنا grid-row: span 2 عشان ميبوظش الصف */
    background: #000; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-card.vertical-mode .video-wrapper {
    height: 500px; /* ارتفاع ثابت وموحد للكل */
    width: 100%;
    position: relative;
}

.video-card.vertical-mode video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* الفيديو يملأ المساحة من غير ما يمط */
}

.video-card.vertical-mode .video-info {
    background: #fff;
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.video-card.vertical-mode .video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--navy-dark);
}

.video-card.vertical-mode .video-info p {
    font-size: 0.9rem;
    color: #666;
}
/* تنسيق الفيديو داخل صفحة المنتج */
.product-row .prod-image video {
    width: 100%;
    max-height: 500px; /* تحديد أقصى ارتفاع */
    border-radius: 15px;
    object-fit: cover;
}
/* تنسيق الفيديو الطولي في صفحة المنتجات */
.product-video-vertical {
    width: 100%;
    max-width: 320px; /* تحديد عرض مشابه لعرض الموبايل */
    height: 550px;    /* ارتفاع مناسب */
    border-radius: 20px;
    object-fit: cover; /* يملأ الحاوية بشكل شيك */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;   /* توسيط في حال كان في حاوية أكبر */
}

/* للموبايل: تقليل الارتفاع شوية */
@media (max-width: 768px) {
    .product-video-vertical {
        max-width: 100%; /* ياخد العرض المتاح كله في الموبايل */
        height: 450px;
    }
}


/* === مهم جداً: للموبايل والتابلت === */
/* عشان في الموبايل يرجعوا تحت بعض وميبقوش مزنوقين */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* =========================================
   تحديثات خاصة بالموبايل فقط (Mobile Fixes)
   ضع هذا الكود في نهاية الملف تماماً
   ========================================= */

@media (max-width: 768px) {

    /* 1. إصلاح الهيدر والقائمة */
    .container {
        width: 95%; /* استغلال مساحة أكبر من الشاشة */
        padding: 0 15px;
    }
    
    .navbar {
        background: rgba(10, 35, 66, 0.98); /* خلفية داكنة للقائمة */
        top: 60px; /* مسافة مناسبة من الأعلى */
    }

    /* 2. إصلاح صفحة تواصل معنا (الصورة الثالثة) */
    /* المشكلة كانت أن الفورم والمعلومات بجانب بعض، هنا نجعلهم تحت بعض */
    .contact-wrapper {
        flex-direction: column; /* ترتيب عمودي */
        gap: 40px;
    }

    .contact-info, 
    .contact-form-box {
        width: 100%; /* عرض كامل */
        flex: none; /* إلغاء التقسيم النسبي */
        padding: 25px; /* تقليل الحواف الداخلية لتناسب الشاشة الصغيرة */
    }

    .contact-form-box {
        order: 1; /* جعل الفورم في الأعلى (اختياري) أو حذفه ليبقى كما هو */
    }
    
    .contact-info {
        order: 2;
    }

    /* 3. إصلاح الخرائط (الصورة الأولى) */
    .map-section {
        flex-direction: column; /* الخرائط تحت بعض */
        height: auto; /* السماح للطول بالتمدد حسب المحتوى */
        gap: 20px;
        margin-bottom: 50px;
    }

    .map-card {
        width: 100%;
        height: 300px; /* ارتفاع ثابت ومناسب للموبايل لكل خريطة */
    }

    /* 4. إصلاح الأزرار والشاشة الرئيسية (الصورة الثانية) */
    .hero-content h1 {
        font-size: 2rem; /* تصغير الخط قليلاً ليناسب العرض */
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-button {
        width: 100%; /* الزر يأخذ العرض كامل */
        display: block;
        margin: 10px 0; /* مسافة بين الأزرار */
        margin-left: 0 !important; /* إلغاء أي هوامش جانبية */
    }

    /* 5. إصلاح الفوتر (الصورة الرابعة) */
    .footer-container {
        flex-direction: column; /* العناصر تحت بعض */
        text-align: center; /* توسيط النص */
        align-items: center;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 40px;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* فاصل خفيف */
        padding-bottom: 20px;
    }
    
    .footer-col:last-child {
        border-bottom: none;
    }
    
    .footer-col h4 {
        display: inline-block; /* لضبط الخط تحت العنوان */
    }

    .social-links {
        justify-content: center; /* توسيط أيقونات السوشيال ميديا */
    }
}