
.carousel-item {
    position: relative;
}

.carousel-text {
    position: absolute;
    z-index: 1;
    top: 30%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    /* Add text shadow for readability */
}

/* Default image for larger screens */
.carousel-item img.desktop-image {
    display: block;
}

/* Image for small screens */
.carousel-item img.mobile-image {
    display: none;
}

/* Media query for small screens (max-width: 768px) */
@media (max-width: 768px) {
    .carousel-item img.desktop-image {
        display: none;
    }

    .carousel-item img.mobile-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

}

.causes {
    height: 150px;
    /* Optional: Set a fixed height for cards */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* Optional: Add some border-radius for aesthetics */
}

.causes img {
    max-height: 100px;
    /* Restrict image size */
    object-fit: contain;
    /* Maintain aspect ratio */
}

/* Style for centering text */
.carousel-text-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* Ensures text is above images */
    color: white;
    /* Makes text visible on dark backgrounds */
    text-align: center;
}

.carousel-inner img {
    filter: brightness(70%);
    /* Darkens images to make text more visible */
}

.carousel-item {
    height: 100vh;
    /* Set height to 100% of the viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Ensures any overflow is hidden */
}

.carousel-video {
    width: 100%;
    /* Make the video full width */
    height: 100%;
    /* Make the video fill the full height */
    object-fit: cover;
    /* Ensures video fills container without distorting */
}

/* Chart styling */
.chart-container {
    position: relative;
    width: 80%;
    height: 370px;
    padding: 20px;
    /* background-color: #5d5d5d; */
    border-radius: 10px;
}

.chart-svg {
    display: block;
    margin: 0 auto;
    max-width: 500px;
}

.source {
    text-align: right;
    font-size: 0.9rem;
    color: #e7e7e7;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    background: url('/img/Aboutdr.jpg') no-repeat center center fixed;
    /* Background image */
    background-size: cover;
    /* Cover the entire container */
    overflow: hidden;
    /* Hide any overflowing content */
}

/* Text Content Styling */
.parallax-content {
    position: absolute;
    top: 50%;
    left: 29%;
    transform: translate(-50%, -50%);
    /* Center the content */
    color: white;
    text-align: left;
    max-width: 600px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    /* Slight dark background for contrast */
}

/* Text Container Styling */
.text-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-container p {
    font-size: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sticky-donate-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    /* Ensure the button is above other elements */
    background-color: #ff5722;
    /* Bright and attention-grabbing color */
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.sticky-donate-btn:hover {
    transform: scale(1.1);
    /* Slight zoom on hover */
    background-color: #e64a19;
    /* Darker shade on hover */
}

/* Parallax Effect */
/* @keyframes parallax {
    0% { background-position: center; }
    100% { background-position: center -200px; } 
}

.parallax-section {
    animation: parallax 10s infinite linear;
} */

/* Make the section responsive */
@media screen and (max-width: 768px) {
    .text-container h1 {
        font-size: 2rem;
    }

    .text-container p {
        font-size: .85rem;
    }

    .parallax-content {
        position: absolute;
        top: 130%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Center the content */
        color: white;
        text-align: left;
        max-width: auto !important;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
        /* Slight dark background for contrast */
    }

    .chart-container {
        position: relative;
        width: 100%;
        height: 300px;
        padding: 2px;
        background-color: transparent;
        border-radius: 10px;
    }
}

.parallax-section-mob {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    background: url('/img/Aboutdrmob.jpg') no-repeat center center fixed;
    /* Background image */
    background-size: cover;
    /* Ensure the image covers the whole container */
    overflow: hidden;
    /* Hide any overflow */
}

.text-container-mob {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    height: 100%;
    /* Make sure the container takes up the full height */
    color: white;
    padding: 0px 25px;
    background-color: rgba(0, 0, 0, 0.526);
    /* Semi-transparent background */
    text-align: center;
}
