﻿/* =========================================================
   GLOBAL / VARIABLES (uses your existing theme variables)
   ========================================================= */

/* ---------- HERO ---------- */
.home-hero {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--brand-color) 0%, #145d8e 100%);
    color: #fff;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
}

.hero-left {
    flex: 1 1 520px;
    min-width: 280px;
    max-width: 760px;
}

.hero-right {
    width: clamp(220px, 22vw, 360px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.05rem;
    line-height: 1.12;
    margin-bottom: 10px;
}

.lead {
    color: #f1f6fa;
    font-size: 1.05rem;
    max-width: 58ch;
    margin-bottom: 14px;
}

.hero-deity {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* ---------- BUTTONS ---------- */
.hero-ctas {
    display: flex;
    gap: 12px;
}

.btn-gold {
    background: var(--accent-gold);
    color: #111;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-light-outline {
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section-title {
    text-align: center;
    color: var(--brand-color);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 28px;
}

/* ---------- FEATURES ---------- */
.features {
    padding: 40px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.feature {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(11,77,120,0.04);
}

    .feature h3 {
        margin: 0;
        font-size: 1.2rem;
        color: var(--brand-color);
    }

.feature-desc {
    color: var(--muted);
}

/* ---------- EVENTS ---------- */
.events {
    padding: 44px 0;
    background: linear-gradient(180deg,#fff,#f5f9fc);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 18px 18px 28px;
    box-shadow: 0 8px 20px rgba(11,77,120,0.04);
    position: relative;
}

    .event-card::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 8px;
        bottom: 8px;
        width: 6px;
        border-radius: 4px;
        background: var(--brand-color);
    }

    .event-card h4 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

/* ---------- GALLERY ---------- */
.gallery {
    padding: 44px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    max-width: 1100px;
    margin: auto;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(11,77,120,0.05);
}

/* =========================================================
   ANUSHTHAN (RITUAL) SLIDER – FINAL VERSION
   ========================================================= */

.rituals-section {
    padding: 48px 0;
    background: linear-gradient(180deg,#ffffff,#f7f9fc);
}

.ritual-slider {
    display: flex;
    gap: 14px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 12px 52px;
}

.ritual-card {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .ritual-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(0,0,0,0.12);
    }

.ritual-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg,#d4af37,#f2d98c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #3b2f00;
}

.ritual-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #1f3c5b;
}

.ritual-amount {
    font-size: 1rem;
    font-weight: 600;
    color: #0d6efd;
}

.ritual-note {
    font-size: .9rem;
    color: #666;
}

/* navigation */
.ritual-nav {
    position: absolute;
    top: 56%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    cursor: pointer;
    z-index: 5;
}

.ritual-prev {
    left: 6px;
}

.ritual-next {
    right: 6px;
}

.ritual-nav i {
    font-size: 22px;
    color: #0d6efd;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .features-grid,
    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 576px) {
    .features-grid,
    .gallery-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .ritual-slider {
        padding: 12px 16px;
    }

    .ritual-card {
        flex: 0 0 220px;
    }

    .ritual-nav {
        display: none;
    }
}
/* Sponsor names */
.ritual-sponsor {
    margin-top: 6px;
}

.sponsor-name {
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

    .sponsor-name i {
        color: #0d6efd;
        font-size: 0.85rem;
    }

.sponsor-empty {
    color: #999;
    font-style: italic;
}

/* ===== Home Videos ===== */

.home-videos-section {
    padding: 20px 0;
}

.section-title {
    font-weight: 700;
    color: #1f2d3d;
}

.home-video-card {
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

    .home-video-card video {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
