@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Great+Vibes&family=Lato:wght@300;400;700&family=MonteCarlo&family=Noto+Serif+Tamil:wght@400;700;900&display=swap');

/* ... (rest of CSS) ... */

/* Main Navigation / Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 8px;
    /* Thicker bar */
    background: #780740;
    /* Dark Pink / Maroon */
    z-index: 10000;
    box-shadow: 0 0 10px rgba(120, 7, 64, 0.4);
    transition: width 0.1s ease-out;
}

#scroll-progress::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 14px solid #780740;
}




/* Anti-Flash Loading State */
body.loading {
    opacity: 0 !important;
    visibility: hidden !important;
}

:root {
    --primary-color: #780740;
    /* Luxury Maroon */
    --primary-dark: #4a0426;
    --accent-gold: #b57d0d;
    /* Traditional Gold */
    --accent-gold-light: #d4a017;
    --bg-cream: #fcead9;
    /* Solid Beige BG */
    --text-dark: #3a0421;
    /* Dark Maroon for readability */
    --text-gold: #b57d0d;
    --text-light: #b57d0d;
    /* Replace white with gold */

    --font-heading: 'Cinzel Decorative', cursive;
    --font-luxury: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-curvy: 'MonteCarlo', cursive;
    --font-body: 'Lato', sans-serif;

    --shadow-gold: 0 0 15px rgba(181, 125, 13, 0.4);
    --shadow-card: 0 10px 30px rgba(128, 0, 0, 0.15);
    --border-gold: 2px solid var(--accent-gold);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    /* Hide scrollbar but keep functionality */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    /* Hide scrollbar but keep functionality */
    -ms-overflow-style: none;
    scrollbar-width: none;
    background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    /* GPU acceleration for smoother scrolling */
    -webkit-overflow-scrolling: touch;
}

body::-webkit-scrollbar {
    display: none;
}

/* Luxury Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.15;
    pointer-events: none;
    z-index: 10000;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(181, 125, 13, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Top Fade Overlay (Fog) */
.top-fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 12vh;
    /* Increased for more 'fog' presence */
    background: linear-gradient(to bottom, var(--bg-cream) 25%, transparent 100%);
    /* Increased solid opacity point */
    z-index: 999;
    pointer-events: none;
}

@media (max-width: 768px) {

    /* Push the whole invite down on mobile to clear the top fade */
    .hero {
        padding-top: 10px !important;
        /* Pushed more up */
        padding-bottom: 2rem !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: #4a0426;
    /* Dark Maroon Pin */
    border-radius: 10px;
    border: 2px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: #780740;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-align: center;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(120, 7, 64, 0.3);
}

h2::after {
    display: none;
}

.gold-text {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(181, 125, 13, 0.3);
}

.btn {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-gold) !important;
    border: 2px solid var(--accent-gold);
    border-radius: 30px;
    /* Reverted to capsule shape */
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(181, 125, 13, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- LUXURY SCROLL REVEAL (STAYING SLEEK & FAST) --- */
.scroll-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    /* Animation disabled as requested */
}

.scroll-reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Interactive Invitation Text Effects */
.invocations p,
.invite-line,
.groom-section h1,
.bride-section h1,
.parents-info,
.with,
.schedule-line,
.venue-name,
.muhurtham-detail {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: default;
}

.invocations p:hover,
.invite-line:hover,
.groom-section h1:hover,
.bride-section h1:hover,
.parents-info:hover,
.with:hover,
.schedule-line:hover,
.venue-name:hover,
.muhurtham-detail:hover {
    transform: scale(1.03);
    filter: brightness(1.2);
}

.invocations p:active,
.groom-section h1:active,
.bride-section h1:active {
    transform: scale(0.98);
}

/* Staggered Reveal for Tables & Lists */
.stagger-reveal {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.stagger-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Specific Slide Directons */
.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-zoom {
    transform: scale(0.9);
}

/* Smooth Floating Animation for decorative items */
@keyframes floatSleek {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating-sleek {
    animation: floatSleek 6s ease-in-out infinite;
}

/* Parallax Background Effect */
.parallax-bg {
    transform: translateZ(-1px) scale(2);
    z-index: -1;
}

/* Interactive Card Reveal with Perspective */
.card-reveal {
    perspective: 1000px;
}

.card-reveal .inner-card {
    opacity: 0;
    transform: rotateX(10deg) translateY(30px);
    transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.visible .inner-card {
    opacity: 1;
    transform: rotateX(0) translateY(0);
}

/* Falling Flowers Styling */
.flower {
    position: fixed;
    z-index: 1001;
    pointer-events: none;
    background-image: url('flower_orange.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform-origin: center;
    /* Removed mix-blend-mode: screen to preserve true orange color */
}

.lang-switch-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    /* Bright background */
    border: 2px solid var(--accent-gold);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    /* Clean middle spacing */
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    font-weight: 700;
}

/* Language Switch Morphing Effect - Optimized for Speed */
body.lang-switching section,
body.lang-switching footer,
body.lang-switching .hero-frame {
    opacity: 0;
    filter: blur(4px);
    /* Reduced from 12px for better performance */
    transform: scale(0.98) translateY(2px);
    /* Subtle shift for faster feel */
    transition: opacity 0.15s ease-out, filter 0.15s ease-out, transform 0.15s ease-out;
}

section,
footer,
.hero-frame {
    transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, filter, transform;
}

/* Ensure music button stays locked and visible during transitions */
.music-btn {
    opacity: 1 !important;
    filter: none !important;
}

.lang-switch-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(181, 125, 13, 0.4);
    color: var(--accent-gold);
}

.lang-switch-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.lang-text {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Music Button */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    /* Higher than other fixed elements */
    width: 44px;
    /* Slightly larger for better touch target */
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(120, 7, 64, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(120, 7, 64, 0.6);
}

.music-icon {
    font-size: 0.9rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 8px;
    margin-top: 1px;
    z-index: 2;
}

.music-waves span {
    width: 2px;
    height: 100%;
    background: var(--accent-gold);
    border-radius: 1px;
    animation: wave-animation 1s ease-in-out infinite alternate;
    -webkit-animation: wave-animation 1s ease-in-out infinite alternate;
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}

.playing .music-waves span {
    animation-play-state: running;
}

.music-waves span:nth-child(2) {
    animation-delay: 0.2s;
}

.music-waves span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wave-animation {
    from {
        height: 2px;
    }

    to {
        height: 8px;
    }
}

@-webkit-keyframes wave-animation {
    from {
        height: 2px;
    }

    to {
        height: 8px;
    }
}

@media (max-width: 768px) {
    .music-btn {
        bottom: 10px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-cream);
    /* Unified BG */
    padding: 1.5rem 1rem;
    /* Reduced top gap */
    position: relative;
}

.hero::before {
    display: none;
    /* Remove outside border */
}

.hero-frame {
    padding: 4rem 3rem;
    position: relative;
    max-width: 1000px;
    width: 94%;
    /* Leaves ~3% (~0.5cm+) gap on each side */
    background: #fffbf0;
    /* Lighter creme card */
    border-radius: 0;
    margin: 1rem auto;
    /* Reduced gap to push up */
    /* Balanced Laptop Gap */
    box-shadow:
        0 20px 50px rgba(120, 7, 64, 0.1),
        inset 0 0 40px rgba(255, 255, 255, 1);
    z-index: 5;
}

.decorative-flourish-left {
    position: absolute;
    right: calc(100% + 60px);
    top: 42% !important;
    /* LAPTOP ADJSUTMENT: Higher % = Down, Lower % = Up */
    transform: translateY(-50%);
    width: 320px;
    height: auto;
    opacity: 0;
    filter: invert(15%) sepia(85%) saturate(4500%) hue-rotate(325deg) brightness(45%) contrast(110%);
    pointer-events: none;
    z-index: 10;
    will-change: opacity, filter, transform;
}

.decorative-flourish-right {
    position: absolute;
    left: calc(100% + 60px);
    top: 42% !important;
    /* LAPTOP ADJSUTMENT: Higher % = Down, Lower % = Up */
    transform: translateY(-50%) scaleX(-1);
    width: 320px;
    height: auto;
    opacity: 0;
    filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%);
    pointer-events: none;
    z-index: 10;
    will-change: opacity, filter, transform;
}

@media (max-width: 1440px) {

    .decorative-flourish-left,
    .decorative-flourish-right {
        width: 250px;
    }
}

@media (max-width: 1200px) {

    .decorative-flourish-left,
    .decorative-flourish-right {
        display: block !important;
        /* Re-enable for mobile */
        top: 98% !important;
        /* MOBILE ADJSUTMENT: Higher % = Down, Lower % = Up */
        width: 120px !important;
        right: calc(100% + 5px) !important;
        left: calc(100% + 5px) !important;
        /* Opacity removed to allow venom-reveal animation to control it */
    }
}

.decorative-flourish-left.venom-reveal {
    animation: venom-reveal 5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    -webkit-animation: venom-reveal 5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.decorative-flourish-right.venom-reveal {
    animation: venom-reveal-right 5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    -webkit-animation: venom-reveal-right 5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes venom-reveal {
    0% {
        opacity: 0;
        filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%) blur(15px);
        transform: translateY(-50%) scale(0.95);
    }

    20% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.95;
        /* Final opacity 95% as requested */
        filter: invert(15%) sepia(85%) saturate(4500%) hue-rotate(325deg) brightness(45%) contrast(110%) blur(0px);
        transform: translateY(-50%) scale(1);
    }
}

@-webkit-keyframes venom-reveal {
    0% {
        opacity: 0;
        filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%) blur(15px);
        -webkit-transform: translateY(-50%) scale(0.95);
        transform: translateY(-50%) scale(0.95);
    }

    20% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.95;
        filter: invert(15%) sepia(85%) saturate(4500%) hue-rotate(325deg) brightness(45%) contrast(110%) blur(0px);
        -webkit-transform: translateY(-50%) scale(1);
        transform: translateY(-50%) scale(1);
    }
}

@keyframes venom-reveal-right {
    0% {
        opacity: 0;
        filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%) blur(15px);
        transform: translateY(-50%) scaleX(-1) scale(0.95);
    }

    20% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.95;
        /* Final opacity 95% as requested */
        filter: invert(15%) sepia(85%) saturate(4500%) hue-rotate(325deg) brightness(45%) contrast(110%) blur(0px);
        transform: translateY(-50%) scaleX(-1) scale(1);
    }
}

