/*
Theme Name: BCBHAS Theme
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.6.1777972198
Updated: 2026-05-05 02:09:58

*/

/**
 * Header Styles
 * BC Black History Awareness Society — Divi Child Theme
 * File: header.css
 */

/* ─────────────────────────────────────────────
   Body offset for fixed header
───────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    padding-top: 91px;
}

/* ─────────────────────────────────────────────
   Navbar
───────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

/* ─────────────────────────────────────────────
   3-column grid layout
───────────────────────────────────────────── */
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 91px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

/* ─────────────────────────────────────────────
   Logo
───────────────────────────────────────────── */
.nav-logo {
    justify-self: start;
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo img,
.nav-logo .custom-logo {
    width: 244px;
    height: auto;
    display: block;
}

/* ─────────────────────────────────────────────
   Desktop Nav Links
───────────────────────────────────────────── */
.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(15, 15, 15, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.nav-link:hover {
    color: #0f0f0f;
}

/* ─────────────────────────────────────────────
   Dropdown
───────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .chev {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .chev {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 9999;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: rgba(15, 15, 15, 0.7);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #0f0f0f;
}

/* ─────────────────────────────────────────────
   Search + Donate
───────────────────────────────────────────── */
.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-search {
    position: relative;
    width: 249px;
}

.nav-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    pointer-events: none;
}

.nav-search input[type="search"],
.nav-search input[type="text"] {
    width: 100%;
    padding: 8px 16px 8px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #0f0f0f;
    outline: none;
    transition: background 0.2s ease;
    border-radius: 0;
}

.nav-search input::placeholder {
    color: #9a9a9a;
}

.nav-search input:focus {
    background: #ffffff;
}

.nav-search form {
    margin: 0;
    padding: 0;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #C3423F;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.donate-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* ─────────────────────────────────────────────
   Mobile Toggle — hamburger / close icon swap
───────────────────────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    margin-right: -8px;
    cursor: pointer;
    color: #0f0f0f;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle .hamburger-icon,
.nav-toggle .close-icon {
    transition: opacity 0.3s ease;
    position: absolute;
}

.nav-toggle .close-icon {
    opacity: 0;
}

.nav-toggle.open .hamburger-icon {
    opacity: 0;
}

.nav-toggle.open .close-icon {
    opacity: 1;
}

/* ─────────────────────────────────────────────
   Mobile Panel — smooth slide + fade
───────────────────────────────────────────── */
.mobile-panel {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.8s ease, padding 0.8s ease;
}

.mobile-panel.open {
    display: block;
    max-height: 500px;
    opacity: 1;
    padding: 16px 24px;
}

.mobile-panel .nav-search {
    width: 100%;
    margin-bottom: 16px;
}

/* Mobile links — staggered slide-up animation */
.mobile-link {
    display: block;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(15, 15, 15, 0.8);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, color 0.2s ease;
}

.mobile-panel.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-panel.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-panel.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-panel.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-panel.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-panel.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }
.mobile-panel.open .mobile-link:nth-child(6) { transition-delay: 0.6s; }

.mobile-link:hover {
    color: #0f0f0f;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile submenu accordion */
.mobile-submenu {
    display: none;
    padding-left: 16px;
    margin-left: 8px;
    border-left: 2px solid #65AA77;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: rgba(15, 15, 15, 0.6);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mobile-submenu a:hover {
    color: #0f0f0f;
}

.mobile-donate {
    display: block;
    margin-top: 12px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #C3423F;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mobile-donate:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 1023px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .mobile-panel {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .nav-logo img,
    .nav-logo .custom-logo {
        width: 180px;
    }
}