/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #f8fbff;
    color: #091129;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
    width: 100%;
    background: linear-gradient(90deg, #fff 0%, #f9fbff 58%, #dce6ff 100%);
    box-shadow: 0 15px 35px rgba(13, 39, 101, .12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    gap: 20px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-h1 {
    color: #00187a;
    margin: 0;
    font-size: 24px;
    letter-spacing: .5px;
}

.brand-text p {
    margin: 2px 0 0;
    color: #000000;
    font-size: 12px;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #00187a;
    margin: 5px 0;
    transition: 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Navigation Links - MODIFIED (خلفية ممتلئة بدل الخط) */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 40px 14px 40px;
}

.nav-links a {
    text-decoration: none;
    color: #11162a;
    font-weight: 600;
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-links a.active {
    background: #0b49d8;
    color: #ffffff;
}

.nav-links a:hover {
    background: #0b49d8;
    color: #ffffff;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
    width: 100%;
    padding: 40px 40px 20px;
    position: relative;
    color: #fff;
    background-color: rgb(0, 24, 73);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    overflow: hidden;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand-text h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.footer-brand-text p {
    margin: 0 0 8px;
    font-size: 13px;
    opacity: 0.9;
}

.footer-brand-text span {
    font-size: 12px;
    line-height: 1.4;
    display: block;
    max-width: 300px;
    opacity: 0.85;
}

.footer-col h3 {
    margin: 0 0 15px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.footer-col a {
    display: block;
    color: #eef3ff;
    text-decoration: none;
    margin: 10px 0;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* === Tablets (768px - 1024px) === */
@media (max-width: 1024px) {
    .header-container {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 20px;
        padding: 0 20px 12px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* === Mobile (576px - 768px) === */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: white;
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        margin: 0 15px 15px 15px;
        overflow: hidden;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-bottom: none;
        border-radius: 0;
    }

    .nav-links a.active {
        background: #0b49d8;
        color: #ffffff;
    }

    .nav-links a:hover {
        background: #0b49d8;
        color: #ffffff;
    }

    /* إزالة أي خطوط سفلية */
    .nav-links a.active::after,
    .nav-links a:hover::after {
        display: none;
    }

    .logo-box {
        width: 40px;
        height: 40px;
    }

    .brand-h1 {
        font-size: 18px;
    }

    .brand-text p {
        font-size: 10px;
    }

    /* Footer Mobile Styles */
    .site-footer {
        padding: 25px 15px 15px;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    .footer-brand-text {
        text-align: center;
    }

    .footer-brand-text span {
        max-width: 100%;
        text-align: center;
    }

    .footer-row-half {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .footer-col {
        text-align: center;
        margin-bottom: 0;
    }

    .footer-col h3 {
        margin: 0 0 10px;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
    }

    .footer-col a {
        margin: 6px 0;
        font-size: 12px;
    }

    .footer-col a:hover {
        transform: translateX(0);
    }

    .footer-bottom {
        padding-top: 12px;
        margin-top: 5px;
        font-size: 10px;
    }
}

/* === Small Mobile (480px and below) === */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
    }

    .logo-box {
        width: 32px;
        height: 32px;
    }

    .brand-h1 {
        font-size: 16px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .nav-links a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .site-footer {
        padding: 20px 12px 10px;
    }

    .footer-top {
        gap: 10px;
        margin-bottom: 15px;
    }

    .footer-brand {
        gap: 8px;
    }

    .footer-brand-text h2 {
        font-size: 18px;
        margin: 0 0 3px;
    }

    .footer-brand-text p {
        font-size: 11px;
        margin: 0 0 5px;
    }

    .footer-brand-text span {
        font-size: 10px;
    }

    .footer-row-half {
        gap: 10px;
    }

    .footer-col h3 {
        font-size: 15px;
        margin: 0 0 8px;
    }

    .footer-col a {
        margin: 4px 0;
        font-size: 11px;
    }

    .footer-bottom {
        padding-top: 10px;
        font-size: 9px;
    }
}