/* ======================
   RESET
====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================
   BASE
====================== */
html,
body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg,
            #fffaf4 0%,
            #f7ead2 35%,
            #efd8af 70%,
            #e4c187 100%
        );
    position: relative;
}

/* subtle luxury texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;

    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(180,140,60,0.08) 0px,
            rgba(180,140,60,0.08) 2px,
            transparent 2px,
            transparent 40px
        );
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;

    background:
        url('/assets/images/bg/mandala-left.png') left 40px center no-repeat,
        url('/assets/images/bg/mandala-right.png') right 40px center no-repeat;

    background-size: 280px, 280px;
}
/* =========================
   COMMON PAGE TOP SECTION
========================= */
.common-page-top {
    margin-bottom: 28px;
}

.common-page-top-card {
    background: rgba(255, 251, 245, 0.96);
    border: 1px solid rgba(191, 128, 32, 0.13);
    border-radius: 30px;
    padding: 34px 32px;
    box-shadow: 0 16px 34px rgba(95, 60, 18, 0.09);
}

.common-page-top-card h1,
.common-page-top-card h2 {
    margin: 0 0 8px;
    color: #9b1208;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.common-page-top-card p {
    margin: 0;
    color: #5f5042;
    font-size: 17px;
    line-height: 1.8;
}

/* =========================
   COMMON HERO SECTION
========================= */
.common-hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0 !important;
    margin-bottom: 22px;
}

.common-hero-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0;

    background-image: url("/assets/images/backgroundimg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 300px;
    padding: 60px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;
    box-shadow: none;
}

.common-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(80, 20, 0, 0.35) 0%,
        rgba(80, 20, 0, 0.12) 45%,
        rgba(80, 20, 0, 0.20) 100%
    );
    z-index: 0;
}

.common-hero-card::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,230,180,0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.common-hero-card > * {
    position: relative;
    z-index: 1;
}

.common-hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 7px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin: 0 auto 10px;
    text-align: center;
}

.common-hero-card h1:empty {
    display: none;
}

.common-hero-card h1 {
    margin: 0 auto 10px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    text-align: center;
}

.common-hero-card p {
    margin: 0 auto;
    font-size: 17px;
    max-width: 680px;
    text-align: center;
}

.common-hero-card.no-title {
    padding: 60px 20px;
}

.common-hero-card.no-title .common-hero-kicker {
    margin-bottom: 10px;
}

.common-hero-card.no-title p {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 auto;
}

/* Mobile hero */
    @media (max-width: 768px) {
    .common-hero-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-top: 0 !important;
        margin-bottom: 18px;
    }

   .common-hero-card {
        min-height: 190px;
        padding: 28px 18px;
        border-radius: 0;
        background-size: cover;
        background-position: center top;
        align-items: center;
        text-align: center;
    }
 .common-hero-kicker {
        font-size: 13px;
        padding: 6px 16px;
        margin-bottom: 10px;
    }
    .common-hero-card.no-title {
        padding: 28px 18px;
    }

    .common-hero-card h1,
    .common-hero-card h2 {
        font-size: 30px;
    }

     .common-hero-card p {
        font-size: 16px;
        line-height: 1.45;
        max-width: 92%;
    }
}

/* ======================
   LAYOUT
====================== */
.page-content {
    position: relative;
padding: 70px 12px calc(96px + env(safe-area-inset-bottom));
    z-index: 1;
}

.page-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background:
        radial-gradient(circle at 8% 12%, rgba(212, 160, 23, 0.08), transparent 16%),
        radial-gradient(circle at 92% 18%, rgba(139, 0, 0, 0.05), transparent 16%),
        radial-gradient(circle at 50% 85%, rgba(212, 160, 23, 0.07), transparent 22%);
}

.container {
    position: relative;
    width: 1100px;
    max-width: 95%;
    margin: 0 auto;
    padding-top: 0;
    z-index: 1;
}

.home-temple-page .container::before {
    content: "";
    position: absolute;
    top: 80px;
    left: -140px;
    width: 260px;
    height: 70%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.10;
    background: radial-gradient(circle, rgba(255, 190, 90, 0.45) 0%, rgba(255, 190, 90, 0.06) 48%, transparent 72%);
    filter: blur(18px);
}

