/* General Body and Font Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    background: #f0f4f7;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* News Ticker Styles */
.news-ticker {
    background: linear-gradient(90deg, #2E86AB, #A23B72, #F18F01);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticker-content {
    display: inline-block;
    animation: ticker 60s linear infinite;
    padding-right: 100%;
}

.ticker-content span {
    display: inline-block;
    padding: 0 50px;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Header & Navigation Styles */
header {
    background-color: #fff;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-left: 10px;
}

.logo-text h1 {
    font-family: 'Amiri', serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #2E86AB;
    margin: 0;
}

.logo-text span {
    font-size: 0.9em;
    color: #777;
    display: block;
}

nav .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

nav .nav-menu li {
    margin: 0 15px;
    position: relative;
}

nav .nav-menu a {
    text-decoration: none;
    color: #555;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px 0;
    display: inline-block;
}

nav .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #A23B72;
    bottom: -5px;
    right: 0;
    transition: width 0.3s;
}

nav .nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu (Desktop) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 160px;
    border-radius: 5px;
    top: 100%;
    right: 0;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: #2E86AB;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-content h1 { font-size: 3.5em; margin-bottom: 20px; }

/* Sections Styling */
.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #2E86AB;
}

.section-title::after {
    content: '';
    display: block; width: 80px; height: 4px;
    background-color: #A23B72; margin: 10px auto;
}

.intro-section { padding: 80px 0; background: #fff; }
.intro-content { display: flex; align-items: center; gap: 40px; }
.intro-text { flex: 2; }
.intro-image { flex: 1; }
.intro-image img { max-width: 100%; border-radius: 15px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary { background: #A23B72; color: white; }
.btn-cta { background: white; color: #A23B72; padding: 15px 40px; }

/* Footer */
footer { background: #2c3e50; color: white; padding: 40px 20px; text-align: center; }
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; }

/* =========================================== */
/* Responsive Design (Mobile Fixes)            */
/* =========================================== */

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        position: relative; /* لضمان عدم تداخل القائمة المنسدلة */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
        top: 25px;
    }

    /* إخفاء القائمة افتراضياً */
    nav {
        display: none; 
        width: 100%;
    }

    /* إظهار القائمة عند إضافة كلاس active عبر JS */
    nav.active-nav, .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        background-color: #34495e;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;
        padding: 20px 0;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        color: #fff;
        font-size: 1.2em;
        width: 100%;
    }

    /* تنسيق القائمة المنسدلة على الجوال */
    .dropdown:hover .dropdown-content {
        display: none; /* إيقاف التفاعل عند التمرير بالماوس */
    }

    .dropdown.active .dropdown-content {
        display: flex; /* تفعيل الظهور عند النقر فقط */
        position: static;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        width: 100%;
    }

    .dropdown-content a {
        color: #f0f4f7 !important;
        background-color: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .intro-content { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.2em; }
}