@-webkit-keyframes venom-reveal-right {
    0% {
        opacity: 0;
        filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%) blur(15px);
        -webkit-transform: translateY(-50%) scaleX(-1) scale(0.95);
        transform: translateY(-50%) scaleX(-1) scale(0.95);
    }

    20% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.95;
        /* Final opacity 95% as requested */
        filter: invert(15%) sepia(85%) saturate(4500%) hue-rotate(325deg) brightness(45%) contrast(110%) blur(0px);
        -webkit-transform: translateY(-50%) scaleX(-1) scale(1);
        transform: translateY(-50%) scaleX(-1) scale(1);
    }
}

@keyframes venom-reveal-thanks {
    0% {
        opacity: 0;
        filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%) blur(15px);
        transform: translateY(-50%) rotate(-10deg) scale(0.95);
    }

    20% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.95;
        filter: invert(15%) sepia(85%) saturate(4500%) hue-rotate(325deg) brightness(45%) contrast(110%) blur(0px);
        transform: translateY(-50%) rotate(-10deg) scale(1);
    }
}

@keyframes venom-reveal-thanks-right {
    0% {
        opacity: 0;
        filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%) blur(15px);
        transform: translateY(-50%) scaleX(-1) rotate(-10deg) scale(0.95);
    }

    20% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.95;
        filter: invert(15%) sepia(85%) saturate(4500%) hue-rotate(325deg) brightness(45%) contrast(110%) blur(0px);
        transform: translateY(-50%) scaleX(-1) rotate(-10deg) scale(1);
    }
}

@media (max-width: 1400px) {
    .decorative-flourish-left {
        width: 300px;
        right: calc(100% + 10px);
    }

    .decorative-flourish-right {
        width: 300px;
        left: calc(100% + 10px);
    }
}

@media (max-width: 1200px) {
    .decorative-flourish-left {
        width: 220px;
        right: calc(100% + 5px);
    }

    .decorative-flourish-right {
        width: 220px;
        left: calc(100% + 5px);
    }
}

@media (max-width: 1024px) {

    .decorative-flourish-left,
    .decorative-flourish-right {
        display: none;
        /* Hide when space is too tight */
    }
}

.hero-frame::before,
.hero-frame::after {
    display: none;
    /* Clean up old symbols */
}

.hero-inner-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 4px double var(--accent-gold);
    pointer-events: none;
    z-index: 2;
}

.hero-inner-border::before {
    content: "✻";
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--bg-cream);
    color: var(--accent-gold);
    font-size: 2rem;
    padding: 5px;
}

.hero-inner-border::after {
    content: "✻";
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--bg-cream);
    color: var(--accent-gold);
    font-size: 2rem;
    padding: 5px;
}

.invocations {
    color: var(--accent-gold-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    font-family: var(--font-body);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: inline-block;
    padding-bottom: 0.5rem;
    /* Soft, diffused golden glow */
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.1);
    filter: none;
}

.main-symbols {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    /* Reduced gap */
    margin-bottom: 1rem;
    /* Reduced spacing */
}

.thanks-wrap {
    position: relative;
}

.thanks-flourish-left {
    position: absolute;
    left: -70px;
    /* Pushed further out */
    top: 70%;
    transform: translateY(-50%) rotate(-10deg);
    width: 150px;
    height: auto;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.thanks-flourish-right {
    position: absolute;
    right: -70px;
    /* Pushed further out */
    top: 70%;
    transform: translateY(-50%) scaleX(-1) rotate(-10deg);
    width: 150px;
    height: auto;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.thanks-flourish-left.venom-reveal {
    animation: venom-reveal-thanks 3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    -webkit-animation: venom-reveal-thanks 3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.thanks-flourish-right.venom-reveal {
    animation: venom-reveal-thanks-right 3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    -webkit-animation: venom-reveal-thanks-right 3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@media (max-width: 1024px) {

    .thanks-flourish-left,
    .thanks-flourish-right {
        display: none;
    }
}



@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
        transform: scale(1.02);
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
        transform: scale(1);
    }
}

@-webkit-keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.ganesha-img {
    height: 140px;
    width: auto;
    animation: pulse-glow 3s infinite ease-in-out;
    -webkit-animation: pulse-glow 3s infinite ease-in-out;
    filter: drop-shadow(0 0 30px rgba(255, 165, 0, 0.5));
}

.couple-name {
    font-family: var(--font-curvy);
    font-weight: 900;
    font-size: 9rem;
    color: var(--primary-color);
    margin: 1.5rem 0;
    /* Restored breathing room */
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0px var(--accent-gold),
        2px 2px 0px var(--accent-gold),
        3px 3px 15px rgba(0, 0, 0, 0.2),
        0 0 45px rgba(181, 125, 13, 0.5);
    line-height: 0.85;
    display: inline-block;
    transform: none !important;
}

.couple-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) rotate(-5deg);
    transition: none;
}

.couple-name.writing .letter {
    animation: letter-reveal 0.4s ease-out forwards;
    -webkit-animation: letter-reveal 0.4s ease-out forwards;
}

@keyframes letter-reveal {
    0% {
        opacity: 0;
        transform: translateY(10px) rotate(-5deg);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
        filter: blur(0);
    }
}

@-webkit-keyframes letter-reveal {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px) rotate(-5deg);
        transform: translateY(10px) rotate(-5deg);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0) rotate(0deg);
        transform: translateY(0) rotate(0deg);
        filter: blur(0);
    }
}

.groom-section,
.bride-section {
    text-align: center;
    width: 100%;
}

.groom-section .couple-name,
.bride-section .couple-name {
    transform: none !important;
}

.aka-name {
    font-family: var(--font-script);
    color: var(--accent-gold);
    font-size: 2.8rem;
    /* Slightly reduced size */
    margin: 0.3rem 0;
    /* Tightened vertical spacing */
    text-shadow: 0 0 10px rgba(181, 125, 13, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    display: block;
}

.aka-name:hover {
    transform: scale(1.15);
}

.aka-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) rotate(-5deg);
    transition: none;
}

.aka-name.writing .letter {
    animation: letter-reveal 0.4s ease-out forwards;
    -webkit-animation: letter-reveal 0.4s ease-out forwards;
}

.parents-info {
    color: var(--accent-gold);
    font-family: var(--font-luxury);
    font-style: italic;
    font-size: 1.6rem;
    /* Safely scaled to fit within laptop borders on one line */
    margin-top: 0.4rem;
    /* Tightened proportional gap */
    margin-bottom: 0.2rem;
    white-space: nowrap !important;
    /* Guaranteed single line */
}

.honorific {
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 5px;
    font-family: var(--font-luxury);
    letter-spacing: 1px;
}

.with {
    font-family: var(--font-script);
    color: var(--primary-color);
    font-size: 3.2rem;
    margin: 2rem 0;
    /* Equalized and increased breathing room on laptop */
    display: block;
    line-height: 1;
    z-index: 10;
    position: relative;
}

.info-block {
    margin-top: 3rem;
}

