/* ========================================================
   ملف التنسيق الشامل (index.css) - نسخة احترافية محسّنة
   ======================================================== */

/* ================================
   إعدادات عامة
================================ */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

/* ================================
   الأقسام العامة
================================ */
.hero-section,
.news-section,
.status-section,
.history-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    min-height: 300px;
}

/* ================================
   الخلفيات
================================ */
.bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.overlay-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.90);
}

.content-layer {
    position: relative;
    z-index: 3;
}

/* ================================
   HERO
================================ */
.hero-title {
    color: #006745;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-subtitle {
    color: #000;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* ================================
   أزرار احترافية (بدون تغيير اللون)
================================ */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 28px;
    background-color: #A5122D;
    color: #FFFFFF;

    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;

    border: 2px solid transparent;
    cursor: pointer;

    transition: 0.25s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* زر ثانوي بنفس الهوية */
.hero-btn.secondary {
    background-color: #A07755;
}

/* ================================
   خط فاصل
================================ */
.section-divider {
    width: 100%;
    height: 3px;
    background-color: #A07755;
}

/* ================================
   شريط الإعلان (مهم جداً)
   - غير ثابت
   - يظهر تحت الهيدر
   - لون رسمي حسب طلبك
================================ */
.announcement-bar {
    position: relative; /* مهم جداً */
    width: 100%;
    background-color: #A07755; /* حسب طلبك */
    padding: 10px 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-item {
    display: none;
    color: #fff;
    font-weight: 700;
    gap: 10px;
    align-items: center;
}

.ad-item.active {
    display: flex;
}

/* ================================
   NEWS
================================ */
.news-title {
    color: #006745;
    font-weight: 900;
    margin-bottom: 30px;
}

.news-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    border: 3px solid #A07755;
    padding: 20px;
    margin: 0 auto;
    max-width: 90%;

    overflow-x: auto;
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
}

/* أزرار التنقل (بدون أنيميشن زائد) */
.nav-btn {
    border: none;
    background: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #A07755;
}

/* ================================
   LOADING
================================ */
.loading-screen {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    z-index: 10;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.2rem;
    font-weight: bold;
    color: #006745;
}

/* ================================
   STATUS
================================ */
.status-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.section-title {
    color: #006745;
    margin-bottom: 30px;
    font-size: 2rem;
}

.status-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #A07755;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* زر الحالة (بدون تغيير اللون) */
.pulse-btn {
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    display: inline-block;
    margin: 15px 0;
    font-size: 1.1rem;
}

.status-active { background-color: #27ae60; }
.status-inactive { background-color: #c0392b; }

/* ================================
   DETAILS BUTTON (تحسين فقط)
================================ */
.details-btn {
    background: #006745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.details-btn:hover {
    background: #004d35;
}

/* ================================
   POPUP
================================ */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;

    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    width: 96%;
    max-width: 400px;
    text-align: center;
}

/* زر الإغلاق (بدون أي تأثيرات) */
.close-btn {
    font-size: 35px;
    cursor: pointer;
    color: hsl(349, 80%, 36%);
    font-weight: 900;
    line-height: 1;
}

/* ================================
   HISTORY
================================ */
.history-section .overlay-layer {
    background: rgba(255, 255, 255, 0.75);
}

.history-title {
    color: #006745;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 25px;
}

.history-text {
    font-size: 1.4rem;
    color: #000;
    font-weight: 800;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

/* ================================
   RESPONSIVE قوي
================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .history-title {
        font-size: 2.2rem;
    }

    .history-text {
        font-size: 1.1rem;
    }

    .news-banner {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
    }

    .nav-btn {
        font-size: 2rem;
    }
}