@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Arabic";
    src: url("../fonts/ArbFONTS-Montserrat-Arabic-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #348e86;
    --secondary-color: #454764;
    --text-color: #ffffff;

    --primary-color-75: rgba(52, 142, 134, 0.75);
    --primary-color-30: rgba(52, 142, 134, 0.30);

    --secondary-color-75: rgba(69, 71, 100, 0.75);
    --secondary-color-30: rgba(69, 71, 100, 0.3);
}

body {
    font-family: "Montserrat Arabic", "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    color: var(--primary-color);
    background-color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid var(--secondary-color-30);
    box-shadow: 0 8px 24px rgba(69, 71, 100, 0.08);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    will-change: background-color, border-color, box-shadow, transform;
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-top,
.nav-bottom {
    display: flex;
    align-items: center;
}

.nav-top {
    min-height: 84px;
    justify-content: flex-start;
    gap: 1rem;
}

.nav-top-actions {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo {
    width: auto;
    height: 52px;
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.social-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--primary-color-30);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    background-color: var(--primary-color);
    color: #ffffff;
}

.social-links i {
    font-size: 1rem;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
    background-color: var(--secondary-color-30);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    min-width: 220px;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--secondary-color-30);
    box-shadow: 0 12px 24px rgba(69, 71, 100, 0.16);
    display: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background-color: var(--primary-color-30);
    color: var(--primary-color);
}

.nav-dropdown.is-open .dropdown-menu {
    display: block;
}

.volunteer-menu .dropdown-toggle {
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 0.7rem 1.1rem;
    font-weight: 600;
}

.volunteer-menu .dropdown-toggle:hover,
.volunteer-menu .dropdown-toggle:focus-visible {
    background-color: var(--primary-color-75);
}

.nav-bottom {
    border-top: 1px solid var(--secondary-color-30);
    min-height: 64px;
    justify-content: center;
}

.primary-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.primary-nav-list > li > a,
.primary-nav-list > li > .dropdown-toggle {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 10px;
}

.primary-nav-list > li > a:hover,
.primary-nav-list > li > a:focus-visible,
.primary-nav-list > li > .dropdown-toggle:hover,
.primary-nav-list > li > .dropdown-toggle:focus-visible {
    color: var(--primary-color);
    background-color: var(--primary-color-30);
}

.mobile-only-item {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--secondary-color-30);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-toggle i {
    font-size: 1.2rem;
}

main {
    min-height: calc(100vh - 149px);
}

.site-footer {
    margin-top: 0;
    background: #f8fbfb;
    border-top: 1px solid var(--secondary-color-30);
}

.footer-main,
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: min(100%, 360px);
}

.footer-newsletter-label {
    color: var(--primary-color);
    font-size: 0.92rem;
    font-weight: 600;
}

.footer-newsletter-row {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--secondary-color-30);
    border-radius: 10px;
    padding: 0.58rem 0.7rem;
    font: inherit;
    color: var(--secondary-color);
    background: #ffffff;
}

.footer-newsletter-row button {
    border: none;
    border-radius: 10px;
    padding: 0.58rem 0.95rem;
    background: var(--primary-color);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.footer-newsletter-row button:hover,
.footer-newsletter-row button:focus-visible {
    background: var(--primary-color-75);
}

.footer-socials {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--primary-color-30);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background: var(--primary-color);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color-30);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.95rem;
}