.schedule-line {
    font-size: 3.2rem;
    color: var(--primary-color);
    font-family: var(--font-curvy);
    line-height: 1.2;
    margin: 1rem 0;
    font-weight: 500;
}

.at {
    font-family: var(--font-script);
    font-size: 2.5rem;
    /* Increased size */
    color: var(--accent-gold);
    margin: 1.5rem 0 0.8rem 0;
}

.venue-name {
    font-size: 3rem;
    /* Reduced further */
    margin: 0.6rem 0;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow:
        0 0 10px rgba(181, 125, 13, 0.5),
        0 0 20px rgba(181, 125, 13, 0.3);
    line-height: 1.2;
}

.venue-address {
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 0;
    /* Removed top margin */
    margin-bottom: 2rem;
    font-weight: 600;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: white;
    padding: 0.6rem 1.2rem;
    /* Reduced padding */
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 0.75rem;
    /* Smaller font */
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(181, 125, 13, 0.25);
    margin-top: 0.5rem;
}

.map-link-container {
    margin-bottom: 3rem;
    /* Ensure gap below button */
}

.map-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(181, 125, 13, 0.5);
    filter: brightness(1.1);
}

/* Standard box for Muhurtam and others */
.muhurtham-wrap {
    margin-top: 0.5rem;
    padding: 1.5rem 2.5rem;
    display: inline-block;
    position: relative;
    background: var(--primary-color);
    border: 3px double var(--accent-gold);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(120, 7, 64, 0.3);
    transition: all 0.3s ease;
}

.muhurtham-wrap:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 60px rgba(120, 7, 64, 0.7);
    border-color: var(--accent-gold);
}

.muhurtham-wrap:active,
.muhurtham-wrap:focus {
    outline: none !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 10px 40px rgba(120, 7, 64, 0.8) !important;
    transform: translateY(-2px) scale(1.01);
    -webkit-tap-highlight-color: transparent;
}

