/* Global Styles */
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: #2E7D32; /* Forest green */
}

.button {
    background-color: #FFD700; /* Warm gold */
    color: #2E7D32;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #E6C200;
}

/* Protective div (kept hidden) */
#protect-this-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    color: transparent;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 18px;
}

/* Logo on left */
.logo {
    max-width: 120px;
    order: 1;
}

/* Navigation on right */
nav {
    order: 2;
    background-color: white;
    opacity: 1;
    z-index: 101;
    display: flex;
    align-items: center;
}

.desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.desktop-menu li {
    margin-left: 15px;
}

.desktop-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
}

.desktop-menu a:hover {
    color: #2E7D32;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #2E7D32;
    margin-left: auto;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 10px;
    background-color: white;
    position: absolute;
    top: 100%;
    right: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu li {
    margin: 10px 0;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.mobile-menu a:hover {
    color: #2E7D32;
}

/* Hero Section */
#hero {
    background-color: #e6f2e6;
    text-align: center;
    padding: 40px 0;
}

.hero-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

.credit {
    font-size: 0.8em;
    color: #666;
}

/* Sections */
section {
    padding: 40px 0;
}

section:nth-child(even) {
    background-color: white;
}

.profile-image {
    max-width: 150px;
    border-radius: 50%;
    float: left;
    margin-right: 20px;
}

.offer-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Testimonials */
.testimonial {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 5px solid #2E7D32;
    margin-bottom: 15px;
    border-radius: 5px;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-style: italic;
    color: #666;
}

.more-testimonials {
    display: inline-block;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #2E7D32;
    color: white;
    text-align: center;
    padding: 15px 0;
}

/* Pay It Forward Page Specific */
.pay-it-forward-page {
    background-size: cover;
    background-position: center;
}

.icon-gift, .icon-heart, .fas {
    color: #FFD700;
}

.icon-check {
    margin-right: 10px;
    color: #2E7D32;
}

.progress-bar {
    background-color: #e6f2e6;
    height: 10px;
    border-radius: 5px;
    margin: 20px 0;
}

.progress {
    background-color: #2E7D32;
    height: 100%;
    border-radius: 5px;
}

.progress-text {
    text-align: center;
    font-style: italic;
}

.testimonial-snippet {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.testimonial-snippet:hover {
    transform: scale(1.02);
}

#contribution-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

#amount {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    max-width: 200px;
    border: 1px solid #2E7D32;
    border-radius: 5px;
}

#payment-element {
    margin: 20px 0;
}

#error-message {
    color: red;
    margin-top: 10px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    cursor: pointer;
    margin-bottom: 10px;
}

.faq-item p {
    display: block;
}

.note {
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* Thank You Page Specific */
.thank-you-page {
    background-size: cover;
    background-position: center;
}

#thank-you {
    padding: 60px 0;
    text-align: center;
}

.gratitude {
    font-size: 1.2em;
    margin: 20px 0;
    color: #2E7D32;
}

.confetti {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin: 20px 0;
}

.confetti::before,
.confetti::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD700;
    border-radius: 50%;
    animation: fall 2s infinite;
}

.confetti::after {
    background: #2E7D32;
    animation-delay: -1s;
}

@keyframes fall {
    0% { top: -10%; transform: translateX(20vw) rotate(0deg); }
    20% { opacity: 1; }
    100% { top: 100%; transform: translateX(50vw) rotate(360deg); opacity: 0; }
}

