@font-face {
    font-family: 'Montserrat-Arabic';
    src: url('/fonts/ArbFONTS-Montserrat-Arabic-ExtraBold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-Arabic-Light';
    src: url('/fonts/ArbFONTS-Montserrat-Arabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'BR';
    src: url('/fonts/ArbFONTS-BR.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'RB';
    font-weight: 400;
    src: url('/fonts/RB-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'MONTSERRAT-arabic';
    font-weight: 400;
    src: url('/fonts/Montserrat-Arabic-Regular.ttf') format('truetype');
}

body {
    font-family: 'MONTSERRAT-arabic', 'BR', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'MONTSERRAT-arabic', 'BR', sans-serif !important;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 1200px !important;
}

.alqasswa-nav-link .dropdown-item .nav-link {
    font-family: 'BR', sans-serif !important;
    font-weight: 400;
}

/* Alqasswa Navbar Styles */
.alqasswa-top-navbar {
    position: relative;
    z-index: 1030;
}

.alqasswa-navbar {
    background-color: #5d2e8f;
    padding: 13px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

/* Three-cell layout */
.alqasswa-navbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alqasswa-navbar-cell {
    flex: 1;
    display: flex;
    align-items: center;
}

.alqasswa-right-cell {
    justify-content: flex-start;
}

.alqasswa-center-cell {
    justify-content: center;
}

.alqasswa-left-cell {
    justify-content: flex-end;
}

/* Logo */
.alqasswa-navbar-brand {
    text-align: center;
}

/* Logo */
.alqasswa-navbar-brand img {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    width: 129px;
    height: 43px;
}



.alqasswa-navbar-nav {
    display: flex;
    list-style: none;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    width: 100%;
    justify-content: space-between;
    gap: 5px;
    /* Add small gap between nav items */
}

/* Social Icons */
.alqasswa-social-icons {
    display: flex;
    gap: 15px;
}

.alqasswa-social-icon {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.alqasswa-social-icon:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Contact Button */
.alqasswa-contact-btn p {
    color: white;
    margin: 0;
    font-weight: 500;
}

/* Main Navigation */
.alqasswa-main-nav {
    background-color: #5d2e8f;

    display: block;
}

.alqasswa-navbar-nav {
    display: flex;
    list-style: none;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    width: 100%;
    justify-content: space-between;
}

.alqasswa-nav-link {
    font-family: 'BR', sans-serif !important;
    font-weight: 800;
    color: white;
    padding: 10px 5px;
    font-size: 100%;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alqasswa-nav-link:hover,
.alqasswa-nav-link.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Toggle Button */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Add spacing for content below navbar */
.alqasswa-top-navbar+main {
    padding-top: 20px;
}

.navbar_display {
    display: block;
}

/* Default state - hidden on mobile */
.navbar-collapse {
    display: none;
}

/* Always visible on desktop */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
}

/* Show when toggled on mobile */
.navbar-collapse.show {
    display: block;
}

.social-icons a {
    text-decoration: none;
}

.social-links a {
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 991px) {
    /* First, set the default state */

    .alqasswa-navbar-nav {
        flex-direction: column;
    }

    .alqasswa-nav-item {
        text-align: center;
        margin-bottom: 5px;
    }

    /* Mobile menu - position relative to navbar */
    .alqasswa-navbar {
        position: relative;
    }

    .alqasswa-main-nav {
        position: static;
        width: 100%;
    }

    .navbar-collapse {
        position: absolute;
        top: 70px;
        /* Below the navbar header */
        left: 0;
        right: 0;
        z-index: 1050;
        background-color: #5d2e8f;
    }

    .navbar-collapse.show {
        display: block;
        max-height: 80vh;
        overflow-y: auto;
        padding: 15px 0;
    }

    /* Ensure navbar row allows the dropdown to flow */
    .alqasswa-navbar-row {
        position: static;
        height: auto;
        min-height: 60px;
    }

    .alqasswa-center-cell {
        position: static;
    }


    /* Mobile navigation controls */
    @media (max-width: 991px) {
        .alqasswa-navbar-brand img {
            height: 60px;
            width: auto;
            margin: 5px 0;
        }

        .mobile-nav-controls {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px;
        }

        .mobile-toggle-btn {
            padding: 5px;
        }
    }

    @media (max-width: 991px) {
        .mobile-auth-links {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
        }

        .mobile-lang-switcher {
            margin: 0 10px !important;
        }
    }

    @media (max-width: 518px) {
        .mobile-auth-links {
            flex-wrap: wrap;
            justify-content: center;
            gap: 4px;
        }

        .mobile-auth-links a,
        .mobile-lang-switcher {
            font-size: 13px;
            min-width: 70px;
            padding: 2px 6px;
            margin: 2px 0;
        }

        .mobile-lang-switcher {
            margin: 0 2px !important;
            transform: scale(0.9);
        }
    }

    @media (max-width: 446px) {
        .mobile-auth-links {
            flex-direction: column;
            align-items: stretch;
        }

        .mobile-auth-links a,
        .mobile-lang-switcher {
            width: 100%;
            text-align: center;
            margin: 2px 0;
        }
    }

    @media (min-width: 992px) {
        .mobile-toggle-btn {
            display: none !important;
        }
    }
}