/* Core Variables */
:root {
    --primary-color: #2c7ad6; /* A vibrant blue */
    --secondary-color: #6c757d; /* Muted grey */
    --accent-color: #28a745; /* Green for action/success */
    --text-dark: #333;
    --text-light: #555;
    --background-light: #f4f7f6;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --heading-color: var(--primary-color);
    --text-color: var(--text-dark);
    --text-color-light: var(--text-light);
    --primary-dark-color: #2163a8;
    --primary-rgb: 44, 122, 214;
    --header-bg-color: var(--white);
}

/* Base Styles & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #1e5aae;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* Section Headings */
.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 2.5px;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-padded {
    padding: 80px 0;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 75px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-donate-nav {
    padding: 10px 25px;
    font-size: 1rem;
    margin-left: 20px;
    border-radius: 30px;
    background-color: var(--accent-color);
    color: var(--white) !important;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-donate-nav:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

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

.dropdown-nav > a {
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    min-width: 180px;
}

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

.dropdown-menu li a {
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
    color: var(--text-color);
    border-bottom: none !important;
}

.dropdown-menu li a:hover {
    background-color: #f4f7f6;
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hamburger animation */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e5aae;
    border-color: #1e5aae;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-accent:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* --- Header Donate Button - Modified Size --- */
.btn-donate-nav {
    padding: 10px 25px;
    font-size: 1rem;
    margin-left: 20px;
    border-radius: 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.btn-donate-nav:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
    color: var(--white);
}
/* New: Added active state for consistent touch behavior */
.btn-donate-nav:active {
    background-color: #1a5d2b;
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* --- Image Button Design --- */
.btn-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-image img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.btn-image:hover {
    background-color: #1e5aae;
    border-color: #1e5aae;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: var(--white);
}

/* --- Hero Section (General) --- */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Specific Hero Backgrounds */
.hero-home {
    background-image: url('../images/senjeriy/children.jpg');
}
.hero-about {
    background-image: url('../images/food\ donate-9.jpg');
}
.hero-education {
    background-image: url('../images/food\ donate-7.jpg');
}
.hero-village {
    background-image: url('../images/tree\ palnatation.jpg');
}
.hero-projects {
    background-image: url('../images/project-medical.jpg');
}
.hero-medical-campaigns {
    background-image: url('../images/medical.jpg');
}
.hero-tuition-centers {
    background-image: url('../images/project-tuition.jpg');
}
.hero-welfare-activity {
    background-image: url('../projects/welfare.1.png');
}

/* --- General Content Cards / Grid --- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* --- About Us Specific --- */
.about-intro-text {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
}
.about-intro-text p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.mission-vision-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.mission-vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mission-vision-card h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- Contact Page Specific --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    justify-content: center;
}

.contact-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.contact-item h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-light);
}

.contact-form-container,
.volunteer-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.contact-form-container h2,
.volunteer-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2rem;
}

/* Form Styles (General) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(44, 122, 214, 0.2);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.1);
}

.form-privacy-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 25px;
    text-align: center;
}

.btn-form-submit {
    width: 100%;
    margin-top: 30px;
    font-size: 1.1rem;
    padding: 15px 0;
}

/* --- Success Stories Specific --- */
.story-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.story-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.story-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-content h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.story-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.story-content .read-more {
    font-weight: 600;
    align-self: flex-start;
}

/* --- Modal (Donation Form) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    max-width: 550px;
    width: 95%;
    transform: translateY(-30px);
    transition: transform var(--transition-speed) ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-button {
    color: var(--secondary-color);
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-dark);
}

.modal-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.modal-body {
    padding: 10px 0;
}

.btn-primary-form {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary-form:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: var(--white);
}
.btn-primary-form:active {
    background-color: #1a5d2b;
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- Footer --- */
.site-footer-modern {
    background-color: #222;
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 25px;
    margin-top: auto;
}

.site-footer-modern .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    justify-content: center;
}

.site-footer-modern .footer-col {
    text-align: center;
}

.site-footer-modern .footer-col h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}
.site-footer-modern .footer-col h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 1.5px;
}

.site-footer-modern .footer-col.about-col h3::after {
    display: none;
}

.site-footer-modern .footer-col ul {
    padding: 0;
    text-align: center;
}

.site-footer-modern .footer-col ul li {
    margin-bottom: 12px;
    display: block;
}

.site-footer-modern .footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Nunito', sans-serif;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: inline-block;
}

