/* Shared Navigation Styles */
:root {
    --primary: #1F3B50;
    --secondary: #843248;
    --accent: #BBC7D1;
    --dark: #212529;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: -10px;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo img {
    position: relative;
    z-index: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1002;
    position: relative;
    padding: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1004;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1005;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
    /* Always show scrollbar when content overflows */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

/* Webkit scrollbar styling for Chrome/Safari */
.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary);
}

/* Add a subtle gradient indicator at the bottom when scrollable */
.dropdown-content::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
    display: block;
}

.dropdown-content a {
    color: var(--dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--accent);
    color: var(--secondary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown > a::after {
    content: " ▼";
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary);
    color: white !important;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    color: white !important;
}

.tagline {
    text-align: center;
    padding: 10px 15px;
    background-color: #BBC7D1;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1002;
    pointer-events: none;
}

.tagline h4 {
    color: var(--primary);
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.8rem 0;
    }

    /* Mobile dropdown adjustments */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--accent);
        margin-left: 1rem;
        border-radius: 4px;
        margin-top: 0.5rem;
        max-height: 300px;
        overflow-y: auto;
        /* Always show scrollbar on mobile too */
        scrollbar-width: thin;
        scrollbar-color: var(--secondary) transparent;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown > a::after {
        content: " ▼";
    }

    .dropdown.active > a::after {
        content: " ▲";
    }

    /* Push tagline down on mobile when menu is open */
    .tagline {
        position: relative;
        bottom: auto;
        margin-top: 0;
    }
}
