/* =========================================================
   SHRI MAA BAGLAMUKHI MANDIR, RANCHI
   PREMIUM LIGHT + DARK TEMPLE THEME
========================================================= */

/* =========================================================
   GOOGLE FONTS
   Add these links in your HTML <head>:
   
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=Noto+Serif+Devanagari:wght@400;500;600;700&display=swap" rel="stylesheet">
========================================================= */

:root {
    /* Brand colors */
    --maroon-950: #210505;
    --maroon-900: #320808;
    --maroon-800: #4b0d0d;
    --maroon-700: #681414;
    --maroon-600: #831f1f;
    --maroon-500: #9f3030;

    --gold-950: #725509;
    --gold-900: #92700e;
    --gold-800: #b28a18;
    --gold-700: #d4af37;
    --gold-600: #e5c65c;
    --gold-500: #f2d889;
    --gold-300: #faedbf;

    /* Light theme */
    --page-bg: #fffaf0;
    --page-bg-alt: #f8efe0;
    --surface: #ffffff;
    --surface-soft: #fffdf7;
    --surface-muted: #f4e8d8;

    --text-main: #321c18;
    --text-soft: #674f49;
    --text-muted: #927b72;
    --heading-color: var(--maroon-700);

    --border-color: rgba(104, 20, 20, 0.14);
    --border-gold: rgba(212, 175, 55, 0.42);

    --success: #20874d;
    --warning: #bf7614;
    --danger: #b52c2c;
    --info: #2674a9;

    /* Typography */
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-hindi: "Noto Serif Devanagari", "Mangal", serif;

    /* Layout */
    --container-width: 1200px;
    --navbar-height: 76px;

    /* Radius */
    --radius-xs: 5px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-round: 999px;

    /* Shadows */
    --shadow-xs: 0 2px 8px rgba(65, 19, 12, 0.06);
    --shadow-sm: 0 5px 16px rgba(65, 19, 12, 0.09);
    --shadow-md: 0 12px 30px rgba(65, 19, 12, 0.13);
    --shadow-lg: 0 20px 55px rgba(65, 19, 12, 0.18);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.26);

    /* Effects */
    --transition-fast: 160ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 600ms ease;

    --gold-gradient: linear-gradient(
        135deg,
        var(--gold-500),
        var(--gold-700),
        var(--gold-800)
    );

    --maroon-gradient: linear-gradient(
        135deg,
        var(--maroon-600),
        var(--maroon-800),
        var(--maroon-950)
    );

    --cream-gradient: linear-gradient(
        135deg,
        #fffdf8,
        #f8ecdb
    );
}

/* =========================================================
   DARK THEME
   Activate using:
   <html data-theme="dark">
========================================================= */

[data-theme="dark"] {
    --page-bg: #130707;
    --page-bg-alt: #1c0b0b;
    --surface: #241010;
    --surface-soft: #2c1414;
    --surface-muted: #371919;

    --text-main: #f9ead2;
    --text-soft: #d2bba8;
    --text-muted: #ad9182;
    --heading-color: var(--gold-500);

    --border-color: rgba(242, 216, 137, 0.16);
    --border-gold: rgba(242, 216, 137, 0.36);

    --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.24);
    --shadow-sm: 0 5px 16px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.48);
}

