:root {
    --primary-color: #041E43;
    --secondary-color: #B2872B;
    --accent-color: #1A3A6E;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.main-header.scrolled {
    background: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    width: 100%;
    padding: 0.3rem 0;
}

.navbar > .container-fluid {
    max-width: 100%;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .navbar > .container-fluid {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1600px) {
    .navbar > .container-fluid {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 50px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    margin: 0 0.05rem;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.login-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color) !important;
    border-radius: 50px;
    padding: 0.4rem 1.2rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.login-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 135, 43, 0.2);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 0.4rem 1.2rem !important;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem;
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

.btn-emaal {
    background-color: #B2872B;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.4rem 1.2rem !important;
    white-space: nowrap;
    border: 2px solid #B2872B;
    font-size: 0.9rem;
}

.btn-emaal:hover {
    background-color: #9a6f20;
    border-color: #9a6f20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 135, 43, 0.2);
}

.main-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 2.5rem 0 1.5rem;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #ffd166);
}

.footer-logo {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    height: 70px;
    margin-bottom: 0;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-section h5 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: white;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    margin-right: 8px;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(178, 135, 43, 0.3);
}

.footer-logo-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.copyright {
    font-size: 0.9rem;
}

.legal-links a {
    font-size: 0.9rem;
}

.main-footer .row.g-4 {
    gap: 2rem 0;
}

.custom-alert {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    max-width: 400px;
    width: 90%;
    z-index: 1060;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid transparent;
}

.custom-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-alert.success {
    border-left-color: #28a745;
    background: #d4edda;
}

.custom-alert.error {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.dropdown-menu {
    animation: fadeInDown 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    min-height: calc(100vh - 80px - 250px);
    padding-top: 70px;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar-nav {
    margin-right: 1rem;
}

.nav-center {
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
    gap: 0.25rem;
}

.navbar-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
    align-items: center;
}

.login-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--secondary-color);
    color: white;
}

@media (max-width: 1199.98px) {
    .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 991.98px) {
    .navbar > .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #041E43 0%, #1A3A6E 100%);
        padding: 1rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1000;
        justify-content: flex-start;
    }

    .navbar-nav {
        width: 100%;
        margin-right: 0;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
        white-space: normal;
    }

    .nav-link::after {
        display: none;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        padding: 0.75rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item .dropdown-menu .dropdown-item {
        color: white !important;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }

    .nav-item .dropdown-menu .dropdown-item:hover,
    .nav-item .dropdown-menu .dropdown-item.active {
        background-color: var(--secondary-color) !important;
        color: white !important;
    }

    .navbar-buttons {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        flex-direction: column;
        gap: 0.25rem;
    }

    .login-nav-actions {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .navbar-buttons .btn,
    .navbar-buttons .login-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .login-nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    .dropdown-toggle {
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-toggle::after {
        margin-left: auto;
    }

    .main-footer {
        padding: 2rem 0 1rem;
    }

    .footer-logo {
        height: 60px;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 992px) {
    .dropdown-menu {
        left: auto;
        right: auto;
    }
}

.container-fluid {
    overflow: visible;
}

.navbar {
    overflow: visible;
}
