/* --- General Styles --- */
body {
    font-family: 'Heebo', sans-serif;
}

/* =========================================
   1. GLOBAL SETTINGS
   ========================================= */
html,
body {
    overflow-x: hidden;
    /* Prevents horizontal scrollbar */
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Pushes content down so it doesn't hide behind the fixed header. */
body {
    padding-top: 140px;
}

/* =========================================
   2. HEADER SECTION (Container)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1020;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    /* Spacing Fixes */
    padding-top: 15px;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* =========================================
   3. TOP ROW (Logo & Donate Button)
   ========================================= */
.flex-align {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
}

.logo {
    height: 60px;
    width: auto;
}

.btn {
    font-size: 16px;
    font-weight: 700;
    border-radius: 20px;
    padding: 8px 20px;
}

.btn-dark {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

/* =========================================
   4. NAVBAR STYLING
   ========================================= */
.header .navbar-default {
    background-color: #2b6cb0;
    border-color: #2a4365;
    border: none !important;
    margin-bottom: 0 !important;
    min-height: 50px;
    border-radius: 0 !important;
}

/* Link Styling */
.navbar-default .navbar-nav>li>a {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 20px;
    line-height: 20px;
}

/* Hover Effects */
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
    color: #ffffff;
    background-color: #4299e1;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.dropdown-menu>li>a {
    font-weight: 500;
    color: #333;
    padding: 10px 20px;
}

/* Center Nav on Desktop */
@media (min-width: 768px) {
    .navbar-nav.center-nav {
        float: none;
        margin: 0 auto;
        display: inline-block;
    }

    .navbar-default .container {
        text-align: center;
    }
}

/* =========================================
   5. MOBILE RESPONSIVENESS (The Fix)
   ========================================= */
@media (max-width: 767px) {

    /* --- A. Fix Top Row (Logo & Donate on one line) --- */
    .flex-align {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Forces them side-by-side */
        justify-content: space-between !important;
        padding-bottom: 5px;
    }

    /* Resize columns to fit content */
    .header .col-xs-6 {
        width: auto !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Make logo smaller */
    .logo {
        height: 40px !important;
    }

    /* Make button smaller */
    .btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
        margin-top: 0;
    }

    /* --- B. Fix Navbar (Hamburger & Collapsing) --- */

    /* Make Hamburger Lines White */
    .navbar-default .navbar-toggle .icon-bar {
        background-color: #fff;
    }

    .navbar-default .navbar-toggle {
        border-color: transparent;
        margin-right: 0;
    }

    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background-color: #4299e1;
    }

    /* Navbar alignment fixes */
    .navbar-header {
        text-align: right;
        /* Puts hamburger on the right */
    }

    /* Collapsed Menu Styling */
    .navbar-nav.center-nav {
        margin: 0;
        text-align: left;
        /* Align links to left in menu */
    }

    .navbar-default .navbar-nav .open .dropdown-menu>li>a {
        color: #fff;
        /* White text inside mobile dropdown */
        padding: 10px 25px;
    }

    /* Reduce body padding for smaller header */
    body {
        padding-top: 110px !important;
    }
}



/* --- Get Involved Banner Section --- */

.get-involved-banner {
    position: relative;
    /* Establishes a positioning context for the text box */
    background-image: url('getinvolved1.png');
    background-size: cover;
    background-position: center center;
    min-height: 600px;
    /* Adjust height as needed */
    color: #ffffff;
    /* Sets default text color for the section */
}

/* This creates the gradient overlay */
.get-involved-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient from a slight blue tint on the left to dark on the right */
    background: linear-gradient(to right, rgba(43, 108, 176, 0.2) 0%, rgba(0, 0, 0, 0.95) 65%);
    z-index: 1;
}

/* This is the container for your text, positioned directly */
.get-involved-banner .banner-content {
    position: absolute;
    /* Positions the text relative to the banner */
    top: 50%;
    /* Aligns the top of the text box to the middle */
    right: 5%;
    /* Positions the text box 5% from the right edge */
    transform: translateY(-50%);
    /* Perfectly centers the text box vertically */
    z-index: 2;
    /* Ensures text is on top of the gradient */
    width: 45%;
    /* Limits the width of the text box */
    max-width: 550px;
    /* Sets a max width for very large screens */
    padding: 20px;
    text-align: left;
}

.get-involved-banner h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* This styles the "Niswarth Sewa" text to be blue */
.get-involved-banner .text-blue {
    color: #63b3ed;
    /* A lighter, vibrant blue for contrast on the dark background */
}

.get-involved-banner p {
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 30px;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .get-involved-banner {
        min-height: 450px;
        display: flex;
        /* Use flexbox for centering on mobile */
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .get-involved-banner::before {
        /* Make the gradient cover more of the screen on mobile for readability */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    }

    .get-involved-banner .banner-content {
        position: static;
        /* Revert to normal positioning on mobile */
        transform: none;
        width: 90%;
        padding: 20px 0;
        text-align: center;
    }

    .get-involved-banner h1 {
        font-size: 40px;
    }
}

/* --- How to Help Section --- */

.how-to-help-section {
    padding-top: 80px;
    background-color: #f8f9fa;
    /* Light gray background for the whole area */
}

/* 1. Floating Intro Box */
.how-to-help-intro-box {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: -70px;
    /* Pulls the blue stripe up behind it */
}

.how-to-help-intro-box h2 {
    font-weight: 800;
    font-size: 32px;
    color: #333;
}

.how-to-help-intro-box p {
    color: #555;
    max-width: 650px;
    margin: 20px auto 0 auto;
    /* Removed bottom margin */
}

/* 2. Blue Stripe */
.how-to-help-blue-stripe {
    background-color: #2b6cb0;
    padding: 120px 0 80px 0;
    /* Adjusted bottom padding */
    color: white;
}

/* Card Styling */
.help-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* Removed height: 100%; to allow cards to size to their content */
    display: flex;
    flex-direction: column;
}

