/* ===================================
2. donation
==================================== */

/* ===== Global Styling ===== */
body {
    font-family: 'Poppins', sans-serif;
    background: url("../img/church-bg.png") no-repeat center center fixed;
    background-size: cover;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    line-height: 1.6;
    align-items: center;
    flex-direction: column;
    padding-bottom: 80px;
    min-height: 100vh; /* Ensure full viewport height */
}

/* === Container Styling === */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 30px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Flexbox for Donation Options */
.donation-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    padding: 0 10px; /* Add slight padding to prevent edge cutoff */
}

/* === Section Headline === */
.inner-heading h2 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.inner-heading h4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 20px 0 10px;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

/* === Pricing/Donation Box === */
.donation-box {
    flex: 1;
    min-width: 300px;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.donation-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.3);
}

/* === Special Highlight (Monthly Option) === */
.special {
    border: 3px solid #ff5733;
}

/* === Headings for Pricing Boxes === */
.pricing-heading h3 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
}

.pricing-terms h6 {
    line-height: 1.4;
    font-size: 20px;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
}

/* === Donation Features List === */
.pricing-content ul {
    list-style: none;
    padding: 0;
}

.pricing-content li {
    font-size: 15px;
    margin: 8px 0;
    text-align: left;
    word-break: break-word;
    line-height: 1.4;
    padding-left: 20px;
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.pricing-content i {
    color: #28a745;
    margin-right: 8px;
}

/* === Donate Button === */
.donate-btn {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: inline-block;
    margin-top: 15px;
    width: 100%; /* Full width for better mobile UX */
}

.donate-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

/* === Donation Amount Input === */
.donation-input {
    width: 100%; /* Full width for consistency */
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
    box-sizing: border-box; /* Ensure padding doesn’t exceed width */
}

/* === Divider Line === */
.solidline {
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #007bff, #ff5733);
    border-radius: 5px;
    margin: 40px 0;
}

/* === Mobile Responsiveness === */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .donation-box {
        max-width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }

    .donation-input {
        width: 100%;
        font-size: 16px;
    }

    .donate-btn {
        font-size: 16px;
        padding: 10px 16px;
    }

    .donation-row {
        flex-direction: column;
        align-items: center;
    }

    .pricing-content li {
        font-size: 14px;
    }

    /* Enhance outer card for mobile */
    .outer-donation-card {
        padding: 20px; /* Reduced padding for smaller screens */
        border-radius: 15px;
        margin: 0 10px 40px; /* Add horizontal margin to prevent cutoff */
        width: calc(100% - 20px); /* Adjust width to fit within screen */
        box-sizing: border-box;
    }

    .inner-heading h2 {
        font-size: 28px; /* Slightly reduce headline size */
    }

    .inner-heading h4 {
        font-size: 16px;
        padding: 15px;
    }
}

/* Go Back Home Button */
.home-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    background: #1e3c72;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.home-btn:hover {
    background: #2a5298;
    transform: scale(1.05);
}

.home-btn:active {
    transform: scale(0.95);
}

/* === Animated Headline Section === */
.animated-headline {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin: 40px auto 30px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

.animated-title, .animated-subtitle {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.animated-title {
    animation-name: slideInLeft;
}

.animated-subtitle {
    animation-name: slideInRight;
    text-align: right;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === Outer Card Wrapper === */
.outer-donation-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 40px; /* Center and add bottom margin */
    box-sizing: border-box;
    overflow: auto; /* Handle overflow gracefully */
}

/* === Responsive Headline Mobile Adjustment === */
@media (max-width: 768px) {
    .animated-headline {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    .animated-title, .animated-subtitle {
        font-size: 24px;
        text-align: center;
    }
}

/* Add fadeIn animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}