/* الألوان الجديدة والخط */
:root {
    --primary-color: #0d47a1; /* أزرق داكن (ثقة) */
    --secondary-color: #2196f3; /* أزرق فاتح (حيوية) */
    --accent-color: #ff9800; /* لون برتقالي للتأكيد */
    --light-bg: #f4f5f7; /* خلفية رمادية فاتحة ودافئة */
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Almarai', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #ffffff;
    direction: rtl; 
    text-align: right;
}

/* التنسيقات العامة */
h1, h2, h3 { color: var(--primary-color); }
section { padding: 60px 5%; }
a { text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-color); }

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* ---------------------------------- */
/* 1. شريط التنقل (Navbar) */
/* ---------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left .logo {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

.nav-left i {
    font-size: 1.3em;
    color: var(--secondary-color);
}

.nav-center a {
    color: var(--text-light);
    margin: 0 15px;
    padding: 5px 0;
    font-size: 1em;
    font-weight: 400;
    position: relative;
}

.nav-center a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-center a:hover:after {
    width: 100%;
    left: 0;
    background: var(--accent-color);
}

/* CTA Button Styling */
.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* قائمة الهامبرغر */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--primary-color);
    cursor: pointer;
    order: 3;
}

/* ---------------------------------- */
/* 2. قسم البطل (Hero Section) */
/* ---------------------------------- */
.hero-section {
    display: flex;
    align-items: center;
    padding: 80px 5% 60px;
    background: var(--light-bg);
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 55%;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-text .slogan {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: white;
}

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

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.secondary-btn:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.hero-image-container {
    flex: 1;
    text-align: center;
}

.dr-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------- */
/* 3. قسم التخصصات الفرعية (Services Grid) */
/* ---------------------------------- */
.services-section {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-large {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-name {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ---------------------------------- */
/* 4. قسم معلومات إضافية (المنهج والـ CTA) */
/* ---------------------------------- */
.info-section {
    background-color: var(--light-bg);
    padding: 70px 5%;
}

.info-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.info-column {
    flex: 1;
}

.text-info h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.text-info p {
    margin-bottom: 25px;
}

.info-icon {
    color: var(--accent-color);
    margin-left: 10px;
}

.image-interaction {
    flex: 1.2;
    position: relative;
}

.interaction-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.quote-card {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.2);
}

.quote-author {
    font-weight: 700;
    text-align: left;
    margin-top: 10px;
}

.cta-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.details-card {
    padding: 15px;
    background-color: #e3f2fd; /* أزرق فاتح جداً */
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 700;
}

.cta-message {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.cta-full-width {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 15px;
}

.cta-full-width:hover {
    background-color: #e68a00;
    transform: none;
}

.herm-note {
    font-size: 0.9em;
    color: var(--text-light);
}

/* ---------------------------------- */
/* 5. قسم معرض الصور والفيديو (Gallery) */
/* ---------------------------------- */
.gallery-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.gallery-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.gallery-images .gallery-img:nth-child(3) {
    grid-column: span 2; 
    height: 250px;
}


.video-container {
    flex: 1.2;
    text-align: center;
}

.video-container h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.intro-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------- */
/* 6. الفوتر (Footer) */
/* ---------------------------------- */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 5% 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: var(--accent-color);
    font-size: 1.3em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col i {
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a, .footer-col p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-icons a {
    color: white;
    font-size: 1.5em;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 15px 5%;
    font-size: 0.9em;
    background-color: #0b3a80; /* أزرق أغمق قليلاً */
}

/* ---------------------------------- */
/* التوافق مع الشاشات الصغيرة (Responsive) */
/* ---------------------------------- */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .info-columns {
        flex-direction: column;
        gap: 30px;
    }

    .image-interaction, .cta-side {
        order: -1;
    }
    
    .gallery-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    /* قائمة الهامبرغر في الجوال */
    .desktop-cta { display: none; }
    .menu-toggle { display: block; }
    
    .nav-center {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        padding: 10px 0;
        margin-top: 5px;
        order: 4;
    }

    .nav-center a {
        padding: 10px 5%;
        margin: 0;
        text-align: right;
        border-bottom: 1px solid var(--light-bg);
    }
    .nav-center.is-open { display: flex; }
    
    .gallery-images {
        grid-template-columns: 1fr;
    }
    .gallery-images .gallery-img:nth-child(3) {
        grid-column: span 1; 
        height: 180px;
    }
}
.video-container {
    flex: 1.2;
    text-align: center;
}

.video-container h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* حاوية جديدة للتحكم في موضع الزر */
.custom-video-wrapper {
    position: relative; /* مهم لوضع الزر في المنتصف */
    width: 100%;
    border-radius: 8px;
    overflow: hidden; /* لإخفاء أي شيء يخرج عن حدود الفيديو */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.intro-video {
    width: 100%;
    display: block; /* لإزالة أي فراغات أسفل الفيديو */
    cursor: pointer; /* للإشارة إلى أن الفيديو قابل للتفاعل */
}

/* تنسيق زر التشغيل الدائري الكبير */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* لتوسيط الزر تماماً */
    
    /* تصميم الزر */
    background-color: rgba(255, 255, 255, 0.9); /* خلفية بيضاء شبه شفافة */
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.05);
}

/* إخفاء الزر عندما يكون الفيديو قيد التشغيل (سيتم تطبيق هذا الكلاس بواسطة JS) */
.play-button.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* لمنع النقر عليه إذا كان مخفيًا */
}

/* إظهار الزر على الفيديو المتوقف */
.custom-video-wrapper.paused .play-button {
    opacity: 1;
    visibility: visible;
}