@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary: #4B2113; /* Deep Brown */
    --secondary: #8B301D; /* Deep Saffron/Maroon */
    --gold: #C59345;
    --gold-light: #F2DEAA;
    --cream: #FAF6ED;
    --white: #FFFFFF;
    --text-dark: #2B1A10;
    --text-muted: #665C58;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Outfit', 'Noto Sans Tamil', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--primary);
    color: #ebdccc;
    font-size: 13px;
    padding: 8px 30px;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.5px;
}
.topbar a { color: var(--gold-light); margin-left: 15px; }
.topbar a:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--gold);
}
.site-header .logo-block { display: flex; align-items: center; gap: 15px; }
.site-header .logo-block img { height: 70px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.site-header h1 { font-size: 26px; margin: 0; color: var(--secondary); letter-spacing: 1px; }
.site-header h1 span { display: block; font-size: 14px; font-weight: 400; color: var(--text-muted); font-family: 'Outfit', sans-serif; letter-spacing: 0; margin-top: 2px; }

/* ---------- Nav ---------- */
nav.main-menu {
    background: var(--secondary);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
nav.main-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0 20px;
}
nav.main-menu li { position: relative; }
nav.main-menu > ul > li > a {
    display: block;
    padding: 16px 24px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
nav.main-menu > ul > li:hover { background: rgba(255,255,255,0.1); }
nav.main-menu > ul > li:hover > a { color: var(--gold-light); }
nav.main-menu ul ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 50;
    overflow: hidden;
}
nav.main-menu li:hover > ul { display: block; animation: slideUp 0.3s ease forwards; }
nav.main-menu ul ul li a { 
    color: var(--primary); 
    padding: 12px 20px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    font-weight: 500;
}
nav.main-menu ul ul li:last-child a { border-bottom: none; }
nav.main-menu ul ul li:hover { background: var(--cream); padding-left: 25px; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero / banner ---------- */
.hero-wrapper {
    background: linear-gradient(135deg, rgba(75,33,19,0.05) 0%, rgba(197,147,69,0.15) 100%);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}
.hero-content {
    flex: 1;
    z-index: 2;
}
.hero-content h2 { 
    font-size: 42px; 
    color: var(--secondary);
    margin: 0 0 20px;
    line-height: 1.2;
}
.hero-content p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}
.hero-image {
    flex: 0 0 40%;
    text-align: center;
    position: relative;
    z-index: 2;
}
.hero-image img {
    max-height: 500px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section h3 {
    font-size: 28px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(197,147,69,0.2);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 3px solid var(--gold); }
.card .card-body { padding: 20px; }
.card .card-body h4 { margin: 0 0 10px; color: var(--secondary); font-size: 18px; }
.card .card-body small { color: var(--gold); font-weight: 600; font-size: 12px; display: block; margin-bottom: 8px;}

table.schedule { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
table.schedule th, table.schedule td { padding: 15px 20px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
table.schedule th { background: var(--primary); color: var(--gold-light); font-family: 'Cinzel', serif; font-weight: 600; font-size: 16px; }
table.schedule tr:last-child td { border-bottom: none; }
table.schedule tr:hover td { background: var(--cream); }

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 60px;
    border-top: 5px solid var(--gold);
}
footer.site-footer a { color: var(--gold-light); margin: 0 10px; font-weight: 500;}
footer.site-footer a:hover { color: var(--white); }

.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(139, 48, 29, 0.3);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover { 
    background: var(--primary); 
    box-shadow: 0 6px 15px rgba(75, 33, 19, 0.4); 
    transform: translateY(-2px);
}

/* ---------- Responsive / Mobile ---------- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-image {
        flex: 0 0 100%;
        width: 100%;
    }
    .hero-image img {
        max-height: 350px;
        max-width: 100%;
    }
    .hero-content h2 { font-size: 32px; }
    
    .site-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 20px;
    }
    .site-header .logo-block {
        flex-direction: column;
    }
    
    .topbar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 10px;
    }
    
    nav.main-menu ul {
        flex-direction: column;
        padding: 0;
    }
    nav.main-menu > ul > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    nav.main-menu ul ul {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
    }
}
