
:root {
    --temple-primary: #8b4513;
    --temple-secondary: #d97706;
    --temple-dark: #3b1f0f;
    --temple-light: #fff8ed;
    --text-dark: #2f241f;
}

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: #fff;
}

.top-bar {
    background: var(--temple-dark);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.temple-navbar {
    background: var(--temple-primary);
    padding: 10px 0;
}

.logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.navbar-brand { font-weight: 700; }
.nav-link { color: #fff !important; margin-left: 5px; }
.nav-link:hover, .nav-link.active { color: #ffd89b !important; }

.hero {
    min-height: 650px;
    background:
        linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)),
        url("../images/temple-main.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 800;
}

.hero-mantra { font-size: 34px; margin-bottom: 10px; }

.page-hero {
    padding: 100px 0;
    color: #fff;
    background:
        linear-gradient(rgba(59,31,15,.78), rgba(59,31,15,.78)),
        url("../images/temple-main.jpg") center/cover no-repeat;
}

.page-hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); }

.section-subtitle {
    color: var(--temple-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

.light-section { background: var(--temple-light); }

.temple-photo {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.info-card, .service-card, .timing-card, .side-card, .form-card, .donation-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.info-card { text-align: center; transition: transform .25s ease; }
.info-card:hover { transform: translateY(-6px); }
.info-card i, .service-card i, .timing-card i {
    font-size: 42px;
    color: var(--temple-secondary);
}
.info-card a { color: var(--temple-primary); text-decoration: none; font-weight: 700; }

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}
.gallery-image:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

.service-card span { color: var(--temple-primary); font-weight: 700; }
.timing-card { text-align: center; }
.timing-card .time { font-size: 24px; color: var(--temple-primary); font-weight: 700; }

.notice-box {
    padding: 18px 20px;
    background: #fff3cd;
    border-left: 5px solid var(--temple-secondary);
    border-radius: 8px;
}

.event-card {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.event-card img { width: 100%; height: 230px; object-fit: cover; }
.event-date { color: var(--temple-secondary); font-weight: 800; font-size: 13px; }

.contact-item {
    display: flex;
    gap: 16px;
    margin: 22px 0;
}
.contact-item > i { font-size: 28px; color: var(--temple-secondary); }

.map-placeholder {
    min-height: 320px;
    border-radius: 16px;
    background: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}
.map-placeholder i { font-size: 55px; color: var(--temple-primary); }

.donation-icon { font-size: 55px; color: var(--temple-secondary); }

.btn-primary {
    background: var(--temple-primary);
    border-color: var(--temple-primary);
}
.btn-primary:hover {
    background: var(--temple-dark);
    border-color: var(--temple-dark);
}

.footer {
    background: var(--temple-dark);
    color: #fff;
    padding: 45px 0 22px;
}
.footer a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 7px;
}
.footer a:hover { color: #ffd89b; }

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: none;
    z-index: 1050;
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

@media (max-width: 768px) {
    .hero { min-height: 560px; }
    .hero h1 { font-size: 2.6rem; }
    .page-hero { padding: 75px 0; }
    .gallery-image { height: 180px; }
    .info-card, .service-card, .timing-card, .side-card, .form-card, .donation-card { padding: 24px; }
}