/* Optional automatic dark mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --page-bg: #130707;
        --page-bg-alt: #1c0b0b;
        --surface: #241010;
        --surface-soft: #2c1414;
        --surface-muted: #371919;

        --text-main: #f9ead2;
        --text-soft: #d2bba8;
        --text-muted: #ad9182;
        --heading-color: var(--gold-500);

        --border-color: rgba(242, 216, 137, 0.16);
        --border-gold: rgba(242, 216, 137, 0.36);
    }
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 20px);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text-main);
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(212, 175, 55, 0.1),
            transparent 24rem
        ),
        var(--page-bg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition:
        background-color var(--transition-normal),
        color var(--transition-normal);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--maroon-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-800);
}

::selection {
    color: #fff;
    background: var(--maroon-700);
}

:focus-visible {
    outline: 3px solid var(--gold-600);
    outline-offset: 3px;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 16px;
    color: var(--heading-color);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.3px;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
}

h2 {
    font-size: clamp(2.25rem, 4.8vw, 4rem);
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}

h4 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

p {
    margin: 0 0 16px;
    color: var(--text-soft);
}

.text-hindi,
[lang="hi"] {
    font-family: var(--font-hindi);
}

.text-gold {
    color: var(--gold-700) !important;
}

.text-maroon {
    color: var(--heading-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin-inline: auto;
}

section {
    position: relative;
    padding: 105px 0;
    overflow: hidden;
}

.section-light {
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(212, 175, 55, 0.13),
            transparent 20rem
        ),
        var(--page-bg-alt);
}

.section-dark {
    color: #fff;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.2),
            transparent 28rem
        ),
        var(--maroon-gradient);
}

.section-dark p {
    color: rgba(255, 244, 226, 0.75);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--gold-500);
}

.section-pattern::before {
    content: "ॐ";
    position: absolute;
    top: 35px;
    right: 7%;
    color: rgba(212, 175, 55, 0.09);
    font-family: var(--font-hindi);
    font-size: 10rem;
    line-height: 1;
    pointer-events: none;
}

.section-header {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--gold-800);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-label::before,
.section-label::after {
    content: "✦";
    color: var(--gold-700);
    font-size: 0.9rem;
}

.section-dark .section-label {
    color: var(--gold-500);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 22px;
}

.section-title::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 120px;
    height: 4px;
    border-radius: var(--radius-round);
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-700),
        var(--maroon-600),
        var(--gold-700),
        transparent
    );
    transform: translateX(50%);
}

.section-subtitle {
    max-width: 650px;
    margin: 20px auto 0;
    color: var(--text-soft);
}

/* =========================================================
   NAVBAR
========================================================= */

.glass-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1050;
    min-height: var(--navbar-height);
    padding: 12px 0;
    background: rgba(50, 8, 8, 0.93);
    border-bottom: 1px solid rgba(242, 216, 137, 0.35);
    box-shadow: 0 10px 35px rgba(25, 3, 3, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-nav::after {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-700),
        var(--gold-300),
        var(--gold-700),
        transparent
    );
    content: "";
}

.glass-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.temple-brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
}

.temple-brand::before {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--maroon-800);
    background: var(--gold-gradient);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.42);
    content: "ॐ";
    font-family: var(--font-hindi);
    font-size: 1.3rem;
}

.glass-nav .navbar-nav {
    align-items: center;
    gap: 4px;
}

.glass-nav .nav-link {
    position: relative;
    padding: 10px 14px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.glass-nav .nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    border-radius: var(--radius-round);
    background: var(--gold-500);
    content: "";
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
    color: var(--gold-300) !important;
    background: rgba(255, 255, 255, 0.08);
}

.glass-nav .nav-link:hover::after,
.glass-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    padding: 7px 10px;
    color: #fff;
    border: 1px solid rgba(242, 216, 137, 0.7);
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-action-btn {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    color: var(--gold-300);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(242, 216, 137, 0.42);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-action-btn:hover {
    color: var(--maroon-900);
    background: var(--gold-500);
    border-color: var(--gold-500);
    transform: translateY(-2px);
}

.admin-btn {
    color: #fff;
    background: var(--maroon-600);
    border-color: var(--maroon-500);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    place-items: center;
    color: #fff;
    background: #d52e35;
    border: 2px solid var(--maroon-900);
    border-radius: var(--radius-round);
    font-size: 0.68rem;
    font-weight: 800;
}

/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--gold-300);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(242, 216, 137, 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    color: var(--maroon-900);
    background: var(--gold-500);
    transform: rotate(15deg);
}

/* =========================================================
   HERO CAROUSEL
========================================================= */

.hero-section {
    position: relative;
    min-height: 760px;
    padding: 0;
    isolation: isolate;
    background: var(--maroon-950);
}

#heroSlider,
#heroSlider .carousel-item,
.hero-image {
    width: 100%;
    height: min(900px, 100vh);
    min-height: 680px;
}

.hero-image {
    object-fit: cover;
    object-position: center;
    filter: saturate(1.1) contrast(1.08);
    transform: scale(1);
    transition: transform 8s ease;
}

