:root {

    /* =========================================================
       JAGADGURU RAMBHADRACHARYA KATHA
       Deep Maroon + Gold + Cream
       ========================================================= */

    /* New Base Palette */
    --text: #3e0211;
    --background: #fffaf5;
    --primary: #f20626;
    /* --secondary: #dc661d; */
    --secondary: #F4B6A6;
    --accent: #ffb700;

    /* Existing Project Variables */
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --accent-color: var(--accent);

    --header: var(--text);
    --heading-color: var(--text);
    --text-color: var(--text);

    --light-bg: var(--background);
    --white: var(--background);

    --button-color: var(--primary);

    --button-hover:
        linear-gradient(50deg,
            var(--primary) 0%,
            var(--accent) 50%,
            var(--primary) 100%);

    --border-color: var(--accent);

    --gradient:
        radial-gradient(circle at 12% 20%,
            color-mix(in srgb,
                var(--accent) 20%,
                transparent),
            transparent 28%),
        radial-gradient(circle at 88% 80%,
            color-mix(in srgb,
                var(--secondary) 22%,
                transparent),
            transparent 32%),
        linear-gradient(120deg,
            var(--text) 0%,
            var(--primary) 100%);

    --shadow-sm:
        0 2px 10px color-mix(in srgb,
            var(--text) 10%,
            transparent);

    --shadow-md:
        0 10px 30px color-mix(in srgb,
            var(--text) 15%,
            transparent);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}


html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    overflow-x: clip;
    max-width: 100%;
}

main {
    overflow-x: clip;
}

/* =========================================================
   ACTIVE NAV LINK — HOVER OVERRIDE (desktop header only)
========================================================= */

#siteHeader .nav-link.active:hover span:not(.nav-badge):not(.nav-active-line) {
    color: var(--white) !important;
}

#siteHeader .nav-link.active:hover .nav-active-line {
    background-color: var(--white) !important;
}

#siteHeader .nav-link:hover .nav-badge {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* =========================================================
   MOBILE PANEL (white background, no accent colour)
========================================================= */

/* same side padding on every item, so the active state does not shift the text */
#mobileMenuPanel .nav-link,
#mobileMenuPanel [data-nav-toggle] {
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* ACTIVE page (and About when a child page is open) */
#mobileMenuPanel .nav-link.active,
#mobileMenuPanel .nav-group.has-active>[data-nav-toggle] {
    background-color: color-mix(in srgb, var(--primary-color) 8%, transparent);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

#mobileMenuPanel .nav-link.active span.font-serif,
#mobileMenuPanel .nav-group.has-active .nav-parent-text {
    color: var(--primary-color);
    font-weight: 700;
}

#mobileMenuPanel .nav-link.active>i,
#mobileMenuPanel .nav-group.has-active .nav-chevron {
    color: var(--primary-color);
}

/* ABOUT SUB-MENU */
#mobileMenuPanel .nav-dropdown-link {
    display: block;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--heading-color);
    background: transparent;
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#mobileMenuPanel .nav-dropdown-link:hover {
    background: color-mix(in srgb, var(--heading-color) 8%, transparent);
    color: var(--heading-color);
}

#mobileMenuPanel .nav-dropdown-link.is-active {

    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    font-weight: 700;
}

#mobileMenuPanel [data-nav-panel] .space-y-1 {
    padding-bottom: 12px;
}

/* MOBILE MENU SCROLL */
#mobileMenuPanel nav {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* language buttons */
#mobileMenuPanel .lang-option:hover {
    background: color-mix(in srgb, var(--heading-color) 8%, transparent);
}

#mobileMenuPanel .lang-option.is-active,
#mobileMenuPanel .lang-option.is-active:hover {
    background: var(--heading-color);
    color: var(--white);
}

/* SMALL MOBILE SCREEN */
@media (max-width: 380px) {
    #mobileMenuPanel nav {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #mobileMenuPanel .nav-dropdown-link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* language buttons */
#mobileMenuPanel .lang-option:hover {
    background: color-mix(in srgb, var(--accent-color) 25%, transparent);
}

