/* Trustworthy Color Palette */
:root {
    --primary: #1e88e5;
    /* Trustworthy blue */
    --secondary: #1565c0;
    /* Professional navy */
    --accent: #e57373;
    /* Soft coral for warmth */
    --light: #f8f9fa;
    /* Neutral light */
    --dark: #212529;
    /* Neutral dark */
    --success: #4caf50;
    /* Soothing green */
    --warning: #ffca28;
    /* Muted amber */
    --info: #26a69a;
    /* Soft teal */
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    background-color: var(--primary) !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.navbar>.container {
    padding: 0;
    /* Remove default padding */
    margin-left: 15px;
    /* Set 15px margin from the left edge */
    margin-right: 15px;
    /* Keep right margin for consistency */
}

.navbar.scrolled {
    padding: 8px 0;
    background-color: rgba(30, 136, 229, 0.95) !important;
    backdrop-filter: blur(8px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-left: 0;
    /* Remove extra margin */
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
    /* Margin between logo and brand name as per HTML */
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 4px;
    /* Reduced for tighter spacing */
    padding: 5px 12px !important;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.navbar-nav {
    gap: 0;
    /* Ensure no extra gap between nav items */
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: 5px;
    left: 12px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

/* Banner Section */
#banners,
#about-banner,
#gallery-banner,
#events-banner,
#causes-banner,
#donate-banner,
#contact-banner {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.banner {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    width: 100%;
    background-attachment: fixed;
    opacity: 0;
    /* Default: hidden */
    transition: opacity 0.5s ease;
    /* Smooth fade transition */
    z-index: 1;
    /* Default low z-index */
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

.banner-visible {
    opacity: 1;
    /* Visible */
    z-index: 2;
    /* Bring to front */
}

.banner-hidden {
    opacity: 0;
    /* Hidden */
    z-index: 1;
    /* Send to back */
}

.banner-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    line-height: 1.2;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.banner .btn {
    padding: 14px 38px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid white;
    background-color: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner .btn i {
    margin-left: 8px;
    transition: all 0.3s ease;
}

.banner .btn:hover {
    background-color: #ef5350;
    border-color: #ef5350;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.banner .btn:hover i {
    transform: translateX(3px);
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    width: 100%;
    /* Ensure full width for centering */
    text-align: center;
    /* Reinforce centering */
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section h2 i {
    color: var(--accent);
    margin-right: 15px;
}

.section-subtitle {
    color: #555;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.card-text {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .banner h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .banner h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 80px 0;
    }

    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .navbar>.container {
        margin-left: 15px;
        /* Keep 15px margin on mobile */
        margin-right: 15px;
    }

    .banner h1 {
        font-size: 2.4rem;
    }

    .banner p {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand img {
        height: 35px;
    }

    .card-img-top {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 2rem;
    }

    .banner .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.9rem;
    }

    .section {
        padding: 60px 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 30px;
        margin-right: 8px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Utility Classes */
.text-accent {
    color: var(--accent) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    /* Make "Donate" link more button-like */
    padding: 8px 16px !important;
    /* Adjust padding for better appearance */
}

.btn-accent:hover {
    background-color: #ef5350;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(229, 115, 115, 0.3);
}

/* Footer Styles */
/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px 0 15px;
    /* Reduced padding for compactness */
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    /* Reduced margin */
}

.footer-logo img {
    height: 40px;
    /* Slightly smaller logo */
    margin-right: 10px;
}

.footer-logo-text {
    font-size: 1.1rem;
    /* Slightly smaller text */
    font-weight: 600;
}

footer h5 {
    font-size: 1.2rem;
    /* Smaller heading */
    font-weight: 600;
    margin-bottom: 15px;
    /* Reduced margin */
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -6px;
    /* Thinner underline */
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns */
    gap: 8px 20px;
    /* Vertical gap 8px, horizontal gap 20px */
    text-align: left;
    /* Align links left within columns */
}

.footer-links li {
    margin: 0;
    /* Remove default margin */
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    /* Smaller font size */
    transition: all 0.3s ease;
    display: block;
    /* Ensure full clickable area */
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
    /* Reduced transform for subtlety */
}

.footer-social-section {
    text-align: center;
}

.footer-social-section h5 {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Slightly smaller gap */
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-links li {
    margin: 0;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    /* Smaller buttons */
    height: 34px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 0.95rem;
    /* Smaller icons */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    /* Subtler hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    margin-top: 20px;
    /* Reduced margin */
    padding-top: 10px;
    /* Reduced padding */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
    /* Smaller font */
}

.footer-shape {
    position: absolute;
    opacity: 0.15;
    z-index: 1;
}

.footer-shape-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background-color: var(--accent);
    animation: float 7s ease-in-out infinite;
}

.footer-shape-2 {
    bottom: 15%;
    right: 5%;
    width: 150px;
    height: 150px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background-color: var(--success);
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* For mobile view */
@media (max-width: 768px) {
    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        text-align: center;
        gap: 6px;
        /* Smaller vertical gap */
    }

    .footer-social-section {
        margin-top: 15px;
    }

    .footer-social-section h5 {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-social-links {
        justify-content: center;
    }
}