/* ===== HEADER WITH DROPDOWN STYLES ===== */
/* Top Header Bar */
.top-header {
    background: #f8f9fa;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.top-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.top-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-social {
    display: flex;
    gap: 0.8rem;
}

.top-social a {
    color: #666;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.2rem;
}

.top-social a:hover {
    color: #ec1e2c;
}

/* Main Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 50px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Navigation Container */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    padding: 10px 0;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px !important;
    width: auto !important;
    max-height: none !important;
    object-fit: contain;
}

/* Navigation Links with Dropdown */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    position: relative;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links > li > a:hover {
    color: #ec1e2c;
    background: rgba(236, 30, 44, 0.05);
}

.nav-links > li > a.active {
    color: #ec1e2c;
    font-weight: bold;
}

/* Dropdown Arrow */
.nav-links > li.has-dropdown > a::after {
    content: "▼";
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-links > li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    border-top: 3px solid #ec1e2c;
    z-index: 1001;
}

.nav-links > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.dropdown a:hover {
    background: #f8f9fa;
    color: #ec1e2c;
    padding-left: 2rem;
}

.dropdown a.active {
    color: #ec1e2c;
    font-weight: bold;
}

/* Donate Button */
.donate-btn {
    background: #ec1e2c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.donate-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Mobile Menu */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem;
    z-index: 1000;
}

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

.nav-links-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-links-mobile > li {
    position: relative;
}

.nav-links-mobile > li > a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-links-mobile > li > a:hover {
    color: #ec1e2c;
    background: rgba(236, 30, 44, 0.05);
}

.nav-links-mobile > li > a.active {
    color: #ec1e2c;
    font-weight: bold;
}

/* Mobile Dropdown Toggle */
.nav-links-mobile .dropdown-toggle {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    float: right;
    margin-top: -2.5rem;
    margin-right: 1rem;
}

.nav-links-mobile .dropdown-mobile {
    display: none;
    background: #f8f9fa;
    padding: 0.5rem 0;
    flex-direction: column; /* <--- this is key */
}

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

.nav-links-mobile .dropdown-mobile a {
    display: block;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #e9ecef;
    width: 100%; /* ensure full width */
    text-align: left;
}

.nav-links-mobile .dropdown-mobile a:hover {
    color: #ec1e2c;
}

.donate-btn-mobile {
    background: #ec1e2c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.donate-btn-mobile:hover {
    background: #c0392b;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        min-height: 80px;
    }

    .logo {
        height: 60px;
    }

    .logo img {
        height: 40px !important;
        width: auto !important;
    }

    .nav-links {
        display: none;
    }

    .donate-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}