.carousel-item.active .hero-image {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(212, 175, 55, 0.2),
            transparent 25%
        ),
        linear-gradient(
            90deg,
            rgba(25, 2, 2, 0.96) 0%,
            rgba(58, 7, 7, 0.82) 35%,
            rgba(58, 7, 7, 0.42) 67%,
            rgba(25, 2, 2, 0.18) 100%
        );
}

.hero-overlay::after {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            45deg,
            rgba(212, 175, 55, 0.1) 1px,
            transparent 1px
        );
    background-size: 56px 56px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(6%, calc((100% - var(--container-width)) / 2));
    z-index: 5;
    width: min(650px, 48%);
    transform: translateY(-50%);
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 9px 18px;
    color: var(--maroon-900);
    background: var(--gold-gradient);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-round);
    box-shadow: var(--shadow-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle::before {
    content: "✦";
}

.hero-content h1 {
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(3.2rem, 6vw, 6rem);
    text-shadow:
        0 5px 20px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(212, 175, 55, 0.18);
}

.hero-content h1 span {
    display: block;
    color: var(--gold-500);
}

.hero-content p {
    max-width: 580px;
    margin-bottom: 34px;
    color: rgba(255, 248, 237, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 8;
    width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.13);
    background-size: 45%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--gold-700);
    transform: scale(1.08);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 21px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    color: #fff;
    background: var(--maroon-gradient);
    box-shadow: 0 8px 20px rgba(104, 20, 20, 0.24);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 13px 30px rgba(104, 20, 20, 0.34);
    transform: translateY(-3px);
}

.btn-gold,
.btn-secondary {
    color: var(--maroon-900);
    background: var(--gold-gradient);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover,
.btn-secondary:hover {
    color: #fff;
    background: var(--maroon-gradient);
    transform: translateY(-3px);
}

.btn-outline,
.btn-outline-light {
    color: var(--heading-color);
    background: transparent;
    border-color: var(--gold-700);
}

.btn-outline:hover {
    color: #fff;
    background: var(--maroon-700);
    border-color: var(--maroon-700);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline-light:hover {
    color: var(--maroon-900);
    background: #fff;
    border-color: #fff;
}

.btn-lg {
    min-height: 54px;
    padding: 15px 30px;
    border-radius: var(--radius-round);
    font-size: 1rem;
}

.btn-sm {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.78rem;
}

.btn-block {
    width: 100%;
}

/* =========================================================
   GRID
========================================================= */

.grid {
    display: grid;
    gap: 28px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--gold-700);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

.card::before {
    position: absolute;
    top: -80px;
    right: -70px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 50%;
    content: "";
}

.card::after {
    position: absolute;
    right: 22px;
    bottom: 12px;
    color: rgba(212, 175, 55, 0.11);
    content: "✦";
    font-size: 4rem;
}

.card:hover {
    border-top-color: var(--maroon-600);
    box-shadow: var(--shadow-lg);
    transform: translateY(-9px);
}

.card-header,
.card-body,
.card-footer {
    position: relative;
    z-index: 1;
}

.card-header {
    margin-bottom: 18px;
}

.card-title {
    margin-bottom: 8px;
    color: var(--heading-color);
    font-size: 1.7rem;
}

.card-image {
    position: relative;
    height: 230px;
    margin: -30px -30px 24px;
    overflow: hidden;
    border-bottom: 3px solid var(--gold-700);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* =========================================================
   TEMPLE FEATURES
========================================================= */

.feature-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--maroon-800);
    background: var(--gold-gradient);
    border-radius: 50%;
    box-shadow: var(--shadow-gold);
    font-size: 1.6rem;
}

.feature-card {
    text-align: center;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-icon {
    transition: transform var(--transition-slow);
}

/* =========================================================
   DONATION / PUJA CARDS
========================================================= */

.donation-card,
.puja-card {
    text-align: center;
}

.price {
    margin: 12px 0 20px;
    color: var(--heading-color);
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
}

.price small {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
}

.card-feature-list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.card-feature-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
    color: var(--text-soft);
}

.card-feature-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--gold-800);
    content: "✓";
    font-weight: 800;
}