#mobileMenuPanel .lang-option.is-active {
    background: var(--accent-color);
    color: var(--heading-color);
    border-color: var(--accent-color);
}

/* text turns white on hover (desktop header only) */
#siteHeader .nav-link.active:hover span:not(.nav-badge):not(.nav-active-line):not(.mobile-active-line) {
    color: var(--white) !important;
}

#siteHeader .nav-link.active:hover .nav-active-line,
#siteHeader .nav-link.active:hover .mobile-active-line {
    background-color: var(--white) !important;
}

/* =========================================================
   GLOBAL BORDER COLOR
========================================================= */

*,
*::before,
*::after {
    border-color: var(--border-color);
}


/* =========================================================
   PREMIUM BUTTON ANIMATION
   Fill expands from the exact point where the mouse enters
========================================================= */

.animated-button {
    --x: 50%;
    --y: 50%;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: var(--accent-color) !important;
    color: var(--text) !important;

    border: 2px solid var(--accent-color) !important;

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


/* Circle fill, starts at mouse position (--x, --y) */

.animated-button::before {
    content: "";
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: -1;

    width: 300%;
    aspect-ratio: 1;

    background: var(--primary-color);
    border-radius: 50%;

    transform: translate(-50%, -50%) scale(0);

    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.animated-button::after {
    content: none;
}

.animated-button.is-hover::before {
    transform: translate(-50%, -50%) scale(1);
}


/* Button content */

.animated-button>* {
    position: relative;
    z-index: 2;
}


/* =========================================================
   HOVER
========================================================= */

.animated-button.is-hover {
    transform: translateY(-3px);

    color: var(--background) !important;
    border-color: var(--primary-color) !important;

    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 40%, transparent);
}


/* =========================================================
   BUTTON ICON
========================================================= */

.animated-button i {
    color: var(--text) !important;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.animated-button.is-hover i {
    color: var(--background) !important;
}


/* =========================================================
   BUTTON ARROW (slides right on hover)
========================================================= */

.animated-button .button-arrow {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: inline-flex;
}

.animated-button.is-hover .button-arrow i {
    transform: translateX(4px);
}


/* =========================================================
   ACTIVE / CLICK
========================================================= */

.animated-button:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: var(--shadow-sm);
}


/* =========================================================
   KEYBOARD FOCUS
========================================================= */

.animated-button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}


/* =========================================================
   MOBILE MENU BUTTON
   Mobile / Tablet = visible
   Desktop 1024px+ = hidden
========================================================= */

#mobileMenuBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media (min-width: 1024px) {

    #mobileMenuBtn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


/* =========================================================
   SCROLL / MOTION SUPPORT
========================================================= */

body {
    overflow-x: clip;
}


/* Element held invisible until scroll animation starts */

.sa-hidden {
    opacity: 0;
    visibility: hidden;
}


/* =========================================================
   LENIS
========================================================= */

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}


/* =========================================================
   SCROLL PROGRESS
========================================================= */

#scrollProgress {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 60;

    width: 100%;
    height: 3px;

    background: var(--accent-color);

    transform: scaleX(0);
    transform-origin: left;

    pointer-events: none;
}


/* =========================================================
   GALLERY CARD ANIMATION
========================================================= */

