/* ================================
   Home Page Styles
   ================================ */


/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 992px) {
    .donors-list {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .donors-list {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .hero-section .container {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .donors-list {
        column-count: 1;
    }
}

    /* Active state for amount buttons */
    .amount-btn.active {
        background-color: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color) !important;
    }

    /* Payment element styling */
    #payment-element {
        margin-top: 20px;
    }

    /* Special 800 button styling */
    .amount-btn-special {
        height: auto;
        padding: 15px;
        text-align: left;
    }

    .amount-btn-special .amount {
        font-size: 1.5rem;
        font-weight: bold;
        display: block;
    }

    .amount-btn-special .description {
        font-size: 0.85rem;
        display: block;
        margin-top: 5px;
    }

    /* Hide sections initially */
    .donor-info-section,
    .payment-section {
        display: none;
    }

    /* Info cards styling */
    .info-card {
        position: sticky;
        top: 100px;
    }

    @media (max-width: 768px) {
        .info-card {
            position: relative;
            top: 0;
            margin-top: 20px;
        }
    }


/* Custom spacing for donation cards */
.donation-options {
    display: flex;
    gap: 30px; /* Space between first card and the pair */
}

.donation-options .first-option {
    flex: 0 0 40%; /* First card takes 40% */
}

.donation-options .paired-options {
    flex: 1; /* Remaining space */
    display: flex;
    gap: 15px; /* Small gap between 2nd and 3rd */
}

.donation-options .paired-options .card {
    flex: 1;
}

@media (max-width: 768px) {
    .donation-options {
        flex-direction: column;
    }
}


/* ================================
   Annual Report Card
   ================================ */
.annual-report-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.annual-report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.annual-report-card .report-icon img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.annual-report-card:hover .report-icon img {
    transform: scale(1.05);
}

.annual-report-card .btn {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .annual-report-card .row {
        text-align: center;
    }

    .annual-report-card .col-auto,
    .annual-report-card .col {
        margin-bottom: 15px;
    }

    .annual-report-card .report-icon img {
        max-width: 80px !important;
        margin: 0 auto;
        display: block;
    }
}
/* ================================
   Donors Section with Parallax Background
   ================================ */
.donors-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* Background image with parallax */
.donors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-home-2.png'); /* Your background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    z-index: 0;
}

/* Dark overlay */
.donors-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% dark opacity */
    z-index: 1;
}

.donors-section .container {
    position: relative;
    z-index: 2;
}

.donors-section h3 {
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.donors-list {
    text-align: center;
    line-height: 1.4; /* Minimum distance between lines */
}

.donor-name {
    display: inline; /* Keep all names in one continuous flow */
    color: white;
    font-size: 14px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: normal; /* Allow wrapping */
}

/* Responsive */
@media (max-width: 768px) {
    .donors-section {
        padding: 60px 0;
    }

    .donors-section::before {
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    .donor-name {
        font-size: 12px;
    }

    .donors-list {
        line-height: 1.3;
    }
}

/* All amount buttons now use secondary color */
.amount-btn {
    border-color: var(--secondary-color, #263238) !important;
    color: var(--secondary-color, #263238) !important;
    background: white !important; /* No gradient */
}

/* Active state uses secondary background */
.amount-btn.active {
    background-color: var(--secondary-color, #263238) !important;
    color: white !important;
    border-color: var(--secondary-color, #263238) !important;
}

/* Continue and Proceed buttons remain primary color */
#continue-btn,
#proceed-to-payment-btn {
    background: var(--primary-color) !important;
    background-image: none !important; /* No gradient */
}

.info-card .text-primary {
    color: var(--secondary-color, #263238) !important;
    font-weight: bold !important;
}


/* Annual report card styling */
.annual-report-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; /* Lighter shadow */
}

/* Annual report title - use secondary color */
.annual-report-card .text-primary {
    color: var(--primary-color, #263238) !important;
    font-weight: bold !important;
}


        .campaign-card h2 {
            color: var(--primary-color);
            font-size: 1.75rem;
            margin-bottom: 1rem;
        }

        .campaign-card p {
            color: var(--text-dark);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .campaign-image-wrapper {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .campaign-image {
            width: 100%;
            height: auto;
            display: block;
            max-height: 300px;
            object-fit: cover;
        }

        .campaign-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            padding: 1.5rem;
            background: #F8F9FA;
            border-radius: 8px;
        }

        .stat-box {
            text-align: center;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 0.875rem;
            color: #6C757D;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .progress-wrapper {
            margin: 1rem 0;
        }

        .progress-bar-container {
            width: 100%;
            height: 24px;
            background: #E9ECEF;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), #FF6B6B);
            border-radius: 12px;
            transition: width 0.5s ease;
            box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
            position: relative;
        }

        .progress-bar-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255,255,255,0.3),
                transparent
            );
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .progress-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 0.5rem;
            font-size: 0.875rem;
            color: #6C757D;
            font-weight: 500;
        }

        .btn-donate-campaign {
            font-size: 1.25rem;
            font-weight: 700;
            padding: 1rem;
            background: var(--primary-color);
            border: none;
            transition: all 0.3s ease;
        }

        .btn-donate-campaign:hover {
            background: #A02020;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .campaign-stats-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
                padding: 1rem;
            }

            .stat-value {
                font-size: 1.25rem;
            }

            .campaign-card h2 {
                font-size: 1.5rem;
            }

            .btn-donate-campaign {
                font-size: 1.125rem;
            }
        }


/* Make <a class="btn-donate-campaign"> look like a real button */
a.btn-donate-campaign{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  color: #fff !important;
  text-decoration: none !important;

  border-radius: 12px;
  line-height: 1;
}

/* Ensure icon is white too */
a.btn-donate-campaign i{
  color: #fff !important;
}

/* Optional: prevent visited link turning purple/blue */
a.btn-donate-campaign:visited{
  color: #fff !important;
}

.btn-donate-campaign:hover{
  text-decoration: none !important;
}


.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 0rem !important;
}
#py5_withdistance {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}



#py5_withdistance .video-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

/* big video */
#py5_withdistance .video-big {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

#py5_withdistance .video-big iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
}

/* thumbnails row — SAME WIDTH as big video */
#py5_withdistance .video-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 1 row, 4 cards */
  gap: 10px;
}

/* thumbnail cards */
#py5_withdistance .video-small {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

#py5_withdistance .video-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* keep thumbnails 16:9 */
#py5_withdistance .video-small iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  pointer-events: none; /* allow parent click */
}