.home-temple-page .container::after {
    content: "";
    position: absolute;
    top: 80px;
    right: -140px;
    width: 260px;
    height: 70%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.08;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.30) 0%, rgba(139, 0, 0, 0.05) 48%, transparent 72%);
    filter: blur(18px);
}

.hero {
    background: linear-gradient(180deg, #fffefb 0%, #fcf5eb 100%);
    border: 1px solid rgba(209, 176, 127, 0.34);
    border-radius: 24px;
    padding: 28px 28px 24px;
    margin: 0 auto 24px;
    box-shadow: 0 14px 30px rgba(84, 44, 12, 0.10);
}

.hero h2 {
    color: #8b0000;
    margin-bottom: 1px;
}

.hero p {
    color: #5d5148;
    line-height: 1.75;
}

/* ======================
   HOME HERO SLIDER
====================== */
.home-hero-slider {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 28px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    background: #e9e1d6;
    border: 1px solid rgba(209, 176, 127, 0.25);
}

.hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle at 78% 18%, rgba(255, 210, 135, 0.15), transparent 20%);
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 500px;
    padding: 34px;
    color: #fff;
}

.hero-slide-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.hero-slide-content h2 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    max-width: 680px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.hero-slide-content p {
    margin: 0 0 20px;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}

.hero-slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn.primary {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #fff;
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.4);
    align-content: center;
    align-items: center;
}

.hero-btn.primary:hover {
    background: linear-gradient(135deg, #c98e0e, #a07208);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff9ef;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-nav-prev {
    left: 16px;
}

.hero-nav-next {
    right: 16px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.15);
}

/* ======================
   HEADER
====================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    background: linear-gradient(90deg, #8b0000, #b8860b);
    color: #fff;
    padding: 12px 24px;
    z-index: 8000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 6px 18px rgba(62, 18, 8, 0.18);
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.site-header-inner {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    
}

.header-right-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-contact-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.header-contact-link:hover {
    text-decoration: underline;
}

.site-brand,
.site-brand:visited,
.site-brand:hover,
.site-brand:active {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.site-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.site-title {
    text-align: left;
}

.site-title h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    color: #fff;
}

.site-title span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #f3e6c9;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: nowrap;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
}

.site-nav a:hover,
.site-nav a.active {
    text-decoration: underline;
}

.site-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    text-align: right;
}

.site-auth a,
.site-auth span {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.site-auth a:hover {
    text-decoration: underline;
}

/* ======================
   USER DROPDOWN
====================== */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    z-index: 9000;
    padding: 6px 0;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 11px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f1ece2;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f7f4ee;
    color: #8b0000;
}

.user-dropdown-title {
    padding: 8px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.user-dropdown-divider {
    height: 1px;
    background: #eee3d1;
    margin: 6px 0;
}

/* ======================
   MOBILE DRAWER
====================== */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 7000;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: min(320px, 88vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.16);
    transition: right 0.25s ease;
    z-index: 7001;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    background: linear-gradient(90deg, #8b0000, #b8860b);
    color: #fff;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mobile-drawer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mobile-drawer-subtitle {
    font-size: 13px;
    opacity: 0.95;
}

.mobile-drawer-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 20px;
}

.mobile-drawer-section-title {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #8b0000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mobile-drawer-link {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #f1ece2;
}

.mobile-drawer-link:hover {
    background: #f7f4ee;
    color: #8b0000;
}

body.drawer-open {
    overflow: hidden;
}

