body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}
.container-fluid {
    max-width: 1200px; /* Adjust this based on preference */
    margin: 0 auto; /* Center content */
    padding: 0 20px 40px 20px; /* Add some padding */
}

.campaign-banner {
    position: relative;
    width: 100%;
    height: 250px; /* Base height for mobile */
    background: url('https://cdn.polytron.co.id/public-assets/ev/donation_campaign/gambar-page-donasi.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid #ddd;
    margin: 0 auto;
}
.campaign-banner .banner-text {
    position: absolute;
    right: 10px;
    color: white;
    padding: 15px;
    border-radius: 8px;
}
.campaign-content {
    padding: 20px;
    background-color: white;
    margin-top: -20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.donation-info {
    background-color: #e7f9ff;
    border-left: 5px solid #007bff;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 5px;
}
.donation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.donation-buttons .btn {
    flex: 1;
    font-weight: bold;
}
.campaign-story {
    margin-top: 30px;
}
.progress-bar {
    background-color: #315149;
}
.donation-summary {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.donation-summary div {
    text-align: center;
    flex: 1; /* Distribute space equally */
}

.donation-summary h5 {
    margin: 0;
    font-size: 0.85em; /* Smaller size for headings */
    font-weight: bold;
}

.donation-summary small {
    font-size: 0.75em; /* Smaller size for the values */
    color: #6c757d;
}

.donation-summary .d-flex {
    margin-bottom: 10px; /* Added space between the lines in the donation-summary */
}

.new-section {
    margin-top: 5px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.description-text {
    max-height: 300px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    font-size: 0.8rem;
}

/* Apply the fade effect only when NOT expanded */
.description-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px; /* Height of fade effect */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

/* When expanded, ensure there's no gradient */
.description-text.expanded {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.description-text.expanded {
    max-height: none;
}

.see-more-btn {
    display: block;
    margin: auto;
    background-color: transparent;
    border: black 2px solid;
    /* border-color: black; */
    color: black;
    border-radius: 20px;
    padding: 1px 58px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.see-more-btn:hover {
    background-color: #ffffff; 
}

/* Scrollable Section */
.scrollable-section {
    max-height: 300px; /* Set max height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px;
    border-radius: 8px;
    background-color: white;
    border: 1px solid #ddd;
}

/* User Item */
.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 100%; /* Ensure it spans full width */
    background-color: #f5f5f5; /* Light gray background */
    border-radius: 8px; /* Optional: Rounded corners */
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow user info to take up available space */
}

.user-header {
    display: flex;
    justify-content: space-between; /* Push name left, time right */
    align-items: center;
    width: 100%;
}


/* User Image */
.user-item-icon {
    width: 50px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    overflow: hidden;
}

/* User Name */
.user-item span {
    font-size: 10px;
    font-weight: bold;
}


/* User Info */
.user-info {
    display: flex;
    flex-direction: column;
}

/* Name Styling */
.user-name {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

/* Time Styling (Right-Aligned) */
.user-time {
    font-size: 10px;
    color: #777;
    opacity: 0.6;
    white-space: nowrap; /* Prevents line break */
    margin-left: auto; /* Pushes time to the right */
}

.donation-message {
    font-size: 8px;
    color: #777;
}

/* Donation Amount */
.donation-amount {
    font-size: 10px;
    font-weight: bold;
    color: #777;
}

/* Scrollbar Customization */
.scrollable-section::-webkit-scrollbar {
    width: 6px;
}

.scrollable-section::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 10px;
}


.scrollable-section::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
.campaign-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.share-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    z-index: 1000;
}

.share-popup-content h3 {
    margin-bottom: 15px;
}

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

.share-options a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    text-align: center;
}

.share-options img {
    width: 40px;
    height: 40px;
}

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

/* Tablet and larger phones */
@media (min-width: 451px) and (max-width: 768px) {
    .campaign-banner {
        height: 350px;
    }
}

/* Small phones */
@media (max-width: 450px) {
    .campaign-banner {
        height: 300px;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .campaign-banner {
        height: 250px;
    }
}

/* Extra small phones */
@media (max-width: 320px) {
    .campaign-banner {
        height: 220px;
    }
}
/* Desktop */
@media (min-width: 769px) and (max-width: 1199px) {
    .campaign-banner {
        height: 400px;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .campaign-banner {
        height: 500px;
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 10px;
    }
}