.help-card-icon {
    font-size: 36px;
    color: #2b6cb0;
    margin-bottom: 20px;
}

.help-card h3 {
    color: #2b6cb0;
    font-weight: 700;
    font-size: 24px;
}

.help-card p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    flex-grow: 1;
    /* Pushes the button to the bottom */
}

.help-card-btn {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 20px;
}

/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    .help-card {
        margin-bottom: 30px;
    }
}

/* --- Organisation Collaboration Information Section --- */

.collaboration-info-section {
    padding: 100px 0;
    background-color: #ffffff;
}

/* --- Image Collage Styling --- */
.collaboration-image-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.collaboration-image-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.collaboration-image-collage img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.collage-img-1 {
    grid-row: 1 / 3;
}

.collage-img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.collage-img-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* --- Text Content Styling --- */
.text-content-right {
    padding-left: 60px;
    border-left: 3px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content-right h2 {
    font-size: 3rem !important;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: #2d3748;
}

.text-content-right .highlight-blue {
    color: #2b6cb0;
}

.text-content-right p {
    font-size: 1.25rem !important;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
    max-width: 650px;
}

.btn-apply-now {
    display: inline-block;
    background-color: #2b6cb0;
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start;
}

.btn-apply-now:hover {
    background-color: #2c5282;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .collaboration-image-collage {
        margin-bottom: 50px;
    }

    .text-content-right {
        padding-left: 0;
        border-left: none;
        text-align: center;
        align-items: center;
    }

    .btn-apply-now {
        align-self: center;
    }
}

@media (max-width: 576px) {
    .collaboration-image-collage {
        grid-template-rows: repeat(2, 200px);
    }

    .text-content-right h2 {
        font-size: 2.2rem !important;
    }

    .text-content-right p {
        font-size: 1rem !important;
    }
}

/* General styling for the banner section */
.donation-banner {
    background-color: #2a2a2a;
    /* Dark background color */
    color: #ffffff;
    /* White text color */
    padding: 40px 0;
    /* Reduced padding for a more compact banner */
    overflow: hidden;
}

/* Aligns the text and image side-by-side and centers them vertically */
.donation-banner .container .row {
    display: flex;
    align-items: center;
}

/* Styles for the text content on the left */
.donation-text-content h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Styles for the highlighted blue text */
.donation-text-content .text-highlight {
    color: #007bff;
    /* Highlight color changed to blue */
}

/* Styles for the paragraph text */
.donation-text-content p {
    font-size: 16px;
    color: #dddddd;
    margin-bottom: 30px;
}

/* Styles for the "Donate Now" button */
.btn-donate-now {
    background-color: #007bff;
    /* Button color changed to blue */
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

/* Changes the button color when you hover over it */
.btn-donate-now:hover {
    background-color: #0056b3;
    /* A darker blue for the hover effect */
    color: #ffffff;
}

/* Container for the image, ensuring it is vertically centered */
.donation-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Styles for the image to ensure it scales properly */
.donation-image {
    max-width: 100%;
    /* Ensures image is responsive */
    height: auto;
    /* Maintains the aspect ratio */
    max-height: 350px;
    /* Limits the image height to prevent it from being too tall */
    display: block;
}


/* --- Site Footer Existing Styles --- */
.site-footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding-top: 60px;
    font-size: 15px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-style: italic;
    margin-bottom: 25px;
}

.footer-contact-info p {
    margin-bottom: 10px;
}

.footer-contact-info a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-info a:hover {
    color: #ffffff;
}

.footer-contact-info .glyphicon {
    margin-right: 10px;
    color: #4299e1;
}

.footer-social-icons {
    margin-top: 25px;
}

.footer-social-icons a img {
    height: 32px;
    width: 32px;
    margin-right: 15px;
    opacity: 0.8;
    transition: all 0.2s ease-in-out;
}

.footer-social-icons a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.site-footer h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.developer-credit {
    text-align: right;
    font-style: italic;
    color: #A0AEC0;
}

/* Make the name clickable */
#dev-credit-link {
    color: #4299e1;
    /* Light Blue to show it is clickable */
    text-decoration: none;
    border-bottom: 1px dashed #4299e1;
    cursor: pointer;
}

#dev-credit-link:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

.footer-bottom-bar {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #2D3748;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

/* Responsive adjustments for mobile */
@media (max-width: 991px) {
    .site-footer {
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .col-md-2,
    .col-md-3,
    .col-md-4 {
        margin-bottom: 40px;
    }

    .developer-credit {
        text-align: center;
    }
}

/* --- NEW: Modal Popup Styles --- */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    backdrop-filter: blur(2px);
    /* Slight blur effect */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    /* Max width of the popup card */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    font-family: 'Heebo', sans-serif;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header (Blue part) */
.modal-header {
    background-color: #2b6cb0;
    /* Your theme blue */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #e2e8f0;
}

/* Body (White part) */
.modal-body {
    padding: 25px 20px;
    text-align: center;
    color: #333;
}

.modal-subtitle {
    color: #718096;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-contact-item {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-contact-item a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.modal-contact-item a:hover {
    text-decoration: underline;
}

.modal-contact-item .glyphicon {
    color: #4a5568;
}

/* Instagram Icon Area */
.modal-icon-area {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-insta-logo {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-insta-logo:hover {
    transform: scale(1.1);
}