/* Primary Typography Standards for Kannada */
:root {
    --font-sans-kannada: 'Noto Sans Kannada', sans-serif;
    --font-serif-kannada: 'Noto Serif Kannada', serif;
    --primary-color: #0056b3;
    --bg-color: #f4f7f6;
    --text-color: #222222;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans-kannada);
    font-size: 17px; /* Kannada reads better with slightly larger base size */
    line-height: 1.8; /* Prevents glyph vertical overlap */
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Kannada Headings Styling */
.kn-heading {
    font-family: var(--font-serif-kannada);
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #111111;
}

.kn-subheading {
    font-size: 1.1rem;
    color: #555555;
}

/* Layout Components */
.site-header {
    background: #ffffff;
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #1e293b;
    padding: 12px;
    flex-wrap: wrap;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* Calendar & Event Styling */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    display: flex;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-details {
    padding: 1rem;
}

/* Search Input Box Styling */
.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-sans-kannada);
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.event-card {
    background: #ffffff;
    border-left: 4px solid #1e293b;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.event-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1e293b;
}

.event-date {
    background-color: #e2e8f0;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.event-card-body p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: #334155;
}

/* Decorative Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.85rem;
    color: #800020; /* Deep crimson accent */
    margin-bottom: 0.25rem;
}

.page-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Modern Search Input */
.search-wrapper {
    position: sticky;
    top: 100px; /* Distance from top of viewport when scrolling */
    z-index: 99;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1.5px solid #800000;
    border-radius: 9999px;
    padding: 4px 6px 4px 14px;
    margin: 20px auto;
    max-width: 680px;
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    width: 100%;
}

.search-wrapper:focus-within {
    border-color: #d97706; /* Golden accent */
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.16);
}

/* Minimized Search Icon */
.search-wrapper .search-icon {
    font-size: 0.85rem;
    line-height: 1;
    margin-right: 8px;
    opacity: 0.95;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease, margin 0.2s ease;
}

/* Seamless Single-Layer Input */
.search-wrapper input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    outline: none !important;
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 0.9rem;
    background: transparent !important;
    color: #1f2937;
    padding: 6px 4px;
    margin: 0;
    box-shadow: none !important;
}

.search-wrapper input::placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Integrated PDF Download Button inside Search Capsule */
.search-wrapper .pdf-download-wrapper {
    display: flex;
    align-items: center;
    margin: 0 0 0 6px;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, max-width 0.25s ease;
}

.search-wrapper .btn-download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: #855959;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    width: auto;
    height: auto;
    box-shadow: 0 2px 5px rgba(128, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.search-wrapper .btn-download-pdf:hover {
    background-color: #a00000;
    transform: translateY(-1px);
}

/* Clean State When User is Actively Typing */
.search-wrapper.is-typing .search-icon {
    opacity: 0;
    width: 0;
    margin-right: 0;
    overflow: hidden;
    transform: scale(0.6);
    pointer-events: none;
}

.search-wrapper.is-typing .pdf-download-wrapper {
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    pointer-events: none;
    transform: scale(0.9);
}

/* Empty Search Results Indicator */
.no-events-found {
    text-align: center;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    color: #64748b;
    font-size: 1.1rem;
    border: 1px dashed #cbd5e1;
    margin: 1.5rem auto;
    max-width: 600px;
}

.no-events-found .btn-reset-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    padding: 8px 18px;
    background: #800000;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.no-events-found .btn-reset-search:hover {
    background: #a00000;
    transform: translateY(-1px);
}

/* Festival Event Cards List */
.festival-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
}

.festival-card {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.festival-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
    border-color: #f59e0b;
}

