﻿/* ====== Font Display Optimization ====== */
/* Override Font Awesome font-display for better performance */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-regular-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2') format('woff2');
}

/* ====== تنسيقات عامة ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Cairo', sans-serif;
    background-color: white;
    color: #333;
}

/* ====== تنسيقات Navbar ====== */

/* جعل الـ top-bar أصغر حجماً */
.top-bar {
    background: rgb(27 54 93 / var(--tw-bg-opacity, 1));

    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.top-bar .contact-info a:hover {
    color: #ffd700;
}

.top-bar .social-links a {
    color: #fff;
    margin-right: 15px;
    font-size: 16px;
    transition: all 0.3s;
}

.top-bar .social-links a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

/* حاوية الـ Sticky Navbar */
.sticky-navbar-container {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* تأثير عند التمرير */
.sticky-navbar-container.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* تنسيقات Navbar الرئيسية */
.navbar {
    padding: 0;
    background: #fff;
    transition: all 0.3s ease;
}

.scrolled .navbar {
    padding: 5px 0;
}

/* تنسيق العلامة التجارية */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-left: 15px;
    transition: all 0.3s;
}

.scrolled .logo-img {
    height: 50px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #0a1363;
    line-height: 1;
}

.brand-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}

.scrolled .brand-name {
    font-size: 24px;
}

.scrolled .brand-subtitle {
    font-size: 12px;
}

/* تنسيق روابط التنقل */
.navbar-nav {
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333 !important;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 20px !important;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active,
.nav-link.current {
    color: #0a1363 !important;
    background-color: rgba(10, 19, 99, 0.05);
    transform: translateY(-2px);
}

.nav-link.active::after,
.nav-link.current::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 20px;
    left: 20px;
    height: 3px;
    background: linear-gradient(90deg, #0a1363, #1a237e);
    border-radius: 3px;
}

/* تنسيق القوائم المنسدلة */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    padding: 10px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    display: block !important;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

/* إظهار القائمة عند الهوفر على الأجهزة الكبيرة */
@@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block !important;
    }

    /* إبقاء القائمة مفتوحة عند الهوفر عليها */
    .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* إظهار القائمة عند الضغط على الأجهزة الصغيرة */
.nav-item.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

.dropdown-item {
    padding: 12px 20px;
    color: #333;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    border-radius: 5px;
    margin: 2px 10px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover,
.dropdown-item.current {
    background: linear-gradient(135deg, #0a1363 0%, #1a237e 100%);
    color: white;
    transform: translateX(-5px);
}

/* زر الـ CTA */
.cta-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ee5a52 0%, #ff6b6b 100%);
    color: white;
}

/* زر القائمة على الأجهزة الصغيرة */
.navbar-toggler {
    border: none;
    padding: 8px;
    font-size: 20px;
    color: #0a1363;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon i {
    color: #0a1363;
}

/* تحسين القائمة المنسدلة على الأجهزة الصغيرة */
@@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 10px;
        margin-top: 10px;
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-link {
        padding: 12px 15px !important;
        margin: 5px 0;
    }

    .dropdown-menu {
        border: 1px solid #eee;
        box-shadow: none;
        margin-top: 5px;
        margin-bottom: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        position: static !important;
    }

    .cta-button {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-subtitle {
        font-size: 12px;
    }
}

@@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }

    .top-bar .contact-info a {
        margin-left: 10px;
    }

    .top-bar .social-links a {
        margin-right: 10px;
        font-size: 14px;
    }

    .logo-img {
        height: 50px;
    }

    .scrolled .logo-img {
        height: 40px;
    }
}

@@media (max-width: 576px) {
    .brand-name {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .nav-link {
        font-size: 15px;
        padding: 10px 12px !important;
    }
}

/* ====== تنسيقات Main Content ====== */
main {
    min-height: 70vh;
}

/* ====== تنسيقات Footer ====== */
.footer-section {
    background: linear-gradient(135deg, #0a1363 0%, #1a237e 100%);
    color: #fff;
    position: relative;
    margin-top: 50px;
}

.footer-top {
    padding: 60px 0 30px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-logo h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 18px;
    opacity: 0.9;
}

.about-text {
    margin: 20px 0;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #fff;
    color: #0a1363;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: #ffd700;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-menu a:hover {
    color: #ffd700;
    transform: translateX(-5px);
}

.footer-menu i {
    margin-left: 8px;
    font-size: 12px;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-left: 10px;
    margin-top: 5px;
    color: rgb(197 165 114 / var(--tw-bg-opacity, 1));
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ffd700;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    margin: 0;
    opacity: 0.8;
}

.copyright span {
    color: #ffd700;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-bottom a:hover {
    color: #ffd700;
}

.footer-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.1) 20px);
}

/* ====== تنسيقات الأزرار العائمة ====== */
.social-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.social-floating .main-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: rgb(197 165 114 / var(--tw-bg-opacity, 1));
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.social-floating .main-btn:hover {
    background: #0056b3;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 70px;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #007bff;
    color: #fff;
}

.social-floating.active .social-icons {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* تنسيق للأجهزة الصغيرة */
@@media (max-width: 768px) {
    .footer-links-bottom {
        justify-content: center;
        margin-top: 10px;
    }

    .copyright {
        text-align: center;
    }

    .social-floating {
        bottom: 15px;
        right: 15px;
    }

    .social-floating .main-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}