/* 
   ملف الأنماط الموحد للهيدر والفوتر
   تم إنشاؤه لضمان تناسق التصميم في جميع صفحات الموقع
*/

/* أنماط الهيدر الموحد */
header {
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 120px; /* تم تكبير الشعار ليكون أكثر وضوحاً */
    height: auto;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 5px 0 0;
    opacity: 0.9;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 5px;
}

.main-menu li a {
    display: block;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-menu li a:hover,
.main-menu li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* أنماط الفوتر الموحد */
footer {
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 30%;
    max-width: 30%;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-links {
    flex: 0 0 30%;
    max-width: 30%;
}

.footer-links h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #ffffff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ffffff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-right: 5px;
}

.footer-contact {
    flex: 0 0 30%;
    max-width: 30%;
}

.footer-contact h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #ffffff;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* تعديلات للتجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu li {
        margin: 5px 0;
    }
    
    .main-menu li a {
        padding: 10px 15px;
    }
}