/* ======================
   COMMON CARDS / SECTIONS
====================== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    background: linear-gradient(180deg, #fffefb 0%, #fbf4ea 100%);
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(84, 44, 12, 0.08);
    border: 1px solid rgba(209, 176, 127, 0.28);
}

.card h3,
.hero h2,
.form-card h2,
.event-card h3,
.god-strip-title,
.section-heading h2 {
    position: relative;
}

.card h3 {
    color: #7a1f1f;
    margin-bottom: 10px;
}

.card p {
    line-height: 1.7;
    color: #555;
}

.cards .card p {
    font-size: 28px;
    font-weight: 700;
    color: #7a1f1f;
    margin-top: 8px;
}

.section-heading h2::after,
.god-strip-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b0000, #d4a017);
}

.section-heading:not(.center) h2::after {
    margin-left: 0;
}

.empty-box {
    background: linear-gradient(180deg, #fffefb 0%, #fbf4ea 100%);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(84, 44, 12, 0.08);
    border: 1px solid rgba(209, 176, 127, 0.28);
    margin-top: 20px;
}

.empty-box h3 {
    color: #7a1f1f;
    margin-bottom: 10px;
}

.empty-box p {
    color: #555;
    margin-bottom: 15px;
}

/* ======================
   TABS
====================== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tabs a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: #efe5d3;
    text-decoration: none;
    color: #7a1f1f;
    font-weight: bold;
    border: 1px solid rgba(197, 159, 102, 0.28);
    box-shadow: 0 4px 10px rgba(106, 58, 12, 0.04);
}

.tabs a.active {
    background: linear-gradient(180deg, #d49a12 0%, #b8860b 100%);
    color: white;
}

/* ======================
   FILTER BOX
====================== */
.filter-box {
    background: linear-gradient(180deg, #fffefb 0%, #fbf4ea 100%);
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(84, 44, 12, 0.06);
    margin-bottom: 20px;
    border: 1px solid rgba(209, 176, 127, 0.25);
}

.filter-form {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    min-width: 220px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #7a1f1f;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8cdbf;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

/* ======================
   FORMS / INPUTS
====================== */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-card {
    background: linear-gradient(180deg, #fffefb 0%, #fbf4ea 100%);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(84, 44, 12, 0.08);
    border: 1px solid rgba(209, 176, 127, 0.28);
}

.form-card h2 {
    margin-bottom: 14px;
    color: #7a1f1f;
}

.form-card p {
    margin-bottom: 10px;
    line-height: 1.75;
    color: #4c443d;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd4c8;
    border-radius: 10px;
    font-size: 14px;
    background: #fffdf9;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.10);
    background: #fff;
}

/* ======================
   BUTTONS
====================== */
.btn {
    display: inline-block;
    background: linear-gradient(180deg, #d49a12 0%, #b8860b 100%);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(107, 67, 8, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    background: linear-gradient(180deg, #c98e0e 0%, #9f7609 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(107, 67, 8, 0.16);
}

.btn.secondary {
    background: linear-gradient(180deg, #ece7df 0%, #d8d2cb 100%);
    color: #7a1f1f;
    box-shadow: none;
}

.btn.secondary:hover {
    background: linear-gradient(180deg, #e3ddd6 0%, #cfc8c1 100%);
}

.btn-danger {
    background: linear-gradient(180deg, #ba2525 0%, #a32020 100%);
    color: #fff !important;
    box-shadow: 0 8px 14px rgba(122, 18, 18, 0.14);
}

.btn-danger:hover {
    background: linear-gradient(180deg, #a61f1f 0%, #861919 100%);
}

.btn-warning {
    background: #e67e22 !important;
    color: #fff !important;
}

/* ======================
   EVENTS
====================== */
.section-title {
    margin-bottom: 8px;
    color: #1f2430;
}

.result-count {
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.event-card {
    background: linear-gradient(180deg, #fffefb 0%, #fbf4ea 100%);
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(84, 44, 12, 0.08);
    border-top: 4px solid #b8860b;
    border-left: 1px solid rgba(209, 176, 127, 0.18);
    border-right: 1px solid rgba(209, 176, 127, 0.18);
    border-bottom: 1px solid rgba(209, 176, 127, 0.18);
}

.event-card h3 {
    color: #7a1f1f;
    margin-bottom: 10px;
}

.event-card p {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ======================
   AUTH
====================== */
.auth-wrap {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 420px;
    max-width: 95%;
    background: linear-gradient(180deg, #fffefb 0%, #fbf4ea 100%);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(84, 44, 12, 0.08);
    border: 1px solid rgba(209, 176, 127, 0.28);
}

.success-message {
    background: #eaf8ea;
    color: #1f7a2e;
    border: 1px solid #bfe3c5;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(31, 122, 46, 0.06);
}

.error-message {
    background: #fdeaea;
    color: #b00020;
    border: 1px solid #f3c2c2;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(176, 0, 32, 0.05);
}

/* ======================
   FOOTER
====================== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    background: linear-gradient(90deg, #8b0000, #b8860b);
    color: #fff;
    padding: 14px 24px;
    z-index: 8000;
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 -4px 14px rgba(0,0,0,0.10);
    backdrop-filter: blur(6px);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    min-height: 20px;
}

.site-footer-left {
    justify-self: start;
    display: flex;
    gap: 16px;
}

.site-footer-center {
    justify-self: center;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0.98;
}

.site-footer-right {
    justify-self: end;
}

.site-footer-left a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.site-footer-left a:hover {
    text-decoration: underline;
}

/* footer sound toggle */
.footer-sound-toggle {
    position: fixed;
    left: 14px;
    bottom: 10px;
    z-index: 8500;
}

.footer-sound-toggle #soundToggleBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #8b0000, #b8860b);
    box-shadow: 0 8px 18px rgba(70, 30, 10, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
}

.footer-sound-toggle #soundToggleBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(70, 30, 10, 0.26);
}

.footer-sound-toggle #soundToggleBtn:active {
    transform: translateY(0);
}

/* ======================
   PAYMENT
====================== */
.payment-options {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f5ef;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.amount-box {
    background: linear-gradient(180deg, #fbf8f1 0%, #f3ece1 100%);
    border: 1px solid #ddd4c8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 18px;
    font-weight: 700;
    color: #7a1f1f;
}

.payment-element-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
}

/* ======================
   ADMIN
====================== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    border: 1px solid #e4ddd0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f4ead2;
    color: #7a1f1f;
    font-weight: 700;
}

.admin-table tr:nth-child(even) {
    background: #fcfaf6;
}

.admin-inline-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-inline-form select {
    min-width: 130px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-bookings-table {
    table-layout: fixed;
    width: 100%;
}

.admin-bookings-table th,
.admin-bookings-table td {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.form-card canvas {
    width: 100% !important;
    max-height: 320px;
}

/* ======================
   MOBILE BOOKING CARDS
====================== */
.mobile-booking-list {
    display: none;
}

.mobile-booking-card {
    background: linear-gradient(180deg, #fffefb 0%, #fbf4ea 100%);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(84, 44, 12, 0.08);
    padding: 16px;
    margin-bottom: 14px;
    border-top: 4px solid #b8860b;
}

.mobile-booking-card h3 {
    margin: 0 0 10px;
    color: #7a1f1f;
    font-size: 18px;
}

.mobile-booking-row {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
}

.mobile-booking-row strong {
    color: #7a1f1f;
}

.mobile-booking-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.mobile-booking-actions .btn,
.mobile-booking-actions .btn-danger {
    flex: 1;
    min-width: 110px;
    text-align: center;
}

.mobile-booking-inline-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.mobile-booking-inline-form select {
    width: 100%;
}

.mobile-booking-inline-form .btn {
    width: 100%;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-confirmed {
    background: #eaf8ea;
    color: #1f7a2e;
}

.status-pending {
    background: #fff4de;
    color: #9a6700;
}

.status-cancelled {
    background: #fdeaea;
    color: #b00020;
}

.install-app-btn {
    margin-left: 10px;
}

/* ======================
   SOCIAL / STRIPS
====================== */
.btn-primary,
.btn-danger {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: #b56d00;
    color: #fff;
}

.btn-danger {
    background: #a40000;
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Circle background */
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b0000, #c58d00);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}
/* Icon */
.social-icons i {
    color: #fff;
    font-size: 18px;
}



/* Hover glow 🔥 */
.social-icons a:hover {
    transform: translateY(-3px) scale(1.08);
    background: linear-gradient(135deg, #c58d00, #ffcc66);

    box-shadow:
        0 10px 20px rgba(197,141,0,0.45),
        0 0 12px rgba(255,204,102,0.6);
}
.social-icons a:hover i {
    color: #8b0000;
}

.social-icons a .fa-instagram {
    background: radial-gradient(circle at 30% 107%,
        #fdf497 0%, #fdf497 5%,
        #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.strip-item {
    position: relative;
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.strip-item img {
    width: 260px;
    height: 370px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.3s ease;
}

.strip-item:hover img {
    transform: scale(1.05);
}

.strip-item span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    animation: flashText 2s infinite;
}

.god-strip-section {
    margin: 30px 0;
}

.god-strip-title {
    color: #7a1f1f;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
}

.god-strip {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.god-strip-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: templeScroll 25s linear infinite;
}

.god-strip:hover .god-strip-track {
    animation-play-state: paused;
}

@keyframes templeScroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes flashText {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ======================
   ENHANCED TEMPLE HOME
====================== */
.temple-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 540px;
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    padding: 54px 46px;
    background:
        linear-gradient(90deg,
            rgba(245, 233, 214, 0.88) 0%,
            rgba(245, 233, 214, 0.78) 28%,
            rgba(83, 22, 10, 0.18) 58%,
            rgba(32, 10, 8, 0.12) 100%
        ),
        url('/assets/images/slide-divine-services.jpg') center center / cover no-repeat;
    box-shadow: 0 20px 46px rgba(90, 34, 10, 0.18);
    border: 1px solid rgba(202, 166, 108, 0.22);
}

.temple-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1px);
    background-size: 28px 28px;
}

.temple-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 220, 150, 0.20), transparent 18%),
        radial-gradient(circle at 72% 82%, rgba(255, 190, 110, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(255, 204, 120, 0.04), rgba(0,0,0,0));
}

.temple-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,0.06) 0%,
            rgba(255,255,255,0.03) 30%,
            rgba(0,0,0,0.06) 70%,
            rgba(0,0,0,0.10) 100%
        );
}

.temple-hero-lights {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.temple-light {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 102, 0.32) 0%, rgba(255, 170, 40, 0.16) 35%, rgba(255, 140, 0, 0.02) 72%, transparent 100%);
    filter: blur(6px);
    animation: templeGlow 4.5s ease-in-out infinite;
}

.light-1 {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}

.light-2 {
    top: 22%;
    right: 18%;
    animation-delay: 1.2s;
}

.light-3 {
    bottom: 14%;
    right: 8%;
    animation-delay: 2.1s;
}

@keyframes templeGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.65;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.temple-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #fff8ef;
}

.temple-hero-badge {
    display: inline-block;
    background: rgba(111, 19, 13, 0.08);
    color: #6f130d;
    border: 1px solid rgba(111, 19, 13, 0.20);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.temple-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    margin: 0 0 16px;
    color: #6f130d;
    text-shadow: 0 2px 0 rgba(255,255,255,0.18);
    max-width: 720px;
    font-weight: 800;
}

.temple-hero p {
    font-size: 20px;
    line-height: 1.75;
    max-width: 700px;
    color: #4e372c;
    margin-bottom: 24px;
    text-shadow: none;
}

.temple-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading.center {
    text-align: center;
}

.section-kicker {
    display: inline-block;
    color: #b56b00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin-bottom: 10px;
}

.section-kicker.light {
    color: #ffe4a8;
}

.section-heading h2 {
    margin: 0 0 10px;
    color: #7d1b0f;
    font-size: 34px;
}

.section-heading p {
    margin: 0;
    color: #5d5148;
    font-size: 17px;
}

.quick-actions-section,
.upcoming-events-section,
.temple-split-section,
.devotional-banner {
    position: relative;
    z-index: 1;
}

.quick-actions-section,
.upcoming-events-section {
    margin-top: 18px;
    margin-bottom: 34px;
    padding: 10px 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.quick-action-card {
    display: block;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.94) 0%, rgba(248, 239, 225, 0.96) 100%);
    border: 1px solid #e7cfaa;
    border-radius: 22px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 26px rgba(111, 59, 12, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(2px);
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(111, 59, 12, 0.14);
}

.quick-action-icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.quick-action-card h3 {
    margin: 0 0 10px;
    color: #7d1b0f;
    font-size: 22px;
}

.quick-action-card p {
    margin: 0;
    line-height: 1.7;
    color: #5c524a;
}

.temple-split-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 34px;
}

.split-card {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.95) 0%, rgba(251, 244, 234, 0.96) 100%);
    border: 1px solid #ecdac1;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 24px rgba(111, 59, 12, 0.08);
    backdrop-filter: blur(2px);
}

.split-card h2 {
    color: #7d1b0f;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 30px;
}

.split-card p {
    line-height: 1.85;
    color: #574c44;
}

.temple-timings-card {
    background: linear-gradient(180deg, rgba(255, 248, 238, 0.96) 0%, rgba(248, 235, 216, 0.97) 100%);
}

.timing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    color: #4f4339;
}

/* prevent wrapping */
.timing-row span {
    white-space: nowrap;
}

.timing-row strong {
    white-space: nowrap;
    color: #7d1b0f;
}
/* remove default border */
.timing-row.no-border {
    border-bottom: none;
}

/* custom divider */
.timing-divider {
    height: 1px;
    background: #ead4b5;
    margin: 10px 0 14px;
}

.timing-note {
    margin-top: 16px;
    color: #6b5d52;
    line-height: 1.0;
}

.event-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.event-preview-card,
.event-preview-empty {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.95) 0%, rgba(251, 244, 234, 0.96) 100%);
    border: 1px solid #ecdac1;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 10px 24px rgba(111, 59, 12, 0.08);
    backdrop-filter: blur(2px);
}

.event-preview-date {
    display: inline-block;
    padding: 8px 14px;
    text-align: center;
    border-radius: 999px;
    background: #f7e5c2;
    color: #8a4d00;
    font-weight: 700;
    margin-bottom: 14px;
}

.event-preview-card h3 {
    margin: 0 0 12px;
    color: #7d1b0f;
    font-size: 24px;
}

.event-preview-card p,
.event-preview-empty p {
    margin: 0 0 10px;
    color: #5e534a;
    line-height: 1.7;
}

.devotional-banner {
    margin: 34px 0 10px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 155, 0.12), transparent 20%),
        linear-gradient(135deg, #5f0d0d 0%, #8b1e12 45%, #c88a11 100%);
    box-shadow: 0 16px 40px rgba(90, 34, 10, 0.18);
}

