/* RESET & BASE */
:root {
    --bg-deep: #1e0202;
    --gold-bright: #ffe9a6;
    --gold-mid: #d4af37;
    --gold-dim: #ebd58b;
    --gold-dark: #8a6311;
    --parchment-light: #fdf5d3;
    --parchment-dark: #e1c07f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--gold-bright);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
.cinzel,
.main-title,
.scroll-title {
    font-family: 'Cinzel', serif;
}

.outfit-font {
    font-family: 'Outfit', sans-serif;
}

.gold-color {
    color: var(--gold-mid);
}

.bold-text {
    font-weight: bold;
}

/* UTILS */
.relative-z {
    position: relative;
    z-index: 5;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-inline: auto;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.pb-3 {
    padding-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1.5rem;
}

.container-max {
    max-width: 1400px;
    padding: 0 2rem;
}

.container-large {
    max-width: 1100px;
}

.section-pad {
    padding: 4rem 0;
}

.pt-nav {
    padding-top: 4rem;
}

/* leave room for fixed nav */

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (min-width: 901px) {
    .alt-grid .history-image {
        order: -1;
    }
}

.align-center {
    align-items: center;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ABSTRACT BG */
.bg-vfx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 20%, #4a0c0c 0%, #160202 80%);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle cx="50" cy="50" r="1.5" fill="%23fff" opacity="0.6"/><circle cx="250" cy="150" r="1" fill="%23ffdf85" opacity="0.4"/><circle cx="150" cy="300" r="2" fill="%23fff" opacity="0.5"/><circle cx="350" cy="80" r="1.5" fill="%23ffdf85" opacity="0.7"/></svg>');
    opacity: 0.5;
    animation: twinkle 5s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.8;
    }
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(43, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gold-dim);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: 0.3s;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: #fff;
    border-bottom: 2px solid var(--gold-mid);
    text-shadow: 0 0 10px var(--gold-dim);
}



.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold-dim);
    border-radius: 3px;
    transition: 0.3s;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gold-mid);
    color: var(--gold-bright);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Outfit';
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--gold-dark);
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

/* === HERO BRANDING UNIT (UNIFIED) === */
.hero-branding-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 650px;
    /* Reduced from massive text size to fit logo context */
    height: 650px;
    margin-bottom: 2rem;
}

.shield-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-shield {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
    animation: floating-logo 4s ease-in-out infinite;
}

.text-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 4rem;
    /* Lower it into the shield's center-bottom area */
}

.main-title-3d {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 7.5rem;
    /* Slightly smaller to fit WITHIN the shield context */
    margin-bottom: 0.2rem;
    background: linear-gradient(180deg, #fdf5d3 0%, #d4af37 40%, #8a6311 75%, #4a0404 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
    text-shadow:
        1px 1px 0px #be912c,
        0px 2px 0px #8a6311,
        0px 4px 0px #6d4b0d,
        0px 6px 0px #4c3104;
    letter-spacing: 5px;
}

.hero-daiva-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-mid);
    letter-spacing: 3px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.punar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 0.5rem;
}

.punar-text {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 4px;
    position: relative;
    padding: 0 35px;
}

.punar-text::before,
.punar-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}

.punar-text::before {
    left: -30px;
}

.punar-text::after {
    right: -30px;
}

.om-symbol {
    position: absolute;
    font-family: 'Cinzel';
    font-size: 3rem;
    color: var(--gold-mid);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    opacity: 0.5;
    top: 50%;
    z-index: 5;
}

.om-symbol.left {
    left: -60px;
    transform: translateY(-50%);
}

.om-symbol.right {
    right: -60px;
    transform: translateY(-50%);
}

@keyframes floating-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


.event-info-premium {
    text-align: center;
    max-width: 800px;
    margin-top: -1rem;
    /* Pull it slightly closer to the logo base */
    z-index: 5;
}

.date-text-premium {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.date-range-hero {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold-mid);
    letter-spacing: 3px;
    margin-top: 0.5rem;
}


