@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;500&display=swap');

:root {
    --white: white;
    --black: black;
    --header-gradient: linear-gradient(90deg, #1400f0, #00c9df);
    --light-dim: #777;
    --card-h1: rgb(38, 36, 36);
    --global-bg: #f4f7fc;
    --security-head: #1a2b48;
    --border: rgba(0, 0, 0, 0.27);
    --body-gradient: linear-gradient(to bottom, #FFFFFF, #F4F7FA);

    --our-story-bg: radial-gradient(circle at 20% 30%, rgba(245, 122, 147, 0.3), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(3, 124, 224, 0.3), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(17, 221, 119, 0.3), transparent 60%);
}

html.dark-mode {
    --white: black;
    --black: white;
    --header-gradient: linear-gradient(90deg, #8400f0, #76048a);
    --light-dim: #e3e3e3;
    --card-h1: rgb(222, 208, 208);
    --global-bg: #444446;
    --security-head: #7388ac;
    --border: rgba(223, 223, 223, 0.27);
    --body-gradient: linear-gradient(to bottom, #1A202C, #121212);

    --our-story-bg: radial-gradient(circle at 20% 30%, rgba(11, 11, 11, 0.882), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(16, 38, 53, 0.733), transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(28, 28, 26, 0.858), transparent 60%);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--white);
    transition: all 0.3s ease-in;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    padding-top: 70px;
    background: var(--body-gradient);

}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-cls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 10px;
    /* background-color: var(--white); */
    /* background-color: rgba(0, 0, 255, 0.538); */
    background: var(--header-gradient);
}

.logo img {
    width: 180px;
    padding: 10px;
}

.menu-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.menu-items a {
    font-size: 18px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease-in;
}

.menu-items a:hover {
    color: rgb(0, 234, 255);
    transform: translateY(-4px);
}

.home-nav {
    position: relative;
}

.home-select {
    position: absolute;
    display: none;
    top: 100%;
    left: 0%;
    width: 150px;
    background-color: rebeccapurple;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 20px;
}

.home-select a {
    color: rgb(248, 248, 248) !important;
}

.home-nav:hover .home-select {
    display: block;
}

.menu-sett {
    display: flex;
    align-items: center;
}

.menu-login {
    display: none;
}

.sign-in-menu a {
    text-decoration: none;
    padding: 10px 10px;
    border: 2px solid;
    border-radius: 25px;
    margin-right: 20px;
    color: white;
    transition: all 0.4s ease-in;
    margin-left: 30px;
    cursor: pointer;
}

.sign-in-menu a:hover {
    background-color: rgb(249, 249, 255);
    color: blue;
    border-color: white;
}

.theme-toggle {
    padding: 10px 10px;
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0);
    color: white;
    cursor: pointer;
}

.theme-toggle:hover {
    border: 1px solid rgba(0, 0, 255, 0.597);
    border-radius: 50px;
}

.theme-toggle span {
    font-size: 28px;
}

.hamburger {
    display: none;
    color: white !important;
}

.close-btn {
    display: none;
}

@media (max-width:768px) {

    .menu-items {
        display: none;
    }

    .sign-in-menu {
        display: none;
    }

    .menu-items {
        flex-direction: column;
        background: #0e0d0dcc;
        position: fixed;
        top: 0;
        right: 0;
        width: 180px;
        height: 100%;
        padding: 60px 20px;
        transition: right 0.3s ease;
        z-index: 999;

    }

    .menu-login {
        display: block;
    }

    .menu-items a {
        color: white;
    }

    .menu-items button {
        color: rgb(255, 255, 255);
    }

    .close-btn {
        display: block;
        color: rgb(0, 0, 0);
        background-color: #0385ff00;
        cursor: pointer;
        border-color: #00000000;
        border: 2px solid;
    }

    .hamburger {
        display: block;
        margin-right: 20px;
        cursor: pointer;
        color: var(--black);
    }

    .menu-items.show {
        right: -30px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-content: flex-start;
    }

    .sign-in-menu.show {
        display: block;
        margin-top: 20px;
        color: white;
    }

    .hamburger:hover {
        color: #b82e5e;
    }

}


.footer {
    margin-top: 3%;
    background: linear-gradient(135deg, #0a0f29, #1a1a1a);

}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 10px;

}

.follow-us img {
    width: 50px;
}

.footer-tagline {
    color: wheat;
    text-indent: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer h1 {
    color: #facc15 !important;
}

.footer-links a {
    text-decoration: none;
    text-indent: 25px;
    transition: all .2s ease-in;
    color: #a5b4fc;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #6366f1;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-info li {
    list-style: none;
    color: #d1d5db;
}

.footer-contact-info a {
    color: #a5b4fc;
    text-decoration: none;
}

.footer-contact-info a:hover {
    color: #6366f1;
    text-decoration: underline;
}

.footer-legel-link li {
    list-style: none;
}

.footer-legel-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-legel-link a {
    text-decoration: none;
    color: #a5b4fc;
}

.footer-legel-link a:hover {
    color: #6366f1;
    text-decoration: underline;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}

.news-letter h2 {
    color: #0febff;
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.newsletter-form input {
    padding: 16px 10px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid white;
    transition: all 0.3s ease-in;
}

.newsletter-form button {
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    border-color: transparent;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    transition: all 0.3s ease-in;
}

.newsletter-form button:hover {
    background-color: #007CF0;
    border-color: transparent;
}

.footer-copyright {
    padding: 20px 10px;
    text-align: center;
    color: whitesmoke;
}

/* Page Header Style */
.section-header {
    text-align: center;
    /* padding: 80px 0px; */
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2a81d8;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-dim);
    font-style: italic;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem !important;
    color: #7b00ff;
}

/* Page Content Style */
.campaigns-hero {
    padding: 100px 20px;
    text-align: center;
    background-color: #f8f9fa;
    background-image: linear-gradient(rgba(0, 0, 0, 0.666), rgba(0, 0, 0, 0.648)), url('./assets/donate-campaigns-hero.jpg');
    background-position: center center;
    background-size: cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}


.filter-section {
    padding: 0 20px 60px 20px;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    /* For smaller screens */
}

.filter-category-btn {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #556278;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-category-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.filter-category-btn.active {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.filter-category-btn.urgent {
    color: #dc3545;
    border-color: #dc3545;
}

.filter-category-btn.urgent:hover,
.filter-category-btn.urgent.active {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.campaign-grid-section {
    padding: 0 20px 100px 20px;
}
@media (max-width:478px) {
    .campaign-grid-section{
        padding: 0%;
    }
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.campaign-card {
    background-color: var(--white);
    background: linear-gradient(135deg, #4d37f8c2, #0330e69e);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white !important;
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    /* background-image: url('https://placehold.co/600x400/e9ecef/adb5bd?text=Image'); */
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 123, 255, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.card-uploader {
    font-size: 0.9rem;
    /* color: #889; */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-description {
    /* color: #556278; */
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
}

.campaign-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    /* color: #556278; */
    margin-bottom: 20px;
    text-align: center;
}

.campaign-stats span {
    font-weight: 700;
    /* color: #1a2b48; */
    display: block;
}

.card-actions {
    display: flex;
    gap: 15px;
}

.btn-donate,
.btn-read-more {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-donate {
    background-color: #007bff;
    color: #fff;
}

.btn-donate:hover {
    background-color: #0056b3;
}

.btn-donate.completed {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-read-more {
    background-color: #e9ecef;
    color: #343a40;
}

.btn-read-more:hover {
    background-color: #dee2e6;
}

/* --- Modal Styles --- */
.donate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.donate-modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.donate-modal-content {
    background-color: #fff;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.donate-modal-overlay:not(.hidden) .donate-modal-content {
    transform: scale(1);
}

.donate-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.donate-modal-body {
    padding: 40px;
}

.donate-modal-body .card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.donate-modal-body h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.donate-modal-body p {
    line-height: 1.7;
    color: #556278;
    margin-bottom: 20px;
}

.donate-modal-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #889;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.donate-modal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.donate-modal-progress-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.donate-circular-progress-container {
    flex-shrink: 0;
}

.donate-circular-progress {
    position: relative;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(from 0deg, #28a745 calc(var(--value, 0) * 1%), #e9ecef 0);
}

.donate-circular-progress:before {
    content: "";
    position: absolute;
    height: 80%;
    width: 80%;
    background-color: #f8f9fa;
    border-radius: 50%;
}

.donate-progress-value {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b48;
}

.donate-modal-stats {
    flex-grow: 1;
}

.donation-form-container,
.donation-confirmation {
    text-align: center;
}

.donation-uploader {
    font-size: 1.1rem;
    color: #556278;
    margin-bottom: 30px;
}

.donation-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #343a40;
}

.amount-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.amount-input-container:focus-within {
    border-color: #007bff;
}

.amount-input-container span {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 15px;
    color: #adb5bd;
}

.amount-input-container input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    padding: 15px 0;
}

.preset-amounts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.preset-btn {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}

.btn-proceed,
.btn-primary.modal-close-confirm {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #28a745, #20c997);
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-proceed:hover {
    transform: scale(1.02);
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.donation-confirmation h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.donation-confirmation p {
    margin-bottom: 10px;
}

.btn-primary.modal-close-confirm {
    margin-top: 20px;
    background: #007bff;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-filter-bar {
        flex-direction: column;
        border-radius: 20px;
        gap: 15px;
        padding: 20px;
    }

    .search-input-group {
        padding: 0 10px 15px 10px;
        border-bottom: 1px solid #e9ecef;
        width: 100%;
    }

    .filter-buttons {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 15px;
        width: 100%;
        justify-content: center;
    }

    .search-btn {
        width: 100%;
    }
}



.start-campaign-cta {
    padding: 100px 20px;
    background-color: #f4f7fc;
    overflow: hidden;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a2b48;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: #556278;
    line-height: 1.7;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: #343a40;
    margin-bottom: 15px;
}

.benefits-list i {
    color: #007bff;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.btn-cta {
    display: inline-block;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.4);
}

.social-proof {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #8899a6;
}

.cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-image-wrapper img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

@media (max-width: 992px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .benefits-list {
        display: inline-block;
        text-align: left;
    }

    .cta-image-wrapper {
        margin-top: 40px;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    overflow-y: auto;
    justify-content: center;
    padding: 5px;
}

.modal-content {
    border-radius: 12px;
    overflow-y: auto;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@media (max-width:768px) {
    .modal-content {
        margin-top: 5%;
    }
}


@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}