body {
    font-family: "Gabriela", serif;
    font-weight: 400;
    font-style: normal;
    background-color: #f9f6f1;
}

p {
    font-family: "Cactus Classical Serif", serif;
    font-weight: 400;
    font-style: normal;
}

.navbar-nav li {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 407px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    padding-left: 120px;
    z-index: 1;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #1e1e1e 0%, rgba(30, 30, 30, 0) 100%);
    z-index: 2;
}

.hero-text {
    position: relative;
    font-family: 'Amethysta', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 57px;
    color: #ffedca;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    white-space: pre-line;
    z-index: 3;
}


/* Main Content */
.main-content {
    padding: 50px 70px;
}

.section-title {
    font-family: 'Gabriela', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 41px;
    color: #000000;
    margin-bottom: 12px;
}

.section-description {
    font-family: 'Cactus Classical Serif', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: #000000;
    margin-bottom: 40px;
}

/* Impact Section */
.impact-icon {
    width: 99px;
    height: 99px;
    border-radius: 50%;
    border: 20px solid #D8D8FD; /* Default border; can be overridden per color class */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 10px; /* Center and add spacing below */
    color: white;
}
.icon-blue {
    width: 99px;
    height: 99px; /* Ensures it's a square for perfect circle */
    background-color: #6464f8;
    color: white;
    border: 20px solid #D8D8FD;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* Optional: to size the icon */
}



.icon-green {
    width: 99px;
    height: 99px;
    background: #8dc43e;
    color: white;
    border: 20px solid #e2f0ce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.icon-red {
    width: 99px;
    height: 99px;
    background-color: #f86464;
    border: 20px solid #fdd8d8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.icon-yellow {
    width: 99px;
    height: 99px;
    background: #e8de56;
    color: white;
    border: 20px solid #f7f9e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}

.form-section label {
    font-weight: 500;
}

.tags span {
    background: #fff3d6;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    margin: 3px;
    display: inline-block;
}

.donate-btn {
    background-color: #f46457;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.donation-text {
    font-size: 30px;
}

.donation-default-price {
    background: #ffe3e0;
    color: #000;
    border: 1px solid #fca59c;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
}

/* Financial Details Section */
.financial-section {
    background-color: #fff5e0;
    border-radius: 8px;
    height: auto;
    padding: 16px;
    margin: 32px 0;
    display: flex;
    justify-content: space-between;
}

.financial-section div {
    width: max-content;
}

.financial-title {
    font-family: 'Gabriela', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 41px;
    color: #000000;
    margin-bottom: 7px;
}

.financial-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 24px;
    color: #000000;
}

/* Impact Stories */


/* Thank You Section */
.thank-you-section {
    margin-top: 96px;
}

.thank-you-title {
    font-family: 'Gabriela', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 41px;
    color: #000000;
    margin-bottom: 8px;
}

.thank-you-text {
    font-family: 'Cactus Classical Serif', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #000000;
    margin-bottom: 4px;
}

.thank-you-emphasis {
    font-family: 'Cactus Classical Serif', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    color: #000000;
}

.footer {
    background-color: #3e206e;
    color: #fff;
    padding: 50px 20px;
}

.footer h5 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ddd;
    text-decoration: none;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer p {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-logo {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 70px;
    margin-bottom: 15px;
}

.footer .btn-donate {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    margin-right:0px;
}

.footer .btn-donate:hover {
    background-color: #e64b4b;
}

.footer .btn-volunteer {
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    background: transparent;
    margin-top: 10px;
}

.footer .btn-volunteer:hover {
    background-color: #fff;
    color: #3e206e;
}

/* impact section */
.impact-section {
    padding: 60px 0;
    overflow-x: hidden;
}

.impact-stories-content {
    margin: 0 auto;
    padding: 50px 15px;
}

.impact-stories-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.impact-carousel-wrapper {
    position: relative;
}

.impact-carousel {
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: transform 0.5s ease;
    gap: 1.4rem; /* optional: reduce or control spacing manually */
}


.story-card {
    margin: 20px 0; 
    width: 288px;
    height: 384px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    flex: 0 0 auto;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
   
}

.story-card.featured {
    margin: 20px 0px 20px 0px;
    border-radius: 20px 0px 20px 0px;
    width: 795px;
    height: 450px;
    background: #e5c494;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.story-card {
    order: 3;
}

.story-card.featured {
    order: 1;
}
.story-card.hidden {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 55%;
    object-fit: fill;
    
}

.featured .story-image {
    width: 50%;
    height: 100%;
}

.story-body {
    padding: 20px;
    overflow: hidden;
    height: 45%;
}

.featured .story-body {
    height: 100%;
    width: 50%;
    padding: 30px;
}

.story-body h5 {
    font-weight: bold;
}

.story-nav {
    position: absolute;
    top: 25px;
    left: 68%;
    transform: translateX(-40%);
    z-index: 10;
    display: flex;
    gap: 20px;
    pointer-events: none;
}

.story-nav i {
    background: white;
    border: 2px solid #fba89d;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    pointer-events: auto;
    transition: 0.3s;
}

.story-nav i:before {
   color:#fba89d;
}




.story-nav i:hover {
    background: #f76c5e;
    color: #fff;
}

.dot-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #f76c5e;
}

/* Make image take more space in non-featured cards */
.story-card:not(.featured) .story-image {
    height: 80%; /* Increased from 55% to 75% */
}

/* Reduce story body height in non-featured cards */
.story-card:not(.featured) .story-body {
    height: 20%;  /* Adjusted to match new layout */
    padding: 10px; /* Less padding for tighter layout */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 40px 60px;
    }

}

@media(max-width: 992px) {

    .donation-default-price {
        flex: 1 1 48%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-left: 20px;
        height: 300px;
    }

    .hero-text {
        font-size: 32px;
        line-height: 40px;
    }

    .main-content {
        padding: 30px 20px;
    }

    
    .impact-stories-content h3 {
        text-align: center;
    }


    .impact-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .impact-carousel::-webkit-scrollbar {
        display: none;
    }

    .story-card {
        width: 100% !important;
        height: 520px !important;
        flex-direction: column;
        scroll-snap-align: center;
        flex: 0 0 100%;
        display: block !important;
    }

    .story-card.featured {
        display: flex !important;
        flex-direction: column;
    }

    .featured .story-image,
    .featured .story-body {
        width: 100% !important;
        height: auto !important;
    }

    .story-card .story-image {
        height: 260px !important;
        object-fit: cover;
    }

    .story-card .story-body {
        height: 260px !important;
        overflow-y: auto;
    }

    .story-nav {
        display: none;
    }

    

    .financial-section {
        flex-direction: column;
        gap: 20px;
    }

    .financial-section div {
        width: 100%;
    }

}

@media (max-width: 576px) {

    .donation-text {
        font-size: 22px;
    }

    .donation-default-price {
        font-size: 14px;
        padding: 8px 14px;
        flex: 1 1 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 28px;
        line-height: 34px;
    }

    .section-title {
        font-size: 24px;
        line-height: 30px;
    }


}