/* =========================================================
   BADGES
========================================================= */

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-round);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.badge-gold {
    color: var(--maroon-900);
    background: var(--gold-300);
}

.badge-maroon {
    color: #fff;
    background: var(--maroon-700);
}

.badge-success {
    color: var(--success);
    background: rgba(32, 135, 77, 0.13);
}

.badge-warning {
    color: var(--warning);
    background: rgba(191, 118, 20, 0.14);
}

.badge-danger {
    color: var(--danger);
    background: rgba(181, 44, 44, 0.13);
}

/* =========================================================
   FORMS
========================================================= */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 15px;
    color: var(--text-main);
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition-normal);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
    background: var(--surface);
    border-color: var(--gold-700);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: var(--maroon-600);
}

/* =========================================================
   ALERTS
========================================================= */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border-left: 4px solid;
    border-radius: var(--radius-sm);
}

.alert-success {
    color: var(--success);
    background: rgba(32, 135, 77, 0.11);
    border-color: var(--success);
}

.alert-warning {
    color: var(--warning);
    background: rgba(191, 118, 20, 0.11);
    border-color: var(--warning);
}

.alert-danger {
    color: var(--danger);
    background: rgba(181, 44, 44, 0.11);
    border-color: var(--danger);
}

.alert-info {
    color: var(--info);
    background: rgba(38, 116, 169, 0.11);
    border-color: var(--info);
}

/* =========================================================
   DIVINE DIVIDER
========================================================= */

.temple-divider {
    display: flex;
    width: min(520px, 90%);
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 26px auto;
    color: var(--gold-700);
}

.temple-divider::before,
.temple-divider::after {
    height: 1px;
    flex: 1;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-700)
    );
    content: "";
}

.temple-divider::after {
    background: linear-gradient(
        90deg,
        var(--gold-700),
        transparent
    );
}

.temple-divider span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--gold-700);
    border-radius: 50%;
    box-shadow: var(--shadow-gold);
    font-family: var(--font-hindi);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    position: relative;
    padding: 70px 0 25px;
    color: rgba(255, 245, 226, 0.75);
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(212, 175, 55, 0.15),
            transparent 25rem
        ),
        var(--maroon-950);
}

.site-footer h3,
.site-footer h4 {
    color: var(--gold-500);
}

.site-footer p {
    color: rgba(255, 245, 226, 0.68);
}

.site-footer a {
    color: rgba(255, 245, 226, 0.72);
}

.site-footer a:hover {
    color: var(--gold-500);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(242, 216, 137, 0.2);
    color: rgba(255, 245, 226, 0.56);
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================================
   FLOATING ACTION BUTTONS
========================================================= */

.back-to-top,
.scroll-top {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--maroon-900);
    background: var(--gold-gradient);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.back-to-top:hover,
.scroll-top:hover {
    color: #fff;
    background: var(--maroon-700);
    transform: translateY(-5px) rotate(8deg);
}

/* =========================================================
   UTILITY CLASSES
========================================================= */

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: 10px;
}

.gap-md {
    gap: 20px;
}

