* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif Tamil', serif;
    background: #fff8e7;
    color: #4a2600;
    line-height: 2;
}

/* Decorative top border */
.top-border {
    height: 5px;
    background: linear-gradient(90deg, #7a2100, #ffd56b, #a34b00, #ffd56b, #7a2100);
}

/* Header */
header {
    background: linear-gradient(180deg, #7a2100 0%, #5c1800 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(74, 38, 0, 0.35);
    border-bottom: 3px solid #ffd56b;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    font-weight: 700;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd56b;
    background: #ffe7a6;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 6px;
    transition: color 0.3s, background 0.3s;
}

nav a:hover {
    color: #ffd56b;
    background: rgba(255, 213, 107, 0.12);
}

/* Hero */
.hero {
    min-height: 88vh;
    background:
        linear-gradient(rgba(60, 15, 0, 0.55), rgba(90, 30, 0, 0.7)),
        url("images/temple-hero.png"),
        linear-gradient(135deg, #5c1800 0%, #7a2100 40%, #a34b00 70%, #3d0f00 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, #ffd56b, #ffe7a6, #ffd56b, transparent);
}

.hero-inner {
    max-width: 800px;
}

.hero-quote {
    font-size: 22px;
    font-style: italic;
    color: #ffe5a0;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-ornament {
    font-size: 20px;
    color: #ffd56b;
    margin-bottom: 20px;
    letter-spacing: 12px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 24px;
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.hero h2 {
    color: #ffe5a0;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 400;
    line-height: 1.8;
}

/* Sections */
section {
    padding: 70px 12%;
    text-align: center;
}

h2 {
    color: #7a2100;
    font-size: clamp(24px, 3.5vw, 32px);
    margin-bottom: 8px;
    font-weight: 700;
}

.sub-heading {
    margin-top: 50px;
}

.section-icon {
    margin-right: 6px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a34b00, #ffd56b);
    margin: 0 auto 35px;
    border-radius: 2px;
}

.section-divider.light {
    background: linear-gradient(90deg, #ffd56b, #ffe7a6);
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.gold {
    background: linear-gradient(180deg, #ffe7a6 0%, #fff0c4 50%, #ffe7a6 100%);
    border-top: 1px solid rgba(163, 75, 0, 0.15);
    border-bottom: 1px solid rgba(163, 75, 0, 0.15);
}

/* Cards */
.card-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.card {
    background: white;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(122, 33, 0, 0.15);
    max-width: 320px;
    border-top: 4px solid #a34b00;
}

.card-wide {
    max-width: 600px;
    margin: 0 auto;
}

.card h3 {
    color: #7a2100;
    font-size: 22px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pooja-icons {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 4px;
}

.lingam-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.contact-card p {
    margin-bottom: 12px;
}

.contact-card a {
    color: #7a2100;
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-note {
    color: #a34b00;
    font-weight: 600;
    margin-top: 16px;
}
/* festival gallery */
.festive-gallery-box{
    width:240px;
    height:240px;
    margin:35px auto;
    background:linear-gradient(135deg,#d4af37,#f7d774);
    border-radius:18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(0,0,0,.2);
    transition:.3s;
    text-align:center;
}

.festive-gallery-box:hover{
    transform:translateY(-6px) scale(1.03);
}

.festive-gallery-box .icon{
    font-size:60px;
}

.festive-gallery-box .title{
    margin-top:15px;
    font-size:22px;
    font-weight:bold;
    color:#fff;
}

.festive-gallery-box .subtitle{
    margin-top:8px;
    color:#fff;
    opacity:.9;
}

.festive-gallery-viewer{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.festive-gallery-viewer img{
    max-width:90%;
    max-height:90vh;
    border-radius:12px;
}

.fg-close{
    position:absolute;
    top:20px;
    right:35px;
    color:#fff;
    font-size:48px;
    cursor:pointer;
}

.fg-prev,
.fg-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:60px;
    height:60px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:30px;
    cursor:pointer;
}

.fg-prev{left:30px;}
.fg-next{right:30px;}

.fg-prev:hover,
.fg-next:hover{
    background:rgba(255,255,255,.3);
}
/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(130, 70, 0, 0.3);
    transition: transform 0.4s;
    border: 3px solid #ffd56b;
    background: linear-gradient(135deg, #ffe7a6, #fff8e7);
}

.gallery img:hover {
    transform: scale(1.04);
}

/* Deity cards */
.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.deity-card {
    background: white;
    width: 280px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(122, 33, 0, 0.12);
    border-top: 4px solid #ffd56b;
    transition: transform 0.3s;
}

.deity-card:hover {
    transform: translateY(-4px);
}

.deity-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ffe7a6;
    background: linear-gradient(135deg, #ffe7a6, #fff8e7);
}

.deity-card h3 {
    color: #7a2100;
    font-size: 22px;
    margin: 16px 0 8px;
}

.deity-card p {
    font-size: 15px;
    color: #6b3a00;
    margin-bottom: 0;
}

/* Blessing */
.blessing {
    background: linear-gradient(180deg, #7a2100 0%, #5c1800 100%);
    color: white;
}

.blessing h2 {
    color: #ffd56b;
}

.blessing p {
    color: #ffe7c8;
}

/* Music button */
.music-btn {
    display: block;
    margin: 0 auto;
    background: linear-gradient(180deg, #a34b00, #7a2100);
    color: white;
    border: 2px solid #ffd56b;
    padding: 14px 36px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 17px;
    font-family: 'Noto Serif Tamil', serif;
    box-shadow: 0 4px 15px rgba(122, 33, 0, 0.3);
    transition: background 0.3s, transform 0.2s;
}

.music-btn:hover {
    background: linear-gradient(180deg, #d17b00, #a34b00);
    transform: scale(1.03);
}

/* Footer */
footer {
    background: #451400;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-top: 3px solid #ffd56b;
}

.footer-ornament {
    color: #ffd56b;
    letter-spacing: 10px;
    margin-bottom: 16px;
    font-size: 18px;
}

footer h3 {
    color: #ffd56b;
    font-size: 22px;
    margin-bottom: 12px;
}

footer p {
    color: #ffe7c8;
    font-size: 16px;
}

.copyright {
    margin-top: 20px;
    font-size: 14px !important;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 16px 20px;
    }

    nav {
        margin-top: 12px;
    }

    nav a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .logo {
        font-size: 17px;
        text-align: center;
    }

    section {
        padding: 50px 20px;
    }

    .card-grid {
        flex-direction: column;
        align-items: center;
    }
}