.devotional-banner-inner {
    padding: 46px 34px;
    color: #fff8ef;
    text-align: center;
}

.devotional-banner-inner h2 {
    color: #fffaf2;
    margin: 0 0 14px;
    font-size: 36px;
}

.devotional-banner-inner p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #fff2db;
    line-height: 1.85;
    font-size: 17px;
}

/* ======================
   PETALS
====================== */
.petal-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.petal {
    position: absolute;
    top: -80px;
    width: 20px;
    height: 16px;
    border-radius: 18px 18px 18px 3px;
    opacity: 0.68;
    box-shadow: 0 2px 8px rgba(154, 73, 96, 0.14);
    transform-origin: center center;
    animation-name: petalFallFull;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.petal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 32% 30%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 26%, transparent 30%),
        linear-gradient(135deg, #ffdbe5 0%, #ffbfd0 42%, #f4a7b9 100%);
}

.petal::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 7px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    filter: blur(1px);
}

.p1  { left: 3%;  animation-duration: 11s;   animation-delay: 0s; }
.p2  { left: 8%;  animation-duration: 13s;   animation-delay: 1s; }
.p3  { left: 14%; animation-duration: 12s;   animation-delay: 2.2s; }
.p4  { left: 20%; animation-duration: 14s;   animation-delay: 0.8s; }
.p5  { left: 28%; animation-duration: 15s;   animation-delay: 3s; }
.p6  { left: 36%; animation-duration: 12.5s; animation-delay: 1.7s; }
.p7  { left: 44%; animation-duration: 16s;   animation-delay: 4s; }
.p8  { left: 52%; animation-duration: 13.5s; animation-delay: 2.8s; }
.p9  { left: 60%; animation-duration: 14.5s; animation-delay: 0.5s; }
.p10 { left: 68%; animation-duration: 12.8s; animation-delay: 3.6s; }
.p11 { left: 76%; animation-duration: 15.2s; animation-delay: 1.2s; }
.p12 { left: 82%; animation-duration: 13.2s; animation-delay: 2.4s; }
.p13 { left: 88%; animation-duration: 11.8s; animation-delay: 4.2s; }
.p14 { left: 93%; animation-duration: 14.8s; animation-delay: 1.5s; }
.p15 { left: 10%; animation-duration: 16.5s; animation-delay: 5s; }
.p16 { left: 90%; animation-duration: 16.2s; animation-delay: 5.5s; }