@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(26px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gallery-card-in,
.hg-card {
    animation:
        cardIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hg-card:nth-child(2) {
    animation-delay: 0.08s;
}

.hg-card:nth-child(3) {
    animation-delay: 0.16s;
}

.hg-card:nth-child(4) {
    animation-delay: 0.24s;
}


/* =========================================================
   TILT CARDS
========================================================= */

.tilt-card {
    will-change: transform;

    transition:
        transform 0.25s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sa-hidden {
        opacity: 1;
        visibility: visible;
    }

    .gallery-card-in,
    .hg-card {
        animation: none;
    }

    .animated-button,
    .animated-button::before,
    .animated-button i {
        transition: none !important;
    }

    .animated-button.is-hover {
        transform: none;
    }

    .animated-button:hover {
        transform: none;
    }

    .animated-button:hover::before {
        transform: translateX(0) skewX(-18deg);
    }

    .animated-button:hover::after {
        left: -70%;
    }
}


/* =========================================================
   GOOGLE TRANSLATE (hide default widget, banner and tooltip)
========================================================= */

#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
#goog-gt-tt,
.goog-tooltip,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* Active language */
.lang-option.is-active {
    background: var(--heading-color);
    color: var(--white);
    border-color: var(--primary-color);
}


/* =========================================================
   HINDI / BENGALI: LINE HEIGHT + LETTER SPACING
========================================================= */

:is(html[data-lang="hi"], html[data-lang="bn"]) body {
    line-height: 1.2;
}

/* headings */
:is(html[data-lang="hi"], html[data-lang="bn"]) :is(h1, h2, h3, h4, h5, h6) {
    line-height: 1.3;
}

/* body text */
:is(html[data-lang="hi"], html[data-lang="bn"]) :is(p, li, dt, dd, small, blockquote, figcaption, label) {
    line-height: 1.2;
}

/* Tailwind tight classes (leading-none / tight / snug / leading-[1.12] ...) */
:is(html[data-lang="hi"], html[data-lang="bn"]) .leading-none,
:is(html[data-lang="hi"], html[data-lang="bn"]) .leading-tight,
:is(html[data-lang="hi"], html[data-lang="bn"]) .leading-snug,
:is(html[data-lang="hi"], html[data-lang="bn"]) [class*="leading-["] {
    line-height: 1.3;
}

/* wide letter-spacing breaks matras and conjuncts */
:is(html[data-lang="hi"], html[data-lang="bn"]) * {
    letter-spacing: normal;
}

/* text that is already written in Hindi inside the English page (marquee, mottos) */
:lang(hi) {
    line-height: 1.3;
    letter-spacing: normal;
}


/* =========================================================
   NAV DROPDOWN (About)
========================================================= */

.nav-dropdown {
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 60;
    min-width: 230px;
    padding-top: 14px;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-chevron {
    transition: transform 0.3s ease;
}

.nav-group:hover .nav-chevron,
.nav-group:focus-within .nav-chevron {
    transform: rotate(180deg);
}

/* dropdown links */
.nav-dropdown-link {
    display: block;
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text);
    transition: background 0.2s ease, color 0.2s ease;
}

/* Small description text */
.nav-dropdown-link small {
    display: block;
    margin-top: 4px;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 400;
}

/* Hover and active links */
.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
    background: var(--heading-color);
    color: var(--white);
}

/* Small text on hover */
.nav-dropdown-link:hover small,
.nav-dropdown-link.is-active small {
    color: var(--background);
    opacity: 1;
}

.nav-dropdown-link:hover small,
.nav-dropdown-link.is-active small {
    color: color-mix(in srgb, var(--white) 80%, transparent);
}

/* parent "About" highlighted when a child page is open */
.nav-group.has-active .nav-parent-text {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-group.has-active .nav-active-line {
    width: 2rem;
    height: 3px;
}

/* mobile accordion arrow */
[data-nav-toggle] .nav-chevron {
    transition: transform 0.3s ease;
}

[data-nav-toggle][aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

/* =========================================================
   SECTION ART 
========================================================= */

.section-art {
    position: relative;
    isolation: isolate;
}

.section-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--art, none) center / cover no-repeat;
    opacity: 0.55;
}


/* =========================================================
   MARQUEE
========================================================= */

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@property --registration-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.registration-border-animated {
    position: relative;
    isolation: isolate;
}

.registration-border-animated::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(
        from var(--registration-border-angle),
        transparent 0deg 337deg,
        var(--accent-color) 345deg,
        var(--white) 352deg,
        var(--primary-color) 357deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    filter: drop-shadow(0 0 3px var(--accent-color));
    animation: registration-border-travel 2.5s linear infinite;
}

@keyframes registration-border-travel {
    to {
        --registration-border-angle: 1turn;
    }
}

#homeHero [data-hero-slide][aria-hidden="true"] {
    position: absolute;
    inset-inline: 0;
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    .registration-border-animated::before {
        animation: none;
    }
}