/* ========== LIGHT/DARK MODE VARIABLES ========== */
:root {
    /* Light theme (default) */
    --bg-color: #fbf9f9;
    --text-color: #000;
    --nav-bg: #ffffff;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --border-color: #e0e0e0;
    --footer-bg: #ffffff;
    --footer-text: #333333;
    --link-hover: #80d0c7;
    --section-bg: #f0f8ff;
    --kids-bg: linear-gradient(to right, #007ABB 0%, 15.384615957736969%, #069BD3 30.769231915473938%, 65.38461595773697%, #ADD7E7 100%);
    --story: #f0f7ff;
    --less: #e8f4f8;
    --vers: #fff9e6;
    --login: #08c8ee;
    --term: #b4c7dd;
    --hh: #4a6fa5;
    --memo: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    --primaryy: #4a6fa5;
    --secondaryy: #e7c566;
    --bg-hover-color: #A67F38;
    --caption: #6c757d4a;
    --gray-color: #d4cbcb;
    /*--bg: #e6e6e6;*/
    --bg: #f2ede1;
    --devotion: #424243;
    --scripture: #585858e3;
    --titledonate: linear-gradient(145deg, #4b3621, #806a53);
    --borderr: #cfa985;
    --donat: blue;
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --nav-bg: #2d2d2d;
    --card-bg: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-shadow: rgba(0, 0, 0, 0.5);
    --border-color: #404040;
    --footer-bg: #252525;
    --footer-text: #ffffff;
    --link-hover: #80d0c7;
    --section-bg: #2a2a2a;
    --kids-bg: #1a1a1a;
    --story: #252525;
    --less: #343333;
    --vers: #4c4a4a;
    --login: #08c8ee;
    --term: #454242;
    --hh: #f9c846;
    --memo: linear-gradient(135deg, #e8e0c5, #efd9b1);
    --primaryy: #f9c846;
    --secondaryy: #4a6fa5;
    --bg-hover-color: #A67F38;
    --caption: #252525;
    --gray-color: #665e5e;
    --bg: #0f2233;
    --devotion: #424243;
    --scripture: #BAFF53;
    --titledonate: linear-gradient(145deg, #b89128, #f9c846);
    --borderr: #f9c846;
    --donat: #ffffff;
}

body {
    background-color: var(--bg);
}

.premium-card {
    border-radius: 4px;
    padding-top: 30px;
}

/* header with serene branding */
.sacred-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-bottom: 2.5rem; */
    position: relative;
}

.sacred-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: var(--titledonate);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.2rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.seal {
    background: #e3cfbc;
    border-radius: 100px;
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a3526;
    letter-spacing: 0.4px;
    border: 1px solid #f3e3d7;
    box-shadow: 0 6px 12px -10px #8b6f58;
    backdrop-filter: blur(4px);
}

.scripture-gold {
    font-size: 1rem;
    background: color-mix(in srgb, var(--secondary-color) 7%, transparent);
    padding: 10px;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 4px 16px -12px #b49176;
    text-align: justify;
    border-left: 4px solid var(--secondary-color);
}

.scripture-gold i {
    color: #b2815e;
    margin: 0 0.5rem;
}

/* Two column layout: advanced grid */
.grid-2 {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* left side – rich story & impact meter */
.legacy-panel {
    background: color-mix(in srgb, var(--donat) 7%, transparent);
    border-radius: 10px;
    padding: 20px;
    border: none;
    backdrop-filter: blur(6px);
    margin-bottom: 10px;
}

.icon-feature-list {
    margin: 1.5rem 0 2rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    background: #fffbf6;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #a67a5c;
    border: 1px solid #f0d6c4;
    box-shadow: 0 12px 16px -16px #9b816d;
}

.feature-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3b2e23;
    margin-bottom: 0.2rem;
}

.legacyh3 {
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.feature-text p {
    color: #5d4c3c;
    font-weight: 350;
}

/* live impact calculator */
.impact-meter {
    background: linear-gradient(112deg, #ffffffd6, #fcf3ebd6);
    border-radius: 10px;
    padding: 1.6rem;
    margin: 1.8rem 0 1rem;
    border: 1px solid #f0d9cb;
    box-shadow: 0 8px 22px -18px #8a6b56;
}

.impact-meter h4 {
    font-weight: 600;
    color: #543f30;
    display: flex;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.impact-stat {
    display: flex;
    justify-content: space-between;
    background: #f5e7dd;
    border-radius: 60px;
    padding: 0.9rem 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: black;
}

.impact-bar {
    height: 18px;
    background: #e7d4c4;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0 0.8rem;
    width: 100%;
}

.bar-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, #a78062, #c7a080);
    border-radius: 20px;
    box-shadow: inset 0 1px 2px #ffe6d6;
}

.testimonial-modern {
    background: var(--footer-bg);
    padding: 1rem;
    border-left: 5px solid var(--borderr);
    font-style: normal;
    border-radius: 15px;

}

.testimonial-modern i {
    color: #9e7b61;
    font-size: 1rem;
    opacity: 0.4;
    margin-right: 0.5rem;
}

.testimonial-modern p {
    color: var(-text-color);
    text-align: justify;
    margin-top: -1.2rem;
}

/* minimal reset for standalone section */

/* main card – exactly the "your gift transforms lives" section */
.impact-standalone {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 250, 244, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 35px 55px -25px rgba(80, 55, 35, 0.3),
        0 0 0 1px rgba(255, 240, 230, 0.8) inset;
    border: 1px solid #fae9dc;
}

/* header with icon */
.section-header {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 5px;
}

.section-header i {
    font-size: 1rem;
    color: #a0785c;
    background: #f7eadf;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h2 {
    font-family: 'Literata', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

/* impact grid – 5 beautiful tiles */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.2rem;
    margin-bottom: 0;

}

.impact-tile {
    background: color-mix(in srgb, var(--secondary-color) 15%, transparent);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 18px -12px rgba(110, 70, 40, 0.2);
    border: none;
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;

}

.impact-tile:hover {
    transform: translateY(-5px);
    border-color: #d4b29a;
    box-shadow: 0 20px 24px -16px #926e53;
}

.tile-header {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.tile-header i {
    font-size: 1.3rem;
    color: #9f7559;
    background: #f9ede3;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-header span {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tile-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    font-family: 'Literata', serif;
    text-align: center;
}

.tile-unit {
    font-size: 0.9rem;
    color: #e67e22;
    font-weight: 400;
    margin-left: 0.2rem;
    text-align: center;
}

/* testimonial card (included as part of the section) */
.testimonial-card {
    background: #fef9f4;
    border-radius: 2rem;
    padding: 1.8rem 2rem;
    border: 1px solid #f2ddce;
    box-shadow: 0 8px 18px -12px #b5957c;
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.testimonial-quote {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.testimonial-quote i {
    color: #c7a384;
    font-size: 2rem;
    opacity: 0.5;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3b2e23;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dabbc0;
    border: 2px solid white;
    box-shadow: 0 4px 10px -5px #936b52;
}

.testimonial-author span {
    font-weight: 500;
    color: #5c4535;
}

.testimonial-author strong {
    color: #392d23;
}

/* simple slider/input to demonstrate interactivity */
.demo-control {
    margin-top: 2rem;
    background: #efe3d7;
    border-radius: 4rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-control label {
    font-weight: 600;
    color: #4b392b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-control input {
    width: 200px;
    padding: 0.7rem 1rem;
    border-radius: 60px;
    border: 2px solid #dabdab;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    color: #2c1f17;
    outline: none;
}

.demo-control input:focus {
    border-color: #a97a5d;
}

.live-amount {
    background: #a78062;
    color: white;
    border-radius: 60px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 1.4rem;
}

.highlight {
    font-weight: 500;
}



/* Stats updated timestamp */
.stats-updated {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.85rem;
}

.stats-updated small {
    opacity: 0.8;
}

/* Admin controls */
.admin-controls {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}

.admin-controls .btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-controls .btn:hover {
    background: #e9ecef;
}

/* Make impact section standalone */
.impact-standalone {
    background: color-mix(in srgb, var(--donat) 7%, transparent);
    border-radius: 12px;
    padding: 20px;
    margin-top: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
}

/* Simple PayPal Button Styles - Just the button */
.paypal-simple-container {
    padding-top: 1.5rem;
    text-align: center;
}

.paypal-simple-button {
    background: #ffc439;
    color: #111;
    border: none;
    width: fit-content;
    margin: 0 auto;
    padding: 6px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 12px; */
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e6b02e;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.paypal-simple-button:hover {
    background: #f0b832;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 196, 57, 0.3);
    text-decoration: none;
    color: #111;
}

.paypal-simple-button i {
    font-size: 2rem;
    color: blue;

}

.paypal-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #7a5c45;
    flex-wrap: wrap;
}

.paypal-footer i {
    margin-right: 5px;
    color: #a57c61;
}

.verserefer {
    font-weight: 600 !important;
}

/*============= responsive ==========*/

@media (max-width: 480px) {
    .premium-card {
        padding: 1.8rem;
    }

    .premium-card {
        padding: 1px;
        margin-bottom: 14px;
    }

    .scripture-gold {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
        margin: 0.5rem 0 0.5rem;
        font-weight: 450;
        margin-bottom: 1px;
    }

    .sacred-header {
        margin-top: 20px;
        margin-bottom: 1px;
    }

    .legacy-panel {
        border-radius: 10px;
        padding: 4px 4px 10px;
        backdrop-filter: blur(6px);
        padding-bottom: 1px;
    }

    .impact-meter {
        border-radius: 10px;
        padding: 1.6rem;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .legacyh3 {
        font-size: 1.0rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 0;
    }

    .paypal-simple-container {
        padding: 15px 12px;
    }

    .paypal-simple-button {
        padding: 6px;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }

    .paypal-simple-button i {
        font-size: 1.5rem;
        color: blue;
    }

    .paypal-footer {
        gap: 10px;
        font-size: 0.8rem;
        flex-direction: column;
        align-items: center;
    }

    .impact-tile {
        background:
            color-mix(in srgb, var(--secondary-color) 30%, transparent);
        border-radius: 10px;
        padding: 0.5rem;

    }

    .section-header {
        display: flex;
        gap: 0.8rem;
        margin-bottom: 0.3rem;
        padding-top: 10px;
        justify-content: center;
    }

    .tile-header span {
        font-weight: 600;
        font-size: 0.7rem;
    }

    .tile-header i {
        font-size: 1rem;
        width: 1.7rem;
        height: 1.7rem;
    }

    .demo-control {
        border-radius: 10px;
        gap: 0.1rem;
    }

    .impact-standalone {
        padding: 2px;
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .demo-control {
        flex-direction: column;
        margin-top: 10px;
    }

    .testimonial-modern {
        font-size: 1rem;
        margin-bottom: 10px;
        margin-top: 4px;
        padding: 10px;
        border-radius: 10px;
    }

    .testimonial-modern p {
        color: var(--text-color);
        margin-top: -1rem;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .verserefer {
        font-weight: 600 !important;
    }

    .tile-value {
        text-align: center;
    }

    .tile-unit {
        text-align: center;
    }

    .impact-grid {
        gap: 0.2rem;
        margin-bottom: 0.1rem;
    }

    .tile-header {
        gap: 0.6rem;
        margin-bottom: 1px;
    }

    .tile-value {
        line-height: 1;
        margin-bottom: 1px;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .sacred-header h1 {
        font-size: 14px;
    }
}