.next-steps {
    font-style: italic;
    margin: 20px 0;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .button {
    margin: 0 10px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    header .container {
        flex-wrap: nowrap;
        padding: 5px 10px;
    }

    .logo {
        flex-shrink: 0;
    }

    nav {
        flex-grow: 1;
    }

    .desktop-menu {
        display: none; /* Hide desktop menu on mobile */
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger on mobile */
        margin-left: auto;
    }

    .mobile-menu {
        display: none; /* Hide mobile menu by default */
    }

    .mobile-menu.active {
        display: block; /* Show when active */
    }

    .mobile-menu li {
        margin: 10px 0;
    }

    .mobile-menu a {
        font-size: 12px;
        padding: 5px;
    }

    .profile-image {
        float: none;
        display: block;
        margin: 0 auto 15px;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .button {
        margin: 10px 0; /* Add vertical margin for mobile */
    }
}

/* Testimonials Page Specific */
.testimonial-page {
    background-size: cover;
    background-position: center;
}

#full-testimonials {
    padding: 60px 0;
    text-align: center;
}

.intro {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.icon-heart {
    color: #FFD700;
    font-size: 1.5em;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.quote-icon {
    font-size: 2em;
    color: #2E7D32;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.3;
}

.rating {
    color: #FFD700;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.cta {
    margin-top: 40px;
    margin-bottom: 20px;
}

.cta h3 {
    margin-bottom: 20px;
}

#submit-testimonial {
    padding: 40px 0;
    background-color: #e6f2e6;
}

#submit-testimonial h2 {
    margin-bottom: 20px;
}

.icon-pen {
    color: #FFD700;
    margin-left: 10px;
}

.submit-testimonial {
    background-color: #2E7D32;
    color: #FFD700;
    margin-top: 20px;
}

.submit-testimonial:hover {
    background-color: #1B5E20;
}

/* Meditation Page Specific */
.meditation-page {
    background-size: cover;
    background-position: center;
}

#hero {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #e6f2e6;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDEwMCI+PHBhdGggZmlsbD0iI2UyZjJlMiIgZD0iTTE0NDAsNTBIMHQtMjAwLDUwVDAgQzQwMCw1MCA2NDAsMTUwIDg0MCwxNTBjMjAwLDAtMjQwLC0xMDAgNDQwLC0xMDBjMjAwLDAgMjQwLDEwMCA0NDAsMTAwLDAsMTAwLDAsNTBIMTQ0MFoiLz48L3N2Zz4=') repeat-x;
    animation: wave 7s infinite linear;
}

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

.button.meditate-now {
    margin-top: 20px;
    box-shadow: 0 0 10px #FFD700;
    transition: box-shadow 0.3s;
}

.button.meditate-now:hover {
    box-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700;
}

#meditate {
    padding: 40px 0;
    text-align: center;
}

.meditation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.meditation-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: height 0.3s ease, transform 0.3s;
    overflow: hidden;
}

.meditation-card:hover {
    transform: scale(1.05);
}

.meditation-card.expanded {
    height: auto;
    overflow: visible;
}

.details {
    display: none;
    margin-top: 10px;
    color: #2E7D32;
}

audio {
    width: 100%;
    margin-top: 10px;
}

.note {
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* Contact Page Specific */
.contact-page {
    background-size: cover;
    background-position: center;
}

.icon-link, .icon-bulb, .icon-tree, .icon-heart, .fas, .fab {
    color: #FFD700;
    font-size: 1.5em;
}

.fun-quote {
    font-style: italic;
    color: #2E7D32;
    margin-top: 20px;
    transition: transform 0.3s;
}

.fun-quote:hover {
    transform: scale(1.05);
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.link-card i {
    font-size: 3em;
    margin-bottom: 10px;
}

.link-card h3 {
    margin: 10px 0;
}

.link-card p {
    font-size: 0.9em;
    color: #666;
}

/* Packages Page Specific */
.packages-page {
    background-size: cover;
    background-position: center;
}

.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.offer-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: scale(1.05);
}

.offer-card h3 {
    color: #2E7D32;
    margin-bottom: 10px;
}

.offer-card p {
    margin-bottom: 15px;
}

.offer-card .button {
    background-color: #FFD700;
    color: #2E7D32;
}

/* Events Page Specific */
.events-page {
    background-size: cover;
    background-position: center;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-card h3 {
    color: #2E7D32;
    margin-bottom: 10px;
}

.event-card p {
    margin-bottom: 15px;
}

.event-card .button {
    background-color: #FFD700;
    color: #2E7D32;
}

/* Blog Page Specific */
.blog-page {
    background-size: cover;
    background-position: center;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: scale(1.05);
}

.blog-card h3 {
    color: #2E7D32;
    margin-bottom: 10px;
}

.blog-card p {
    margin-bottom: 15px;
}

.blog-card .button {
    background-color: #FFD700;
    color: #2E7D32;
}

/* Gallery Grid for Events Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
    max-width: 300px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-item h4 {
    margin: 10px 0 5px;
    font-size: 1.1em;
    color: #2E7D32;
}

.gallery-item p {
    font-size: 0.9em;
    color: #666;
}

/* Lightbox styles */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 1em;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}