.gap-lg {
    gap: 32px;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-round);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.mx-auto {
    margin-right: auto;
    margin-left: auto;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softGlow {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.55);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-fade-up {
    animation: fadeUp 700ms ease both;
}

.animate-glow {
    animation: softGlow 2.5s ease-in-out infinite;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1100px) {
    .glass-nav .navbar-nav {
        gap: 0;
    }

    .glass-nav .nav-link {
        padding-inline: 9px !important;
        font-size: 0.82rem;
    }

    .hero-content {
        left: 7%;
        width: 53%;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    :root {
        --navbar-height: 68px;
    }

    .glass-nav .navbar-collapse {
        max-height: calc(100vh - 85px);
        margin-top: 14px;
        padding: 13px;
        overflow-y: auto;
        background: rgba(50, 8, 8, 0.98);
        border: 1px solid rgba(242, 216, 137, 0.25);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }

    .glass-nav .navbar-nav {
        align-items: stretch;
    }

    .glass-nav .nav-item,
    .glass-nav .nav-link {
        width: 100%;
    }

    .glass-nav .nav-link {
        padding: 12px 14px !important;
    }

    .glass-nav .nav-link::after {
        right: 14px;
        left: 14px;
    }

    .navbar-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 12px;
        padding-top: 14px;
        border-top: 1px solid rgba(242, 216, 137, 0.18);
    }

    .nav-action-btn {
        justify-content: flex-start;
        width: 100%;
    }

    .hero-content {
        left: 8%;
        width: 80%;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 30px, 680px);
    }

    section {
        padding: 78px 0;
    }

    .section-header {
        margin-bottom: 38px;
    }

    .section-pattern::before {
        top: 20px;
        right: 2%;
        font-size: 6rem;
    }

    #heroSlider,
    #heroSlider .carousel-item,
    .hero-image {
        height: 82vh;
        min-height: 620px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(25, 2, 2, 0.42),
                rgba(25, 2, 2, 0.92)
            );
    }

    .hero-content {
        top: 57%;
        left: 6%;
        width: 88%;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 12vw, 4.4rem);
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: min(100%, 290px);
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }

    .card-image {
        margin: -24px -24px 22px;
    }

    .card-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, 440px);
    }

    .temple-brand {
        max-width: calc(100% - 55px);
        overflow: hidden;
        font-size: 1rem;
        text-overflow: ellipsis;
    }

    .temple-brand::before {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    #heroSlider,
    #heroSlider .carousel-item,
    .hero-image {
        height: 78vh;
        min-height: 570px;
    }

    .hero-content {
        top: 59%;
    }

    .hero-subtitle {
        padding: 8px 13px;
        font-size: 0.65rem;
        letter-spacing: 1.2px;
    }

    .hero-content h1 {
        font-size: 2.7rem;
    }

    .hero-content p {
        font-size: 0.92rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.35rem;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .carousel-item.active .hero-image,
    .card:hover {
        transform: none;
    }
}

/* =========================================================
   PRINT
========================================================= */

@media print {
    .glass-nav,
    .hero-buttons,
    .back-to-top,
    .scroll-top,
    .no-print {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        padding: 30px 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* =========================================================
   TEXT CUTTING / HERO OVERFLOW FIX
========================================================= */

/* Fixed navbar के नीचे content छिपे नहीं */
body {
    padding-top: var(--navbar-height);
}

/* Hero को navbar के नीचे सही जगह से शुरू करें */
.hero-section {
    min-height: calc(100vh - var(--navbar-height));
    overflow: visible;
}

/* Carousel की height navbar को ध्यान में रखकर */
#heroSlider,
#heroSlider .carousel-item,
.hero-image {
    height: calc(100vh - var(--navbar-height));
    min-height: 680px;
}

/* Hero content को safe area में रखें */
.hero-content {
    top: 50%;
    max-height: calc(100vh - var(--navbar-height) - 80px);
    overflow: visible;
}

/* Heading crop न हो */
.hero-content h1 {
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.12;
    overflow: visible;
}

/* Paragraph भी crop न हो */
.hero-content p {
    max-width: 600px;
    overflow: visible;
}

/* Section के decorative elements text को hide न करें */
section {
    overflow: visible;
}

/* Background decoration को अलग से control करें */
.section-pattern {
    isolation: isolate;
}

.section-pattern::before {
    z-index: -1;
}

/* Navbar हमेशा ऊपर दिखाई दे */
.glass-nav {
    z-index: 9999;
}

/* =========================================================
   DESKTOP HERO FIX
========================================================= */

@media (min-width: 992px) {
    .hero-content {
        top: calc(50% + 20px);
        width: min(650px, 50%);
    }

    .hero-content h1 {
        font-size: clamp(3rem, 5.5vw, 5.8rem);
        line-height: 1.12;
    }
}

/* =========================================================
   TABLET FIX
========================================================= */

@media (max-width: 991px) {
    body {
        padding-top: var(--navbar-height);
    }

    .hero-section {
        min-height: 720px;
    }

    #heroSlider,
    #heroSlider .carousel-item,
    .hero-image {
        height: 720px;
        min-height: 720px;
    }

    .hero-content {
        top: 52%;
        left: 7%;
        width: 84%;
        max-height: none;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 8vw, 4.8rem);
        line-height: 1.13;
    }
}

/* =========================================================
   MOBILE FIX
========================================================= */

@media (max-width: 768px) {
    body {
        padding-top: var(--navbar-height);
    }

    .hero-section {
        min-height: 700px;
        overflow: visible;
    }

    #heroSlider,
    #heroSlider .carousel-item,
    .hero-image {
        height: 700px;
        min-height: 700px;
    }

    .hero-content {
        top: 53%;
        left: 6%;
        width: 88%;
        transform: translateY(-50%);
    }

    .hero-content h1 {
        margin-bottom: 18px;
        padding: 4px 0 8px;
        font-size: clamp(2.6rem, 12vw, 4.2rem);
        line-height: 1.15;
        letter-spacing: -0.4px;
    }

    .hero-content h1 span {
        line-height: 1.15;
    }

    .hero-content p {
        margin-bottom: 24px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        min-height: 48px;
    }
}

/* =========================================================
   SMALL MOBILE FIX
========================================================= */

@media (max-width: 480px) {
    :root {
        --navbar-height: 64px;
    }

    .glass-nav {
        min-height: var(--navbar-height);
        padding: 8px 0;
    }

    .hero-section {
        min-height: 680px;
    }

    #heroSlider,
    #heroSlider .carousel-item,
    .hero-image {
        height: 680px;
        min-height: 680px;
    }

    .hero-content {
        top: 52%;
        left: 5%;
        width: 90%;
    }

    .hero-content h1 {
        font-size: clamp(2.35rem, 12vw, 3.3rem);
        line-height: 1.16;
    }

    .hero-content p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .hero-subtitle {
        margin-bottom: 16px;
        padding: 7px 12px;
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* =========================================================
   EXTRA LONG TEXT PROTECTION
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
.card-title {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Hindi text को line के बाहर जाने से रोकें */
[lang="hi"],
.text-hindi {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Cards में content clip न हो */
.card,
.card-body,
.card-header,
.card-footer {
    overflow: visible;
}

/* केवल images को crop करें */
.card-image,
.hero-section {
    isolation: isolate;
}

.card-image {
    overflow: hidden;
}
/* ============================
   HERO CUT FIX OVERRIDES
============================ */

/* Navbar fixed hai, isliye body ko top space do */
body {
    padding-top: 86px;
    overflow-x: hidden;
}

/* Hero ko navbar ke neeche proper space do */
.hero-section {
    position: relative;
    min-height: calc(100vh - 86px);
    height: auto;
    overflow: visible !important;
    padding-top: 0;
}

/* Carousel height also navbar-adjusted */
#heroSlider,
#heroSlider .carousel-inner,
#heroSlider .carousel-item {
    min-height: calc(100vh - 86px);
    height: auto;
    overflow: visible !important;
}

/* Image full cover but not clipping content area */
.hero-image {
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
}

/* Overlay full section */
.hero-overlay {
    inset: 0;
    height: 100%;
}

/* Main hero text safe placement */
.hero-content {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    width: min(680px, 88%);
    z-index: 5;
    overflow: visible;
}

/* Heading wrapping fix */
.hero-content h1 {
    margin: 0 0 18px;
    padding: 6px 0 10px;
    line-height: 1.12;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Subtitle and paragraph */
.hero-content p {
    max-width: 620px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Buttons stay visible */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* --------------------------------------------------------
   TABLET
-------------------------------------------------------- */
@media (max-width: 991px) {
    body {
        padding-top: 78px;
    }

    .hero-section,
    #heroSlider,
    #heroSlider .carousel-inner,
    #heroSlider .carousel-item {
        min-height: 760px;
    }

    .hero-content {
        top: 52%;
        left: 6%;
        width: 88%;
        transform: translateY(-50%);
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 7vw, 4.6rem);
        line-height: 1.14;
    }
}

/* --------------------------------------------------------
   MOBILE
-------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .glass-nav {
        min-height: 72px;
    }

    .hero-section,
    #heroSlider,
    #heroSlider .carousel-inner,
    #heroSlider .carousel-item {
        min-height: 780px;
        height: auto;
    }

    .hero-content {
        top: 52%;
        left: 5%;
        width: 90%;
        transform: translateY(-50%);
    }

    .hero-content h1 {
        font-size: clamp(2.4rem, 10vw, 4rem);
        line-height: 1.16;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    .hero-content p {
        font-size: 0.98rem;
        line-height: 1.62;
        margin-bottom: 22px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        width: min(100%, 280px);
    }
}

/* --------------------------------------------------------
   SMALL MOBILE
-------------------------------------------------------- */
@media (max-width: 480px) {
    body {
        padding-top: 68px;
    }

    .hero-section,
    #heroSlider,
    #heroSlider .carousel-inner,
    #heroSlider .carousel-item {
        min-height: 820px;
    }

    .hero-content {
        top: 53%;
        left: 5%;
        width: 92%;
    }

    .hero-content h1 {
        font-size: clamp(2.15rem, 11vw, 3.35rem);
        line-height: 1.18;
    }

    .hero-content p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .hero-subtitle {
        margin-bottom: 14px;
    }
}
.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.24) 38%,
            rgba(0, 0, 0, 0.06) 72%,
            rgba(0, 0, 0, 0.02) 100%
        ) !important;
}

.hero-overlay::after {
    display: none !important;
}

.hero-image {
    filter: brightness(1.08) saturate(1.08) contrast(1.02) !important;
}
/* =========================================================
   INLINE NAVBAR SETTINGS
========================================================= */

.navbar-settings-panel {
    display: none;

    width: 100%;

    margin-top: 10px;

    padding: 18px;

    background: rgba(35, 5, 5, 0.96);

    border: 1px solid rgba(242, 216, 137, 0.25);

    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}


.navbar-settings-panel.show {
    display: block;
}


.settings-toggle {
    cursor: pointer;
}


.settings-toggle .settings-arrow {
    margin-left: auto;

    transition:
        transform 0.25s ease;
}


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


.settings-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.settings-row strong,
.settings-language strong {
    display: block;

    color: var(--gold-300);

    font-size: 0.9rem;
}


.settings-row small,
.settings-language small {
    display: block;

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.75rem;
}


.navbar-settings-panel hr {
    margin: 15px 0;

    border-color:
        rgba(242, 216, 137, 0.18);
}


.language-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
}