/* Luxury Specialty Class ONLY for Reception Box */
.highlight-events {
    margin: 3rem auto !important;
    /* Equalized & Visible Gaps */
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.reception-box-wrap {
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 240px;
    max-width: 1000px;
    /* Matches Hero Frame */
    width: 95%;
    /* Matches Hero Frame */
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: 3px double var(--accent-gold);
    /* Restored original double border */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(120, 7, 64, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.reception-box-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 80%);
    transform: rotate(25deg);
    animation: goldShimmer 6s infinite linear;
    pointer-events: none;
}

.reception-box-wrap:hover {
    transform: translateY(-5px) scale(1.03);
    /* Slightly bigger and lifted */
    box-shadow: 0 20px 60px rgba(120, 7, 64, 0.7);
    /* Significantly more glow */
    border-color: var(--accent-gold);
    /* Keep border gold */
}

.reception-box-wrap:active,
.reception-box-wrap:focus {
    outline: none !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 10px 40px rgba(120, 7, 64, 0.8) !important;
    transform: translateY(-2px) scale(1.01);
    -webkit-tap-highlight-color: transparent;
}

@keyframes goldShimmer {
    0% {
        transform: rotate(25deg) translate(-20%, -20%);
    }

    100% {
        transform: rotate(25deg) translate(20%, 20%);
    }
}

.muhurtham-title {
    color: var(--accent-gold-light);
    /* Light gold for title */
    font-family: var(--font-heading);
    font-size: 1.3rem;
    /* Compact size */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.muhurtham-detail {
    font-size: 1.5rem;
    /* Compact size */
    font-weight: 700;
    color: var(--bg-cream);
    /* Beige text */
    font-family: var(--font-heading);
    margin-top: 0.5rem;
    font-style: normal;
    /* Changed from italic to normal */
    letter-spacing: 1px;
}

/* New Sections */
.events-section-new,
.compliments-section-new {
    max-width: 900px;
    margin: 1.5rem auto;
    /* Significantly reduced margin to tighten layout */
    text-align: center;
    padding: 1rem;
    /* Reduced padding, removed border/bg */
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Itinerary Table Styles */
.itinerary-table-wrap {
    overflow-x: auto;
    padding: 1rem;
}

.itinerary-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    color: var(--text-dark);
    margin-top: 1rem;
}

.itinerary-table th {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1.5rem 1rem;
    border-bottom: 2px solid var(--accent-gold);
    font-size: 1.1rem;
    vertical-align: middle;
    text-align: center;
}

.itinerary-table td {
    padding: 1.2rem 1rem;
    /* Slightly tighter for better vertical centering feel */
    border: none;
    font-size: 1.05rem;
    /* Standardized font size */
    vertical-align: middle !important;
    text-align: center;
    line-height: 1.3;
    /* Tighter line height for better middling */
    transition: color 0.3s ease;
}

.itinerary-table th:first-child,
.itinerary-table td:first-child {
    font-weight: 700;
    color: var(--primary-color);
    width: auto;
    min-width: 160px;
    white-space: nowrap !important;
}

/* Col 3: Description - Aligned Aligned (Desktop) */
.itinerary-table td:nth-child(3) {
    text-align: left;
    /* Changed from justify to left for better multi-line readability */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.25;
    /* Tighter line height for compactness */
}

/* Highlight important rows with a darker/differentiated tint */
.highlight-row {
    background-color: #f0e1b1 !important;
    /* More yellowish/dark beige for differentiation */
}




.itinerary-table-wrap::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.itinerary-table-wrap {
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.itinerary-table tbody tr {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(181, 125, 13, 0.2);
    border-left: 6px solid transparent;
    /* Reserve space for hover effect with matching width */
}

.itinerary-table tbody tr:hover {
    background-color: #fffbf0;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.8), inset 0 0 10px rgba(255, 215, 0, 0.4);
    /* Dark Bright Golden Glow */
    transform: scale(1.02);
    z-index: 10;
    position: relative;
    border: 1px solid var(--accent-gold);
}

/* Standardized cell behavior */
.itinerary-table td {
    padding: 1.2rem 1rem;
    vertical-align: middle !important;
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
}

/* Ensure text colors change on hover for better contrast/effect */
.itinerary-table tbody tr:hover td {
    color: var(--text-dark);
}

.itinerary-table td:nth-child(3) {
    font-weight: 700 !important;
    color: #5e0a3b !important;
}

.ceremony-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.25rem !important;
    /* Uniform font size across all ceremonies */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
    vertical-align: middle;
}

.itinerary-table tbody tr:hover .ceremony-name {
    transform: scale(1.08);
    /* Reduced scale to prevent jitter */
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    color: var(--primary-color);
}

/* Distinct Day Cards */
.day-section {
    background: #fffcf5;
    border: 1px solid rgba(181, 125, 13, 0.4);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.day-header {
    margin-bottom: 2rem;
    color: var(--accent-gold) !important;
    font-family: var(--font-heading);
    background: var(--primary-color) !important;
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 10px;
    /* Boxier appearance */
    border: 3px double var(--accent-gold);
    /* Matching RSVP style */
    box-shadow: 0 5px 20px rgba(120, 7, 64, 0.3);
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* Removed font size overrides to maintain standardization */
.row-highlight-light td:first-child,
.row-highlight-gold td:first-child {
    font-weight: 700;
    color: var(--primary-color);
}

/* Removing garbage lines */

.day-section:hover {
    box-shadow: 0 8px 25px rgba(181, 125, 13, 0.15);
    border-color: var(--accent-gold);
}

.day-section::before {
    content: "";
    /* Decorative top accent */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.6;
}

.event-item h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(120, 7, 64, 0.1);
}

.reception-tag {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-top: 0.5rem;
}

.thanks-wrap,
.remembrance-wrap {
    margin-bottom: 2rem;
    /* Adjusted for gap equalization */
}

.compliments-section-new {
    margin: 3rem auto !important;
    /* Equalized & Visible Gaps */
}

.script-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.names-list p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Info Box Container */
.info-box-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.info-box {
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    padding: 1.5rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle fill */
    backdrop-filter: blur(2px);
    position: relative;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-box h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.box-date,
.box-venue-name {
    color: var(--text-dark);
    /* Changed from #fff to var(--text-dark) */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.box-time,
.box-address {
    color: var(--text-dark);
    /* Changed from #e0e0e0 to var(--text-dark) */
    font-size: 1rem;
}

/* Compliments Section */
.compliments-section {
    margin-top: 3rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 1.5rem;
    position: relative;
    width: 100%;
}

.compliments-title {
    color: var(--accent-gold);
    font-family: var(--font-script);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.compliments-names p {
    color: var(--text-dark);
    /* Changed from #e0e0e0 to var(--text-dark) */
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.remembrance-section p {
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 1px;
}

.shehnai-icon {
    width: 50px;
    height: auto;
    position: absolute;
    bottom: 0;
    opacity: 0.8;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(-50deg);
    /* Gold-ish tint */
}

.shehnai-icon:not(.icon-right) {
    left: 10px;
    transform: rotate(-15deg);
}

.shehnai-icon.icon-right {
    right: 10px;
    transform: scaleX(-1) rotate(-15deg);
}

@media (max-width: 768px) {
    .info-box-container {
        flex-direction: column;
        align-items: center;
    }

    .info-box {
        width: 100%;
    }

    .shehnai-icon {
        display: none;
        /* Hide icons on small mobile to avoid scatter */
    }
}

.and {
    font-family: var(--font-heading);
    color: var(--accent-gold-light);
    font-size: 2rem;
    margin: 1rem 0;
    position: relative;
}

.and::before,
.and::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background: var(--accent-gold);
    position: absolute;
    top: 50%;
}

.and::before {
    right: 150%;
}

.and::after {
    left: 150%;
}

.invite-line {
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-top: 3rem;
    text-transform: uppercase;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.location-display {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1rem 2rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .couple-names-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        /* Added explicit gap */
    }

    .groom-section,
    .bride-section {
        flex: 1;
    }

    .and {
        margin-top: 1rem;
    }
}



/* Countdown */
.countdown-container {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 3rem 2rem;
    text-align: center;
    color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    margin: 3.5rem auto;
    max-width: 90%;
    border-radius: 20px;
    border: 3px double var(--accent-gold);
    /* Consistent double border */
    overflow: hidden;
    /* For shimmer */
}

/* Luxury Shimmer for Countdown */
.countdown-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 80%);
    transform: rotate(25deg);
    animation: goldShimmer 6s infinite linear;
    pointer-events: none;
}


#countdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    /* Reduced to bring up to line */
}

.time-unit {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0;
    /* Remove excess gap */
}

.names-list p {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    /* Bold & Purple */
    margin: 0;
    line-height: 1.6;
}

.divider-decoration {
    margin: 2rem auto;
    width: 60%;
    height: 2px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 100%);
    opacity: 0.5;
}

.remembrance-content p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    /* Bold & Purple */
    margin-top: 1rem;
}

.time-val {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.time-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: var(--bg-cream);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
    font-family: var(--font-heading);
    text-shadow: 0 4px 10px rgba(120, 7, 64, 0.1);
    padding-bottom: 0.5rem;
}

h2::after {
    content: "";
    /* Removed swan decoration */
    display: block;
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Fusion Script Styling */
.fusion-script {
    margin-bottom: 2rem;
    text-align: center;
}

.sanskrit-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tamil-text {
    font-size: 1rem;
    color: var(--accent-gold);
}

/* Story Section Enhancement */
.story-section {
    padding: 4rem 1rem;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    position: relative;
    padding: 2.5rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: var(--font-body);
}

.story-content::after {
    display: none;
}

/* Events Section */
.events-section {
    padding: 8rem 2rem;
    background: var(--bg-cream);
    /* Unified BG */
    position: relative;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Event Card Styling */
.event-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--accent-gold);
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

/* Event Icons Styling */

/* Event Icons instead of Images */
.card-icon-container {
    height: 120px;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--accent-gold);
}

.event-main-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.event-card:hover .event-main-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.card-body {
    padding: 1.5rem;
    text-align: center;
    background: #fff;
}

.event-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-desc {
    font-family: var(--font-script);
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-info {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RSVP Section */
.rsvp-section {
    padding: 1.5rem 2rem;
    /* Reduced padding to bring it closer to Day 2 */
    background: var(--bg-cream);
    color: var(--primary-color);
    text-align: center;
    position: relative;
    z-index: 100;
    margin-bottom: 2rem;
}


.rsvp-card-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: var(--primary-color);
    border: 3px double var(--accent-gold);
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 15px 40px rgba(120, 7, 64, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.rsvp-inner-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(181, 125, 13, 0.2);
    pointer-events: none;
    border-radius: 15px;
}

.rsvp-section h2 {
    color: var(--accent-gold-light);
    background: none;
    -webkit-text-fill-color: initial;
    font-weight: 700;
}

.rsvp-section p {
    color: var(--bg-cream) !important;
}

.admin-panel {
    margin-top: 3rem;
    background: var(--primary-dark);
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid var(--accent-gold);
    max-width: 950px;
    margin-inline: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.admin-panel.hidden {
    display: none;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

#rsvp-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 0.9rem;
    text-align: left;
}

#rsvp-table th,
#rsvp-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(215, 175, 55, 0.2);
}

#rsvp-table th {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-small {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--accent-gold);
    color: white;
}

.rsvp-section h2 {
    color: var(--accent-gold);
}

.rsvp-form {
    max-width: 650px;
    margin: 2rem auto;
    background: #fff;
    padding: 3rem;
    border: 4px solid var(--accent-gold);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: #f9f9f9;
    border: 2px solid #eee;
    border-bottom: 4px solid var(--accent-gold);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Footer */
footer {
    background: #8B1155;
    color: var(--accent-gold);
    text-align: center;
    padding: 4rem 2rem;
    font-family: var(--font-heading);
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
}

.hashtag {
    font-size: 2.2rem;
    letter-spacing: 8px;
    /* Increased for wider feel */
    margin-bottom: 1.5rem;
    display: block;
    color: #e0aa3e;
    text-shadow: 0 0 15px rgba(224, 170, 62, 0.4);
    white-space: nowrap !important;
    /* Force single line */
}

footer p {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Strong bold font for copyright (not curvy) */
p[data-key="footer_copyright"] {
    font-family: var(--font-body) !important;
    /* Lato / Sans-serif */
    font-weight: 900 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    margin-top: 1.5rem !important;
    text-transform: none !important;
    /* Keep as provided */
}

/* Designer Credit Signature */
.designer-credit {
    position: absolute;
    bottom: 0px;
    /* Touches bottom edge */
    left: 5px;
    /* Touches left edge with minimal gap */
    z-index: 20;
    transition: all 0.4s ease;
    opacity: 0.9;
    /* Increased for better visibility */
    filter: invert(1) brightness(2);
    /* Clearer white on dark BG */
}

.designer-sig {
    height: 110px;
    /* Increased for PC as requested */
    width: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.designer-credit:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .designer-credit {
        position: absolute;
        bottom: 0px;
        left: 0px;
        margin-top: 0;
        opacity: 0.95;
    }

    /* Equalize All Section Gaps Globally */
    .highlight-events,
    .compliments-section-new,
    .countdown-container {
        margin: 1.5rem auto !important;
        /* Equalized Tighter Global Gaps */
        padding: 0.5rem 0 !important;
    }

    .events-section-new {
        margin: 1.5rem auto 0 auto !important;
        /* Tightened gap to RSVP */
        padding: 0.5rem 0 !important;
    }

    .rsvp-section {
        margin-top: 0.5rem !important;
        /* Tightened gap to Itinerary */
        padding: 1rem !important;
    }

    .designer-sig {
        height: 40px;
        /* Even more compact for mobile edge */
    }
}

@media (max-width: 480px) {
    .couple-name {
        font-size: 2.8rem;
        /* Ultra-small mobile */
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0.5rem;
    }

    .hero-frame {
        padding: 6vw 4vw !important;
        width: 90vw !important;
        /* ~5vw (approx 0.5cm) gap on each side */
        max-width: 90vw !important;
        margin: 1.5rem auto !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .reception-box-wrap {
        width: 92vw !important;
        /* Matches Hero Frame Breadth */
        margin: 1.5rem auto !important;
        min-height: auto !important;
        padding: 6vw 4vw !important;
    }

    .rsvp-card-wrap {
        width: 92vw !important;
        /* Unified Breadth for all mobile boxes */
        margin: 0 auto !important;
        padding: 2.5rem 1.2rem !important;
    }

    .couple-names-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .couple-name {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .aka-name {
        font-family: var(--font-script);
        color: var(--accent-gold);
        font-size: 1.2rem;
        /* Slightly reduced for mobile */
        margin: 0.1rem 0 !important;
        /* Tightened vertical spacing */
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .aka-name:hover {
        transform: scale(1.1) !important;
    }

    .muhurtham-wrap {
        margin-top: 1rem !important;
        /* Reduced top gap as requested */
        margin-bottom: 1.5rem !important;
        /* Balanced bottom gap */
    }

    .parents-info {
        font-size: 3.0vw !important;
        /* Optimized to stay on one line within 92vw frame */
        margin-top: 0.5vw !important;
        /* Better Proportional Spacing */
        margin-bottom: 0.5vw !important;
        text-align: center !important;
        white-space: nowrap !important;
        padding: 0 10px !important;
        letter-spacing: -0.1px;
    }

    .and {
        margin: 0.1rem 0;
        font-size: 1.2rem;
    }

    .and::before,
    .and::after {
        width: 25px;
    }

    .main-symbols {
        gap: 0.8rem;
        margin-bottom: 0.2rem !important;
        /* Reduced spacing */
    }

    .ganesha-img {
        height: 70px;
    }

    .info-box-container {
        flex-direction: column;
        gap: 0.6rem;
    }

    .info-box {
        max-width: 100%;
        padding: 1rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .venue-name {
        font-size: 1.4rem;
    }

    .countdown-container {
        width: 98%;
        margin: 1rem auto;
        padding: 1.2rem 0.5rem;
    }

    .time-val {
        font-size: 2rem;
    }

    .rsvp-inner {
        padding: 1.5rem 1rem;
    }

    .thanks-wrap,
    .remembrance-wrap {
        padding: 1rem 1rem;
        /* Reduced from 1.5rem */
        margin-bottom: 1.5rem;
        /* Reduced from 2.5rem */
    }

    /* Refined hover behavior for mobile */
    .itinerary-table tbody tr:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: initial !important;
    }

    .muhurtham-wrap:hover {
        transform: scale(1.02) !important;
        box-shadow: 0 15px 45px rgba(120, 7, 64, 0.6) !important;
        border-color: var(--accent-gold) !important;
    }

    .reception-box-wrap:hover {
        transform: scale(1.02) !important;
        box-shadow: 0 15px 45px rgba(120, 7, 64, 0.6) !important;
        border-color: var(--accent-gold) !important;
    }

    .day-section {
        width: 92vw !important;
        /* Unified Breadth */
        margin: 1.5rem auto 0 auto !important;
        /* Uniformed Tighter Gapping */
        padding: 1.5rem 0.5rem !important;
        box-sizing: border-box !important;
    }

    .itinerary-table-wrap {
        padding: 0.1rem !important;
        width: 100% !important;
        overflow-x: auto !important;
    }

    .itinerary-table th {
        padding: 0.8rem 0.4rem;
        font-size: 0.85rem;
        vertical-align: middle;
    }

    .itinerary-table tbody tr {
        border-left: none !important;
        /* Remove transparent border to gain side space */
    }

    .itinerary-table td {
        padding: 0.5rem 0.2rem;
        /* Tighter side padding */
        font-size: 0.75rem !important;
        vertical-align: middle !important;
        line-height: 1.25;
    }

    .itinerary-table th:first-child,
    .itinerary-table td:first-child {
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
        font-size: 0.65rem !important;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
        /* Smaller font for time */
        white-space: nowrap !important;
        /* Prevent wrapping if possible */
    }
}

@media (min-width: 769px) and (max-width: 1100px) {

    /* Tablet & Small Laptops */
    .hero-frame {
        max-width: 90%;
        padding: 3rem 2rem;
    }

    .couple-name {
        font-size: 4rem;
    }
}

@media (min-width: 1101px) {

    /* Large Screens */
    .hero-frame {
        max-width: 1000px;
    }

    .couple-name {
        font-size: 5.5rem;
    }
}

/* Kannada Specific Typography Ratios */
.kannada-font .couple-name {
    font-size: 5rem !important;
    line-height: 1.2;
}

.kannada-font .invite-line {
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.kannada-font .invocations {
    font-size: 1.3rem;
}

.kannada-font h2 {
    font-size: 2.5rem;
}

.kannada-font .venue-name {
    font-size: 3rem;
    letter-spacing: 0px;
}

.kannada-font .schedule-line {
    font-size: 2rem;
}

.kannada-font .at {
    font-size: 1.8rem;
}

.kannada-font .parents-info {
    font-size: 1.3rem;
}

.kannada-font .with {
    font-size: 2rem;
}

.kannada-font .muhurtham-title {
    font-size: 1.4rem;
}

.kannada-font .muhurtham-detail {
    font-size: 1.5rem;
}

.kannada-font .itinerary-table th {
    font-size: 1.3rem;
    /* Matched to English PC size */
    letter-spacing: 0;
}

.kannada-font .itinerary-table td {
    font-size: 0.95rem;
}

.kannada-font .ceremony-name {
    font-size: 1.1rem !important;
}

@media (max-width: 768px) {
    .kannada-font .venue-name {
        font-size: 1.6rem !important;
    }

    .kannada-font .couple-name {
        font-size: 2.2rem !important;
    }

    .kannada-font .invite-line {
        font-size: 1.1rem !important;
    }

    .kannada-font h2 {
        font-size: 1.6rem !important;
    }

    .kannada-font .schedule-line {
        font-size: 1.3rem !important;
    }

    .kannada-font .parents-info {
        font-size: 2.5vw !important;
    }

    .kannada-font .with {
        font-size: 5vw !important;
        /* Smaller 'mattu' for mobile */
    }

    .kannada-font .invocations {
        font-size: 2.5vw !important;
        /* "Doesn't have to be same" -> 2.5vw for Kannada */
    }

    /* Uniform Text Size for Kannada Mobile Table */
    .kannada-font .itinerary-table .ceremony-name {
        font-size: 1.8vw !important;
        /* Same as standard td size */
        font-weight: 700 !important;
        /* Bold as requested */
    }

    .kannada-font .muhurtham-title {
        font-size: 1.4rem !important;
    }

    .kannada-font .highlight-title {
        font-size: 1.4rem !important;
    }

    .kannada-font .at {
        font-size: 1.3rem !important;
    }
}

.kannada-font .hashtag {
    letter-spacing: 0 !important;
}

.kannada-font .map-btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

/* Muhurtham Box Sizing - Match English */
.kannada-font .muhurtham-title {
    font-size: 2.2rem;
    /* Increased per request */
    letter-spacing: 1px;
}

.kannada-font .muhurtham-detail {
    font-size: 1.5rem;
    /* Compact size */
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Compliments Styling - Uniform */
/* Compliments Styling - Uniform */
.thanks-wrap,
.remembrance-wrap {
    border: 2px solid var(--accent-gold);
    /* Clean single border */
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fffcf5 0%, #fffbf0 100%);
    box-shadow: 0 10px 30px rgba(181, 125, 13, 0.15);
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.thanks-wrap:hover,
.remembrance-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(181, 125, 13, 0.25);
}


.names-list p,
.remembrance-content p,
.remembrance-wrap p[data-key="remembrance_name"] {
    font-family: var(--font-body);
    font-size: 1.25rem !important;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.kannada-font .highlight-title {
    font-size: 2.2rem !important;
    letter-spacing: 0.5px !important;
}

/* Stylized PHOOL branding */
.phool-stylized {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight-title {
    letter-spacing: 2px !important;
    font-weight: 900 !important;
}

.box-glow {
    /* Base version for other uses if any, but we will override for titles */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0) 75%);
    padding: 0.3rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific override for titles to obey "glow for text only" */
.highlight-events .box-glow {
    background: none !important;
    padding: 0 !important;
    text-shadow: none !important;
    /* Managed by text-glow-gold instead */
}

.text-glow-gold {
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.9),
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 40px rgba(212, 175, 55, 0.6),
        0 0 60px rgba(255, 215, 0, 0.4);
    color: var(--accent-gold-light) !important;
}

.title-divider {
    width: 100px;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    margin: 0.5rem auto 1rem;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.linked-oo {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
    margin-inline: 2px;
}

.ring-o {
    position: relative;
    display: inline-block;
    font-weight: 900;
}

.ring-o.second {
    margin-left: -0.45em;
    /* Deep interlock */
    z-index: 1;
}

.linked-oo::after {
    content: "O";
    position: absolute;
    left: -2px;
    /* Slight adjustment to align with the first O */
    top: 0;
    z-index: 2;
    pointer-events: none;
    clip-path: inset(0 50% 50% 0);
    /* Show only top-left quadrant of first O on top of second */
    display: inline-block;
    /* Enable the interlocking effect */
    color: inherit;
}

/* Let's try a simpler robust overlap first */
.ring-o.second {
    margin-left: -0.55em !important;
    /* Extremely aggressive overlap like reality logo */
    z-index: 1;
}

/* End of specialized branding */

/* Optional: Add a subtle clip or mask for true interlocking if needed, 
   but usually negative margin + Cinzel Decorative looks very close to the ref */
.kannada-font .linked-oo {
    letter-spacing: normal;
    margin-right: 0;
}

/* Modern Clean Validation Hints */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.validation-hint {
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    font-size: 0.75rem;
    color: #ff9f43;
    /* Soft gold/orange for errors */
    font-family: var(--font-body);
    font-weight: 600;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.form-control:invalid:not(:placeholder-shown)~.validation-hint {
    opacity: 1;
    transform: translateY(0);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #ff9f43 !important;
    background: rgba(255, 159, 67, 0.05);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #2ecc71 !important;
    /* Subtle green for success */
}

/* ----------------------------------------------------------- */
/* ANTI-GRAVITY MOBILE OVERRIDES (Max-Width: 767px)            */
/* ----------------------------------------------------------- */
@media (max-width: 767px) {

    /* Global Reset for Horizontal Integrity */
    * {
        box-sizing: border-box !important;
    }

    /* ------------------------------------------------------- */
    /* LANGUAGE BUTTON - Proportional Fixed Position           */
    /* ------------------------------------------------------- */
    .lang-switch-btn {
        top: 2vw !important;
        right: 2vw !important;
        padding: 1vw 3vw !important;
        border-width: 0.4vw !important;
        border-radius: 10vw !important;
        min-width: auto !important;
        /* Allow it to shrink */
        font-size: 2.5vw !important;
        /* Scales with width */
        gap: 1.5vw !important;
        height: auto !important;
        /* Ensure height fits content */
    }

    .lang-text {
        font-size: 2.5vw !important;
        /* Proportional text */
        letter-spacing: 0.5px !important;
    }

    body,
    html {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    /* Force Container Constraints - Main Invite Excluded */
    .container,
    .header,
    section,
    footer {
        max-width: 100vw !important;
        width: 100vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 2vw !important;
        padding-right: 2vw !important;
    }

    /* ------------------------------------------------------- */
    /* HERO & COUPLE NAMES                                     */
    /* ------------------------------------------------------- */

    /* Revert to Column Layout for Couple Names - Stacked "Up and Down" */
    .couple-names-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 2rem !important;
        /* Spacing between stack */
    }

    .groom-section,
    .bride-section {
        width: 100% !important;
        text-align: center !important;
    }

    /* Restored Readable Sizes for Mobile Stack */
    .couple-name {
        font-size: 9vw !important;
        /* Reduced from 11vw for better fit with honorifics */
        line-height: 1.1 !important;
        white-space: normal !important;
        margin: 0.5vw 0 !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .with {
        font-size: 6.5vw !important;
        /* Proportional reduction */
        margin: 1vw 0 0.5vw 0 !important;
        display: block !important;
        line-height: 1 !important;
    }

    .parents-info {
        font-size: 3.0vw !important;
        /* Optimized to stay on one line within borders */
        line-height: normal !important;
        white-space: nowrap !important;
        padding: 0 10px !important;
        margin-top: 0.8vw !important;
        /* Proportionally tightened gap */
        margin-bottom: 1vw !important;
        /* Gap to 'with' */
        width: 100% !important;
        overflow: visible !important;
        letter-spacing: -0.1px;
    }

    .info-block {
        margin-top: 3vw !important;
        /* "More up a little lot" - Reduced from 6vw */
    }

    /* Day 1 & Day 2 Section Headers - Proportional & Tighter */
    .day-section h3 {
        font-size: 4vw !important;
        padding: 1vw 3vw !important;
        margin-bottom: 2vw !important;
        line-height: 1.2 !important;
        display: inline-block !important;
    }

    .map-link-container {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 5vw !important;
        /* Pushed down further as requested */
    }

    .map-btn {
        font-size: 2.5vw !important;
        /* "Smaller" - Reduced from 3vw */
        padding: 1.5vw 4vw !important;
        /* Tighter pill */
        width: auto !important;
        display: inline-flex !important;
        line-height: normal !important;
        letter-spacing: 0.5px !important;
    }

    /* Hero Text Scaling - Cleaner & Smaller */
    .invocations p {
        font-size: 2.5vw !important;
        /* "Little smaller, little only" - Reduced to 2.5vw */
        white-space: nowrap !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 0.5vw !important;
        /* "Line more near" - significantly reduced gap to border */
        font-weight: 700 !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 0 1vw !important;
    }

    /* Target the border line specifically if it's on the container */
    .invocations {
        padding-bottom: 1vw !important;
        /* Bring line closer */
        margin-bottom: 1.5vw !important;
    }

    .main-symbols {
        gap: 2vw !important;
        margin-bottom: 2vw !important;
    }

    .invite-line {
        font-size: 2.2vw !important;
        margin: 2vw 0 !important;
        letter-spacing: 0.5px !important;
        line-height: normal !important;
    }

    /* Redundant hero-frame rule removed to prevent conflicts */

    .hero-inner-border {
        top: 2vw !important;
        left: 2vw !important;
        right: 2vw !important;
        bottom: 2vw !important;
        border-width: 1.5px !important;
    }

    /* Invocation Text - "Smaller little" again */
    /* Invocation Text - "Smaller little" again */
    /* Invocation Text - Targeted Fix */
    /* Invocation Text - Targeted Fix */
    .invocations {
        margin-bottom: 3vw !important;
        /* Outer spacing */
        line-height: normal !important;
        padding-bottom: 2px !important;
        /* Tight border spacing */
    }

    .invocations p {
        margin: 0 !important;
        /* Remove inner gap */
        padding: 0 !important;
        display: inline-block;
        /* Ensure it behaves */
    }

    /* Font Sizes for Mobile Invocation */
    .invocations,
    .invocations p {
        font-size: 2vw !important;
        /* English Default */
        letter-spacing: 1px !important;
    }

    /* Schedule Info Scaling - Proportional Reduction */
    .schedule-line {
        font-size: 6.3vw !important;
        margin: 0 0 2vw 0 !important;
        /* Clean bottom gap */
        font-weight: 700 !important;
    }

    .at {
        font-size: 5.5vw !important;
        /* Increased as requested */
        margin: 2vw 0 !important;
        /* Slightly tighter vertical gap */
    }

    .venue-name {
        font-size: 7vw !important;
        /* "Dwappara, make it bigger" - Increased from 4.5vw */
        margin-bottom: 1.5vw !important;
        /* Standardized gap */
        font-weight: 700 !important;
    }

    .venue-address {
        font-size: 3vw !important;
        /* "Little smaller" than 3.5vw */
        line-height: 1.4 !important;
        margin-bottom: 3vw !important;
        /* Push button down slightly */
    }

    .muhurtham-title {
        font-size: 2.8vw !important;
        /* Reduced from 3vw */
        margin-bottom: 1vw !important;
        color: #d4a017 !important;
        /* "Brighter" - Lighter Gold */
        text-shadow: 0 0 5px rgba(212, 160, 23, 0.3) !important;
        /* Subtle glow */
        letter-spacing: 0.5px !important;
    }

    .muhurtham-detail {
        font-size: 3.2vw !important;
        /* Reduced from 3.5vw */
    }

    /* ------------------------------------------------------- */
    /* HIGHLIGHT EVENTS (Udida / Phool)                        */
    /* ------------------------------------------------------- */

    /* Container Constrained to 94vw and Centered */
    .highlight-events {
        display: flex !important;
        flex-direction: column !important;
        /* Stacked to be more rectangular */
        gap: 2.5rem !important;
        /* Consistent Gap between boxes */
        width: 92vw !important;
        /* Matches Hero Frame */
        margin: 2.5rem auto !important;
        /* Equalized global gap */
        align-items: center !important;
    }

    .highlight-events .muhurtham-wrap,
    .reception-box-wrap {
        width: 100% !important;
        /* Full width for rectangular look */
        flex: unset !important;
        min-height: 140px !important;
        /* Slimmer height */
        padding: 4vw 2vw !important;
        margin: 0 !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .highlight-events .muhurtham-wrap:active,
    .reception-box-wrap:active {
        box-shadow: 0 15px 45px rgba(120, 7, 64, 0.8) !important;
        /* Maintains and enhances glow on click */
        transform: scale(1.01) !important;
        /* Subtle feedback */
        border-color: var(--accent-gold) !important;
        /* Prevents black outline/border */
        outline: none !important;
    }

    .highlight-title {
        font-size: 3vw !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .highlight-events .muhurtham-detail {
        font-size: 2.5vw !important;
    }

    /* ------------------------------------------------------- */
    /* ITINERARY TABLE                                         */
    /* ------------------------------------------------------- */

    .itinerary-table-wrap {
        width: 100% !important;
        /* Fit within parent container */
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border-radius: 10px;
        overflow-x: hidden !important;
    }

    .itinerary-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .itinerary-table th,
    .itinerary-table td {
        padding: 2.5vw 1vw !important;
        /* Minimized side padding */
        font-size: 2.8vw !important;
        /* Increased for readability while remaining proportional */
        line-height: 1.3 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: anywhere !important;
        vertical-align: middle !important;
    }

    /* Enforce fixed layout for strict column widths */
    .itinerary-table {
        table-layout: fixed !important;
        width: 100% !important;
    }

    .itinerary-table th {
        font-weight: 700 !important;
        /* Bold headers as requested */
        color: #5e0a3b !important;
        text-align: center !important;
        /* Ensure distinct color */
        border-bottom: 2px solid rgba(181, 125, 13, 0.3) !important;
    }

    .itinerary-table td {
        padding: 1.5vw 1vw !important;
        /* "Optimize" - Compact padding */
        font-size: 2.3vw !important;
        /* "Decrease size proportionally" - Reduced to 2.3vw */
        line-height: 1.35 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        border-bottom: 1px solid rgba(181, 125, 13, 0.15) !important;
        color: #5e0a3b !important;
        /* Default column color to purple */
    }

    /* Wedding Itinerary Header Override */
    /* Wedding Itinerary Header Override */
    .events-section-new h2 {
        font-size: 5vw !important;
        /* "More smaller" - Reduced to 5vw */
        line-height: 1.2 !important;
        margin-top: 5vw !important;
        /* "Push it little more down" */
    }

    /* Col 1: Time - Wider & Single Line */
    .itinerary-table th:nth-child(1),
    .itinerary-table td:nth-child(1) {
        width: 30% !important;
        white-space: nowrap !important;
        font-size: 2.3vw !important;
        /* Proportional descaling */
        text-align: center !important;
        padding-left: 0.5vw !important;
        font-weight: 700 !important;
        /* Bolded as requested */
    }

    /* Col 2: Ceremony - Slightly narrower but wraps ok */
    .itinerary-table th:nth-child(2),
    .itinerary-table td:nth-child(2) {
        width: 25% !important;
        text-align: center !important;
        vertical-align: middle !important;
        font-size: 2.4vw !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
    }

    .itinerary-table td:nth-child(2) {
        color: var(--accent-gold) !important;
        /* "Gold used in webpage" for column contents */
    }

    .itinerary-table th:nth-child(3) {
        text-align: center !important;
        /* Align middle of its column */
    }

    .itinerary-table th:nth-child(3),
    .itinerary-table td:nth-child(3) {
        width: 45% !important;
        font-weight: 700 !important;
        padding-left: 1vw !important;
        /* Tighter padding */
        padding-right: 1vw !important;
        /* Tighter padding */
        hyphens: none !important;
        font-size: 2.2vw !important;
        /* Slightly smaller to fit better */
        line-height: 1.2 !important;
        /* Compact line height */
        color: #5e0a3b !important;
        vertical-align: middle !important;
    }

    .itinerary-table td:nth-child(3) {
        text-align: left !important;
        /* Content changed to left align */
    }

    /* Kannada Mobile: Center the Description Heading & Adjust Size */
    .kannada-font .itinerary-table th:nth-child(3) {
        text-align: center !important;
    }

    .kannada-font .itinerary-table th {
        font-size: 3.5vw !important;
        /* "Little smaller" than English (4.5vw) */
    }

    .ceremony-name {
        font-size: 2.5vw !important;
    }

    /* Prevent Scrollbar on Tap (Mobile Hover Fix) */
    .itinerary-table tbody tr:hover {
        transform: none !important;
        box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2) !important;
        /* Subtle inset glow instead of expanding shadow */
        z-index: 1 !important;
    }

    .itinerary-table tbody tr:hover .ceremony-name {
        transform: none !important;
        /* Disable text scaling too */
    }

    /* ------------------------------------------------------- */
    /* RSVP & FOOTER                                           */
    /* ------------------------------------------------------- */

    /* ------------------------------------------------------- */
    /* RSVP & FOOTER                                           */
    /* ------------------------------------------------------- */

    .rsvp-card-wrap {
        width: 94vw !important;
        /* Constrain width */
        max-width: 94vw !important;
        margin: 3vw auto !important;
        /* Center it */
        padding: 4vw 3vw !important;
        /* "Little smaller" - Reduced padding */
        /* Consistent padding with Hero */
        border-width: 1vw !important;
    }

    .rsvp-section h2 {
        font-size: 4.5vw !important;
        /* Reduced from 5vw */
        margin-bottom: 1vw !important;
    }

    .rsvp-section p {
        font-size: 2.5vw !important;
        /* Reduced from 2.8vw */
        margin-bottom: 2vw !important;
    }

    .form-control {
        font-size: 3vw !important;
        padding: 2vw !important;
        /* Reduced from 2.5vw */
        height: auto !important;
    }

    .btn {
        font-size: 2.8vw !important;
        /* Reduced from 3vw */
        padding: 2.5vw 4vw !important;
        min-width: auto !important;
    }

    /* Footer */
    footer p {
        font-size: 2.5vw !important;
    }

    .hashtag {
        font-size: 4vw !important;
        /* Slightly larger */
        letter-spacing: 1.5vw !important;
        /* Adjusted for fit while remaining wide */
        display: block !important;
        margin-bottom: 3vw !important;
        white-space: nowrap !important;
        /* Force single line */
    }

    /* Hide Decorative Elements that take space */
    /* Flourishes enabled for mobile animation */
    .shehnai-icon {
        display: none !important;
    }

    /* Ganesha & Symbols sizing */
    .ganesha-img {
        height: 15vw !important;
        width: auto !important;
    }

    .main-symbols {
        gap: 2vw !important;
        margin-bottom: 1vw !important;
        /* Reduced spacing */
    }

    /* Footer - Full Width & Tight */
    footer {
        padding: 6vw 4vw !important;
        /* Increased padding for more presence */
        width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    /* Ensure Last Section touches Footer */
    .hero {
        margin-bottom: 0 !important;
        padding-bottom: 2vw !important;
        /* Minimal gap */
    }

    /* Wedding Countdown Mobile Fix */
    #countdown {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Force Single Line */
        gap: 0.8vw !important;
        /* Tighter gap */
        justify-content: center !important;
        width: 100% !important;
    }

    .time-unit {
        min-width: auto !important;
        padding: 0 0.5vw !important;
        flex: 1 1 0 !important;
        /* Equal width distribution */
    }

    .time-val {
        font-size: 4vw !important;
        /* "More smaller" - Reduced to 4vw */
        line-height: 1 !important;
    }

    .time-label {
        font-size: 1.8vw !important;
        /* Reduced */
        letter-spacing: 0 !important;
    }

    /* Countdown Title Override */
    .countdown-container h3 {
        font-size: 3.5vw !important;
        /* "Little smaller for mobile" */
        white-space: nowrap !important;
        margin-bottom: 2vw !important;
    }

    /* Verify Countdown Centering */
    .countdown-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 2vw 2vw 5vw 2vw !important;
        /* Reduced top padding */
    }

    #countdown {
        margin-top: 0.5rem !important;
        /* Push closer to divider */
    }

    /* Day Headers - Force Single Line */
    .day-section h3 {
        font-size: 3.2vw !important;
        /* Reduced to fit single line */
        padding: 1vw 3vw !important;
        /* Reduced padding */
        white-space: nowrap !important;
        /* Force single line */
        width: auto !important;
        max-width: 95% !important;
        color: #5e0a3b !important;
        border-color: #5e0a3b !important;
    }

    /* Fix overflow for flourishes */
    .hero-frame {
        overflow: visible !important;
        position: relative !important;
    }

    /* Mobile Flourishes - "Mirror on borders, small, near With" */
    /* Mobile Flourishes - "Mirror on borders, small, near With" */
    .decorative-flourish-left,
    .decorative-flourish-right {
        display: block !important;
        width: 15vw !important;
        /* "Smaller to fit" */
        top: 32% !important;
        /* "Aligned with 'with'" */
        margin-top: 0.7cm !important;
        /* Adjusted down by 0.2cm (0.5 -> 0.7) */
        z-index: 100 !important;
        /* "Force on top" */
        position: absolute !important;
        bottom: auto !important;
        opacity: 0;
        /* Starts hidden for venom-reveal */
        filter: invert(12%) sepia(95%) saturate(5000%) hue-rotate(335deg) brightness(65%) contrast(115%) blur(15px);
        will-change: transform, opacity, filter;
    }

    .decorative-flourish-left {
        left: -1vw !important;
        /* "On border" */
        right: auto !important;
        transform: translateY(-50%) !important;
        /* Center pivot */
    }

    .decorative-flourish-right {
        right: -1vw !important;
        /* "On border" */
        left: auto !important;
        transform: translateY(-50%) rotateY(180deg) !important;
        /* Center pivot + Mirror */
    }

    /* Thanks/Remembrance Box Flourishes - FORCE VISIBILITY */
    .thanks-wrap,
    .remembrance-wrap {
        overflow: visible !important;
        position: relative !important;
    }

    .thanks-flourish-left,
    .thanks-flourish-right {
        display: block !important;
        visibility: visible !important;
        opacity: 0.8 !important;
        width: 15vw !important;
        top: 65% !important;
        /* "More down" from 45/55 */
        z-index: 100 !important;
        position: absolute !important;
    }

    /* Optimization: Simplify Animations for Mobile to prevent Glitches */
    .decorative-flourish-left.venom-reveal,
    .decorative-flourish-right.venom-reveal,
    .thanks-flourish-left.venom-reveal,
    .thanks-flourish-right.venom-reveal {
        animation-duration: 5s;
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
        animation-fill-mode: forwards;
        opacity: 0.95 !important;
    }

    .decorative-flourish-left.venom-reveal {
        animation-name: venom-reveal;
    }

    .decorative-flourish-right.venom-reveal {
        animation-name: venom-reveal-right;
    }

    .thanks-flourish-left.venom-reveal,
    .thanks-flourish-right.venom-reveal {
        animation-duration: 3s !important;
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
        animation-fill-mode: forwards;
        opacity: 0.95 !important;
    }

    .thanks-flourish-left.venom-reveal {
        animation-name: venom-reveal-thanks !important;
    }

    .thanks-flourish-right.venom-reveal {
        animation-name: venom-reveal-thanks-right !important;
    }

    .decorative-flourish-left,
    .thanks-flourish-left {
        transform: translateY(-50%) !important;
    }

    .decorative-flourish-right,
    .thanks-flourish-right {
        transform: translateY(-50%) rotateY(180deg) !important;
    }
}

@keyframes simple-fade-in {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }

    to {
        opacity: 0.8;
        transform: translateY(-50%) scale(1);
    }
}

@-webkit-keyframes simple-fade-in {
    from {
        opacity: 0;
        -webkit-transform: translateY(-50%) scale(0.9);
        transform: translateY(-50%) scale(0.9);
    }

    to {
        opacity: 0.8;
        -webkit-transform: translateY(-50%) scale(1);
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 768px) {

    .tamil-font .invite-line {
        font-size: min(3.5vw, 0.8rem) !important;
        line-height: 1.4;
        padding: 0 5px;
        white-space: normal;
    }

    body.tamil-font h1.couple-name {
        font-size: min(8vw, 1.5rem) !important;
        white-space: nowrap !important;
        margin: 0.25rem 0;
        line-height: 1.2;
    }

    .tamil-font .parents-info {
        font-size: min(3.2vw, 0.7rem) !important;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .tamil-font .with {
        font-size: 0.8rem !important;
        margin: 0.25rem 0;
    }

    .tamil-font .schedule-line {
        font-size: min(4vw, 0.9rem) !important;
        white-space: nowrap;
        letter-spacing: -0.2px;
        width: 100%;
    }

    .tamil-font .venue-name {
        font-size: 1.4rem !important;
    }

    .tamil-font .venue-address {
        font-size: 0.75rem !important;
        padding: 0 1rem;
    }

    .tamil-font .muhurtham-title {
        font-size: 1.1rem !important;
    }

    .tamil-font .muhurtham-detail {
        font-size: 0.8rem !important;
    }

    .tamil-font p {
        font-size: 0.8rem !important;
    }

    .tamil-font .invocations {
        font-size: 0.7rem !important;
    }

    .tamil-font .couple-names-container {
        width: 100%;
        overflow-x: hidden;
        padding: 0 2px;
    }
}

/* Global Tamil Fixes (Spacious & Clean) */
body.tamil-font h1.couple-name {
    white-space: nowrap !important;
    font-size: min(2.8rem, 5vw) !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    /* Tight to parents */
    line-height: 1.4 !important;
}

body.tamil-font .parents-info {
    white-space: nowrap !important;
    font-size: min(0.9rem, 2.5vw) !important;
    margin-bottom: 3rem !important;
    /* Huge gap to next section */
}

body.tamil-font .with {
    font-size: min(1.2rem, 2.5vw) !important;
    margin: 1.5rem 0 !important;
    /* Breathing room */
    white-space: nowrap !important;
}

body.tamil-font .schedule-line {
    white-space: nowrap !important;
    font-size: min(1.3rem, 4vw) !important;
    /* Smaller to fit single line */
    margin-top: 2.5rem !important;
    /* Optimized gap */
    margin-bottom: 2rem !important;
    /* More breathing room below */
}

body.tamil-font .at {
    font-size: 1.1rem !important;
    /* "Place" - Slightly bigger for visibility */
    margin: 1rem 0 !important;
    white-space: nowrap !important;
    opacity: 0.9;
}

body.tamil-font .venue-name {
    white-space: nowrap !important;
    font-size: min(2rem, 5vw) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
}

/* ---------------------------------------------------------- */
/* TABLE ALIGNMENT FIX - Center Align Everything              */
/* ---------------------------------------------------------- */

/* Removed global centering of 3rd column to allow justified text */
.itinerary-table th:nth-child(3),
.itinerary-table td:nth-child(3) {
    vertical-align: middle !important;
    padding: 1vw !important;
}

/* Global vertical align for all cells */
.itinerary-table td,
.itinerary-table th {
    vertical-align: middle !important;
}

/* FINAL MOBILE FIXES (Compact & Single Line) */
@media screen and (max-width: 768px) {

    /* 1. Tamil Compact Main Invite */
    body.tamil-font .couple-name {
        font-size: 7.5vw !important;
        /* Shrink to ensure single line */
        margin-top: 1vw !important;
        /* Compact spacing */
        margin-bottom: 1vw !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        text-shadow: none !important;
        /* Remove dark shadow */
        text-shadow: none !important;
        /* Remove dark shadow */
    }

    body.tamil-font .invocations p {
        font-size: 2.1vw !important;
        /* Decreased to 2.1vw */
    }

    body.tamil-font .invite-line {
        font-size: 2.3vw !important;
        /* Decreased to 2.3vw */
        white-space: nowrap !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
        letter-spacing: -0.5px !important;
    }

    body.tamil-font .parents-info {
        font-size: 2.1vw !important;
        /* Aggressive shrink for long names */
        white-space: nowrap !important;
        margin-bottom: 0.5vw !important;
        /* Reduced to push date up */
        line-height: normal !important;
        width: 98% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        /* Center it explicitly */
        letter-spacing: -0.5px !important;
        /* Squeeze text slightly */
    }

    body.tamil-font .with {
        font-size: 3.5vw !important;
        margin: 2vw 0 !important;
    }

    /* Footer Header Size Fix */
    body.tamil-font .thanks-section h3,
    body.tamil-font .thanks-grid h3 {
        font-size: 2.5vw !important;
        /* Decreased to 2.5vw */
        /* Force smaller size */
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    body.tamil-font .schedule-line {
        margin-top: -1vw !important;
        /* Push up */
        margin-bottom: 1.5vw !important;
        /* Equalize */
    }

    body.tamil-font .at {
        margin: 3.5vw 0 !important;
        /* Push more below and equalize spacing */
    }

    body.tamil-font .venue-name {
        margin-bottom: 0.5vw !important;
        /* Reduced for address to be near */
    }

    body.tamil-font .venue-address {
        margin-top: -1vw !important;
        /* Push more near to venue name */
    }

    /* Vertically center Reception in Highlight Box & Widen it */
    .highlight-events .muhurtham-wrap {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 92vw !important;
        /* Matches other boxes */
        max-width: 92vw !important;
        flex: 0 0 92vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.tamil-font .muhurtham-title.highlight-title {
        margin-bottom: 0.1rem !important;
        /* Bring title closer to line */
    }

    .highlight-events .muhurtham-detail {
        white-space: nowrap !important;
        /* Force single line */
        font-size: min(1.2rem, 2.3vw) !important;
        /* Increased slightly to 2.3vw */
        width: 100% !important;
        text-align: center !important;
        letter-spacing: -0.3px !important;
        /* Less squeeze for better readability */
        word-spacing: 0.2rem !important;
        /* Space out words more evenly */
    }

    /* Bring Flourishes Closer in Mobile and Align with Line */
    .thanks-flourish-left {
        left: -10px !important;
        width: 80px !important;
        top: 72% !important;
        /* Aligned horizontally with the golden divider line */
        z-index: 5 !important;
    }

    .thanks-flourish-right {
        right: -10px !important;
        width: 80px !important;
        top: 72% !important;
        /* Aligned horizontally with the golden divider line */
        z-index: 5 !important;
    }

    .compliments-section-new {
        width: 92vw !important;
        /* Unified Breadth */
        margin: 1.5rem auto !important;
    }

    .thanks-wrap {
        padding: 1.5rem !important;
        /* Reverted border and bg changes as requested */
    }

    /* Proportional Scaling for Footer Names on Mobile */
    .thanks-content p,
    .remembrance-content p {
        font-size: 3.5vw !important;
        /* Scaled down to prevent "too big" on mobile */
        line-height: normal !important;
        margin-bottom: 0.3rem !important;
    }

    /* Tighten Countdown Timer Spacing */
    .countdown-container {
        padding: 1vw 2vw 4vw 2vw !important;
        /* Further reduced top padding */
    }

    #countdown {
        margin-top: 0 !important;
        /* Push right up to line */
    }
}