/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary: #5B8C5A;
    --color-primary-dark: #3D6B3C;
    --color-accent: #D4A843;
    --color-bg: #FAF8F5;
    --color-bg-warm: #F5F0E8;
    --color-text: #2C2C2C;
    --color-text-light: #5A5A5A;
    --color-border: #E0D8CC;
    --color-heart: #C0392B;
    --shadow-soft: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
    --radius: 12px;
    --max-width: 800px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 16px;
}

/* ===== Hero Section ===== */
.hero {
   background: linear-gradient(to bottom, rgba(91, 140, 90, 0.45), rgba(44, 44, 44, 0.7)),
                url('img/1.jpg') center 20% / cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    max-width: 700px;
    margin: 0 auto 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== Campaign Card ===== */
.campaign-card {
    max-width: var(--max-width);
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 32px;
    position: relative;
    z-index: 2;
}

/* ===== Donate Button ===== */
.donate-section {
    text-align: center;
    padding: 24px 0;
}

.donate-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), #C49530);
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 168, 67, 0.5);
}

.donate-button:active { transform: translateY(0); }

.donate-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ===== Photo Gallery ===== */
.photo-gallery {
    max-width: var(--max-width);
    margin: 40px auto 10px;
    padding: 0 24px;
}

.photo-gallery h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 3/4;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 20%, transparent 100%);
    color: white;
    padding: 60px 16px 20px;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    z-index: 2;
    box-sizing: border-box;
}

/* ===== Campaign Card Bottom ===== */
.campaign-card-bottom {
    margin: 10px auto 20px;
}

/* ===== Story Section ===== */
.story {
    max-width: var(--max-width);
    margin: 24px auto 0 auto;
    padding: 0 24px 20px;
}

.story-header {
    text-align: center;
    margin-bottom: 32px;
}

.story-header h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    background: var(--color-bg-warm);
    padding: 6px 16px;
    border-radius: 20px;
}

.story-content {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 40px;
}

.story-content p {
    margin-bottom: 1.2em;
    text-align: justify;
    hyphens: auto;
}

.story-content p:last-child { margin-bottom: 0; }

.story-content .greeting {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-primary-dark);
    margin-bottom: 1.5em;
}

/* ===== Highlight Box ===== */
.highlight-box {
    background: linear-gradient(135deg, #F9F5EE, #F5EDE0);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
    margin: 24px 0;
    font-style: italic;
    color: var(--color-text-light);
}

.highlight-box p { margin-bottom: 0; }

/* ===== Story Images ===== */
.story-image {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.story-image.intro-image {
    margin-top: 0;
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.story-image.intro-image img {
    filter: brightness(0.9);
}

.story-image.intro-image .image-caption {
    background: var(--color-bg-warm);
    padding: 24px;
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text);
    text-align: left;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .story-image.intro-image {
        margin-left: 0;
        margin-right: 0;
    }
    .story-image.intro-image img {
        border-radius: var(--radius);
    }
    .story-image.intro-image .image-caption {
        padding: 16px;
    }
}

.story-image img {
    width: 100%;
    display: block;
}

.image-caption {
    background: var(--color-bg-warm);
    padding: 12px 16px;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-light);
    text-align: center;
}

/* ===== Symbolic Divider ===== */
.symbolic-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    padding: 32px 24px;
    background: linear-gradient(135deg, #F9F5EE, #F5EDE0);
    border-radius: var(--radius);
}

.symbolic-divider img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.symbolic-divider p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* ===== Author Section ===== */
.author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    text-align: left;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-warm);
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--color-border);
    overflow: hidden;
}

.footer-heart {
    font-size: 2rem;
    color: var(--color-heart);
    margin-bottom: 12px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

.footer p {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

.footer .footer-note {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.7;
}

/* ===== Sticky Mobile Donate Button ===== */
.sticky-donate {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
   .hero { padding: 48px 16px 40px; }
    .campaign-card { display: none; }
    .photo-gallery { padding: 0 16px; }
   .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 0 7.5% 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        aspect-ratio: 3/4;
    }
    .gallery-item img { object-position: top; }
    .gallery-caption {
        padding: 40px 16px 20px;
        font-size: 0.9rem;
    }
   .story { padding: 0 12px 40px; }
    .story-content { padding: 24px 16px; }
    .story-content p { text-align: left; }
    .story-image { margin: 24px 0; }
    .symbolic-divider img { width: 150px; height: 150px; }
    .donate-button { padding: 14px 36px; font-size: 1.05rem; }
    .author { flex-direction: column; text-align: center; }
    .author-info p { text-align: center; }

    /* Sticky Donate Button - Mobile Only */
    .sticky-donate {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--color-accent), #C49530);
        color: white;
        font-family: 'Open Sans', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        padding: 16px;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 -2px 16px rgba(212, 168, 67, 0.4);
        z-index: 100;
    }

    .sticky-donate:active {
        opacity: 0.9;
    }

    .footer {
        padding-bottom: 80px;
    }
}
