:root {
    --primary-gradient: linear-gradient(135deg, #dc2626 0%, #ca8a04 100%);
    --bg-light: #fffbeb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --accent-orange: #fdba74;
    --white: #ffffff;
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #111827;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 70px;
}

header.scrolled {
    background: linear-gradient(90deg, #dc2626 0%, #ea580c 25%, #cb8b04 60%, #4a9d18 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: 60px;
    animation: headerSlideDown 0.5s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* Remove old top-bar since header is full gradient now */
.top-bar-gradient {
    display: none;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

/* White circle container for logo icon */
.logo-icon-wrapper {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.logo-icon-wrapper i {
    font-size: 1.5rem;
    color: #9333ea;
    /* Purple Om symbol */
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    /* All white text now */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: none;
    -webkit-text-fill-color: initial;
}

.logo-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-top: 2px;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    /* Push nav to the right, next to admin */
    margin-right: 2rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    font-weight: 600;
    /* Slightly bolder */
    font-size: 0.95rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: opacity 0.2s;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: white;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Admin Link Style */
/* Admin Link Style */
.admin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    text-shadow: none;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

header.scrolled .admin-link {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}

.admin-link i {
    font-size: 1rem;
}

/* Primary Button Style (for CTA) */
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #dc2626 0%, #ca8a04 100%);
    color: white !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.4);
    filter: brightness(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
    -webkit-text-fill-color: initial; /* Allow child gradient spans to override */
}

.text-gradient-main {
    background: linear-gradient(90deg, #ff4d4d 0%, #f97316 45%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    font-family: var(--font-heading);
    color: #fbbf24;
    font-style: italic;
    font-weight: 400;
}

.hero-text h3 {
    font-size: 1.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.hero-subtext {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: transparent;
    color: white !important;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Glassmorphism Info Cards */
.hero-cards {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bg-red-glass {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.bg-green-glass {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.bg-gold-glass {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.card-content h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Sections General */
section {
    padding: 2.5rem 1.5rem;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 2.5rem 2rem;
    background-color: #ffffff;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-img-container {
    position: relative;
}

.about-img-main {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
    position: relative;
}

.about-accent-box {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 250px;
    height: 250px;
    background: var(--primary-gradient);
    border-radius: 2rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.about-accent-box h4 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.about-text-content {
    animation: fadeInRight 1s ease-out;
}

.about-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.about-text-content h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-description {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    transition: all 0.3s;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-item span {
    font-weight: 600;
    color: #111827;
}

/* Divine Schedule & Rituals - Ultra Premium */
.rituals-section-merged {
    padding: 5.5rem 2rem;
    background-color: #f9fafb;
}

.sec-container-premium {
    max-width: 1000px;
    margin: 0 auto;
}

.rituals-grid-merged {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
    margin-top: 6rem;
}

/* Timeline Style */
.timing-section-block h3 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: #111827;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.timing-section-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #dc2626;
}

.timeline-rituals {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid #f3f4f6;
}

.timeline-item-v3 {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item-v3:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-3rem - 10px);
    top: 5px;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #dc2626;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px white;
}

.timeline-content-v3 h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #ca8a04;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.timeline-content-v3 .event-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-content-v3 .event-time {
    font-family: var(--font-primary);
    background: #fff1f2;
    color: #dc2626;
    padding: 0.35rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 800;
}

/* Offering Style */
.merged-yagya-features {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.offering-item-v3 {
    display: flex;
    gap: 2.5rem;
    transition: all 0.3s ease;
}

.offering-item-v3:hover {
    transform: translateX(10px);
}

.offering-icon-v3 {
    font-size: 2.25rem;
    color: #dc2626;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.offering-details-v3 h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: #111827;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.offering-details-v3 p {
    color: #6b7280;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

.offering-link-v3 {
    font-weight: 800;
    color: #dc2626;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offering-link-v3 i {
    transition: transform 0.3s;
}

.offering-link-v3:hover i {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .sec-container-premium {
        max-width: 100%;
    }

    .rituals-grid-merged {
        grid-template-columns: 1fr;
        gap: 6rem;
        padding: 0 1rem;
    }
}

/* Events Section - Reference Style */
.events-section {
    padding: 2.5rem 1.5rem;
    background-color: #ffffff;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
}

.events-intro {
    text-align: center;
    color: #4b5563;
    font-size: 1.25rem;
    margin-bottom: 4rem;
    font-family: var(--font-primary);
}

/* .events-grid-image-style was merged/removed in favor of .events-grid */
.event-card-premium {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.event-img-wrapper {
    position: relative;
    height: 220px;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Events Section - Ultra Premium Design */
.events-section {
    padding: 2.5rem 1.5rem;
    background-color: #f9fafb;
    position: relative;
}

.events-container {
    max-width: 1300px;
    margin: 0 auto;
}

.events-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.events-intro p {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.8;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card-premium {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.event-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(220, 38, 38, 0.08);
    border-color: #fee2e2;
}

.event-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.event-card-premium:hover .event-img-wrapper img {
    transform: scale(1.1);
}

.past-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-date-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-date-overlay .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

.event-date-overlay .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
}

.event-details-premium {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-details-premium h3 {
    font-size: 1.75rem;
    color: #111827;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.event-details-premium p.description {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-info-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.info-row i {
    color: #dc2626;
    font-size: 1rem;
}

.btn-book {
    margin-top: auto;
    background: #111827;
    color: white !important;
    padding: 1.25rem 2rem;
    border-radius: 1.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-book:hover {
    background: #dc2626;
    transform: scale(1.02);
}

/* Support/Donate Section - Reference Image Style */
.support-section {
    padding: 2.5rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.support-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(to right, #ea580c, #ca8a04, #65a30d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.support-subtitle {
    color: #4b5563;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 5rem;
    line-height: 1.6;
}

.support-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
}

.support-card {
    background: #fffcf9;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #fef3c7;
    transition: transform 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.support-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.support-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Payment Tabs */
.donation-box-premium {
    flex: 1;
    margin: 0;
}

.payment-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.payment-tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s;
}

.payment-tab.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.donation-form-wrapper {
    background: #fffcf5;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid #fee2e2;
}

.donation-form-wrapper h3 {
    font-size: 1.35rem;
    color: #111827;
    margin-bottom: 1.25rem;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.amount-btn {
    padding: 0.65rem 0.35rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    font-weight: 700;
    color: #4b5563;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn.active {
    background: linear-gradient(to right, #dc2626, #ca8a04);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

.custom-amount-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.custom-amount-group label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.custom-amount-group input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    background: white;
}

.integration-area {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    text-align: left;
}

.integration-area h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

/* Temple Trust Section - More Compact */
.trust-section {
    padding: 2.5rem 2rem;
    background-color: #fffaf5;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
}

.trust-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

@media (max-width: 1024px) {
    .trust-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trust-grid-v3 {
        grid-template-columns: 1fr;
    }
}

.trust-title-gradient {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(to right, #ea580c, #ca8a04, #65a30d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1rem;
}

.trust-subtitle {
    text-align: center;
    color: #4b5563;
    font-size: 1.05rem;
    margin-bottom: 4rem;
}

.trust-slider-wrapper {
    margin-top: 3rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trustSwiper {
    padding: 20px 0 60px !important;
}

.swiper-button-next, .swiper-button-prev {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%);
    color: #dc2626 !important;
    background: white;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 10;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: 900;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #dc2626;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.trust-nav-prev {
    left: -15px !important;
}

.trust-nav-next {
    right: -15px !important;
}

@media (max-width: 1280px) {
    .trust-nav-prev { left: 5px !important; }
    .trust-nav-next { right: 5px !important; }
}

@media (max-width: 768px) {
    .trust-nav-prev, .trust-nav-next {
        display: none !important;
    }
    .trust-slider-wrapper {
        padding: 0 10px;
    }
}

.swiper-pagination-bullet-active {
    background: #dc2626 !important;
}

.trustSwiper .swiper-slide {
    height: auto;
}

.trust-card-v2 {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 380px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.member-img-box {
    position: relative;
    height: 280px;
    background: #f3f4f6;
}

.member-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-trust-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(234, 88, 12, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0.4rem;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.member-details-v2 {
    padding: 1.25rem;
}

.member-details-v2 h3 {
    font-size: 1.35rem;
    color: #111827;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.member-role-styled {
    display: block;
    color: #ca8a04;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.member-bio-short {
    color: #4b5563;
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-speech-v2 {
    background: linear-gradient(to right, #dc2626, #ca8a04);
    color: white !important;
    padding: 0.85rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
}

.member-phone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.member-phone i {
    color: #10b981;
}

/* Trust Bio Modal */
.trust-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.trust-modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.trust-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #1f2937;
    transition: all 0.2s;
    z-index: 10;
}

.trust-modal-close:hover {
    background: #dc2626;
    color: white;
}

.trust-modal-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .trust-modal-body {
        grid-template-columns: 1fr;
    }
    .modal-img-container {
        height: 250px;
    }
}

.modal-img-container {
    background: #f3f4f6;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-container {
    padding: 2.5rem;
}

.modal-info-container h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

.modal-role {
    color: #ca8a04;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1.5rem;
}

.modal-bio {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download-cv {
    background: #111827;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-download-cv:hover {
    background: #dc2626;
}

/* Contact Section - Premium Redesign */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.contact-section-v2 {
    padding: 2rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.contact-container-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

.contact-grid-v2 {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 2.5rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .contact-grid-v2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info-premium, .contact-form-premium {
        padding: 2.5rem 1.5rem !important;
    }
}

.info-text-v2 p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
}

.contact-info-premium {
    background: #fffcf9;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #fef3c7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-premium h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.contact-info-premium p.intro-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.info-item-v2 {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-icon-v2 {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ea580c;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.info-text-v2 h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
}

.social-links-v2 {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn-v2 {
    width: 50px;
    height: 50px;
    border-radius: 1rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #4b5563;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.social-btn-v2:hover {
    background: #ea580c;
    color: white;
    transform: translateY(-3px);
}

/* Contact Form Styling */
.contact-form-premium {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    height: 100%;
}

.form-row-styled {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .form-row-styled {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group-v2 {
    margin-bottom: 0.85rem;
    position: relative;
}

.form-group-v2 label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.form-control-v2 {
    width: 100%;
    padding: 0.65rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    color: #111827;
    transition: all 0.3s;
}

.form-control-v2:focus {
    outline: none;
    border-color: #fca5a5;
    background: white;
    box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.1);
}

textarea.form-control-v2 {
    resize: none;
}

.btn-send-message {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #ca8a04 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.4);
}

.btn-send-message:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(220, 38, 38, 0.5);
    filter: brightness(1.1);
}

@media (max-width: 1024px) {
    .contact-grid-v2 {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info-premium {
        position: static;
    }
}

@media (max-width: 640px) {
    .form-row-styled {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-premium {
        padding: 2.5rem;
    }
}

/* Map Section */
.map-section {
    padding: 0;
    line-height: 0;
    position: relative;
    border-top: 1px solid #f3f4f6;
    background: white;
}

.map-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 450px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(0);
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.upi-payment-content {
    text-align: center;
    padding: 2rem;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    margin: 0 auto 1.5rem;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-placeholder i {
    font-size: 5rem;
    color: #e5e7eb;
}

.support-footer-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donate-now-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ca8a04 100%);
    color: white !important;
    padding: 0.85rem 1.5rem;
    border-radius: 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 20px -5px rgba(220, 38, 38, 0.35);
    width: 100%;
}

.donate-now-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -12px rgba(220, 38, 38, 0.5);
    filter: brightness(1.1);
}

.donate-now-btn:active {
    transform: scale(0.98);
}

.donation-buttons-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .donation-buttons-row {
        flex-direction: column;
    }
}

.donate-other-btn {
    background: #fdf2f8;
    color: #db2777 !important;
    border: 2px solid #fbcfe8;
    padding: 0.85rem 1.5rem;
    border-radius: 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
    white-space: nowrap;
}

.donors-ticker-window {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 0.75rem;
    background: #f9fafb;
}

.donors-scroll-container {
    display: flex;
    flex-direction: column;
    animation: scrollUp 20s linear infinite;
}

.donors-scroll-container:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.donor-ticker-item {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    background: white;
    transition: background 0.3s;
}

.donor-ticker-item:hover {
    background: #fffafa;
}

.donor-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.donor-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
}

.donor-amount {
    color: #16a34a;
    font-weight: 800;
    font-size: 0.9rem;
}

.donor-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.recent-donors-sidebar {
    flex: 1;
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid #ececf1;
}

.recent-donors-sidebar h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #111827;
    font-size: 0.95rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-donors-yet {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .donation-main-container {
        flex-direction: column;
        align-items: center !important;
        padding: 0 1rem;
    }
    .recent-donors-sidebar {
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 auto !important;
        height: 350px;
    }
}

.amount-btn:focus {
    outline: 2px solid #fca5a5;
    outline-offset: 2px;
}

.upi-info {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-tabs {
        flex-direction: column;
    }
}

/* Miracles & Healing Stories - Reference Style */
.miracles-section {
    padding: 2.5rem 2rem;
    background-color: #f9fafb;
    text-align: center;
}

.miracles-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #4d7c0f;
    /* Olive/Greenish-brown color from image */
    margin-bottom: 1rem;
}

.miracles-subtitle {
    color: #6b7280;
    font-size: 1.15rem;
    margin-bottom: 4rem;
}

/* Filter Tags */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 5rem;
}

.filter-btn {
    padding: 0.6rem 1.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 9999px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.filter-btn.active {
    background: #d97706;
    /* Brownish Orange */
    color: white;
    border-color: #d97706;
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}

.miracles-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.miracle-card-v2 {
    background: #fffcf8;
    /* Very light cream */
    padding: 2.5rem;
    border-radius: 2rem;
    text-align: left;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid #fef3c7;
    transition: all 0.4s ease;
}

.miracle-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

.card-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-icon-group {
    display: flex;
    gap: 0.75rem;
    color: #d97706;
}

.miracle-tag-premium {
    padding: 0.4rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

/* Tag Colors */
.tag-prosperity {
    background-color: #d97706;
}

.tag-health {
    background-color: #b91c1c;
}

.tag-peace {
    background-color: #ea580c;
}

.tag-education {
    background-color: #ca8a04;
}

.tag-harmony {
    background-color: #78350f;
}

.tag-blessings {
    background-color: #dc2626;
}

.miracle-card-v2 p.quote {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2.5rem;
}

.miracle-author-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #fef3c7;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.author-meta h5 {
    font-size: 1.1rem;
    color: #111827;
    margin: 0;
}

.author-meta span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Temple Gallery - Premium Mosaic Style */
.gallery-section {
    padding: 2.5rem 2rem;
    background-color: #ffffff;
}

.gallery-container-v2 {
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Slider (Homepage) */
.gallery-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.gallerySwiper {
    padding-bottom: 50px !important;
}

.gallery-slide-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gallery-slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-slide-card:hover img {
    transform: scale(1.05);
}

.gallery-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-slide-card:hover .gallery-slide-overlay {
    opacity: 1;
}

.gallery-slide-overlay h4 {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.gallery-pagination .swiper-pagination-bullet-active {
    background: #dc2626;
}

.gallery-nav-btn {
    color: #dc2626 !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-nav-btn::after {
    font-size: 1rem !important;
}

.gallery-grid-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-card-v2 {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gallery-card-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.gallery-overlay-v2 h4 {
    transform: translateY(20px);
    transition: transform 0.4s ease;
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
}

.gallery-card-v2:hover .gallery-overlay-v2 {
    opacity: 1;
}

.gallery-card-v2:hover .gallery-overlay-v2 h4 {
    transform: translateY(0);
    color: white !important;
}

.gallery-card-v2:hover img {
    transform: scale(1.1);
}

/* Grid Logic for Mosaic Effect */
.gallery-card-v2.span-2-row {
    grid-row: span 2;
}

.gallery-card-v2.span-2-col {
    grid-column: span 2;
}

.gallery-card-v2.span-2-both {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .gallery-grid-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .gallery-card-v2.span-2-col,
    .gallery-card-v2.span-2-both {
        grid-column: span 1;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Testimonials / Miracles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid #ca8a04;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #ca8a04;
    box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background: #111827;
    color: white;
    padding: 1.5rem 1.5rem 2rem;
    margin-top: 0;
}

.footer-grid {
    max-width: 100%;
    padding: 0 4rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--primary-gradient);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    /* Nav ul — must NEVER wrap on mobile, handled by the slide-in panel */
    nav ul {
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
    }

    .hero,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero {
        align-items: flex-start;
        min-height: auto;
        padding-top: 0;
    }

    .hero-info-list {
        align-items: center;
    }
}

/* --- Responsive Layouts --- */

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    z-index: 1001;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    header {
        height: 70px;
    }

    header.scrolled {
        height: 60px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .logo-icon-wrapper i {
        font-size: 1.1rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.4s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    nav {
        margin-right: 0;
        flex-grow: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .admin-link {
        display: none;
        /* Hide in header on mobile, maybe add to mobile menu */
    }

    /* Hero Section Mobile */
    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 110px;
        padding-bottom: 3rem;
        text-align: center;
        gap: 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-top: 0;
    }

    .hero-subtext {
        margin: 0 auto 2.5rem;
    }

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

    .hero-cards {
        max-width: 500px;
        margin: 0 auto;
    }

    /* About Section Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
    }

    .about-image {
        max-width: 100%;
        height: auto;
    }

    .about-text h2 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 0.85rem;
    }

    .about-text-content h2 {
        font-size: 2.5rem;
    }

    .about-accent-box {
        bottom: -1rem;
        right: -1rem;
        width: 180px;
        height: 180px;
    }

    /* Schedule Section Mobile */
    .timing-section-block h3 {
        text-align: center;
    }

    .timing-section-block h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-rituals {
        padding-left: 2rem;
    }

    .rituals-grid-merged {
        gap: 4rem;
    }

    /* Events Section Mobile */
    .events-grid-image-style {
        grid-template-columns: 1fr;
    }

    .event-card-premium {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Donation Section Mobile */
    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .donation-box-premium {
        padding: 1.5rem;
    }

    /* Gallery Section Mobile */
    .gallery-grid-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-2-both,
    .span-2-row,
    .span-2-col {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Trust Section Mobile */
    .trust-grid-premium {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Contact Section Mobile */
    .contact-grid-v2 {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info-premium {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-text h3 {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }

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

    .section-heading h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

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

    .contact-info-list {
        align-items: center;
    }
}

/* --- Rituals Cards v4 --- */
.rituals-cards-grid-v4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.ritual-card-premium {
    background: #ffffff;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ritual-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #dc2626;
}

.ritual-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ritual-card-header i {
    font-size: 2rem;
    color: #dc2626;
}

.ritual-card-header h3 {
    font-size: 1.75rem;
    margin: 0;
}

.timeline-rituals-v4 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-item-v4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    font-weight: 500;
}

.timeline-item-v4 .time {
    color: #dc2626;
    font-weight: 800;
}

.ritual-note {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

.ritual-card-body p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ritual-features-v4 {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: grid;
    gap: 0.75rem;
}

.ritual-features-v4 li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    font-weight: 600;
}

.ritual-features-v4 i {
    color: #059669;
}

@media (max-width: 1024px) {
    .rituals-cards-grid-v4 {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 4rem auto 0;
    }
}

/* ==========================================================================
   Divine Schedule & Rituals - Premium v5
   ========================================================================== */

.rituals-premium-v5 {
    position: relative;
    padding: 2.5rem 2rem;
    background: #fffbeb;
    /* Matches --bg-light */
    overflow: hidden;
}

.sacred-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: radial-gradient(#dc2626 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    pointer-events: none;
}

.divine-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.divine-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.text-gold {
    color: #ca8a04;
}

.divine-subtitle {
    font-size: 1.15rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.rituals-grid-v5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.ritual-glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.ritual-glass-card:hover {
    transform: translateY(-15px);
    background: white;
    box-shadow: 0 40px 60px -20px rgba(220, 38, 38, 0.15);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    background: radial-gradient(circle at 50% -20%, rgba(220, 38, 38, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.ritual-glass-card:hover .card-glow {
    opacity: 1;
}

.card-header-v5 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.icon-box-v5 {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.3);
}

.card-header-v5 h3 {
    font-size: 1.75rem;
    margin: 0;
}

/* Timeline Components */
.schedule-timeline-v5 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.timeline-slot {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.timeline-slot:last-child {
    border-bottom: none;
}

.slot-time {
    font-weight: 800;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    height: fit-content;
    white-space: nowrap;
}

.slot-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.slot-info p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.ritual-desc {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ritual-features-v5 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.feature-pill {
    background: #fdf2f2;
    color: #991b1b;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ritual-action-v5 {
    margin-top: auto;
}

.ritual-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.ritual-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.ritual-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.ritual-image-v5 {
    margin-top: 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.ritual-image-v5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.ritual-glass-card:hover .ritual-image-v5 img {
    transform: scale(1.1);
}

.ritual-list-v5 {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ritual-list-v5 li {
    display: flex;
    gap: 1.25rem;
}

.ritual-list-v5 i {
    width: 32px;
    height: 32px;
    background: #fffbeb;
    color: #ca8a04;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ritual-list-v5 h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.ritual-list-v5 p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.card-footer-v5 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-footer-v5 p {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

@media (max-width: 768px) {
    .rituals-premium-v5 {
        padding: 3rem 1.5rem;
    }

    .divine-title {
        font-size: 2.5rem;
    }

    .ritual-glass-card {
        padding: 2rem;
    }
}

/* ==========================================================================
   Divine Schedule & Rituals - Sacred Dark (v6)
   ========================================================================== */

.rituals-v6-dark {
    position: relative;
    padding: 5.5rem 2rem;
    background: linear-gradient(135deg, #4c0505 0%, #7f1d1d 100%);
    color: #fffbeb;
    overflow: hidden;
}

.mandala-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: url('https://www.transparenttextures.com/patterns/black-paper.png'), radial-gradient(circle, transparent 20%, #4c0505 70%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.mandala-icon {
    position: absolute;
    top: -10%;
    right: -5%;
    font-size: 25rem;
    color: rgba(202, 138, 4, 0.05);
    transform: rotate(15deg);
    pointer-events: none;
}

.sec-container-v6 {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.heading-gold {
    text-align: center;
    margin-bottom: 6rem;
}

.heading-gold .divine-badge {
    background: rgba(202, 138, 4, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(202, 138, 4, 0.3);
}

.heading-gold h2 {
    font-size: 4rem;
    background: linear-gradient(to bottom, #fde68a 0%, #ca8a04 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.heading-gold p {
    color: #d1d5db;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Feature Hero Section */
.rituals-hero-v6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.hero-image-frame {
    position: relative;
    border-radius: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ca8a04 0%, #b45309 100%);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    display: block;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid rgba(202, 138, 4, 0.2);
    border-radius: 3rem;
    pointer-events: none;
}

.schedule-list-v6 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sacred-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(202, 138, 4, 0.1);
    border-radius: 1.5rem;
    transition: all 0.3s;
}

.sacred-row:hover {
    background: rgba(202, 138, 4, 0.1);
    border-color: rgba(202, 138, 4, 0.4);
    transform: scale(1.02);
}

.row-time {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
    min-width: 120px;
}

.row-info h4 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.row-info p {
    font-size: 0.95rem;
    color: #9ca3af;
    margin: 0;
}

/* Dividers */
.ornate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 6rem 0;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(202, 138, 4, 0.5), transparent);
}

.divider-icon {
    font-size: 2rem;
    color: #ca8a04;
    filter: drop-shadow(0 0 10px rgba(202, 138, 4, 0.5));
}

/* Ritual Cards Grid */
.rituals-grid-v6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.ornate-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(202, 138, 4, 0.2);
    border-radius: 2rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s;
}

.ornate-card:hover {
    border-color: #ca8a04;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    background: rgba(202, 138, 4, 0.05);
}

.card-icon-gold {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #fde68a 0%, #ca8a04 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #451010;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ornate-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.ornate-card p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #ca8a04;
    color: #ca8a04;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s;
}

.gold-btn:hover {
    background: #ca8a04;
    color: #fff;
    box-shadow: 0 0 20px rgba(202, 138, 4, 0.4);
}

.gold-btn.filled {
    background: #ca8a04;
    color: #fff;
}

@media (max-width: 1024px) {
    .rituals-hero-v6 {
        grid-template-columns: 1fr;
    }

    .heading-gold h2 {
        font-size: 2.75rem;
    }
}
/* ==========================================================================
   Divine Schedule & Rituals - Divine Light (v7)
   ========================================================================== */

.rituals-v7-light {
    position: relative;
    padding: 2rem 1.5rem;
    background: #fffbf0;
    color: var(--text-dark);
    overflow: hidden;
}

.divine-pattern-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(#dc2626 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    pointer-events: none;
}

.sec-container-v7 {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.heading-crimson {
    text-align: center;
    margin-bottom: 1.5rem;
}

.heading-crimson .divine-badge {
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: 0.75rem;
}

.heading-crimson h2 {
    font-size: 2.25rem;
    color: #111827;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.heading-crimson h2 span {
    color: #dc2626;
}

.heading-crimson p {
    color: #6b7280;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Layout v7 */
.rituals-layout-v7 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.timeline-card-v7 {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.05);
    max-width: 650px;
    margin: 0 auto;
}

.timeline-v7-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-v7-item {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.timeline-v7-item:last-child {
    border-bottom: none;
}

.v7-time-box {
    min-width: 110px;
    text-align: right;
}

.v7-time {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #dc2626;
}

.v7-period {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 600;
}

.v7-info-box h4 {
    font-size: 1.2rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.v7-info-box p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.v7-item-image {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    max-height: 300px;
    justify-self: center;
}

.v7-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rituals-layout-v7:hover .v7-item-image img {
    transform: scale(1.05);
}

/* Ornate Light Cards */
.v7-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.v7-ornate-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.25rem;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s;
    max-width: 650px;
    margin: 0 auto;
}

.v7-ornate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -10px rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.1);
}

.v7-icon-box {
    width: 44px;
    height: 44px;
    background: #fff1f2;
    color: #dc2626;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1.25rem;
    transition: all 0.3s;
}

.v7-ornate-card:hover .v7-icon-box {
    background: #dc2626;
    color: white;
    transform: rotate(10deg);
}

.v7-ornate-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.v7-ornate-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.v7-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
}

.v7-btn-outline {
    border: 2px solid #dc2626;
    color: #dc2626;
}

.v7-btn-filled {
    background: #dc2626;
    color: white;
}

.v7-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.15);
}

@media (max-width: 1024px) {
    .rituals-layout-v7 {
        grid-template-columns: 1fr;
    }
    .heading-crimson h2 {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Events Carousel Redesign (v2)
   ========================================================================== */

.events-section-v2 {
    padding: 5.5rem 0;
    background: #ffffff;
    overflow: hidden;
}

.events-swiper {
    padding: 2rem 1rem 5rem !important;
}

.event-card-v2 {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.event-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.1);
}

.event-img-v2 {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-img-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card-v2:hover .event-img-v2 img {
    transform: scale(1.1);
}

.event-tag-v2 {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.event-date-v2 {
    position: absolute;
    bottom: 0;
    left: 2rem;
    background: #dc2626;
    color: white;
    width: 65px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1rem 1rem 0 0;
    z-index: 2;
}

.event-date-v2 .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-v2 .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.event-content-v2 {
    padding: 3rem 2.5rem 2.5rem;
}

.event-content-v2 h3 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
    color: #111827;
}

.event-content-v2 p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta-v2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.meta-item-v2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.meta-item-v2 i {
    color: #dc2626;
    font-size: 1.1rem;
}

/* Swiper Nav Customization */
.swiper-button-next, .swiper-button-prev {
    color: #dc2626 !important;
    background: white;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.25rem !important;
    font-weight: 800;
}

.swiper-pagination-bullet-active {
    background: #dc2626 !important;
}

@media (max-width: 768px) {
    .event-content-v2 {
        padding: 2.5rem 1.5rem 1.5rem;
    }
}

/* ===== Donor Details Form ===== */
.donor-details-section {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background: #f9fafb;
    margin-bottom: 1rem;
}

.donor-section-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donor-section-title i {
    color: #dc2626;
}

.donor-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.donor-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.donor-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    font-family: var(--font-primary);
}

.donor-input {
    padding: 0.45rem 0.65rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.4rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: #1f2937;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    width: 100%;
}

.donor-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.donor-public-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: #4b5563;
}

.donor-public-toggle input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #dc2626;
    flex-shrink: 0;
}

.donor-public-toggle label {
    margin: 0;
    cursor: pointer;
}

.donor-security-note {
    font-size: 0.78rem;
    color: #9ca3af;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 640px) {
    .donor-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Enhanced Mobile Responsiveness ===== */

/* Hero CTA wrapping */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }

    /* Donation Box */
    .donation-box-premium {
        padding: 1.5rem 1rem;
    }

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

    .support-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Events grid fallback to single column on mobile */
    .events-grid-image-style {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .events-grid-3col {
        grid-template-columns: 1fr !important;
    }

    /* Gallery grid */
    .gallery-grid {
        columns: 2 !important;
    }

    /* Trust members grid */
    .trust-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Services/Rituals */
    .v7-services-grid {
        grid-template-columns: 1fr !important;
    }

    .v7-ornate-card {
        text-align: left;
    }

    /* Footer social links */
    .social-links {
        gap: 0.5rem;
    }

    /* Footer columns */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

@media (max-width: 480px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-cards-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-grid {
        columns: 1 !important;
    }

    .payment-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .payment-tab {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .hero-content {
        padding-top: 95px !important;
    }

    /* Modal full-screen on mobile */
    #bookingModal .modal-content {
        width: 95% !important;
        padding: 1.25rem !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .hero-text h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .hero-text h3 {
        font-size: 1.15rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-subtext {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-text p {
        font-size: 0.95rem !important;
    }

    .v7-ornate-card {
        padding: 2rem !important;
        border-radius: 1.5rem !important;
    }

    .v7-cards-grid {
        gap: 1.5rem !important;
    }

    .section-title, .support-title, .miracles-title {
        font-size: 2.5rem !important;
    }

    .support-subtitle, .miracles-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2.5rem !important;
    }
}

/* ===== Donor Scroller ===== */
.donor-scroller-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.scroller-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-right: 1px solid #e5e7eb;
    padding-right: 1rem;
}

.donor-scroller {
    overflow: hidden;
    flex: 1;
}

.donor-scroller-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollDonors 30s linear infinite;
    width: max-content;
}

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

.donor-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fef9c3;
    border: 1px solid #fde68a;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

@keyframes scrollDonors {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   COMPREHENSIVE MOBILE FIXES (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {

    /* === 1. NAV MENU PANEL === */
    .nav-menu {
        width: 100% !important;
        max-width: 100% !important;
        padding: 5rem 2rem 2rem !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .nav-menu li:last-child { border-bottom: none; }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem !important;
        text-align: left;
    }

    /* Close button positioning */
    .close-menu {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }

    /* === 2. YAGYA/RITUALS TIMELINE SECTION === */
    .timeline-v7-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }

    .v7-time-box {
        min-width: unset !important;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .v7-time {
        font-size: 1rem !important;
    }

    .timeline-card-v7 {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    .timeline-v7-grid {
        grid-template-columns: 1fr !important;
        margin-bottom: 3rem !important;
    }

    /* === 3. ORNATE/POOJA CARDS — CENTER ALIGNED === */
    .v7-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }

    .v7-ornate-card {
        padding: 2rem 1.5rem !important;
        border-radius: 1.5rem !important;
        text-align: center !important;
    }

    .v7-card-action {
        display: flex;
        justify-content: center;
    }

    .v7-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
    }

    /* === 4. PAYMENT GATEWAY === */
    .payment-tabs {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 0 !important;
    }

    .payment-tab {
        flex: 1;
        font-size: 0.78rem !important;
        padding: 0.6rem 0.25rem !important;
        gap: 0.25rem !important;
    }

    .payment-tab i {
        font-size: 0.85rem;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .amount-btn {
        padding: 0.85rem 0.5rem !important;
        font-size: 1rem !important;
    }

    .donor-details-section {
        padding: 1rem !important;
    }

    .donor-fields-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .donation-box-premium {
        padding: 1rem 0.75rem !important;
        border-radius: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Support section full width on mobile */
    .support-section {
        padding: 3rem 0.75rem !important;
    }

    .support-title {
        font-size: 2rem !important;
    }

    .support-subtitle {
        font-size: 0.9rem !important;
        padding: 0 0.5rem;
    }

    /* Make donation sub-heading smaller so it doesn't wrap */
    .choose-amount-title,
    .donation-box-premium h3,
    .donation-box-premium h4 {
        font-size: 1.2rem !important;
    }

    /* Amount grid — 3 cols on medium mobile, 2 on tiny */
    .amount-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }

    .amount-btn {
        padding: 0.65rem 0.25rem !important;
        font-size: 0.9rem !important;
        border-radius: 0.6rem !important;
    }

    /* Donate button — compact, single line */
    .donate-now-btn {
        font-size: 1rem !important;
        padding: 0.9rem 1.5rem !important;
        gap: 0.5rem !important;
        border-radius: 0.75rem !important;
        white-space: nowrap;
    }

    .support-footer-actions {
        margin-top: 1.5rem !important;
        gap: 0.75rem !important;
    }

    /* Custom amount input */
    #customAmount {
        font-size: 0.95rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* Donor details form */
    .donor-details-section {
        padding: 1rem 0.75rem !important;
        margin-top: 1rem !important;
    }

    .donor-section-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }

    .donor-input {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .donor-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }

    .donor-public-toggle {
        font-size: 0.8rem !important;
        padding: 0.6rem !important;
        margin-top: 0.75rem !important;
    }

    .donor-security-note {
        font-size: 0.75rem !important;
        padding: 0.6rem !important;
        margin-top: 0.5rem !important;
    }

    /* Tab text wrapping fix */
    #gatewayContent,
    #upiContent {
        padding: 0 !important;
    }


    .upi-payment-content {
        padding: 1rem !important;
    }

    .upi-payment-content img {
        max-width: 180px !important;
        width: 100% !important;
        height: auto !important;
    }

    .upi-info {
        font-size: 0.95rem !important;
        word-break: break-all;
    }

    /* === 6. GALLERY === */
    .gallery-grid-mosaic {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .span-2-both,
    .span-2-row,
    .span-2-col {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    .gallery-item img {
        height: 160px !important;
        border-radius: 0.75rem !important;
    }

    /* Donor scroller on mobile */
    .donor-scroller-wrap {
        flex-direction: column;
        border-radius: 1rem;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .scroller-label {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 0.4rem;
        width: 100%;
    }
}

/* Extra mobile donation form fixes */
@media (max-width: 768px) {
    /* Form wrapper was 3.5rem padding — way too much on mobile */
    .donation-form-wrapper {
        padding: 1.25rem 1rem !important;
        border-radius: 1rem !important;
    }

    .donation-form-wrapper h3 {
        font-size: 1.2rem !important;
        margin-bottom: 1.25rem !important;
        text-align: center;
    }

    /* All inputs take full available width */
    .donor-input,
    #customAmount {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Custom amount group */
    .custom-amount-group {
        margin-bottom: 1rem !important;
    }

    .custom-amount-group label {
        font-size: 0.85rem;
    }

    /* Donate button — full width, never wraps */
    .donate-now-btn {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 0.9rem 1rem !important;
        white-space: nowrap !important;
        gap: 0.5rem !important;
    }
}

/* ===== MOBILE: Nav menu clean full-screen overlay ===== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        right: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        background: linear-gradient(160deg, #dc2626 0%, #c2410c 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 5rem 2rem 2rem !important;
        gap: 0 !important;
        overflow-y: auto;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
    }

    .nav-menu.active {
        transform: translateX(100%) !important;
        left: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.15) !important;
        display: block !important;
    }

    .nav-menu li:last-child { border-bottom: none !important; }

    .nav-menu a {
        display: block !important;
        width: 100% !important;
        padding: 1rem 0 !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        color: white !important;
        text-align: left !important;
    }
    .nav-menu .nav-dropdown a {
        color: #1f2937 !important;
        background: transparent !important;
        font-weight: 500 !important;
        padding: 0.75rem 2rem !important;
        font-size: 0.95rem !important;
    }
}

/* ===== Responsive History Section ===== */
.history-section-v2 {
    padding: 2.5rem 2rem;
    background: #ffffff;
}

.history-inner-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-relative {
    position: relative;
}

.history-main-img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.history-legacy-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
}

.legacy-number {
    font-size: 2.5rem;
    margin: 0;
    color: white;
}

.legacy-text {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-badge {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-heading {
    font-size: 2.8rem;
    margin: 1.5rem 0;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.history-p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.history-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.history-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.history-feature-item i {
    color: #16a34a;
}

.history-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .history-heading {
        font-size: 2.2rem;
    }
    
    .history-section-v2 {
        padding: 4rem 1.5rem;
    }

    .history-legacy-badge {
        padding: 1.5rem;
        bottom: -10px;
        right: -10px;
    }
}

/* ===== Contact Section Responsiveness ===== */
@media (max-width: 991px) {
    .contact-grid-v2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .form-row-styled {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .contact-container-v2 {
        padding: 0 1rem !important;
    }
}

/* ===== Footer Responsiveness ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem !important;
    }
    
    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info-list {
        align-items: center;
    }
}

/* ===== MOBILE: Ornate/Pooja/Daily cards ===== */
@media (max-width: 768px) {
    .v7-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 0 !important;
    }

    .v7-ornate-card {
        padding: 1.75rem 1.5rem !important;
        border-radius: 1.25rem !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .v7-ornate-card h3 {
        font-size: 1.2rem !important;
        margin: 0.75rem 0 0.5rem !important;
    }

    .v7-ornate-card p {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        color: #4b5563 !important;
    }

    .v7-icon-box {
        width: 56px !important;
        height: 56px !important;
        margin: 0 auto !important;
        font-size: 1.25rem !important;
    }

    .v7-card-action {
        margin-top: 1rem !important;
        display: flex !important;
        justify-content: center !important;
    }

    .v7-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.5rem !important;
        width: auto !important;
        max-width: 240px !important;
    }
}

/* ===== FINAL NAV FIX: reconcile with JS (JS toggles .active which sets right:0) ===== */
@media (max-width: 1024px) {
    .nav-menu {
        /* Reset any transform approach, go back to right-slide used by JS */
        transform: none !important;
        left: unset !important;
        right: -100% !important;
        width: 100% !important;
        max-width: 100% !important;
        transition: right 0.35s ease !important;
    }
    .nav-menu.active {
        right: 0 !important;
        left: unset !important;
        transform: none !important;
    }
}

/* ===== Nav close button inside panel ===== */
.nav-close-item {
    border-bottom: none !important;
    margin-bottom: 1rem !important;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.nav-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nav-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Only show close btn in mobile nav */
.nav-close-item {
    display: none;
}

@media (max-width: 1024px) {
    .nav-close-item {
        display: flex !important;
    }
}

/* ===== MIRACLES SECTION MOBILE ===== */
@media (max-width: 768px) {
    .miracles-section {
        padding: 4rem 1rem !important;
    }

    .miracles-title {
        font-size: 2rem !important;
    }

    .miracles-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Filter tabs — centered, wrap nicely */
    .filter-tabs {
        justify-content: center !important;
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.45rem 1rem !important;
        font-size: 0.82rem !important;
    }

    /* Miracles grid — 1 column, no minimum 350px constraint */
    .miracles-grid-premium {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .miracle-card-v2 {
        padding: 1.5rem !important;
        border-radius: 1.25rem !important;
        text-align: left;
    }
}

/* Close button fixed at top-right of nav panel */
@media (max-width: 1024px) {
    .nav-close-item {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        border-bottom: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Ensure nav-menu is position:relative for the absolute close button */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed !important;
    }
}

/* Force close button to top-RIGHT corner of nav panel */
@media (max-width: 1024px) {
    .nav-close-item {
        position: absolute !important;
        top: 1rem !important;
        right: 1.25rem !important;
        left: auto !important;
        width: auto !important;
        border-bottom: none !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: flex-end !important;
        align-self: auto !important;
        flex: none !important;
        order: -1;
    }
    .nav-menu {
        position: fixed !important;
    }
}

/* ===== Nav close button — fixed at top-right of menu panel ===== */
@media (max-width: 1024px) {
    .nav-close-item {
        position: absolute !important;
        top: 1.25rem !important;
        right: 1.25rem !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
        width: auto !important;
    }

    .nav-close-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== Nav close button — FORCE top-right corner ===== */
@media (max-width: 1024px) {
    /* The nav-menu ul must be relative so absolute child works */
    .nav-menu {
        position: fixed !important;
    }

    .nav-close-item {
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        z-index: 10000 !important;
        width: auto !important;
        border: none !important;
        display: none;
    }

    /* Only show when menu is open */
    .nav-menu.active ~ * .nav-close-item,
    .nav-menu.active .nav-close-item {
        display: flex !important;
    }
}

/* ===== Close button — sibling of nav-menu, positioned top-right ===== */

/* Hidden by default (desktop) */
.nav-close-btn {
    display: none;
}

@media (max-width: 1024px) {
    /* The nav wrapper becomes a positioning context */
    nav {
        position: relative;
    }

    /* Show close button only on mobile */
    .nav-close-btn {
        display: flex;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 10001;
        background: rgba(255, 255, 255, 0.25);
        border: none;
        color: white;
        font-size: 1.4rem;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        /* Hidden unless menu is open — toggled via JS class */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    .nav-close-btn.visible {
        opacity: 1;
        pointer-events: all;
    }
}

/* Donation Page Grid Styles */
.donation-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.donation-banner-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3f4f6;
}

.donation-banner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.donation-banner-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.donation-banner-card:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.donation-banner-card:hover .banner-overlay {
    opacity: 1;
}

.banner-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

@media (max-width: 1024px) {
    .donation-grid-2x2 {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .donation-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.events-section .section-heading {
    margin-bottom: 2rem;
}

.events-section .section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .rituals-layout-v7, .v7-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Events and Inner Page Hero */
.events-hero {
    padding: 140px 20px 100px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.events-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.events-hero h1 {
    font-size: 3.5rem;
    margin: 1.5rem 0;
    font-weight: 800;
    color: #ffffff;
}

.events-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .events-hero {
        padding: 100px 1.5rem 60px;
    }
    .events-hero h1 {
        font-size: 2.5rem;
    }
}