.taravadu-tag {
    font-size: 0.9rem;
    letter-spacing: 6px;
    margin-top: 8px;
    opacity: 0.7;
    color: var(--gold-mid);
}

.golden-separator {
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
    margin: 1.5rem auto;
}

.golden-separator.short {
    width: 150px;
}

.date-text {
    color: var(--gold-dim);
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-text-sub {
    color: var(--gold-mid);
    font-family: 'Cinzel';
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.hero-action-btns {
    margin-top: 3rem;
    max-width: 500px;
    margin-inline: auto;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-gold-ornate {
    background: linear-gradient(to bottom, #540c0c, #2a0303);
    border: 1px solid var(--gold-mid);
    color: var(--gold-dim);
    padding: 14px 24px;
    border-radius: 6px;
    font-family: 'Outfit';
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.2), 0 4px 10px rgba(0, 0, 0, 0.4);
    flex: 1;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-gold-ornate:hover {
    border-color: #fff;
    color: #fff;
    background: linear-gradient(to bottom, #7a1515, #4a0404);
    transform: translateY(-3px);
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.4), 0 8px 15px rgba(0, 0, 0, 0.6);
}

.full-w {
    width: 100%;
}

.scroll-indicator {
    position: relative;
    margin-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    color: var(--gold-mid);
    opacity: 0.8;
    z-index: 10;
}

.scroll-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* === HISTORY / ORNATE SECTION === */
.ornate-frame {
    position: relative;
    border: 2px solid #a67c3b;
    background: rgba(40, 5, 5, 0.75);
    backdrop-filter: blur(8px);
    padding: 4rem;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30"><rect width="30" height="30" fill="none" stroke="%23ebd58b" stroke-width="2"/></svg>') 10 stretch;
}

.frame-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--gold-dim);
}

.frame-corner::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-dim);
}

.tl {
    top: -8px;
    left: -8px;
    border-bottom: none;
    border-right: none;
}

.tl::before {
    top: 8px;
    left: 8px;
    border-bottom: none;
    border-right: none;
}

.tr {
    top: -8px;
    right: -8px;
    border-bottom: none;
    border-left: none;
}

.tr::before {
    top: 8px;
    right: 8px;
    border-bottom: none;
    border-left: none;
}

.bl {
    bottom: -8px;
    left: -8px;
    border-top: none;
    border-right: none;
}

.bl::before {
    bottom: 8px;
    left: 8px;
    border-top: none;
    border-right: none;
}

.br {
    bottom: -8px;
    right: -8px;
    border-top: none;
    border-left: none;
}

.br::before {
    bottom: 8px;
    right: 8px;
    border-top: none;
    border-left: none;
}

.history-content {
    padding-right: 2rem;
}

