﻿/* حجم الخط الأساسي */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030; /* أعلى من باقي العناصر */
    background-color: #fff; /* تأكد أنه له خلفية */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* أضف padding للـ body أو main لتعويض ارتفاع الـ navbar */
body {
    padding-top: 80px !important; /* هذا يضمن عدم تغطية الـ navbar للمحتوى */
    padding-bottom: 120px; /* لتعويض الـ footer */
    overflow-x: hidden;
    background-color: #f8f9fa;
    font-family: 'Cairo', sans-serif;
}

/* الزر عند التركيز */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* تنسيق الفوتر */
footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-section {
    flex: 1 1 220px;
}

    .footer-section h5 {
        margin-bottom: 15px;
        font-weight: 700;
    }

    .footer-section p, .footer-section a {
        color: #ccc;
        font-size: 14px;
        text-decoration: none;
    }

        .footer-section a:hover {
            color: #ffffff;
        }

.social-links a {
    color: white;
    margin-right: 10px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid #666;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: #bbb;
}

    .footer-bottom a {
        color: #bbb;
        text-decoration: none;
    }

        .footer-bottom a:hover {
            color: #fff;
        }

/* تحسين مظهر الأزرار */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

    .btn-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
    }

/* تحسين الحركات البصرية */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}

    .fade-in.appear {
        opacity: 1;
        transform: translateY(0);
    }

/* معالجة الصور والنصوص */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}
