/* ==========================================================================
   Thulasibaba Mutt - Design System & Stylesheet
   Theme: Red Ocher (#A52A2A), Gold (#D4AF37), Warm Cream (#FAF9F6)
   ========================================================================== */

/* Design Tokens */
:root {
    --primary: #A52A2A;          /* Red Ocher */
    --primary-light: #C04040;    /* Lighter red ocher for hovers */
    --primary-dark: #7A1E1E;     /* Darker red ocher for shadows */
    --secondary: #D4AF37;        /* Devotional Gold */
    --secondary-dark: #B59023;   /* Deeper Gold */
    --bg-cream: #FAF9F6;         /* Sacred Warm Cream */
    --bg-white: #FFFFFF;         /* Card Background */
    --text-dark: #2E251E;        /* Warm Espresso/Charcoal */
    --text-muted: #6E6259;       /* Slate Grey Brown */
    --text-light: #FFFFFF;       /* Pure White */
    --border-color: #EBE5DF;     /* Soft border for dividers */
    --shadow-soft: 0 10px 30px rgba(46, 37, 30, 0.05);
    --shadow-medium: 0 15px 35px rgba(165, 42, 42, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-header: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
    font-size: 16px;
    color: var(--text-dark);
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--primary);
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utility Layout Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-cream {
    background-color: var(--bg-cream);
}

.bg-white {
    background-color: var(--bg-white);
}

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

.text-white {
    color: var(--text-light);
}

.text-cream {
    color: #EBE5DF;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

.paragraph {
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 42, 42, 0.1);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Sticky Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 249, 246, 0.95);
    box-shadow: 0 2px 20px rgba(46, 37, 30, 0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.mutt-name {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.mutt-loc {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-dark);
    font-weight: 600;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-donate.nav-link {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-donate.nav-link::after {
    display: none;
}

.btn-donate.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-selected-btn {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-selected-btn:hover,
.lang-switcher.open .lang-selected-btn {
    background-color: var(--primary);
    color: var(--text-light);
}

.lang-switcher.open .lang-selected-btn .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.lang-selected-btn .fa-chevron-down {
    transition: transform 0.2s ease;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1010;
}

.lang-switcher.open .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 10px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown li:hover,
.lang-dropdown li.active {
    background-color: var(--bg-cream);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-nav-toggle.open .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('images/temple_hero_new2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Overridden to scroll on mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 0; /* account for fixed header */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 37, 30, 0.85) 0%, rgba(165, 42, 42, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 850px;
}

.welcome-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary);
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #FAF9F6;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-actions .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.hero-actions .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-light);
    font-size: 1.5rem;
    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%); }
}

/* About & Image Section Styling */
.about-section {
    background-color: var(--bg-white);
}

.image-wrapper {
    position: relative;
    padding: 15px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    border-top: 3px solid var(--secondary);
    border-left: 3px solid var(--secondary);
    z-index: 1;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    border-bottom: 3px solid var(--secondary);
    border-right: 3px solid var(--secondary);
    z-index: 1;
}

.about-img {
    border-radius: 2px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    object-fit: cover;
    height: 450px;
    position: relative;
    z-index: 2;
}

.experience-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    border: 1px solid var(--secondary);
}

.exp-years {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 5px;
}

.legal-badge {
    background-color: var(--bg-cream);
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
    display: flex;
    gap: 15px;
    margin-top: 30px;
    box-shadow: var(--shadow-soft);
}

.legal-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.legal-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.legal-text p {
    font-size: 0.95rem;
}

/* Timeline System */
.lineage-container {
    margin-top: 80px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 3px solid var(--bg-white);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background-color: var(--bg-cream);
    padding: 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.timeline-item.active .timeline-dot {
    background-color: var(--primary);
    border-color: var(--secondary);
    transform: scale(1.2);
}

.timeline-item.active .timeline-content {
    background-color: var(--bg-white);
    border-top-color: var(--primary);
    box-shadow: var(--shadow-medium);
}

.timeline-item.active .timeline-content h4 {
    color: var(--primary);
}

/* Thulasibaba Section Specifics */
.thulasibaba-section {
    background-color: var(--bg-cream);
}

.shadow-effect img {
    box-shadow: var(--shadow-medium);
    border: 5px solid var(--bg-white);
}

.relic-highlight {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    margin-top: 35px;
    border-top: 4px solid var(--secondary);
}

.relic-highlight h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.relic-highlight p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pooja Timings Section */
.pooja-section {
    background-color: var(--bg-white);
}

.mutt-timings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.timing-card {
    background-color: var(--bg-cream);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card-inner-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.status-indicator {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.status-indicator.live {
    background-color: rgba(46, 117, 89, 0.1);
    color: #2E7559;
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2E7559;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.timing-table {
    width: 100%;
    border-collapse: collapse;
}

.timing-table th, 
.timing-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.timing-table th {
    font-family: var(--font-header);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background-color: rgba(165, 42, 42, 0.03);
}

.timing-table td strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.timing-table td .ritual-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.time-highlight {
    font-family: var(--font-header);
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.secondary-info {
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--secondary);
    background-color: rgba(212, 175, 55, 0.03);
}

.icon-large {
    font-size: 3rem;
    color: var(--secondary-dark);
    margin-bottom: 20px;
}

.timing-info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.timing-info-block p {
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Media Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-image-box {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(46, 37, 30, 0.9) 0%, rgba(46, 37, 30, 0.4) 70%, rgba(46, 37, 30, 0) 100%);
    padding: 20px;
    color: var(--text-light);
    transition: var(--transition);
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Donation Section */
.donation-section {
    background-image: linear-gradient(135deg, rgba(165, 42, 42, 0.95) 0%, rgba(46, 37, 30, 0.95) 100%), url('images/yajna_ritual.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.donation-card-container {
    max-width: 750px;
    margin: 0 auto;
}

.donation-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--secondary);
}

/* Step Tracker */
.step-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-tracker::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-white);
    padding: 0 10px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2px solid var(--bg-white);
    transition: var(--transition);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    color: var(--text-muted);
    transition: var(--transition);
}

.step.active .step-num {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 0 10px rgba(165, 42, 42, 0.4);
}

.step.active .step-label {
    color: var(--primary);
}

.step.completed .step-num {
    background-color: var(--secondary);
    color: var(--text-light);
}

/* Step Contents */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.form-step-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary);
}

.form-step-subtitle {
    text-align: center;
    font-size: 0.95rem;
    margin-top: -20px;
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Scheme Options Grid */
.scheme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.scheme-option {
    background-color: var(--bg-cream);
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scheme-option i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.scheme-option h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.scheme-option p {
    font-size: 0.75rem;
}

.scheme-option:hover {
    background-color: rgba(165, 42, 42, 0.05);
}

.scheme-option.active {
    background-color: rgba(165, 42, 42, 0.05);
    border-color: var(--primary);
}

.scheme-option.active h4 {
    color: var(--primary);
}

/* Amount Presets */
.amount-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.amount-btn {
    flex: 1;
    min-width: 80px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.amount-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.custom-amount-wrapper {
    display: flex;
    align-items: center;
    flex: 2;
    min-width: 150px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 15px;
}

.custom-amount-wrapper span {
    font-weight: 600;
    color: var(--primary);
    margin-right: 5px;
}

.custom-amount-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

/* Devotee Info Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.08);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions.right-align {
    justify-content: flex-end;
}

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

.form-actions.center-align {
    justify-content: center;
}

/* Success View & Receipt */
.success-animation {
    margin: 20px 0;
}

.success-icon {
    font-size: 4rem;
    color: #2E7559;
    animation: scaleUp 0.5s ease-out;
}

@keyframes scaleUp {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-message {
    font-size: 1rem;
    margin-bottom: 30px;
}

.receipt-box {
    background-color: var(--bg-cream);
    border: 2px dashed var(--secondary-dark);
    padding: 25px;
    border-radius: 4px;
    margin: 0 auto 30px auto;
    text-align: left;
    max-width: 450px;
    position: relative;
}

.receipt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.receipt-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.receipt-header h4 {
    font-size: 1.05rem;
    color: var(--primary);
}

.receipt-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.receipt-row.font-large {
    font-size: 1.15rem;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 5px;
}

.receipt-row span {
    color: var(--text-muted);
}

.receipt-row strong {
    color: var(--text-dark);
}

.receipt-row.font-large strong {
    color: var(--primary);
}

.receipt-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-cream);
}

.contact-info-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 25px;
}

.info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.4rem;
    color: var(--primary);
    background-color: rgba(165, 42, 42, 0.05);
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-content p {
    font-size: 0.95rem;
}

.map-container {
    position: relative;
    height: 300px;
    margin-top: 0;
    border-radius: 4px;
    overflow: hidden;
    background-image: linear-gradient(rgba(46, 37, 30, 0.1), rgba(46, 37, 30, 0.1)), url('https://img1.wsimg.com/isteam/ip/static/pwa-app/logo-default.png'); /* Fallback pattern */
    background-color: #E2DBD5;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    text-align: center;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    width: 90%;
    max-width: 350px;
}

.map-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.map-overlay h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.map-overlay p {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.form-success-alert {
    display: none;
    background-color: rgba(46, 117, 89, 0.1);
    color: #2E7559;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer Section */
.main-footer {
    background-color: #1F1914; /* Deep Charcoal Brown */
    color: var(--text-light);
    padding: 60px 0 30px 0;
    border-top: 3px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: var(--font-header);
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-col p {
    color: #A39B94;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col a {
    color: #A39B94;
    font-size: 0.95rem;
}

.links-col a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.contact-col p {
    color: #A39B94;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-col i {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid #2F2722;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #736B65;
    font-size: 0.85rem;
}

/* Satsangam Section */
.satsangam-container {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.satsangam-card {
    background-color: var(--bg-cream);
    padding: 35px 30px;
    border-radius: 4px;
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

.satsangam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background-color: var(--bg-white);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.icon-accent {
    color: var(--secondary-dark);
    font-size: 1.4rem;
}

.spacer {
    margin-top: 40px;
    margin-bottom: 50px;
}

.benefits-block {
    background-color: var(--bg-cream);
    padding: 50px 40px;
    border-radius: 4px;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
}

.benefits-title {
    margin-bottom: 40px;
    font-size: 1.6rem;
    color: var(--primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    display: flex;
    gap: 15px;
}

.benefit-item i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
}

.benefit-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.request-card {
    background-color: rgba(165, 42, 42, 0.03);
    border: 2px dashed var(--secondary);
    padding: 30px 40px;
    border-radius: 4px;
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 50px;
}

.request-icon {
    font-size: 3rem;
    color: var(--primary);
}

.request-card h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.request-card p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.quote-callout {
    text-align: center;
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    padding: 40px 30px;
    border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    margin: 50px 0;
    background-color: rgba(212, 175, 55, 0.03);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .request-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 15px;
    }
    .quote-callout {
        font-size: 1.2rem;
        padding: 30px 15px;
    }
}

/* ==========================================================================
   Responsive Media Queries — Fully Mobile Optimized
   ========================================================================== */

/* ── Tablets & small laptops ── */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-grid .about-col {
        grid-column: span 2;
    }
}

/* ── iPad / landscape phones ── */
@media (max-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reverse-on-mobile .about-image-content {
        order: 2;
    }

    .reverse-on-mobile .about-text-content {
        order: 1;
    }

    .about-img {
        height: 320px;
    }

    .mutt-timings-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid .about-col {
        grid-column: span 1;
    }

    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    /* Contact grid */
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 30px 25px;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Satsangam cards */
    .satsangam-container .grid-2-col {
        gap: 25px;
    }
}

/* ── Mobile phones ── */
@media (max-width: 768px) {

    /* --- Global --- */
    .section-padding {
        padding: 60px 0;
    }

    html {
        scroll-padding-top: 70px; /* Shorter header on mobile */
    }

    .section-title {
        font-size: 1.85rem;
        letter-spacing: 0.5px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .container {
        width: 92%;
    }

    /* --- Header & Nav --- */
    .mobile-nav-toggle {
        display: block;
        order: 3;
        padding: 5px;
        margin-left: 5px;
        flex-shrink: 0;
    }

    .header-container {
        height: 70px;
        gap: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-area {
        order: 1;
        flex: 1;
        min-width: 0;
        gap: 8px;
    }

    .logo-img {
        height: 40px;
        width: 40px;
        flex-shrink: 0;
    }

    .logo-text {
        min-width: 0;
    }

    .mutt-name {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mutt-loc {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lang-switcher {
        order: 2;
        flex-shrink: 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-cream);
        box-shadow: 0 10px 20px rgba(46, 37, 30, 0.1);
        z-index: 999;
        transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 40px 20px;
        overflow-y: auto;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    /* Language switcher on mobile — keep compact */
    .lang-selected-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    #current-lang-label {
        max-width: 55px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lang-dropdown {
        right: 0;
        left: auto;
        width: 170px;
    }

    /* --- Hero Section --- */
    .hero-section {
        background-attachment: scroll; /* Fixed doesn't work well on mobile */
        min-height: 100svh;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .welcome-text {
        font-size: 0.85rem;
        letter-spacing: 2.5px;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
    }

    /* --- About Section --- */
    .about-img {
        height: 260px;
    }

    .image-wrapper {
        padding: 10px;
    }

    .experience-card {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        border-radius: 4px;
    }

    .subsection-title {
        font-size: 1.45rem;
    }

    .paragraph {
        font-size: 0.95rem;
    }

    .legal-badge {
        padding: 15px;
    }

    /* --- Lineage / Timeline --- */
    .lineage-container {
        margin-top: 50px;
    }

    .timeline {
        padding: 10px 0;
        margin-top: 25px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
    }

    /* --- Thulasibaba Section --- */
    .relic-highlight {
        padding: 20px;
    }

    .shadow-effect img {
        height: 260px;
        object-fit: cover;
    }

    /* --- Pooja Timings --- */
    .timing-card {
        padding: 25px 18px;
    }

    .card-inner-title {
        font-size: 1.3rem;
    }

    .timing-table th,
    .timing-table td {
        padding: 14px 10px;
        font-size: 0.85rem;
    }

    .timing-table td strong {
        font-size: 0.95rem;
    }

    .time-highlight {
        font-size: 0.85rem;
    }

    /* --- Media Gallery --- */
    .gallery-filters {
        gap: 8px;
        margin-bottom: 35px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.82rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-image-box {
        height: 220px;
    }

    /* --- Donation Section --- */
    .donation-card {
        padding: 25px 18px;
    }

    .scheme-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .scheme-option {
        flex-direction: row;
        padding: 15px;
        text-align: left;
        gap: 15px;
    }

    .scheme-option i {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .amount-presets {
        gap: 8px;
    }

    .amount-btn {
        padding: 10px 8px;
        font-size: 0.85rem;
        min-width: 60px;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .form-actions.space-between {
        flex-direction: row;
    }

    .step-tracker {
        margin-bottom: 30px;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-step-title {
        font-size: 1.2rem;
    }

    .receipt-box {
        padding: 18px 14px;
    }

    /* --- Contact Section --- */
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 18px;
    }

    .contact-details {
        gap: 20px;
        margin-top: 15px;
    }

    .info-item {
        gap: 12px;
    }

    .map-container {
        height: 220px;
    }

    /* --- Benefits / Satsangam --- */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-block {
        padding: 30px 20px;
    }

    .request-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 18px;
        gap: 12px;
    }

    .quote-callout {
        font-size: 1.1rem;
        padding: 25px 12px;
        margin: 35px 0;
    }

    .satsangam-card {
        padding: 25px 20px;
    }

    /* --- Footer --- */
    .main-footer {
        padding: 45px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .footer-bottom {
        padding-top: 18px;
    }

    .footer-bottom p {
        font-size: 0.78rem;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .welcome-text {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-content {
        padding: 0 5px;
    }

    .mutt-name {
        font-size: 0.9rem;
    }

    .mutt-loc {
        display: none;
    }

    .logo-img {
        height: 35px;
    }

    .about-img {
        height: 220px;
    }

    .donation-card {
        padding: 20px 14px;
    }

    .timing-table th,
    .timing-table td {
        padding: 10px 8px;
        font-size: 0.78rem;
    }

    .contact-info-wrapper {
        padding: 20px 14px;
    }

    .gallery-image-box {
        height: 200px;
    }

    .step-label {
        display: none; /* Hide labels on tiny screens, keep numbers */
    }

    .amount-btn {
        padding: 8px 5px;
        font-size: 0.78rem;
    }

    .scheme-option h4 {
        font-size: 0.85rem;
    }

    .scheme-option p {
        font-size: 0.7rem;
    }

    .form-actions.space-between {
        flex-direction: column;
    }

    .form-actions.space-between .btn {
        width: 100%;
    }

    .receipt-row {
        flex-direction: column;
        gap: 2px;
    }

    .receipt-row strong {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Interactive Lightbox Modal
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000; /* High above sticky header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 8, 0.96);
    backdrop-filter: blur(12px);
    overflow: auto;
    justify-content: center;
    align-items: center;
    animation: lightboxFadeIn 0.3s ease-in-out forwards;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10010;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-slide-container {
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background-color: #0b0705;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.lightbox-slide-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    transition: opacity 0.3s ease;
}

/* Navigation Arrows */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    background-color: rgba(46, 37, 30, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10005;
    outline: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--secondary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Caption Container */
.lightbox-caption-container {
    width: 100%;
    text-align: center;
    padding: 20px 10px;
    color: var(--text-light);
}

.lightbox-caption-container h4 {
    color: var(--secondary);
    font-family: var(--font-header);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.lightbox-caption-container p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    top: -35px;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Cursor style for clickable cards */
.gallery-item {
    cursor: pointer;
}

/* Lightbox Mobile Adjustments */
@media (max-width: 1100px) {
    .lightbox-prev {
        left: 20px;
    }
    .lightbox-next {
        right: 20px;
    }
    .lightbox-slide-container {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.2rem;
    }
    .lightbox-slide-container {
        height: 350px;
    }
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-caption-container h4 {
        font-size: 1.15rem;
    }
    .lightbox-caption-container p {
        font-size: 0.85rem;
    }
}

/* Video Section Styles */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--secondary);
    background: #000;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-cover:hover {
    filter: brightness(1.1);
}

.play-btn-circle {
    width: 75px;
    height: 75px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(165, 42, 42, 0.4);
    transition: var(--transition);
    border: 3px solid var(--secondary);
}

.video-cover:hover .play-btn-circle {
    transform: scale(1.12);
    background-color: var(--secondary);
    border-color: var(--primary);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.play-btn-circle i {
    color: var(--text-light);
    font-size: 2.2rem;
    margin-left: 6px; /* Offset to center triangle play icon visually */
    transition: var(--transition);
}

.video-cover:hover .play-btn-circle i {
    color: var(--primary);
}

/* Responsive Table Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
}

/* Hardware Acceleration & Smooth Rendering for Transitions */
.nav-menu,
.gallery-item img,
.play-btn-circle,
.btn,
.timeline-content {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
}

/* Mobile Tactile Tap Feedback (Active State) */
@media (hover: none) {
    .btn:active {
        transform: scale(0.97) !important;
        opacity: 0.9;
        transition: transform 0.1s ease !important;
    }
    .nav-link:active,
    .gallery-item:active {
        opacity: 0.7;
        transition: opacity 0.1s ease;
    }
}

/* Mobile Menu Staggered Link Fade-in */
@media (max-width: 768px) {
    .nav-menu ul li {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .nav-menu.open ul li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-menu.open ul li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.open ul li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.open ul li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.open ul li:nth-child(4) { transition-delay: 0.20s; }
    .nav-menu.open ul li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.open ul li:nth-child(6) { transition-delay: 0.30s; }
}

/* Small mobile play button adjustment */
@media (max-width: 480px) {
    .play-btn-circle {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    .play-btn-circle i {
        font-size: 1.75rem;
        margin-left: 5px;
    }
}

/* Scroll Reveal Fade-in Styles */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Banner for focused landing pages */
.page-banner {
    position: relative;
    padding: 140px 0 60px 0; /* Space for the fixed sticky header */
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    text-align: center;
    border-bottom: 3px solid var(--secondary);
    z-index: 1;
}

.page-banner-content h1 {
    font-size: 2.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-banner-content p {
    font-size: 1.1rem;
    color: var(--bg-cream);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Explore Mutt grid on index.html */
.explore-mutt-section {
    padding: 80px 0;
    background-color: var(--bg-cream);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.explore-card {
    background-color: var(--bg-white);
    border-top: 4px solid var(--primary);
    border-radius: 4px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.explore-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(165, 42, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--primary);
    font-size: 1.6rem;
    transition: var(--transition);
}

.explore-card:hover .explore-icon-wrapper {
    background-color: var(--primary);
    color: var(--text-light);
    transform: rotateY(180deg);
}

.explore-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.explore-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Page Banner adjustments for mobile */
@media (max-width: 768px) {
    .page-banner {
        padding: 110px 0 45px 0;
    }
    .page-banner-content h1 {
        font-size: 2rem;
    }
    .page-banner-content p {
        font-size: 0.95rem;
    }
}

