:root {
    --primary-blue: #2a4d69;
    --accent-orange: #f0a500;
    --dark-text: #2b2b2b;
}

/* Base Styles */
html {
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 120px !important;
    /* top-header(40px) + navbar(80px) */
    /* For fixed navbar */
}


.top-header {
    background: #000;
    font-size: 0.9rem;
    padding: 8px 0;
    position: fixed;
    top: 0;
    width: 100%;
    height: 40px;
    /* Matches the content height */
    z-index: 1050;
    /* Single z-index declaration */
    display: flex;
    align-items: center;
}

.header-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.header-contact a {
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-contact a:hover {
    opacity: 0.8;
}

.social-group {
    display: flex;
    gap: 1.2rem;
    margin: 0;
    justify-content: flex-end;
}

.social-group a {
    color: #fff !important;
    font-size: 1.1rem;
}

/* Fixed Navigation */
.navbar {
    position: fixed !important;
    top: 40px !important;
    /* Position below top-header */
    height: 80px;
    /* Explicit height for calculations */

    /* Match top-header height */
    width: 100%;
    z-index: 1040;
    /* Below top-header */

    background: var(--primary-blue) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 1rem 0.8rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 1.2rem;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Donate Button Fix */
.donate-btn {
    background: var(--accent-orange);
    color: #fff !important;
    border-radius: 30px;
    padding: 12px 35px !important;
    margin-left: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transform: translateY(0) !important;
}

.donate-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(240, 165, 0, 0.3);
}

/* Hamburger Menu */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem;
}

.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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 90vh;
    overflow: hidden;

}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 77, 105, 0.3);
}

.hero-slide.active {
    opacity: 1;
}

/* CTA Button */
.hero-cta-btn {
    background: var(--accent-orange);
    color: #fff !important;
    border-radius: 30px;
    padding: 1rem 3rem !important;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(240, 165, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(240, 165, 0, 0.35);
    background: #ffb300;
    border-color: #ffb300;
}

/* blog button  */
.blog-home-btn {
    background: var(--accent-orange);
    color: #fff !important;
    border-radius: 25px;
    padding: 0.8rem 2rem !important;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(240, 165, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-home-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(240, 165, 0, 0.35);
    background: #ffb300;
    border-color: #ffb300;
}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-orange) !important;
    color: #fff !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    display: block;
}

/* blog card*/
.blog-card {
    transition: all 0.3s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.blog-card .blog-image-wrapper img {
    object-fit: cover;
    height: 200px;
    width: 100%;
    border-bottom: 1px solid #eee;
}

/* Footer */
.main-footer {
    background: var(--primary-blue);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    opacity: 1 !important;
}

.footer-links a:hover::after {
    width: 100%;
}

.hero-breadcrumb {
    background: #2a4d69;
    padding: 2rem 0;
}

.breadcrumb-container .breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4361ee, #f72585);
    border-radius: 2px;
}

.team-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.03;
    background:
        radial-gradient(circle at 10% 20%, #4361ee 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, #f72585 0%, transparent 20%);
}

.team-card {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(67, 97, 238, 0.1);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.15);
    border-color: rgba(67, 97, 238, 0.2);
}

.team-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
    border-color: #ffb300;
}

.team-name {
    font-size: 1.1rem;
    color: #2d3748;
}

.team-position {
    font-size: 0.9rem;
}

.team-desc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #4361ee;
    color: white;
    transform: translateY(-3px);
}

.category-divider {
    border-top: 2px dashed #e2e8f0;
    margin: 4rem 0;
}

.no-teams {
    max-width: 600px;
    margin: 0 auto;
}

.no-teams-icon {
    font-size: 3rem;
    color: #cbd5e0;
}



/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* 1. Top Header Handling */
    .top-header {
        display: none !important;
        /* Completely hidden on mobile */
    }

    /* 2. Navbar Positioning */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        height: 60px;
        /* Fixed mobile navbar height */
        z-index: 1050;
        padding: 0.5rem 1rem;
        margin: 0;
        background: var(--primary-blue) !important;
    }

    /* 3. Body and Content Adjustments */
    body {
        padding-top: 0 !important;
        overflow-x: hidden;
    }

    .hero-slider {
        margin-top: 60px !important;
        /* Matches navbar height */
        min-height: calc(100vh - 60px);
        /* Full viewport coverage */
    }

    /* 4. Mobile Menu Overlay */
    .navbar-collapse {
        position: fixed !important;
        top: 60px !important;
        /* Directly below navbar */
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-blue) !important;
        padding: 1rem;
        z-index: 1049;
        overflow-y: auto;
        transform: none !important;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar-collapse.show {
        visibility: visible;
        opacity: 1;
    }

    /* 5. Menu Items Styling */
    .nav-link {
        padding: 1rem !important;
        margin: 0.5rem 0;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-link::after {
        bottom: 0.5rem !important;
        left: 25% !important;
        right: 25% !important;
    }

    /* 6. Hamburger Icon Positioning */
    .navbar-toggler {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1051;
        border: 2px solid var(--accent-orange) !important;
    }

    /* 7. Donate Button Adjustments */
    .donate-btn {
        width: 100% !important;
        margin: 1rem 0 0 0 !important;
        padding: 1rem !important;
        order: 2;
        /* Move below nav items */
    }

    /* 8. Logo Sizing */
    .navbar-brand img {
        height: 45px !important;
        margin-left: 0.5rem;
    }

    /* 9. Service Cards */
    .service-card {
        margin: 0 0.5rem 1.5rem;
        padding: 1.5rem;
    }

    /* 10. Hero Content Adjustments */
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.3;
        padding: 0 1rem;
    }

    .hero-content .lead {
        font-size: 1.1rem !important;
        padding: 0 1rem;
    }

    .blog-card:hover {
        transform: translateY(-5px);
        transition: 0.3s ease-in-out;
    }
}

@media (max-width: 576px) {

    /* Extra Small Devices */
    .navbar {
        height: 55px;
    }

    .hero-slider {
        margin-top: 55px !important;
        min-height: calc(100vh - 55px);
    }

    .navbar-collapse {
        top: 55px !important;
    }

    .navbar-brand img {
        height: 40px !important;
    }

    .nav-link {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }
}