@keyframes petalFallFull {
    0% {
        transform: translateY(-80px) translateX(0) rotate(0deg) scale(0.92);
        opacity: 0;
    }
    8% {
        opacity: 0.68;
    }
    20% {
        transform: translateY(20vh) translateX(16px) rotate(75deg) scale(1);
    }
    40% {
        transform: translateY(42vh) translateX(-14px) rotate(145deg) scale(0.96);
    }
    60% {
        transform: translateY(64vh) translateX(18px) rotate(220deg) scale(1.02);
    }
    80% {
        transform: translateY(86vh) translateX(-10px) rotate(285deg) scale(0.95);
    }
    100% {
        transform: translateY(112vh) translateX(12px) rotate(340deg) scale(0.90);
        opacity: 0;
    }
}

/* ======================
   DONATIONS PAGE
====================== */
#payment-element {
    margin-top: 8px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
    overflow: hidden;
    width: 100%;
}

#payment-message {
    margin-top: 10px;
    font-weight: 600;
    color: #7a1f1f;
    line-height: 1.5;
}

#donate-btn {
    width: 100%;
    max-width: 220px;
}

.donation-summary-box {
    background: linear-gradient(180deg, #fbf8f1 0%, #f3ece1 100%);
    border: 1px solid #ddd4c8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 14px;
}

.donation-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #4d433b;
}