.site-footer-modern .footer-col ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.site-footer-modern .footer-col p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.site-footer-modern .footer-col .logo img {
    height: 80px;
    margin-top: 15px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.site-footer-modern .social-icons {
    display: flex;
    margin-top: 20px;
    justify-content: center;
}
.site-footer-modern .social-icons a {
    margin-right: 15px;
}
.site-footer-modern .social-icons img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.site-footer-modern .social-icons img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.site-footer-modern .footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Font Awesome Icons (Add this to your HTML <head>) --- */
/* <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> */

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-nav {
        order: 1; /* Pushes nav to the right side of the logo */
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        /* This hides the main menu by default */
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links.active {
        /* This expands the main menu on click */
        max-height: 500px; /* A large value to show all content */
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }
    
    .nav-links a {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .btn-donate-nav {
        margin-left: 0;
        margin-top: 10px;
        width: auto;
    }

    /* === The Key Fix for Dropdown Overlap === */
    .dropdown-nav .dropdown-menu {
        /* Prevents dropdown from being an absolute element on mobile */
        position: static;
        box-shadow: none;
        background-color: transparent;
        border-radius: 0;
        
        /* This hides the dropdown by default and enables a smooth accordion transition */
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: max-height 0.3s ease-in-out;
        padding: 0;
    }
    
    /* This rule shows the dropdown when the parent `<li>` has the 'active' class */
    .dropdown-nav.active .dropdown-menu {
        max-height: 300px; /* A large value to show the content */
        visibility: visible;
        opacity: 1;
        padding-left: 20px; /* Add indentation for sub-items */
        background-color: #f8f9fa; /* Light background for visual separation */
    }

    .dropdown-nav.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .site-footer-modern .footer-col p,
    .site-footer-modern .footer-col ul,
    .site-footer-modern .footer-col ul li {
        text-align: center;
    }
    .site-footer-modern .footer-col ul li a {
        display: inline-block;
    }
    .site-footer-modern .footer-col .logo img {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section-padded {
        padding: 60px 0;
    }
    .card {
        padding: 25px;
    }
    .card h3 {
        font-size: 1.6rem;
    }
    .contact-form-container, .volunteer-form-container, .modal-content {
        padding: 30px;
    }
    .modal-content h2 {
        font-size: 2rem;
    }

    .contact-info-grid,
    .mission-vision-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .btn-image {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .btn-image img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .site-header .logo img {
        height: 50px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .lead-text {
        font-size: 1rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .btn-donate-nav {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.modal-content h2 {
    color: var(--heading-color);
    font-size: 2em;
    margin-bottom: 15px;
}

.modal-content p.text-center {
    color: var(--text-color-light);
    margin-bottom: 25px;
}

.modal-body {
    padding: 0 15px;
}

.modal-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9em;
    color: var(--text-color-light);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-color);
    background-color: #f8f8f8;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    outline: none;
}

.btn-primary-form {
    display: block;
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--white); /* Changed to white for consistency */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-primary-form:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
}

body.modal-open,
body.nav-open {
    overflow: hidden;
}

.modal[style*="display: block"] {
    display: flex;
}

@media (max-width: 768px) {
    .main-nav .nav-links {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white); /* Ensures a visible background */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.1);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
        padding: 0 20px;
    }

    .main-nav .nav-links.active {
        max-height: 500px;
        padding: 20px 20px;
        overflow-y: auto;
    }

    .main-nav .nav-links li {
        width: 100%;
        margin: 10px 0;
        text-align: left;
    }

    .main-nav .nav-links li a {
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .main-nav .nav-links li:last-child a {
        border-bottom: none;
    }

    .main-nav .dropdown-menu {
        position: static;
        visibility: hidden;
        opacity: 0;
        max-height: 0;
        transform: translateY(0);
        box-shadow: none;
        background-color: rgba(0,0,0,0.05);
        transition: max-height 0.3s ease-out, visibility 0.3s ease-out, opacity 0.3s ease-out;
        padding-left: 15px;
        border-radius: 0;
    }

    .main-nav .dropdown-menu.active {
        visibility: visible;
        opacity: 1;
        max-height: 300px;
        margin-top: 5px;
    }

    .main-nav .dropdown-menu li a {
        padding: 8px 0;
        font-size: 0.95em;
    }

    .main-nav .dropdown-arrow.rotate {
        transform: rotate(180deg);
    }
}
/* --- CTA Section: Professional & Modern --- */

#cta-donate {
    /* Main Container Color: A professional deep blue-gray */
    background-color: #1A2B40;
    color: #ffffff;
    padding: 80px 0;
    font-family: 'Lato', sans-serif;
    text-align: center;
    overflow: hidden;
}

#cta-donate .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Two-column layout wrapper for desktop/larger screens */
.cta-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

/* Left and Right Boxes: Unified Color and Style */
.cta-text-box,
.cta-qr-box {
    background-color: #ffffff; /* A clean white background for both boxes */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.cta-text-box:hover,
.cta-qr-box:hover {
    transform: translateY(-5px);
}

/* Left Side: Text Box */
.cta-text-box {
    text-align: left;
}

.cta-text-box h2 {
    font-size: 1.8em;
    color: #1A2B40; /* Dark color for headings on white background */
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
}

.cta-text-box h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 2px;
}

.cta-text-box p {
    /* No bullet points as requested */
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555555; /* Dark text for body on white background */
}

/* Right Side: QR Code Box */
.cta-qr-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cta-qr-box .qr-heading {
    font-size: 1.8em;
    color: #1A2B40; /* Dark color for heading */
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.cta-qr-box .qr-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ffc107;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 1.5px;
}

.cta-qr-box .qr-container {
    background-color: #f8f9fa; /* Light background for QR container */
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 0 2px #ffc107, 0 6px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.cta-qr-box .qr-container:hover {
    transform: scale(1.03);
}

.cta-qr-box img {
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto;
}

.cta-qr-box .upi-text {
    font-size: 1.15em;
    color: #343a40; /* Dark text for UPI ID line */
    font-weight: 600;
    margin-bottom: 10px;
}

.cta-qr-box .upi-id {
    color: #ffc107;
    font-weight: 700;
    text-align: center;
    display: block;
    word-break: break-all;
}

.cta-qr-box .upi-info {
    font-size: 0.95em;
    color: #555555;
    margin-top: -5px;
    font-weight: 500;
}

/* Media Query for Mobile */
@media (max-width: 991px) {
    .cta-content-wrapper {
        grid-template-columns: 1fr;
    }
}