/* General Body and Container Styles */
body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #F8F9FA;
    color: #34495E;
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;

    background-color: #fdfdfd;
}

/* Header Background */
.nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a365d; /* Deep blue, almost navy */
    color: white;
    padding: 18px 50px; /* More generous padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow for depth */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    
}
.logo-link img{
  
    margin-right: 10px;
    }

.nav-section .logo-link img {
    height: 60px; /* Slightly larger logo */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth ease-out-quad */
    
}

.nav-section .logo-link:hover img {
    transform: scale(1.1); /* More pronounced zoom on hover */
}

.nav-section nav ul {
    list-style: none;
    display: flex;
    gap: 25px; /* Increased gap between links */
    margin: 0;
    padding: 0;
}

.nav-section nav li {
    position: relative;
}

.nav-section nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif; /* Consistent modern font */
    padding: 8px 0; /* More padding */
    position: relative;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px; /* Space between text and icon */
}

.nav-section nav a .fas {
    font-size: 0.85em; /* Slightly larger icon */
    transition: transform 0.3s ease-out;
}

/* Dropdown Content */
.dropdown-content {
    padding: 8px; /* Increased padding */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #1f4068; /* Slightly lighter shade for dropdown */
    width: max-content;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Stronger dropdown shadow */
    z-index: 1001;
    border-radius: 8px; /* More rounded corners for dropdown */
    list-style: none;
    top: 110%; /* Position slightly further below parent */
    left: 0;
    transform: translateY(15px); /* Initial slight slide down */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align dropdown items to the left */
    
}

/* Show dropdown on hover of the parent li */
.dropdown:hover > .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: white;
    padding: 8px 15px; /* More padding for dropdown items */
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    min-width: 200px; /* Adjusted min-width */
    border-radius: 4px; /* Slight rounding for dropdown items */
}

.dropdown-content a:hover {
    background-color: #2c5282; /* Accent blue for hovered dropdown item */
    color: #90cdf4; /* Lighter blue text on hover */
}

/* Styling for nested dropdowns */
.sub-dropdown {
    left: 105%; /* Position further to the right */
    top: 0;
    margin-left: 8px; /* More gap */
    border-radius: 8px;
    background-color: #2c5282; /* Different background for nested dropdown */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Show nested dropdown on hover of its parent li */
.dropdown-content .dropdown:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Arrow rotation for dropdowns on hover */
.dropdown:hover > .dropdown-toggle .fa-caret-down {
    transform: rotate(180deg);
}

/* Arrow for nested items also rotates right */
.dropdown-content .dropdown:hover > .dropdown-toggle .fa-caret-right {
    transform: rotate(90deg); /* Rotate down for nested dropdowns */
}

.nav-section nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Thicker underline */
    background-color: #63b3ed; /* Lighter blue accent */
    bottom: -3px; /* Position slightly below text */
    left: 50%; /* Start from center */
    transform: translateX(-50%); /* Center the underline */
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

/* Apply underline only to non-dropdown links on hover */
.nav-section nav li:not(.dropdown) > a:hover::after {
    width: 100%;
}

.nav-section nav li:not(.dropdown) > a:hover {
    color: #90cdf4; /* Lighter color on hover */
}

.nav-section button.donate-button {
    background-color: #e53e3e; /* Modern red/coral */
    color: white;
    padding: 8px 10px; /* More prominent button */
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(229, 62, 62, 0.3);
    position: relative;
    overflow: hidden; /* For ripple effect */
    gap: 4px;
}

.nav-section button.donate-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
    z-index: 0;
}

.nav-section button.donate-button:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.nav-section button.donate-button:hover {
    background-color: #c53030; /* Darker red on hover */
    transform: translateY(-3px); /* More pronounced lift effect */
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.4);
}

/* Responsive Nav Toggle Button */
.nav-toggle-button {
    display: none;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(to right top, rgba(40, 116, 166, 0.7), rgba(12, 70, 137, 0.7)), var(--hero-image-url);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 8rem 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    transition: background-image 0.8s ease-in-out, background-blend-mode 0.5s ease;
    position: relative;
    z-index: 1;
}

.hero-section:hover {
    background-blend-mode: multiply;
}

.hero-text {
    color: #ece6e6;
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Main Content Text */
.main-content-text p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #4A5568;
}

/* Section Titles */
.section-title {
    position: relative;
    font-weight: 700;
    font-size: 1.875rem;
    color: #2C3E50;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
}

.footer-bg .section-title {
    color: #cc2727;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #FFC107;
    border-radius: 2px;
    transition: width 0.3s ease-in-out, background-color 0.3s ease;
}

.section-title:hover::after {
    width: 80px;
    background-color: #f3a216;
}

/* Footer */
.footer-bg {
    background-color: #2C3E50;
    padding: 3rem 0;
    border-top: 1px solid #4A5568;
}

.footer-link {
    color: #1d64d0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #FFC107;
    transform: translateX(5px);
    text-decoration: underline;
}

.footer-bg .text-gray-400,
.footer-bg p {
    color: #1d64d0;
}

/* Cards */
.card-style {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFC107;
    color: #2C3E50;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #FFA000;
    transform: translateY(-3px);
}

/* Mobile Nav */
@media (max-width: 767px) {
    .nav-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0F172A;
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        z-index: 1050;
        display: flex;
    }

    .nav-section.nav-open {
        transform: translateX(0);
    }

    .nav-section ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        margin-top: 2rem;
    }

    .nav-section li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-section li a {
        padding: 0.75rem 0;
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        color: #E2E8F0;
    }

    .nav-section .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        padding-left: 1rem;
        background-color: #1F2937;
        border-radius: 0;
        margin-top: 0.5rem;
        border-top: 1px solid #2D3748;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }

    .nav-section .dropdown-content.hidden {
        max-height: 0;
    }

    .nav-section .dropdown-content li a {
        padding: 0.5rem 0;
        font-size: 1rem;
        color: #e7eaee;
    }

    .header-bg .nav-toggle-button {
        z-index: 1100;
        color: #E2E8F0;
    }
}
