/* style.css */

/* الإعدادات العامة */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* الخلفية الافتراضية في حال تأخر تحميل الإعدادات الديناميكية */
    background-color: #f8f9fa;
}

/* تنسيق النصوص في الهيدر */
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* زر تغيير اللغة */
.lang-btn {
    padding: 5px 15px;
    border: 1px solid;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: bold;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* الحاوية الرئيسية للمحتوى */
.container-main {
    flex: 1; /* يأخذ المساحة المتبقية ليدفع الفوتر للأسفل */
    padding-bottom: 50px;
}

/* زر الرجوع */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
}
.back-btn:hover {
    background-color: #5a6268;
    color: white;
}

/* --- تنسيق الشبكة (البطاقات) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* عمودين للجوال */
    gap: 15px;
}

/* للشاشات المتوسطة والكبيرة */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}
@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr); /* 4 أعمدة للشاشات الكبيرة جداً */
    }
}

/* تنسيق البطاقة الواحدة */
.card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 180px; /* ارتفاع ثابت ومناسب */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 80px;
    height: 80px;
    object-fit: contain; /* لضمان ظهور كامل الأيقونة */
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

/* --- تنسيق السلايدر المتجاوب (الجديد) --- */
.slider-container {
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.custom-slider-img {
    width: 100%;
    /* الارتفاع للكمبيوتر والشاشات الكبيرة */
    height: 400px; 
    object-fit: cover; /* يملأ المساحة بشكل جمالي */
}

/* الارتفاع المخصص للجوال */
@media (max-width: 768px) {
    .custom-slider-img {
        height: 200px; /* أصغر ليناسب شاشة الهاتف */
    }
}