.kannada-text {
    color: var(--gold-mid);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.section-heading {
    font-size: 3rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(220, 162, 69, 0.3)
}

.subtitle-gold {
    color: var(--gold-mid);
    font-family: 'Outfit';
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.history-text {
    color: #d1bfae;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.image-wrap-ornate {
    position: relative;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.border-gold-thick {
    border: 4px solid var(--gold-mid);
    border-radius: 4px;
    width: 100%;
    height: auto;
    display: block;
}

.box-shadow-glow {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}



.grid-2col.schedule-flex {
    align-items: start;
}

/* The scroll board for desktop acts as background. For mobile, it's transparent. */
.parchment-scroll {
    border: 3px solid #b38235;
    border-radius: 4px;
    padding: 3rem;
    color: #3a1506;
    box-shadow: inset 0 0 30px rgba(120, 60, 10, 0.3), 0 15px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.1"/></svg>'), radial-gradient(circle at center, var(--parchment-light), var(--parchment-dark));
}

/* Roll effect top/bottom on layout */
.parchment-scroll::before,
.parchment-scroll::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    height: 18px;
    border-radius: 10px;
}

.parchment-scroll::before {
    top: -15px;
    background: linear-gradient(180deg, #f0dfa8, #d0ab5c, #865f1c);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.parchment-scroll::after {
    bottom: -15px;
    background: linear-gradient(180deg, #865f1c, #d0ab5c, #f0dfa8);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.4);
}

.scroll-title {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: #822212;
    border-bottom: 2px solid rgba(130, 34, 18, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sub-heading-dark {
    font-size: 2.2rem;
    color: #4a0c0c;
    border-bottom: 2px dashed rgba(130, 34, 18, 0.3);
    padding-bottom: 1.5rem;
}

/* The cards inside */
.parchment-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-item {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(130, 34, 18, 0.15);
    padding-bottom: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
}

.card-item:hover {
    transform: translateX(10px);
    background: rgba(130, 34, 18, 0.05);
}

.card-item:last-child {
    border-bottom: none;
}

.thumb-wrap img {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #5d3f0d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.card-item:hover .thumb-wrap img {
    transform: scale(1.1) rotate(2deg);
    border-color: #8b6311;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.card-text h4 {
    color: #351305;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-text p {
    color: #5a2810;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.btn-solid-dark-gold {
    background: linear-gradient(180deg, #781515, #4a0404);
    border: 1px solid var(--gold-mid);
    color: var(--gold-dim);
    font-family: 'Outfit';
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 14px 30px;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-solid-dark-gold:hover {
    background: linear-gradient(180deg, #8e1a1a, #5a0606);
    color: #fff;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

/* === CONTACT === */
.footer-contact {
    background: linear-gradient(180deg, transparent, rgba(30, 2, 2, 0.95) 20%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-title {
    font-size: 3.5rem;
    letter-spacing: 10px;
    text-shadow: 0 0 20px rgba(220, 162, 69, 0.3);
}

.icon-location-gold {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--gold-mid), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.flex-form {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.gold-input {
    flex: 1;
    padding: 16px 20px;
    background: #fdf7e3;
    border: 2px solid #bba371;
    border-radius: 6px;
    color: #441705;
    font-family: 'Outfit';
    font-size: 1.05rem;
}

.btn-submit {
    /* match the solid dark gold style */
    background: linear-gradient(180deg, #781515, #4a0404);
    border: 2px solid var(--gold-dim);
    color: var(--gold-dim);
    padding: 0 45px;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Outfit';
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-submit:hover {
    color: #fff;
    border-color: #fff;
}

/* === GALLERY SECTION === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--gold-mid);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.3);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

.gallery-item:hover .gallery-img {
    filter: brightness(1.1);
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(20, 2, 2, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid var(--gold-mid);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--gold-bright);
    padding: 20px 0;
    height: 150px;
    font-size: 1.2rem;
    font-family: 'Outfit';
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--gold-mid);
    text-decoration: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--gold-mid);
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 3px;
    user-select: none;
    text-decoration: none;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover,
.next:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
}

/* === COMMITTEE SECTION === */
.committee-card {
    background: rgba(43, 8, 8, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    border-radius: 8px;
    transition: 0.3s;
}

.committee-card:hover {
    border-color: var(--gold-mid);
    background: rgba(60, 10, 10, 0.6);
    transform: translateY(-5px);
}

.name-text {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* === FOOTER REFINEMENT === */
.footer-contact {
    padding: 6rem 0 3rem;
    background: linear-gradient(to top, #110101, transparent);
}

.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer-bottom {
    border-top: none;
    padding-top: 0;
}


/* ================= MEDIA QUERIES (PERFECT SYNC) ================= */
@media (max-width: 1050px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .main-title {
        font-size: 5rem;
        letter-spacing: 8px;
    }

    .grid-2col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .history-content {
        padding-right: 0;
        text-align: center;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .section-title-mobile {
        font-size: 2.2rem;
        border-bottom: 2px solid var(--gold-mid);
        padding-bottom: 10px;
        display: inline-block;
        color: var(--gold-bright);
        font-family: 'Cinzel';
    }

    /* On Mobile/Tablet, we turn the scroll board into individual parchment cards without the big wrapper box */
    .parchment-scroll {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .parchment-scroll::before,
    .parchment-scroll::after {
        display: none;
    }

    .parchment-cards-list {
        margin-top: 0;
    }

    .card-item {
        background: radial-gradient(circle at center, var(--parchment-light), var(--parchment-dark));
        border: 2px inset #926922;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        position: relative;
        margin-bottom: 1rem;
        border-bottom: none;
    }

    .card-item::before {
        /* Inner ornate border */
        content: '';
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border: 1px dashed rgba(146, 105, 34, 0.5);
        border-radius: 8px;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }



    .hamburger {
        display: flex;
        z-index: 101;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Reveal mobile nav items fullscreen on click */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(20, 2, 2, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: left 0.4s ease;
        z-index: 100;
        border-right: 2px solid var(--gold-mid);
    }

    .nav-links.active-menu {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }

    .hamburger.active-menu span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active-menu span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active-menu span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero */
    .hero-section {
        padding-top: 6rem;
        /* Add some space at top */
        min-height: 100vh;
        /* Fill the screen */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }

    .hero-mask-wrap {
        display: block;
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .clean-logo-bg {
        width: 350px;
        /* Increased from 280px */
        height: 350px;
        /* Increased from 280px */
    }

    .main-title-3d {
        font-size: 3.8rem;
        letter-spacing: 2px;
        line-height: 1;
        margin-bottom: 0.5rem;
        text-shadow: 1px 1px 0px #be912c, 0px 2px 0px #8a6311, 0px 4px 0px #4c3104;
    }

    .hero-daiva-name {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }

    .punar-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
        padding: 0 15px;
    }

    .punar-text::before,
    .punar-text::after {
        width: 30px;
    }

    .punar-text::before {
        left: -20px;
    }

    .punar-text::after {
        right: -20px;
    }

    .punar-wrap {
        margin-bottom: 1.5rem;
    }

    .date-text {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .hero-action-btns {
        margin-top: 2.5rem;
        margin-bottom: 4rem;
        /* Leave some space at bottom */
        width: 100%;
        padding: 0 1.5rem;
    }

    .ornate-frame {
        padding: 2.5rem 1rem;
        border-image: none;
        border-radius: 8px;
        background: rgba(30, 2, 2, 0.9);
        margin: 0 0.5rem 4rem 0.5rem;
    }

    .frame-corner {
        width: 30px;
        height: 30px;
    }

    .frame-corner::before {
        width: 20px;
        height: 20px;
    }

    .section-heading {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
    }

    .gold-subheading {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .subtitle-gold {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .history-text {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        /* Better for mobile stacks */
    }

    .history-image {
        margin-top: 2rem;
    }

    .history-image img {
        max-width: 90%;
        margin: 0 auto;
    }

    /* Schedule Card Mobile Adjustments */
    .card-text p {
        font-size: 0.85rem;
        line-height: 1.4;
        text-align: left;
    }

    .thumb-wrap img {
        width: 60px;
        height: 60px;
    }

    .card-item {
        gap: 12px;
        padding: 15px;
    }

    .flex-form {
        flex-direction: column;
    }

    .btn-submit {
        padding: 18px;
        width: 100%;
    }

    .contact-title {
        font-size: 2.5rem;
    }


    /* Unified Mobile Branding */
    .logo-stack {
        width: 100%;
        max-width: 340px;
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 0.5rem;
    }

    .text-overlay {
        margin-top: 1rem;
    }

    .main-title-3d {
        font-size: min(15vw, 3.8rem);
        letter-spacing: 2px;
        text-shadow: 1px 1px 0px #be912c, 0px 2px 0px #8a6311, 0px 4px 0px #4c3104;
    }

    .hero-daiva-name {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .punar-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
        padding: 0 15px;
    }

    .om-symbol {
        font-size: 1.5rem;
        opacity: 0.4;
    }

    .om-symbol.left {
        left: -10px;
    }

    .om-symbol.right {
        right: -10px;
    }

    .committee-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .name-text {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .gallery-img {
        height: 160px;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .prev,
    .next {
        font-size: 20px;
        padding: 5px;
    }
}

@media (max-width: 400px) {
    .main-title-3d {
        font-size: 2.8rem;
    }

    .btn-group {
        flex-direction: column;
    }
}