/* Date Badge Block */
.date-badge {
    background: linear-gradient(135deg, #800020, #991b1b);
    color: #ffffff;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    text-align: center;
    border-right: 4px solid #f59e0b; /* Gold border accent */
    box-sizing: border-box;
}

.date-badge .day {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.date-badge .month-year {
    font-size: 0.88rem;
    margin-top: 5px;
    font-weight: 600;
    opacity: 0.95;
}

/* Main Content Area inside Card */
.card-content {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.event-title {
    margin: 0;
    font-size: 1.35rem;
    color: #1e293b;
    font-family: var(--font-serif-kannada);
    font-weight: 700;
}

.tithi-tag {
    background-color: #fef3c7;
    color: #92400e;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #fde68a;
    white-space: nowrap;
}

/* Sevadaara Info Section */
.card-bottom {
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.65rem;
    margin-top: 0.5rem;
}

.sevadaara-info {
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sevadaara-info .label {
    font-weight: 600;
    color: #64748b;
}

.sevadaara-info .name {
    color: #0f172a;
    font-weight: 600;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-header {
        padding: 1.25rem 0.75rem;
    }

    .site-header h1 {
        font-size: 1.5rem;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 6px;
        padding: 8px 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Chrome/Safari/Firefox */
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        padding: 6px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .container {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }

    .page-header {
        margin-bottom: 1.25rem;
    }

    .page-header h2 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .search-wrapper {
        margin-bottom: 1rem;
        top: 56px;
        padding: 3px 4px 3px 10px;
    }

    .search-wrapper input {
        font-size: 0.85rem;
        padding: 6px 2px;
    }

    .search-wrapper .search-icon {
        font-size: 0.75rem;
        margin-right: 6px;
    }

    .search-wrapper .btn-download-pdf {
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    .festival-card-list {
        gap: 0.85rem;
    }

    .festival-card {
        flex-direction: row;
        border-radius: 10px;
    }

    .date-badge {
        flex-direction: column;
        justify-content: center;
        padding: 0.75rem 0.4rem;
        min-width: 82px;
        max-width: 82px;
        border-right: 3px solid #f59e0b;
        border-bottom: none;
    }

    .date-badge .day {
        font-size: 1.5rem;
    }

    .date-badge .month-year {
        font-size: 0.72rem;
        margin-top: 3px;
        line-height: 1.2;
    }

    .card-content {
        padding: 0.85rem 1rem;
    }

    .card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 0.5rem;
    }

    .event-title {
        font-size: 1.12rem;
        line-height: 1.35;
    }

    .tithi-tag {
        font-size: 0.78rem;
        padding: 2px 10px;
    }

    .card-bottom {
        padding-top: 0.45rem;
        margin-top: 0.35rem;
    }

    .sevadaara-info {
        font-size: 0.85rem;
    }

    .hero-banner {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
        margin-bottom: 1.75rem;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .cta-btn {
        padding: 8px 18px;
        font-size: 0.88rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .about-card {
        padding: 1.25rem 1.25rem;
        border-radius: 10px;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .feature-card {
        padding: 1rem 1.15rem;
    }

    .feature-icon {
        font-size: 1.8rem;
    }

    .feature-info h3 {
        font-size: 1.1rem;
    }
}

/* Next Upcoming Event Highlight Styling */
.festival-card.upcoming-next {
    border: 2px solid #d97706;
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.22);
    position: relative;
    animation: pulseBorder 3s infinite ease-in-out;
}

.festival-card.upcoming-next .date-badge {
    background: linear-gradient(135deg, #b45309, #d97706);
}

.upcoming-badge {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    white-space: nowrap;
}

.festival-card.past-event {
    opacity: 0.75;
}

@keyframes pulseBorder {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(217, 119, 6, 0.18);
        border-color: #d97706;
    }
    50% {
        box-shadow: 0 8px 32px rgba(217, 119, 6, 0.38);
        border-color: #f59e0b;
    }
}

/* Hero Banner Section */
.hero-banner {
    background: linear-gradient(135deg, #800020, #580016);
    color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.2);
    border-bottom: 5px solid #f59e0b;
    margin-bottom: 2.5rem;
}

.hero-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fde68a;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-serif-kannada);
    font-size: 2rem;
    margin: 0.25rem 0 0.5rem 0;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.cta-btn.primary {
    background-color: #f59e0b;
    color: #1e293b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.cta-btn.primary:hover {
    background-color: #d97706;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Section Header Divider */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.7rem;
    color: #800020;
    margin-bottom: 0.3rem;
}

.heading-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #800020, #f59e0b);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Temple Section */
.about-section {
    margin-bottom: 3rem;
}

.about-card {
    background: #fffdfa;
    border: 1px solid #fde68a;
    border-left: 5px solid #d97706;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 1rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Quick Features Grid */
.features-section {
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #f59e0b;
}

.feature-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-info h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    color: #1e293b;
    font-family: var(--font-serif-kannada);
}

.feature-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.35rem;
    color: #64748b;
    line-height: 1;
}

.feature-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #d97706;
}

/* Footer Styling */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* Collapsible Section Styling */
.collapsible-section {
    border-top: 1px solid #e2e8f0;
    background-color: #fafafa;
}

.collapsible-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f4b327; /* Deep crimson text */
    cursor: pointer;
    user-select: none;
    list-style: none; /* Removes default browser marker */
}

/* Remove default disclosure triangle in Webkit browsers */
.collapsible-toggle::-webkit-details-marker {
    display: none;
}

.collapsible-toggle:hover {
    background-color: #f1f5f9;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    color: #d9a806; /* Gold icon */
}

/* Rotate icon when opened */
.collapsible-section[open] .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
    background-color: #ffffff;
    border-top: 1px dashed #e2e8f0;
}

.collapsible-content p {
    margin: 0;
}

/* Sub-body grouping inside Seva Card */
.seva-sub-body {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Specific styling for invocation lines inside verses */
.verse-line.invocation {
    font-weight: 700;
    color: #800020;
    margin-top: 0.5rem;
}

/* Highlight styles for upcoming event */
.festival-card.upcoming-highlight {
    border: 2px solid #d32f2f;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
    background-color: #fff9f9;
}

.upcoming-tag {
    background-color: #d32f2f;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    display: inline-block;
}

.tag-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-header--glass {
    background: linear-gradient(135deg, #7a0016, #b3122e);
    padding: 2.8rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-header--glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.header-container {
    position: relative;
    z-index: 1;
}

.top-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.kn-heading {
    font-family: 'Noto Serif Kannada', serif;
    font-size: 2.4rem;
    color: #ffffff;
    margin: 0.2rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subheading-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    margin-top: 0.5rem;
    color: #ffeb3b;
    font-size: 0.95rem;
    font-family: 'Noto Sans Kannada', sans-serif;
}

.subheading-pill .dot {
    width: 5px;
    height: 5px;
    background-color: #ffeb3b;
    border-radius: 50%;
}

:root {
    --primary: #8b0000;         /* Deep Temple Crimson */
    --accent-gold: #d97706;     /* Sacred Gold Accent */
    --accent-orange: #ea580c;   /* Saffron Accent */
    --accent-rose: #be123c;     /* Soft Rose Accent */
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --border-soft: #ebdca8;     /* Warm Gold Border */
    --shadow-card: 0 4px 14px rgba(180, 83, 9, 0.12); 
    --shadow-hover: 0 6px 18px rgba(180, 83, 9, 0.20);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Kannada', sans-serif;
    background-color: #f7eed7; /* Warm sandalwood background */
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-text-content {
    text-align: center;
    flex-grow: 1;
}

.kn-heading {
    font-family: 'Noto Serif Kannada', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.subheading-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 0.85rem;
}

.subheading-pill .eng {
    font-weight: 600;
    color: #fef08a;
}

.subheading-pill .dot {
    color: #ffffff;
    opacity: 0.6;
}

.location-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Main Container with CLEAR Light Saffron Background Gradient Fading towards Top-Left */
main.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 32px 16px;
    width: 100%;
    flex: 1;
    /* Visible Light Amber/Saffron Radial Gradient */
    background: radial-gradient(circle at 0% 0%, #ffffff 0%, #fff1f2 45%, #f6f6f6 100%);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Feature Cards with Distinct Warm Radial Gradients (NO pure white) */
.feature-card {
    /* Soft light warm yellow-to-peach gradient */
    background: radial-gradient(circle at 10% 10%, #fffbeb 0%, #fef3c7 65%, #fed7aa 100%);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Alternating Subtle Rose/Amber Radiant Tint for Visual Appeal */
.feature-card:nth-child(even) {
    background: radial-gradient(circle at 10% 10%, #fffbeb 0%, #fef3c7 65%, #fed7aa 100%);
}

/* Decorative Accent Top Border */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    border-radius: 12px 12px 0 0;
}

.feature-card:nth-child(even)::before {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-rose));
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-info h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.35;
}

.feature-info p {
    font-size: 0.825rem;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 12px;
}

.feature-link {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: gap 0.15s ease, color 0.15s ease;
}

.feature-card:hover .feature-link {
    color: var(--primary);
    gap: 5px;
}

/* About Temple Section */
.about-section {
    margin-top: 2.5rem;
}

.section-header .kn-heading {
    font-size: 1.2rem;
    color: var(--primary);
}

.heading-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange), transparent);
    width: 54px;
    margin: 4px 0 14px 0;
    border-radius: 2px;
}

.about-card {
    background: radial-gradient(circle at 10% 10%, #fffbeb 0%, #fef3c7 65%, #fed7aa 100%);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
}

.about-text {
    font-size: 0.925rem;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.65;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background-color: #1c1917;
    color: #e7e5e4;
    padding: 24px 16px;
    text-align: center;
    margin-top: auto;
    border-top: 3px solid var(--accent-gold);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-sub {
    font-size: 0.825rem;
    color: #a8a29e;
    margin-top: 4px;
}

@media (max-width: 639px) {
    .search-wrapper {
        gap: 0;
        border-width: 1.5px;
    }
    .search-wrapper .search-icon {
        font-size: 0.75rem;
        margin-right: 4px;
    }
    #eventSearch {
        padding: 5px 2px !important;
        margin: 0 !important;
        text-indent: 0 !important;
        font-size: 0.82rem;
    }
    .search-wrapper .btn-download-pdf {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
}


/* ==========================================================================
   Progressive Web App (PWA) Offline & Update Toasts
   ========================================================================== */
.pwa-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    font-family: inherit;
    font-size: 0.95rem;
    color: #ffffff;
    max-width: 90vw;
    animation: pwaSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.pwa-toast--update {
    background: linear-gradient(135deg, #800020, #4a0012);
    border: 1px solid #d4af37;
}

.pwa-toast--offline {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pwa-toast__content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-toast__icon {
    font-size: 1.2rem;
}

.pwa-toast__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-toast__btn {
    border: none;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pwa-toast__btn--refresh {
    background: #d4af37;
    color: #1a1a1a;
    padding: 6px 14px;
}

.pwa-toast__btn--refresh:hover {
    background: #e5c158;
    transform: scale(1.04);
}

.pwa-toast__btn--close {
    background: transparent;
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 6px;
    opacity: 0.8;
}

.pwa-toast__btn--close:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .pwa-toast {
        bottom: 16px;
        width: calc(100% - 32px);
        max-width: none;
        border-radius: 16px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}
