﻿/* ---------- HOME: standardized layout, images and typography ---------- */

/* hero */
.home-hero {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--brand-color) 0%, #145d8e 100%);
    color: #fff;
}

.hero-inner {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}

.hero-left {
    flex: 1 1 480px;
    min-width: 280px;
}

.hero-right {
    flex: 0 0 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    margin: 8px 0 12px;
    color: #fff;
    line-height: 1.15;
}

.lead {
    color: #f1f6fa;
    font-size: 1.05rem;
    max-width: 58ch;
    margin-bottom: 14px;
}

/* hero image standard sizing: use aspect ratio and max-width */
.hero-deity {
    width: 100%;
    max-width: 860px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(11,77,120,0.12);
    object-fit: cover;
}

/* CTAs */
.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-gold {
    background: var(--accent-gold);
    color: #111;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 700;
}

.btn-light-outline {
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

/* features grid */
.features {
    padding: 40px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.feature {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(11,77,120,0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px; /* equal-height blocks */
}

    .feature h3 {
        margin: 0;
        color: var(--brand-color);
        font-size: 1.2rem;
    }

.feature-desc {
    color: var(--muted);
    margin: 0;
}

/* feature color accents */
.feature-blue {
    border-top: 4px solid var(--brand-color);
}

.feature-gold {
    border-top: 4px solid var(--accent-gold);
}

/* events */
.events {
    padding: 44px 0;
    background: linear-gradient(180deg,#fff,#f5f9fc);
}

.section-title {
    text-align: center;
    color: var(--brand-color);
    font-size: 1.6rem;
    margin-bottom: 22px;
}

/* events grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    position: relative;
    box-shadow: 0 8px 20px rgba(11,77,120,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 160px;
    padding-left: 26px; /* space for colored stripe */
}

    .event-card::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 8px;
        bottom: 8px;
        width: 6px;
        border-radius: 4px;
        background: var(--brand-color);
    }

.event-gold::before {
    background: var(--accent-gold);
}

.event-blue::before {
    background: var(--brand-color);
}

.event-card h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--brand-color);
}

.event-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.read-more {
    margin-top: auto;
    color: var(--brand-color);
    font-weight: 700;
    text-decoration: none;
}

/* gallery */
.gallery {
    padding: 44px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: 300px; /* consistent gallery height */
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(11,77,120,0.05);
}

/* responsive */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column-reverse;
        gap: 18px;
    }

    .hero-right {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-deity {
        max-width: 100%;
        height: auto;
    }

    .gallery-item img {
        height: 220px;
    }
}
