/* CSS Variables */
:root {
    --primary-navy: #0b2f52;
    --secondary-gold: #e5b810;
    --whatsapp-green: #25d366;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
}

/* Reset & General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي على الجوال */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(229, 184, 16, 0.3);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contact {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-contact a {
    color: #d1d5db;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-contact a:hover {
    color: var(--secondary-gold);
}

.top-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-social a {
    color: #d1d5db;
    font-size: 1rem;
    transition: 0.3s;
}

.top-social a:hover {
    color: var(--secondary-gold);
    transform: translateY(-2px);
}

/* Header & Navbar */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    font-weight: 800;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--secondary-gold);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-gold);
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    border: 2px solid var(--primary-navy);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-navy);
}

.btn-gold {
    background-color: var(--secondary-gold);
    color: var(--primary-navy);
    padding: 0.7rem 1.6rem;
    border-radius: 25px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.btn-gold:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
    padding: 0.7rem 1.6rem;
    border-radius: 25px;
    border: 2px solid var(--whatsapp-green);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: var(--whatsapp-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #061c33 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--secondary-gold);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    line-height: 1.8;
}

.hero-motto {
    display: inline-block;
    background: rgba(229, 184, 16, 0.15);
    color: var(--secondary-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-gold);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Vision & About Section */
.about-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-text p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-navy);
}

.feature-item i {
    color: var(--secondary-gold);
    font-size: 1.2rem;
}

.about-stats {
    background: linear-gradient(135deg, var(--primary-navy), #0a2540);
    color: var(--white);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
}

.stat-box h4 {
    font-size: 2rem;
    color: var(--secondary-gold);
    font-weight: 800;
}

.stat-box p {
    font-size: 0.95rem;
    color: #d1d5db;
}

/* Message to Parents Section */
.parents-message {
    background: linear-gradient(to right, #ffffff, #f0f4f8);
    border-right: 6px solid var(--secondary-gold);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.parents-message h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parents-message p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Featured Activity Section */
.activity-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(11, 47, 82, 0.08);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: center;
    border: 1px solid #edf2f7;
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary-gold);
    color: var(--primary-navy);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.student-tag {
    display: inline-block;
    background-color: rgba(229, 184, 16, 0.15);
    color: var(--primary-navy);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.activity-details h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.activity-details p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.activity-stats-mini {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.activity-stats-mini div i {
    color: var(--secondary-gold);
    margin-left: 5px;
}

.activity-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-tiktok {
    background-color: #000000;
    color: #ffffff;
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-tiktok:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-outline-whatsapp {
    border: 2px solid var(--whatsapp-green);
    color: var(--whatsapp-green);
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline-whatsapp:hover {
    background-color: var(--whatsapp-green);
    color: #ffffff;
}

/* Courses Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary-navy);
    color: var(--secondary-gold);
    padding: 2rem;
    text-align: center;
    font-size: 2.5rem;
}

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.card-body h3 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 0.8rem;
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Comments / Reviews Section */
.comments-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: 4rem;
}

.comments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.comment-card {
    background-color: var(--light-bg);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-right: 4px solid var(--secondary-gold);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: var(--primary-navy);
}

.stars {
    color: var(--secondary-gold);
    font-size: 0.85rem;
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.add-comment-form h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-navy);
}

/* Call To Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-navy), #061c33);
    color: var(--white);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cta-banner h2 {
    font-size: 2rem;
    color: var(--secondary-gold);
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    color: #d1d5db;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 47, 82, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--primary-navy);
}

.modal-header {
    border-bottom: 2px solid var(--secondary-gold);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: var(--primary-navy);
    font-size: 1.6rem;
}

.lessons-list {
    list-style: none;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-right: 4px solid var(--primary-navy);
}

.lesson-item span {
    font-weight: 500;
}

.lesson-badge {
    background-color: var(--secondary-gold);
    color: var(--primary-navy);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    border-top: 5px solid var(--secondary-gold);
}

.footer-logo {
    height: 55px;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.footer-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

.footer-info a {
    color: var(--secondary-gold);
    display: inline-block;
}

.footer-social {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-social a:hover {
    background-color: var(--secondary-gold);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    left: 25px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.float-whatsapp:hover {
    transform: scale(1.1);
}

/* ========================================================= */
/* 📱 Mobile & Tablet Responsive Optimization (التحسينات الخاصة بالموبايل) */
/* ========================================================= */

@media (max-width: 992px) {
    .container {
        padding: 0 1.2rem;
        margin: 2.5rem auto;
    }

    .hero {
        padding: 3.5rem 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-grid, .comments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .activity-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar {
        padding: 0.6rem 1rem;
    }

    .top-bar-container {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Navbar Mobile */
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .logo-container {
        justify-content: center;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    .navbar .btn-primary {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    /* Hero Mobile */
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Sections Title Mobile */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
    }

    /* Features List Mobile */
    .features-list {
        grid-template-columns: 1fr;
    }

    /* Activity Card Mobile */
    .activity-card {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .activity-details h3 {
        font-size: 1.4rem;
    }

    .activity-stats-mini {
        flex-direction: column;
        gap: 0.5rem;
    }

    .activity-actions {
        flex-direction: column;
    }

    .activity-actions a {
        width: 100%;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 1.2rem;
        margin: 1rem;
    }

    .lesson-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Floating WhatsApp Button Mobile */
    .float-whatsapp {
        width: 48px;
        height: 48px;
        font-size: 25px;
        bottom: 15px;
        left: 15px;
    }
}