.donation-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e2d6c6;
    font-weight: 700;
    color: #7a1f1f;
}

.gift-aid-note {
    font-size: 13px;
    color: #5d5148;
    margin-top: 8px;
    line-height: 1.6;
}

.form-card label[style*="align-items:flex-start"] {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    width: 100%;
}

.form-card label[style*="align-items:flex-start"] > input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-top: 4px;
    flex: 0 0 18px;
}

.form-card label[style*="align-items:flex-start"] > span {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.floating-btn {
    z-index: 5000;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 1100px) {
    .page-content {
        padding-top: 105px;
    }

    .hero-slider-track,
    .hero-slide-content {
        min-height: 430px;
        height: 430px;
    }

    .hero-slide-content {
        max-width: 560px;
        padding: 34px 26px 52px;
    }

    .hero-slide-content h2 {
        font-size: 38px;
        max-width: 540px;
    }

    .hero-slide-content p {
        font-size: 16px;
        max-width: 500px;
    }

    .quick-actions-grid,
    .event-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .temple-split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-header-inner,
    .site-footer-inner {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .header-center,
    .header-right {
        position: static;
        transform: none;
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .site-auth {
        justify-content: flex-start;
        text-align: left;
        flex-wrap: wrap;
    }

    .site-footer-center {
        text-align: left;
        white-space: normal;
    }

    .wrap {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
   body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    background-attachment: scroll;
}

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        margin: 0;
        padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
        z-index: 8000;
        background: linear-gradient(90deg, #8b0000, #b8860b);
        box-shadow: 0 2px 10px rgba(0,0,0,0.10);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .site-header-inner {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
        gap: 0;
    }

    .header-left {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .header-center,
    .header-right {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: none !important;
    }

    .site-brand,
    .site-brand:visited,
    .site-brand:hover,
    .site-brand:active {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #fff;
        width: 100%;
    }

    .site-logo {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .site-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .site-title h1 {
        margin: 0;
        font-size: 16px;
        line-height: 1.1;
        color: #fff;
    }

    .site-title span {
        margin-top: 3px;
        font-size: 11px;
        color: #f3e6c9;
    }

    .page-content {
        padding: calc(88px + env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom));
    }

    .container,
    .wrap {
        width: 100%;
        max-width: 100%;
    }

    .hero,
    .form-card,
    .card,
    .auth-card,
    .event-card,
    .mobile-booking-card {
        padding: 16px;
        border-radius: 14px;
    }

    .cards,
    .grid,
    .wrap,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .tabs a {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 9px 14px;
        font-size: 14px;
    }

    .admin-table-wrapper {
        display: none;
    }

    .mobile-booking-list {
        display: block;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-table th,
    .admin-table td {
        white-space: nowrap;
    }

    .site-footer {
        display: none !important;
    }

    .footer-sound-toggle {
        display: none !important;
    }

    .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(90deg, #8b0000 0%, #b24a00 55%, #b8860b 100%);
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    z-index: 6000;
    border-top: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 -4px 14px rgba(0,0,0,0.14);
    column-gap: 2px;
}

.mobile-bottom-link {
    min-width: 0;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 2px 4px;
    border: none;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    line-height: 1;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
}

.mobile-bottom-link i {
    display: block;
    font-size: 18px;
    line-height: 1;
    margin: 0;
}

.mobile-bottom-link img.mobile-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.mobile-bottom-link span {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
}

.mobile-bottom-link.active,
.mobile-bottom-link:active,
.mobile-bottom-link:hover {
    background: rgba(255,255,255,0.08);
}

    .home-hero-slider {
        border-radius: 18px;
        margin-bottom: 20px;
    }

    .hero-slider-track,
    .hero-slide-content {
        min-height: 380px;
        height: 380px;
    }

    .hero-slide-content {
        padding: 20px 16px 54px;
        justify-content: flex-end;
    }

    .hero-slide-tag {
        margin-bottom: 10px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .hero-slide-content h2 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .hero-slide-content p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .hero-btn {
        min-height: 44px;
        padding: 0 18px;
        font-size: 14px;
        border-radius: 12px;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hero-nav-prev {
        left: 10px;
    }

    .hero-nav-next {
        right: 10px;
    }

    .hero-dots {
        bottom: 14px;
        gap: 8px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .quick-actions-grid,
    .event-preview-grid {
        grid-template-columns: 1fr;
    }

    .split-card {
        padding: 22px;
    }

    .section-heading h2,
    .split-card h2,
    .devotional-banner-inner h2 {
        font-size: 28px;
    }

    .devotional-banner-inner {
        padding: 34px 22px;
    }

    .petal {
        opacity: 0.42;
    }

    /* donations mobile */
    .form-card h2 {
        font-size: 28px;
        line-height: 1.2;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .form-grid .full {
        grid-column: 1 / -1;
    }

    .form-grid label {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        font-weight: 700;
    }

    #donation-amount,
    #donor-name,
    #donor-email,
    #donor-message,
    .form-grid input,
    .form-grid textarea,
    .form-grid select {
        width: 100%;
        font-size: 16px;
        padding: 12px 13px;
        border-radius: 10px;
    }

    #donor-message {
        min-height: 110px;
    }

    .form-card label[style*="align-items:flex-start"] {
        gap: 10px !important;
        padding-right: 0 !important;
    }

    .form-card label[style*="align-items:flex-start"] > input[type="checkbox"] {
        margin-top: 2px;
    }

    .form-card label[style*="align-items:flex-start"] > span {
        font-size: 13px;
        line-height: 1.5;
    }

    .gift-aid-note {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-top: 8px;
    }

    .donation-summary-box {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .donation-summary-row {
        font-size: 14px;
        align-items: center;
    }

    #payment-element {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    #donate-btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        font-size: 16px;
        border-radius: 12px;
    }

    #payment-message {
        font-size: 13px;
    }

    .floating-btn {
        bottom: calc(74px + env(safe-area-inset-bottom)) !important;
        right: 12px !important;
    }
}

@media (max-width: 480px) {
    .hero-slider-track,
    .hero-slide-content {
        min-height: 340px;
        height: 340px;
    }

    .hero-slide-content h2 {
        font-size: 24px;
    }

    .hero-slide-content p {
        font-size: 14px;
    }

    .page-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .form-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .form-card h2 {
        font-size: 24px;
    }

    .devotional-banner-inner h2 {
        font-size: 26px !important;
    }

    .donation-summary-row {
        font-size: 13px;
    }

    .form-card label[style*="align-items:flex-start"] > span {
        font-size: 12px;
    }
}

.hero-nav,
.hero-dots {
    display: none !important;
}
.refund-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a4b00;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid #f1d58a;
    margin-top: 8px;
}

.refund-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8e8 0%, #fff3da 100%);
    border-left: 5px solid #c76b00;
    border: 1px solid #efd39b;
    color: #5a3a00;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.refund-notice-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.refund-notice-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
    color: #7d1d14;
}

.refund-notice-content span {
    display: block;
    line-height: 1.45;
    font-size: 0.95rem;
}
/* ======================
   MOBILE HERO GAP FIX
====================== */
@media (max-width: 768px) {
    .page-content {
        padding-top: calc(72px + env(safe-area-inset-top)) !important;
    }

    .common-hero-section {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-top: -38px !important;
        margin-bottom: 18px !important;
    }

    .common-hero-card {
        min-height: 175px !important;
        padding: 24px 16px !important;
        border-radius: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .common-hero-card.no-title {
        padding: 24px 16px !important;
    }

    .common-hero-kicker {
        font-size: 12px !important;
        padding: 5px 14px !important;
        margin-bottom: 8px !important;
    }

    .common-hero-card p {
        font-size: 14px !important;
        line-height: 1.35 !important;
        max-width: 92% !important;
    }
}