.language-buttons form {
    margin: 0;
}


.language-btn {
    min-height: 38px;

    padding: 7px 13px;

    color: #fff;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid
        rgba(242, 216, 137, 0.35);

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.25s ease;
}


.language-btn:hover {
    color: var(--maroon-900);

    background: var(--gold-500);

    border-color: var(--gold-500);
}


.current-language {
    margin-top: 13px;

    padding: 9px 11px;

    color: rgba(255, 255, 255, 0.65);

    background: rgba(255, 255, 255, 0.05);

    border-radius: 7px;

    font-size: 0.75rem;
}


.current-language strong {
    display: inline;

    color: var(--gold-300);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .navbar-settings-panel {

        display: none;

        margin-top: 8px;

    }

    .navbar-settings-panel.show {

        display: block;

    }

    .settings-toggle {

        width: 100%;

        justify-content: flex-start;

    }

}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 992px) {

    .navbar-settings-panel {

        position: absolute;

        top: calc(
            var(--navbar-height) + 8px
        );

        right: 20px;

        width: 330px;

        z-index: 10000;

    }

}
/* =========================================================
   SETTINGS MODAL - FORCE ABOVE MOBILE NAVBAR
========================================================= */

body .modal#settingsModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
}

body .modal-backdrop {
    z-index: 99990 !important;
}

body .modal#settingsModal .modal-dialog {
    position: relative !important;
    z-index: 100000 !important;
}


/* =========================================================
   MOBILE SETTINGS MODAL
========================================================= */

@media (max-width: 991px) {

    body .modal#settingsModal {
        padding: 15px !important;
    }

    body .modal#settingsModal .modal-dialog {
        width: calc(100% - 10px) !important;
        max-width: 500px !important;
        margin: auto !important;
    }

    body .modal#settingsModal .modal-content {
        max-height: calc(100vh - 30px);
        overflow-y: auto;
    }

}