﻿/* استيراد خط كايرو */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* إعدادات عامة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(to bottom right, #f8f9fa, #f0e6ff);
    color: #222;
    line-height: 1.7;
    direction: rtl;
}

/* الحاوية الرئيسية */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* الهيدر */
header {
    background: #6a0dad; /* بنفسجي غامق */
    color: white;
    text-align: center;
    padding: 40px 20px 30px;
    border-bottom: 4px solid #4b0082; /* بنفسجي أغمق */
}

    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1.1rem;
        margin: 10px 0;
        color: #d1b3ff; /* بنفسجي فاتح */
    }

/* التنقل */
nav {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    nav a {
        text-decoration: none;
        color: white;
        font-weight: bold;
        padding: 8px 14px;
    }


/* العناوين */
h2 {
    margin: 25px 0 15px;
    color: #4b0082; /* بنفسجي داكن */
    border-right: 4px solid #6a0dad; /* بنفسجي غامق */
    padding-right: 10px;
}

section {
    margin-bottom: 40px;
}

/* القوائم */
.services-list,
.news-list {
    list-style: none;
    padding-right: 20px;
}

    .services-list li,
    .news-list li {
        margin-bottom: 10px;
        position: relative;
        padding-right: 20px;
    }

        .services-list li::before,
        .news-list li::before {
            content: "✔";
            color: #6a0dad; /* بنفسجي غامق */
            position: absolute;
            right: 0;
        }

/* بطاقات */
.card {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-right: 5px solid #6a0dad; /* بنفسجي غامق */
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(106, 13, 173, 0.15);
    transition: transform 0.3s ease;
}

    .card h3 {
        margin-bottom: 10px;
        color: #4b0082; /* بنفسجي داكن */
        font-size: 1.1rem;
    }

    .card p {
        margin-bottom: 10px;
        color: #333;
        line-height: 1.8;
    }

    .card:hover {
        transform: translateY(-5px);
    }

/* نموذج الشكوى */
.complaint-form {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #ddd;
    border-right: 5px solid #6a0dad; /* بنفسجي غامق */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(106, 13, 173, 0.15);
    max-width: 700px;
    margin-top: 30px;
}

    .complaint-form label {
        display: block;
        margin-bottom: 6px;
        font-weight: bold;
        color: #4b0082; /* بنفسجي داكن */
    }

    .complaint-form input,
    .complaint-form select,
    .complaint-form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        background-color: #f9f9f9;
    }

        .complaint-form input:focus,
        .complaint-form select:focus,
        .complaint-form textarea:focus {
            border-color: #6a0dad; /* بنفسجي غامق */
            outline: none;
            background-color: #ffffff;
        }

    .complaint-form button {
        background: #6a0dad; /* بنفسجي غامق */
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 6px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .complaint-form button:hover {
            background: #4b0082; /* بنفسجي داكن */
        }

/* الفوتر */
footer {
    background: #4b0082; /* بنفسجي داكن */
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 5px solid #6a0dad; /* بنفسجي غامق */
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .footer-links a {
        color: #9b30ff; /* بنفسجي متوسط */
        text-decoration: none;
        margin: 0 5px;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: #d1b3ff; /* بنفسجي فاتح */
            text-decoration: underline;
        }

/* ظهور تدريجي */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-in-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* تمييز */
.highlight {
    background: #f3e6ff;
    border-right: 5px solid #6a0dad;
    padding: 10px;
    margin-top: 15px;
    font-weight: bold;
    color: #4b0082;
    border-radius: 6px;
}

/* توسيط النموذج */
.centered-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

/* ✅ استجابة لجميع الأجهزة */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 5px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .container {
        padding: 10px;
    }

    .complaint-form {
        padding: 15px;
    }

        .complaint-form input,
        .complaint-form select,
        .complaint-form textarea {
            font-size: 0.95rem;
        }

    footer {
        font-size: 0.8rem;
        padding: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 6px;
    }
}

/* شريط الكوكيز متوافق مع تصميم الموقع */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #6a0dad; /* بنفسجي غامق مطابق للهيدر */
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.95rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(106, 13, 173, 0.2);
    border-top: 4px solid #4b0082; /* بنفسجي أغمق */
}

    #cookie-banner p {
        margin: 0;
        line-height: 1.5;
    }

    #cookie-banner a {
        color: #d1b3ff; /* بنفسجي فاتح ليناسب ألوان الموقع */
        text-decoration: underline;
    }

    #cookie-banner button {
        margin-left: 15px;
        padding: 6px 15px;
        border: none;
        background-color: #4b0082; /* بنفسجي أغمق */
        color: #fff;
        font-size: 0.9rem;
        font-weight: bold;
        cursor: pointer;
        border-radius: 5px;
        transition: background 0.3s ease;
    }

        #cookie-banner button:hover {
            background-color: #2e004d; /* بنفسجي داكن عند التحويم */
        }

/* استجابة الأجهزة الصغيرة */
@media (max-width: 768px) {
    #cookie-banner {
        font-size: 0.85rem;
        padding: 12px 10px;
    }

        #cookie-banner button {
            margin-left: 10px;
            padding: 5px 12px;
            font-size: 0.85rem;
        }
}

