/* ========== GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Colors */
:root {
    --gold: #d4af37;
    --beige: #f5f1e8;
    --dark: #222;
}

/* ========== HEADER ========== */
header {
    width: 100%;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px; /* ارتفاع ثابت للـ navbar */
    padding: 0 10px; /* المسافة من الجوانب */
}

/* حاوية الشعار */
.logo-container {
    height: 100%; /* تملأ ارتفاع الـ navbar */
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90%; /* الشعار يملأ ارتفاع الحاوية بالكامل */
    width: auto; /* يحافظ على نسبة العرض للارتفاع */
    object-fit: contain; /* للتأكد أنه لا يتشوه */
}



/* Desktop Menu */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar ul li a {
    font-weight: 500;
    transition: 0.3s;
}

.navbar ul li a:hover {
    color: var(--gold);
}

/* ========== HERO SECTION ========== */
.hero {
    height: 90vh;
    background: url('home.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-left: 60px;
    color: white;
}

.hero-content {
    max-width: 500px;
    background: rgba(0,0,0,0.45);
    padding: 25px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.hero a {
    background: var(--gold);
    padding: 12px 25px;
    color: white;
    border-radius: 6px;
    transition: 0.3s;
}

.hero a:hover {
    background: #b8962f;
}

/* ========== SECTIONS ========== */
.section {
    max-width: 1200px;
    padding: 60px 20px;
    margin: auto;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--gold);
}

.section p {
    margin-bottom: 30px;
    color: #444;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--beige);
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin-top: 12px;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

form button {
    background: var(--gold);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
}

/* Footer ALWAYS bottom */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* ========== HAMBURGER MENU MOBILE ========== */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
}

/* القائمة مغلقة افتراضياً على الموبايل */
@media screen and (max-width: 768px) {
    .navbar ul {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        flex-direction: column;
        width: 200px;
        display: none; /* مغلقة افتراضياً */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 6px;
        padding: 10px 0;
    }

    .navbar ul li {
        margin: 10px 0;
        text-align: center;
    }

    .navbar ul.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}




/* ============================= */
/* تعديل ترتيب صفحة الاتصال على الموبايل */
/* ============================= */
@media screen and (max-width: 768px) {
    .contact-container {
        display: flex;
        flex-direction: column;
    }

    #responseMessage {
        order: 0;
        margin-bottom: 15px;
    }

    .section p:first-of-type {
        order: 0;
        margin-bottom: 15px;
    }

    .contact-container .contact-info {
        order: 1;
        margin-bottom: 20px;
    }

    .contact-container form {
        order: 2;
    }
}





/* ========== SLIDER ========== */
.slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    padding-left: 60px;
    color: white;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide .hero-content {
    max-width: 500px;
    background: rgba(0,0,0,0.45);
    padding: 25px;
    border-radius: 10px;
}

.slide .hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.slide .hero-content p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.slide .hero-content a {
    background: var(--gold);
    padding: 12px 25px;
    color: white;
    border-radius: 6px;
    transition: 0.3s;
}

.slide .hero-content a:hover {
    background: #b8962f;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: var(--gold);
}





.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0,0,0,0.45);
    padding: 25px;
    border-radius: 10px;
    max-width: 500px;
}

.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #d4af37;
}












/* ====== مقالات الصفحة الرئيسية عمودية مع صورة ====== */
.main-info-vertical {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.main-article {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--beige);
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 20px;
}

.article-image img {
    width: 300px; /* حجم الصورة */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.article-text h3 {
    color: var(--gold);
    margin-bottom: 15px;
}

.article-text p {
    color: #444;
    line-height: 1.6;
}

/* ====== تنسيق الموبايل ====== */
@media screen and (max-width: 768px) {
    .main-article {
        flex-direction: column;
        text-align: center;
    }

    .article-image img {
        width: 100%;
        max-width: 400px;
    }
}
