﻿:root {
    --primary: #d32f2f; /* Red 700 */
    --primary-600: #c62828; /* Hover */
    --primary-100: #fde7e7; /* Light BG */
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --surface: #f7f7f8;
    --white: #ffffff;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--surface);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

    a:hover {
        color: var(--primary);
    }

/* --- Navbar Styling --- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary) !important;
        background: var(--primary-100);
        border-radius: 8px;
    }

.btn-login {
    background-color: var(--primary);
    color: white !important;
    border-radius: 8px;
    padding: 8px 20px !important;
}

    .btn-login:hover {
        background-color: var(--primary-600);
    }

/* --- Common Hero/Banner --- */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    padding: 3rem 0;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

    .page-banner h1 {
        font-weight: 800;
        margin: 0;
    }

/* --- Cards & Services --- */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s;
    border: 1px solid #eee;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.text-primary-custom {
    color: var(--primary);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid #eee;
    padding-top: 3rem;
    margin-top: auto;
}

.footer-bottom {
    background: #333;
    color: #fff;
    padding: 15px 0;
    margin-top: 2rem;
}
/* --- Hero Section Background --- */
.hero-section {
    position: relative;

    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/Login.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 120px 0;
    color: white;
}


@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        background-position: center;
    }
}

/* --- Hero Section Professional Style --- */
/* --- الخيار 1: ملء الشاشة بالكامل --- */
.hero-section {
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('/img/Login.jpg');
    background-position: center center;
    background-size: cover; /* يغطي المساحة بالكامل */
    background-repeat: no-repeat;
    /* هذا السطر هو السر: يجعل الارتفاع 100% من ارتفاع شاشة المستخدم */
    min-height: 100vh;
    /* لمحاذاة النص في المنتصف تماماً */
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* --- تعديلات خاصة للموبايل --- */
@media (max-width: 768px) {
    .hero-section {
        /* إلغاء التثبيت في الموبايل لتحسين الأداء */
        background-attachment: scroll;
        /* تقليل المسافات في الشاشات الصغيرة */
        padding: 90px 0;
        /* إذا كان وجه الشخص أو العنصر المهم في الصورة بالأعلى، استخدم top بدلاً من center */
        background-position: center top;
    }
}