.footer-copy {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-legal-links a {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .site-nav {
        position: relative;
    }

    .nav-top {
        min-height: 74px;
    }

    .site-logo {
        height: 46px;
    }

    .social-links {
        display: none;
    }

    .nav-top-actions {
        margin-right: auto;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mobile-menu-toggle span {
        display: none;
    }

    .nav-bottom {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border: 1px solid var(--secondary-color-30);
        border-top: none;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 12px 24px rgba(69, 71, 100, 0.14);
        padding: 0.5rem 0 0.9rem;
        z-index: 40;
    }

    .nav-bottom.is-open {
        display: block;
    }

    .primary-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .primary-nav-list > li {
        width: 100%;
    }

    .mobile-only-item {
        display: block;
    }

    .primary-nav-list > li > a,
    .primary-nav-list > li > .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-mobile-tools {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
        margin: 0.2rem 0 0.35rem;
    }

    .nav-mobile-tools .social-links {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        flex: 0 1 auto;
        order: 2;
    }

    .nav-mobile-tools .mobile-volunteer-item {
        width: fit-content;
        flex: 0 0 auto;
        order: 1;
    }

    .nav-mobile-tools .mobile-volunteer-item > .dropdown-toggle {
        background-color: var(--primary-color);
        color: #ffffff;
        font-weight: 600;
        width: auto;
    }

    .nav-mobile-tools .mobile-volunteer-item > .dropdown-toggle:hover,
    .nav-mobile-tools .mobile-volunteer-item > .dropdown-toggle:focus-visible {
        background-color: var(--primary-color-75);
    }

    .nav-mobile-tools .mobile-volunteer-item .dropdown-menu {
        position: absolute;
        top: calc(100% + 0.4rem);
        right: 0;
        min-width: 220px;
        box-shadow: 0 12px 24px rgba(69, 71, 100, 0.16);
        z-index: 20;
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 0.4rem;
        box-shadow: none;
    }

    .nav-top .volunteer-menu .dropdown-menu {
        position: absolute;
        min-width: 200px;
        width: min(220px, calc(100vw - 1.5rem));
        top: calc(100% + 0.4rem);
        right: auto;
        left: 0;
        margin-top: 0;
        box-shadow: 0 12px 24px rgba(69, 71, 100, 0.16);
        z-index: 30;
    }

    .site-header.is-hero-mode {
        background: rgba(8, 27, 39, 0.62);
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: none;
    }

    .site-header.is-hero-mode .nav-bottom .primary-nav-list > li > a,
    .site-header.is-hero-mode .nav-bottom .primary-nav-list > li > .dropdown-toggle {
        color: var(--primary-color);
    }

    .site-header.is-hero-mode .nav-bottom .primary-nav-list > li > a:hover,
    .site-header.is-hero-mode .nav-bottom .primary-nav-list > li > a:focus-visible,
    .site-header.is-hero-mode .nav-bottom .primary-nav-list > li > .dropdown-toggle:hover,
    .site-header.is-hero-mode .nav-bottom .primary-nav-list > li > .dropdown-toggle:focus-visible {
        color: var(--primary-color);
        background-color: var(--primary-color-30);
    }

    .site-header.is-hero-mode .nav-bottom .dropdown-menu a {
        color: var(--primary-color);
    }

    .site-header.is-hero-mode .nav-bottom .social-links a {
        color: var(--primary-color);
        border-color: var(--primary-color-30);
        background-color: #ffffff;
    }

    .site-header.is-hero-mode .nav-bottom .social-links a:hover,
    .site-header.is-hero-mode .nav-bottom .social-links a:focus-visible {
        color: #ffffff;
        background-color: var(--primary-color);
    }

    .footer-main {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .site-nav {
        padding: 0 0.75rem;
    }

    .site-logo {
        height: 40px;
    }
}

.site-header.is-hero-mode {
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
}

.site-header.is-hero-mode .dropdown-toggle:hover,
.site-header.is-hero-mode .dropdown-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.2);
}

.site-header.is-hero-mode .primary-nav-list > li > a,
.site-header.is-hero-mode .primary-nav-list > li > .dropdown-toggle {
    color: #ffffff;
}

.site-header.is-hero-mode .primary-nav-list > li > a:hover,
.site-header.is-hero-mode .primary-nav-list > li > a:focus-visible,
.site-header.is-hero-mode .primary-nav-list > li > .dropdown-toggle:hover,
.site-header.is-hero-mode .primary-nav-list > li > .dropdown-toggle:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

.site-header.is-hero-mode .mobile-menu-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.site-header.is-hero-mode .mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.site-header.is-hero-mode .social-links a {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.site-header.is-hero-mode .social-links a:hover,
.site-header.is-hero-mode .social-links a:focus-visible {
    background-color: rgba(255, 255, 255, 0.3);
}

.site-header.is-hero-mode .volunteer-menu .dropdown-toggle {
    color: var(--primary-color);
    background-color: #ffffff;
}

.site-header.is-hero-mode .volunteer-menu .dropdown-toggle:hover,
.site-header.is-hero-mode .volunteer-menu .dropdown-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled {
    animation: navSwitchIn 0.35s ease;
}

.site-header.is-scrolled .site-logo {
    transform: translateY(-1px) scale(1.02);
}

@keyframes navSwitchIn {
    from {
        transform: translateY(-8px);
        box-shadow: 0 0 0 rgba(69, 71, 100, 0);
    }

    to {
        transform: translateY(0);
        box-shadow: 0 8px 24px rgba(69, 71, 100, 0.08);
    }
}