﻿/* Custom Arabic Font (Optional - Use web-safe fonts if speed is critical) */
 @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap'); 

:root {
    --primary-color: #0056b3; /* لون أزرق رئيسي */
    --secondary-color: #28a745; /* لون أخضر للـ CTA */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --padding: 50px 0;
}

/* Base Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:Cairo;
}

body {
    font-family: 'Cairo', 'Arial', sans-serif; /* استخدم خط عربي مناسب */
    direction: rtl; /* اتجاه الكتابة من اليمين لليسار */
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--padding);
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-primary {
    background-color: var(--primary-color);
    color: #fff;
}

/* Headings */

h1{
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

 h2, h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}
.bg-primary h1, .bg-primary h2, .bg-primary h3 {
    color: #fff; 
}

/* Buttons and CTAs */
.main-cta-btn, .cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.main-cta-btn:hover, .cta-button:hover {
    background-color: #218838;
}

/* --- Header and Navigation --- */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Mobile Navigation Setup */
.main-nav ul {
    list-style: none;
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 60px; 
    right: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
    padding: 10px 0;
}

.main-nav ul.active {
    display: flex; 
}

.main-nav ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-color);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: block; 
}

/* Hero Section */
.hero-section {
   background: url('images/5.jfif') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); 
}

.hero-section h1, .hero-section p {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}
.hero-section .main-cta-btn {
    position: relative;
    z-index: 2;
}

/* Features/Why Us Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    text-align: center;
}
.feature-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.feature-item h3 {
    color: var(--secondary-color);
}

/* Courses Section */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.course-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

/* Contact Section */
.contact-info {
    text-align: center;
    padding-top: 20px;
}

.map-embed {
    margin-top: 30px;
}
.map-embed iframe {
    border-radius: 8px;
    width: 100%; 
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    padding-bottom: 70px; /* لإفساح المجال لشريط الاتصال الثابت على الموبايل */
}
footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 5px;
}
.copyright-text {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #ccc;
}


/* --- Fixed Call Bar (Mobile Friendly) --- */
.fixed-call-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1000; 
    background-color: var(--secondary-color); /* اللون الأخضر */
    text-align: center;
    padding: 15px 0;
    display: none; /* يتم عرضه فقط على شاشات الموبايل */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.fixed-call-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
    width: 100%;
}

.fixed-call-bar .call-icon {
    font-size: 1.6rem;
    vertical-align: middle;
    margin-left: 10px;
}




/* --- Media Query for Larger Screens (Tablet and Desktop) --- */
@media (min-width: 768px) {
    
    /* Navigation on Desktop */
    .menu-toggle {
        display: none; 
    }
    .main-nav ul {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        width: auto;
        padding: 0;
    }
    .main-nav ul li a {
        padding: 10px 15px;
    }
    .main-nav .cta-button {
        margin-right: 15px;
    }

    /* Hero Section */
    .hero-section {
        height: 60vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }

    /* Features/Why Us Section */
    .features-grid {
        grid-template-columns: repeat(3, 1fr); 
        text-align: right; 
    }

    /* Courses Section */
    .course-list {
        flex-direction: row; 
        justify-content: space-around;
    }
    .course-card {
        flex: 1;
        max-width: 45%;
    }
    
    /* Hide Fixed Call Bar on Desktop */
    .fixed-call-bar {
        display: none;
    }
    
    /* Remove the extra padding from footer on desktop */
    footer {
        padding-bottom: 20px; 
    }
}

/* Show Fixed Call Bar only on Mobile (max-width 767px) */
@media (max-width: 767px) {
    .fixed-call-bar {
        display: block; 
    }
}