/* --- FINAL style.css (YOUR ORIGINAL CODE + NEW LAYOUT) --- */

/* 1. VARIABLES & RESET */
:root {
    --primary-color: #d35400; /* Saffron / Deep Orange */
    --secondary-color: #8e44ad; /* Spiritual Purple */
    --text-gold: #f1c40f;       /* Gold for accents */
    --text-dark: #2c3e50;
    --white: #ffffff;
    --off-white: #fdfbf7;       /* Parchment color background */
    --overlay: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, .nav-logo {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

/* 2. NAVIGATION BAR */
header {
    background-color: var(--primary-color);
    position: sticky; /* Keeps menu at top when scrolling */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 15px; /* Slight padding adjustment */
}

/* Main Logo Styling */
.nav-logo {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;       /* Fits perfectly in bar */
    width: auto;
    margin-right: 10px; /* Space between logo image and text */
}

/* Menu Links Styling */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.90rem;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-gold);
}

/* Small Menu Icons Styling */
.nav-icon {
    height: 20px;
    width: auto;
    margin-right: 6px;
    filter: brightness(0) invert(1); 
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* 3. HERO SECTIONS (Background Images) */
.hero {
    /* REPLACE 'arunachala_bg.jpg' WITH YOUR IMAGE FILE */
    background: linear-gradient(var(--overlay), var(--overlay)), url('arunachala_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Height for Home Page */
.hero.home {
    height: 100vh;
}

/* Height for Other Pages */
.hero.sub-page {
    height: 40vh;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* 4. SCROLLING TICKER (UPDATED SPEED) */
.ticker-wrap {
    width: 100%;
    background-color: #2c3e50;
    color: var(--text-gold);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--text-gold);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    /* CHANGED TO 60s FOR SLOWER SPEED */
    animation: ticker 120s linear infinite; 
    font-weight: bold;
}

/* PAUSE ON HOVER */
.ticker-wrap:hover .ticker {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes ticker {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 5. CONTENT LAYOUT */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 50vh;
}

.content-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 6. AUDIO PLAYER FIXED */
.audio-player-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999;
    border: 2px solid var(--primary-color);
}

.play-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* 7. FOOTER */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 5px solid var(--primary-color);
}

/* 8. RESPONSIVE MOBILE STYLES */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Matches header height */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        justify-content: center; /* Centers icons and text on mobile */
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
    
    .ticker {
        display: inline-block;
        white-space: nowrap;
        padding-right: 100%;
        animation: ticker 120s linear infinite; 
        font-weight: bold;
    }
}

/* 9. SIDEBAR NAVIGATION (Slide-out) */
.sidenav {
    height: 100%;
    width: 0; /* Closed by default */
    position: fixed;
    z-index: 2000; /* Stays on top of everything */
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #d35400 0%, #8e44ad 100%); /* Saffron to Purple */
    overflow-x: hidden;
    transition: 0.4s; /* Smooth slide speed */
    padding-top: 60px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}

.sidenav-content a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidenav-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    padding-left: 35px; /* Slide right effect */
    color: #f1c40f; /* Gold text */
}

.sidenav-content i {
    width: 25px; /* Aligns icons neatly */
    color: #f1c40f;
}

.closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    margin-left: 50px;
    color: white !important; /* Force white */
    text-decoration: none;
}

.open-btn {
    font-size: 28px;
    cursor: pointer;
    color: white;
    margin-right: 15px;
    transition: color 0.3s;
}
.open-btn:hover { color: #f1c40f; }

.nav-left { display: flex; align-items: center; }

@media (max-width: 768px) {
    .nav-links { display: none; }
}


/* =========================================================
   NEW ADDITIONS: MAGAZINE LAYOUT (CONTENT + RIGHT SIDEBAR)
   ========================================================= */

/* 1. Main Grid Layout */
.main-layout {
    display: grid;
    grid-template-columns: 70% 30%; /* Left Content, Right Sidebar 70% 30%; */
    gap: 30px;
    align-items: start;
}

/* 2. Right Sidebar Widgets (Glass Boxes) */
.widget-box {
    background: white;
    border-top: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.widget-title {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.widget-list li span {
    font-weight: bold;
    color: var(--primary-color);
}

/* 3. News Feed Cards (Left Column) */
.news-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    object-fit: cover;
    background: #ddd; /* Gray placeholder if image fails */
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* 4. Mobile Responsiveness for New Layout */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
    
    .news-card {
        flex-direction: column;
        text-align: center;
    }
    
    .news-img {
        width: 100%;
        height: 200px;
    }
}

/* Add this to your main CSS file */
.girivalam-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em; /* Uses your site's default text size */
    font-family: inherit; /* Uses your site's default font */
}

.girivalam-table thead tr {
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.girivalam-table th, 
.girivalam-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/* Optional: Adds a subtle zebra-stripe effect for readability */
.girivalam-table tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.03); 
}