/* ==========================================================
   INDEX PAGE — Page-specific styles only
   index.css | v2.0 | 2026
   (Global styles live in css/theme.css)
   ========================================================== */

/* ==========================================================
   1. HERO SECTION
   ========================================================== */
section#home {
    padding-top: 0;
    text-align: center;
}

.hero-banner {
    width: 100%;
    aspect-ratio: 20 / 9;
    height: auto;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 0;
    border-radius: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.7;
}

/* --- Hero Overlay (text on video) --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(36, 90, 1, 0.4) 100%);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* --- Sound Toggle Button --- */
#soundToggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

#soundToggle:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* ==========================================================
   2. HERO BUTTONS
   ========================================================== */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================
   3. STATS SECTION
   ========================================================== */
.stats-section {
    background: var(--gradient-dark);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    margin-bottom: 1.5rem;
    color: #fff;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.8rem;
    font-family: 'Prompt', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stat-decorator {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 15px auto 0;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-decorator {
    width: 40px;
    background: rgba(255, 255, 255, 0.7);
}

/* ==========================================================
   4. STORY SECTION
   ========================================================== */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.story-timeline {
    position: relative;
    padding-left: 2rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.story-image {
    text-align: center;
}

.story-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   5. ACTIVITY GRID
   ========================================================== */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ==========================================================
   6. VIDEO GRID
   ========================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

/* ==========================================================
   7. ARTICLE GRID
   ========================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-info {
    padding: 1.5rem;
}

.article-date {
    color: var(--primary-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================
   8. DONATION SECTION
   ========================================================== */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.donation-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.donation-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.bank-info {
    background: #F4F3F9;
    border: 2px dashed var(--primary-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.bank-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.account-detail {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #ECEBF2;
    border: 2px dashed var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    border-radius: 10px;
    color: var(--primary-color);
}

/* ==========================================================
   9. SOCIAL ICONS
   ========================================================== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 53, 36, 0.2);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(18, 53, 36, 0.3);
}

.social-icon span {
    font-weight: bold;
    font-size: 14px;
}

/* ==========================================================
   10. BACK TO TOP
   ========================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(18, 53, 36, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(18, 53, 36, 0.4);
}

/* ==========================================================
   11. MISC PAGE COMPONENTS
   ========================================================== */
.main-logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.main-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(18, 53, 36, 0.2));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

ul.styled-list {
    list-style: none;
    padding-left: 0;
}

ul.styled-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ccc;
}

.product-info {
    padding: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ==========================================================
   12. GALLERY SLIDER
   ========================================================== */
.gallery-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-slider-container::-webkit-scrollbar {
    display: none;
}

.gallery-slider-track {
    display: grid;
    grid-template-rows: repeat(4, 200px);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (15px * 4)) / 5);
    gap: 15px;
    padding: 10px 0;
}

.gallery-slide {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 128, 2, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    display: none;
    color: #fff;
    font-size: 2rem;
    font-style: normal;
}

.slider-nav {
    background: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.slider-progress-container {
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    margin: 2rem auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.slider-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* ==========================================================
   13. LIGHTBOX
   ========================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    transition: all 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-light);
}

/* ==========================================================
   14. PARTNER LOGOS SPLIT SLIDER
   ========================================================== */
.logo-slider-track-split {
    display: flex;
    width: calc(280px * 14 * 2);
}

.logo-slider-track-split:hover {
    animation-play-state: paused;
}

.scroll-left {
    animation: scroll-left-desktop 160s linear infinite;
}

@keyframes scroll-left-desktop {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 14)); }
}

.scroll-right {
    animation: scroll-right-desktop 160s linear infinite;
}

@keyframes scroll-right-desktop {
    0% { transform: translateX(calc(-280px * 14)); }
    100% { transform: translateX(0); }
}

/* ==========================================================
   15. PARTNER BUTTON
   ========================================================== */
.btn-partner-groups {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(18, 53, 36, 0.3);
    transition: all 0.3s ease;
}

.btn-partner-groups:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(18, 53, 36, 0.4);
    background: var(--gradient-dark);
    color: white;
}

.btn-partner-groups:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(18, 53, 36, 0.3);
}

/* ==========================================================
   16. RESPONSIVE — TABLET (769px–1024px)
   ========================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .product-grid,
    .video-grid,
    .article-grid,
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .gallery-slider-track {
        grid-template-rows: repeat(4, 180px);
        grid-auto-columns: calc((100% - (15px * 2)) / 3);
    }
}

/* ==========================================================
   17. RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================== */
@media (max-width: 768px) {
    .hero-banner {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-grid,
    .video-grid,
    .article-grid,
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    section {
        padding: 40px 0;
    }

    .video-wrapper {
        padding-bottom: 56.25%;
    }

    .gallery-slider-track {
        grid-template-rows: repeat(4, 150px);
        grid-auto-columns: calc((100% - (10px * 1)) / 2);
        gap: 10px;
    }

    .stats-section {
        padding: 50px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem 1rem;
    }

    .stat-icon svg {
        width: 28px;
        height: 28px;
    }

    .btn-partner-groups {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .logo-slider-track-split {
        width: calc(140px * 14 * 2);
    }

    .scroll-left {
        animation: scroll-left-mobile 80s linear infinite;
    }

    .scroll-right {
        animation: scroll-right-mobile 80s linear infinite;
    }

    @keyframes scroll-left-mobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-140px * 14)); }
    }

    @keyframes scroll-right-mobile {
        0% { transform: translateX(calc(-140px * 14)); }
        100% { transform: translateX(0); }
    }

    .main-logo {
        max-width: 250px;
    }
}

/* ==========================================================
   18. RESPONSIVE — EXTRA SMALL (max-width: 480px)
   ========================================================== */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    section {
        padding: 30px 0;
    }

    .btn-partner-groups {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 90%;
        max-width: 320px;
    }

    .main-logo {
        max-width: 200px;
    }
}
