/* ===== Global Styles ===== */
:root {
    --primary-color: #C09867;
    --primary-dark: #A67C52;
    --secondary-color: #3E2723;
    --dark-brown: #2C1810;
    --accent-gold: #D4AF37;
    --light-bg: #FBF8F3;
    --dark-bg: #3E2723;
    --text-dark: #2C1810;
    --text-muted: #6D4C41;
    --border-color: #E8DDD0;
    --shadow: 0 4px 12px rgba(62, 39, 35, 0.08);
    --shadow-lg: 0 20px 40px rgba(62, 39, 35, 0.12);
    --shadow-premium: 0 8px 32px rgba(192, 152, 103, 0.15);
}

/* ===== Index Spacing Tightening ===== */
#stats {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

#donate {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

#donate .display-4 {
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    line-height: 1.1;
}

@media (max-width: 576px) {
    #stats {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }
}

body.home-page section.py-5 {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
}

@media (max-width: 576px) {
    body.home-page section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

body.home-page .hero-section h1.display-3 {
    margin-bottom: 1rem !important;
}

body.home-page .hero-section p.lead {
    margin-bottom: 1.25rem !important;
}

body.home-page .hero-section .daily-verse-card.p-4 {
    padding: 1.25rem !important;
}

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

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Prata", Sans-serif;
    font-weight: 600;
}

/* ===== News Ticker ===== */
.news-ticker-wrapper {
    background: #bf9766;
    overflow: hidden;
    position: relative;
}

.news-label {
    font-size: 0.575rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
    padding-right: 1rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    height: 100%;
}

.news-label i {
    font-size: 1rem;
}

.news-label strong {
    font-weight: 700;
    text-transform: uppercase;
}

.news-ticker {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    flex: 1;
    min-width: 0;
}

.news-ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation-name: ticker;
    animation-duration: 60s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    white-space: nowrap;
    will-change: transform;
}

/* Duplicate content for seamless loop - handled by PHP */
.news-ticker-content::after {
    content: none;
}

.news-ticker-content:hover {
    animation-play-state: running;
}

.news-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2.5rem;
    font-size: 0.775rem;
    font-weight: 700;
    white-space: nowrap;
    color: #ffffff;
}

.news-item-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.news-item-text {
    font-weight: 700;
}

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

/* News Ticker Responsive */
@media (max-width: 768px) {
    .news-ticker-wrapper {
        padding: 0.5rem 0;
    }
    
    .news-label {
        font-size: 0.75rem;
        padding-right: 0.75rem;
        margin-right: 0.75rem;
        gap: 0.375rem;
    }
    
    .news-label i {
        font-size: 0.875rem;
    }
    
    .news-separator {
        margin-right: 0.75rem !important;
        height: 20px !important;
    }
    
    .news-item {
        padding: 0 1.5rem;
        font-size: 0.8rem;
    }
    
    .news-item-icon {
        font-size: 1rem;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .news-label {
        font-size: 0.7rem;
        padding-right: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .news-separator {
        margin-right: 0.5rem !important;
        width: 1px !important;
        height: 18px !important;
    }
    
    .news-item {
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    
    .news-item-icon {
        font-size: 0.9rem;
        width: 18px;
        height: 18px;
    }
}

/* Alternative fade animation (can switch between scroll and fade) */
@keyframes tickerFade {
    0%, 100% { opacity: 0; transform: translateY(-10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

/* Quick Info Bar */
.quick-info-bar {
    background: var(--secondary-color);
    font-size: 0.875rem;
}

/* ===== Navigation ===== */
.navbar {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand h5 {
    color: var(--secondary-color);
    font-family: 'Halant', serif;
    font-weight: 700;
}

.navbar-brand small {
    color: var(--text-muted);
}

/* Removed duplicate nav-link styles - now handled in enhanced menu section */

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.93) 0%, rgba(44, 24, 16, 0.70) 50%),
                url('images/slider.jpg') center/cover;
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(192, 152, 103, 0.15), transparent 60%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section .min-vh-75 {
    min-height: 62vh;
}

.hero-section h1.display-3 {
    white-space: nowrap;
    font-size: clamp(1.85rem, 4.2vw, 3.6rem);
    line-height: 1.05;
}

.hero-section .lead {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.35;
}

.hero-section .daily-verse-card {
    border-radius: 18px;
}

.hero-section .daily-verse-card .card-body {
    padding: 1.5rem;
}

.hero-section .daily-verse-card {
    margin-bottom: 1.25rem !important;
}

/* Daily Verse Card */
.daily-verse-card {
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out;
    border-radius: 20px;
    border: 2px solid rgba(192, 152, 103, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-premium);
}

.daily-verse-card .card-body {
    padding: 2rem;
}

.daily-verse-card h6 {
    color: var(--primary-color);
    font-family: 'Halant', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-section .btn-primary {
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(192, 152, 103, 0.4);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(192, 152, 103, 0.5);
}

.hero-section .btn-outline-light {
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.6s backwards;
}

/* ===== Stats Section ===== */
.stat-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(251,248,243,0.9) 100%);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-premium);
}

.stat-card i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Footer Updates ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-brown) 100%);
}

footer h5, footer h6 {
    color: var(--primary-color);
    font-family: 'Halant', serif;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a.text-white-50:hover {
    color: var(--primary-color) !important;
}

/* ===== Section Styling ===== */
.section-title span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Building Pattern ===== */
.building-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(192, 152, 103, 0.3) 50px,
            rgba(192, 152, 103, 0.3) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(192, 152, 103, 0.3) 50px,
            rgba(192, 152, 103, 0.3) 51px
        );
}

/* ===== Card Styles ===== */
.card {
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary-color);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 20px 20px 0 0 !important;
    font-family: 'Halant', serif;
}

/* Premium Card Variant */
.card.premium-card {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--light-bg) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-premium);
}

.card.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== Icon Circle ===== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.1) 0%, rgba(192, 152, 103, 0.05) 100%);
    border: 2px solid rgba(192, 152, 103, 0.2);
    transition: all 0.3s ease;
}

.icon-circle.bg-primary {
    color: #FFFFFF !important;
}

.icon-circle i {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

.icon-circle:hover {
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.2) 0%, rgba(192, 152, 103, 0.1) 100%);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ===== Music Player Styles ===== */
.music-artwork {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.music-artwork::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    opacity: 0.3;
}

#audio-player {
    display: none;
}

#progress-bar {
    cursor: pointer;
    accent-color: var(--primary-color);
}

#progress-bar::-webkit-slider-thumb {
    background: var(--primary-color);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(192, 152, 103, 0.4);
}

#progress-bar::-moz-range-thumb {
    background: var(--primary-color);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(192, 152, 103, 0.4);
}

#volume-control::-webkit-slider-thumb {
    background: var(--primary-color);
}

/* ===== Radio Player Alignment ===== */
#radio .row.justify-content-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#radio #playlist-player,
#radio #live-stream-player {
    display: flex !important;
    justify-content: center;
    width: 100%;
}

#radio .display-5 {
    margin-bottom: 0.25rem;
}

#radio .lead {
    margin-bottom: 0;
}

#radio #playlist-player .card-body,
#radio #live-stream-player .card-body {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#radio .radio-playlist-toggle {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

#radio #radio-playlist-icon {
    font-size: 1.1rem;
}

#radio .radio-player-card {
    border-radius: 14px;
    overflow: hidden;
}

#radio .radio-player-bar {
    display: flex;
    align-items: stretch;
    background: #151a22;
    color: #fff;
    width: 100%;
}

#radio .radio-player-art {
    flex: 0 0 auto;
    padding: 0.9rem;
}

#radio .radio-player-art .radio-artwork {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    border: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

#radio .radio-player-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.9rem 1rem 0.9rem 0;
}

#radio .radio-player-meta {
    margin-bottom: 0.5rem;
}

#radio .radio-player-meta .radio-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

#radio .radio-player-meta .radio-artist {
    color: rgba(255, 255, 255, 0.72);
}

#radio .radio-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

#radio #progress-bar {
    height: 6px;
}

#radio #progress-bar::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

#radio #progress-bar::-webkit-slider-thumb {
    margin-top: -5px;
}

#radio .radio-player-controls {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#radio .radio-controls .btn {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.85);
}

#radio .radio-controls .btn:hover {
    color: #fff;
}

#radio .radio-controls #play-pause-btn {
    width: 40px;
    height: 40px;
}

#radio #volume-control {
    height: 6px;
}

#radio #volume-control::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

#radio .radio-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#radio .radio-volume .form-range {
    flex: 1 1 auto;
}

#radio #playlist-section .card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--border-color);
}

#radio #playlist-section .radio-playlist-toggle {
    color: var(--secondary-color) !important;
    background: transparent !important;
}

#radio #playlist-section .radio-playlist-toggle .h5 {
    font-size: 1rem;
}

@media (max-width: 576px) {
    #radio .radio-now-playing {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #radio .radio-now-playing-left {
        display: flex;
        justify-content: center;
    }

    #radio .radio-title,
    #radio .radio-artist {
        white-space: normal;
    }

    #radio .radio-now-playing-right {
        display: flex;
        justify-content: center;
    }

    #radio .radio-player-bar {
        flex-direction: column;
    }

    #radio .radio-player-art {
        padding: 0.9rem 0.9rem 0.25rem 0.9rem;
        display: flex;
        justify-content: center;
    }

    #radio .radio-player-main {
        padding: 0.5rem 0.9rem 0.9rem 0.9rem;
    }

    #radio .radio-volume .form-range {
        width: 100%;
        max-width: 220px;
    }
}

#radio #playlist-player .col-lg-8,
#radio #live-stream-player .col-lg-8 {
    margin-left: auto;
    margin-right: auto;
}

#radio #playlist-player .card-body,
#radio #live-stream-player .card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#radio .text-center {
    width: 100%;
}

#radio .music-artwork {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#radio #current-song-title,
#radio #current-song-artist {
    text-align: center;
    width: 100%;
}

#radio #current-song-title {
    font-size: 1.15rem;
    line-height: 1.25;
}

#radio #current-song-artist {
    font-size: 0.9rem;
}

#radio #progress-bar {
    width: 100%;
    margin: 0 auto;
}

#radio .d-flex.justify-content-center {
    width: 100%;
}

#radio .btn-lg.rounded-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#volume-control::-moz-range-thumb {
    background: var(--primary-color);
}

.playlist-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

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

.playlist-item:hover {
    background-color: #f8f9fa;
}

.playlist-item.active {
    background-color: #e9ecef;
    border-left: 4px solid #0d6efd;
    border-bottom: 1px solid #0d6efd;
}

.playlist-item.active h6 {
    color: #0d6efd;
    font-weight: 700;
}

.playlist-item.active small {
    color: #6c757d;
}

.playlist-artwork {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playlist-play-icon {
    color: var(--primary-color) !important;
    transition: transform 0.2s ease;
}

.playlist-item:hover .playlist-play-icon {
    transform: scale(1.1);
}

/* ===== Calendar Styles ===== */
#calendar {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    border: 2px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Events Section - Prevent Overflow */
#events {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

#events .container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

#events .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

#events .events-cta {
    margin-top: 0.25rem;
}

#events .events-cta .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
    min-width: 190px;
}

#events .events-cta .btn.btn-primary {
    background: #6d0101;
    border-color: #6d0101;
}

#events .events-cta .btn.btn-primary:hover,
#events .events-cta .btn.btn-primary:focus {
    background: #6d0101;
    border-color: #6d0101;
}

#events .events-cta .btn.btn-outline-primary {
    border-color: #6d0101;
    color: #6d0101;
}

#events .events-cta .btn.btn-outline-primary:hover {
    background: #6d0101;
    border-color: #6d0101;
    color: #fff;
}

@media (max-width: 576px) {
    #events .events-cta {
        gap: 0.75rem !important;
    }

    #events .events-cta .btn {
        width: 100%;
        min-width: 0;
        max-width: 420px;
    }
}

.fc {
    font-family: 'Sora', sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

/* FullCalendar Container */
.fc-view-harness {
    overflow-x: hidden !important;
    max-width: 100%;
}

.fc-scroller {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.fc-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(192, 152, 103, 0.3) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Prevent toolbar buttons from overlapping */
.fc-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.fc-toolbar-chunk {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.fc-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    transform: translateY(-2px);
}

.fc-button-active {
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-color)) !important;
}

.fc-event {
    border: none;
    border-radius: 8px;
    padding: 2px 4px;
    font-weight: 500;
}

.fc-daygrid-day-number {
    color: var(--text-dark);
    font-weight: 600;
}

.fc-col-header-cell {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--secondary-color);
}

.fc-day-today {
    background-color: rgba(192, 152, 103, 0.08) !important;
}

/* ===== Donation Section Premium Styling ===== */
#donate {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
}

#donate .border-white {
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px;
    transition: all 0.3s ease;
}

#donate .border-white:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

#donate .progress {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#donate .progress-bar {
    background: linear-gradient(90deg, var(--accent-gold), #FFD700, var(--accent-gold));
}

/* ===== Premium Input Styling ===== */
.form-control::placeholder,
.form-select::placeholder {
    color: rgba(109, 76, 65, 0.5);
}

/* ===== Playlist Styling ===== */
.playlist-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 0.25rem 0;
}

.playlist-item:hover {
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.08), rgba(192, 152, 103, 0.04));
    transform: translateX(8px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.15), rgba(192, 152, 103, 0.08));
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.playlist-item i {
    color: var(--primary-color);
}

/* ===== Music Artwork Enhancement ===== */
.music-artwork img {
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(192, 152, 103, 0.3);
    transition: all 0.3s ease;
}

.music-artwork img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(192, 152, 103, 0.4);
}

.music-artwork::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    opacity: 0.2;
}

/* Center player control icons inside circular buttons */
#prev-btn,
#next-btn,
#play-pause-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Make all three main controls consistent circular size */
#prev-btn,
#next-btn {
    width: 70px;
    height: 70px;
}

/* ===== Modern Instagram Gallery (Feed Embed) ===== */
#gallery {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.instagram-feed-wrapper {
    margin: 2rem 0;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    animation: fadeIn 0.8s ease-in;
}

/* Ensure Instagram feed is responsive */
.instagram-feed-wrapper iframe,
.instagram-feed-wrapper embed,
.instagram-feed-wrapper object {
    max-width: 100%;
    width: 100%;
}

/* Style for Instagram embed containers */
.instagram-feed-wrapper .instagram-media,
.instagram-feed-wrapper blockquote {
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Grid layout for multiple posts if using embed.js */
.instagram-feed-wrapper .instagram-media {
    margin-bottom: 1.5rem !important;
}

/* Instagram button styling */
#gallery .btn-primary {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(227, 64, 95, 0.3);
    transition: all 0.3s ease;
}

#gallery .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 64, 95, 0.4);
    background: linear-gradient(135deg, #f0546e 0%, #d13f96 50%, #9548c8 100%);
}

#gallery .btn-primary i {
    font-size: 1.2rem;
}

/* Fade-in animation for loaded content */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Admin gallery preview styling */
.instagram-post-preview img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Enhanced Navigation Menu Styles ===== */
.navbar {
    padding: 0.875rem 0;
    box-shadow: 0 2px 20px rgba(62, 39, 35, 0.08);
    border-bottom: 1px solid rgba(192, 152, 103, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 24px rgba(62, 39, 35, 0.12);
}

.navbar-brand {
    padding: 0.5rem 0;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 0.125rem;
    align-items: center;
    font-family: 'Sora', sans-serif;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.625rem 1.125rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    margin: 0 0.125rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(192, 152, 103, 0.05);
    transform: translateY(-1px);
}

/* Dropdown Toggle Arrow Animation */
.dropdown-toggle .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    vertical-align: middle;
}

.dropdown-hover:hover .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

/* Hide Bootstrap default arrow */
.dropdown-toggle::after {
    display: none !important;
}

/* ===== Hover-Based Dropdown Menu Styles ===== */
.navbar-nav .dropdown-hover {
    position: relative;
}

.navbar-nav .dropdown-hover > .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 12px 40px rgba(62, 39, 35, 0.18);
    border-radius: 14px;
    margin-top: 0.875rem;
    padding: 0.875rem 0;
    min-width: 240px;
    background: #ffffff;
    border-top: 3px solid var(--primary-color);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    overflow: visible;
}

.navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.navbar-nav .dropdown-hover:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Items Styling */
.navbar-nav .dropdown-item {
    padding: 5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.925rem;
    position: relative;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    line-height: 1.5;
}

.navbar-nav .dropdown-item i {
    margin-right: 0.75rem;
    width: 18px;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.navbar-nav .dropdown-item:hover i {
    transform: translateX(4px);
}

.navbar-nav .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(192, 152, 103, 0.1), transparent);
    transition: width 0.25s ease;
}

.navbar-nav .dropdown-item:hover::before {
    width: 100%;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(192, 152, 103, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.75rem;
    transform: translateX(4px);
}

/* Nested dropdowns (if needed for future) */
.navbar-nav .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.75rem;
    margin-left: 0.5rem;
    z-index: 1100;
}

.navbar-nav .dropdown-menu .dropdown-hover {
    position: relative;
}

.navbar-nav .dropdown-menu .dropdown-hover:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.navbar-nav .dropdown-menu .dropdown-hover::after {
    content: '';
    position: absolute;
    top: 0;
    right: -0.5rem;
    width: 0.75rem;
    height: 100%;
}

/* Donate Button Enhancement */
.navbar-nav .btn-primary {
    border-radius: 50px;
    padding: 0.625rem 1.75rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(192, 152, 103, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.5rem;
    position: relative;
    overflow: hidden;
}

.navbar-nav .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.navbar-nav .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.navbar-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(192, 152, 103, 0.4);
}

/* Mobile menu dropdown support */
@media (max-width: 991px) {
    .navbar-nav .dropdown-hover .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 1.5rem;
        margin-top: 0.5rem;
        padding-left: 1rem;
        border-top: none;
        border-radius: 0;
        background: rgba(192, 152, 103, 0.03);
    }
    
    .navbar-nav .dropdown-item {
        padding-left: 2.5rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        padding-left: 2.75rem;
    }
    
    .dropdown-toggle .dropdown-arrow {
        transform: rotate(0deg) !important;
    }
    
    /* Mobile: Use click toggle instead of hover */
    .navbar-nav .dropdown-hover .dropdown-menu {
        display: none;
    }
    
    .navbar-nav .dropdown-hover.show .dropdown-menu {
        display: block;
    }
}

/* Old gallery styles kept for backwards compatibility */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-premium);
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(62, 39, 35, 0.95), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Halant', serif;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Section Title Styling ===== */
.section-title span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    border-radius: 2px;
}

.section-title h2 {
    color: #996423;
    font-weight: 700;
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    display: none;
    z-index: 1000;
    border: none;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    box-shadow: 0 6px 20px rgba(192, 152, 103, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 30px rgba(192, 152, 103, 0.5);
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-color));
}

#back-to-top.show {
    display: flex;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== Bootstrap Overrides ===== */
.btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Sora', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 0.625rem 1.75rem;
    box-shadow: 0 4px 12px rgba(192, 152, 103, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 152, 103, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(192, 152, 103, 0.25);
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--primary-color);
}

/* ===== Calendar View Toggle Buttons ===== */
/* Style the button group container */
#events .btn-group[role="group"] {
    display: inline-flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Base styles for toggle buttons */
#events .btn-check + .btn-outline-primary {
    background: white;
    border: 1px solid #bf9766;
    color: #bf9766;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0;
    white-space: nowrap;
}

/* First button (Month View) - rounded left */
#events #month-view + label {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
    border-right: none !important;
}

/* Second button (List View) - rounded right */
#events #list-view + label {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
    border-left: 1px solid #bf9766 !important;
}

/* Active/Selected state - brown gradient with light blue glow */
#events .btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #bf9766 0%, #8B6F47 100%);
    border-color: #bf9766;
    color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
    position: relative;
}

/* Icon colors in inactive state */
#events .btn-check:not(:checked) + .btn-outline-primary i {
    color: #bf9766;
}

/* Icon colors in active state */
#events .btn-check:checked + .btn-outline-primary i {
    color: white;
}

/* Hover state for inactive buttons */
#events .btn-check:not(:checked) + .btn-outline-primary:hover {
    background: rgba(191, 151, 102, 0.1);
    border-color: #bf9766;
    color: #8B6F47;
}

.badge {
    border-radius: 50px;
    padding: 0.4em 0.8em;
    font-weight: 600;
}

.alert {
    border-radius: 16px;
    border: none;
}

/* ===== Progress Bar ===== */
.progress {
    background-color: rgba(192, 152, 103, 0.15);
    border-radius: 50px;
    height: 14px;
    overflow: visible;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold), var(--primary-color));
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    border-radius: 50px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: white;
    border-radius: 50px;
    opacity: 0.5;
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 6px;
    border: 2px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-gold), var(--primary-color));
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 75vh;
    }

    .hero-section .min-vh-75 {
        min-height: 55vh;
    }
    
    .display-3 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Events Section Mobile Fixes */
    #events {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #calendar {
        padding: 10px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* FullCalendar Mobile Responsive */
    .fc {
        font-size: 0.75rem !important;
    }
    
    .fc-toolbar {
        flex-direction: column !important;
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
    }
    
    .fc-toolbar-chunk {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .fc-toolbar-chunk:first-child {
        order: 2;
    }
    
    .fc-toolbar-chunk:nth-child(2) {
        order: 1;
        width: 100%;
    }
    
    .fc-toolbar-chunk:last-child {
        order: 3;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem !important;
        margin: 0.5rem 0 !important;
        white-space: normal !important;
        word-break: break-word !important;
        text-align: center !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .fc-button {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        margin: 0.125rem !important;
        flex-shrink: 0 !important;
    }
    
    .fc-button-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .fc-button-group .fc-button {
        margin: 0.125rem !important;
    }
    
    .fc-prev-button,
    .fc-next-button,
    .fc-today-button {
        min-width: 44px !important;
        height: 36px !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    .fc-col-header,
    .fc-daygrid-day {
        min-width: 0 !important;
        overflow: hidden !important;
        width: auto !important;
    }
    
    .fc-daygrid-day-frame {
        overflow: hidden !important;
        max-width: 100% !important;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.7rem !important;
        padding: 2px 4px !important;
    }
    
    .fc-event {
        font-size: 0.65rem !important;
        padding: 1px 2px !important;
        margin: 1px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    .fc-event-title {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .fc-daygrid-day-top {
        flex-direction: row !important;
    }
    
    /* Prevent calendar from causing horizontal scroll */
    .calendar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .fc-scroller-liquid-absolute {
        overflow-x: hidden !important;
    }
    
    /* Event Cards Mobile */
    #upcoming-events {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #upcoming-events > .col-lg-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        margin-bottom: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* Calendar View Toggle Mobile */
    #events .btn-group {
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    #events .btn-group .btn {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    #calendar {
        padding: 8px;
    }
    
    .fc-toolbar {
        gap: 0.5rem !important;
        padding: 0.25rem 0 !important;
    }
    
    .fc-toolbar-chunk {
        gap: 0.375rem !important;
        width: 100% !important;
    }
    
    .fc-toolbar-title {
        font-size: 0.95rem !important;
        margin: 0.25rem 0 !important;
    }
    
    .fc-button {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        margin: 0.125rem !important;
    }
    
    .fc-prev-button,
    .fc-next-button,
    .fc-today-button {
        min-width: 40px !important;
        height: 32px !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    
    .fc-button-group {
        gap: 0.125rem !important;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.65rem !important;
    }
    
    .fc-event {
        font-size: 0.6rem !important;
    }
    
    #events .display-5 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.75rem;
    }
    
    .navbar-brand h5 {
        font-size: 1rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .top-bar,
    #back-to-top,
    footer {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ===== Accessibility ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Loading States ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Donation Amount Buttons ===== */
.btn-check:checked + label {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* ===== Event Cards ===== */
.card-header {
    border-bottom: none;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ===== Custom Radio/Checkbox ===== */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Social Links ===== */
.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold)) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 16px rgba(192, 152, 103, 0.4);
}

/* ===== Alert Styles ===== */
.alert {
    border: none;
    border-radius: 8px;
}

/* ===== Live Stream Alert ===== */
.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* ===== Form Styles ===== */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
}

/* ===== Page Content Styles ===== */
/* ===== Page Content Styles ===== */
.page-header {
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    color: var(--primary-color);
    line-height: 1.15;
    white-space: nowrap;
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Page Content Styles ===== */
.page-header {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--primary-color);
    line-height: 1.15;
    white-space: nowrap;
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    font-family: 'Prata', serif;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.page-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.page-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.page-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.page-content em {
    color: var(--text-muted);
    font-style: italic;
}

.page-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2.5rem 0;
}

.page-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.page-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.page-content ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.page-content ol {
    counter-reset: item;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 1.5rem;
    list-style: none; /* Remove default browser numbering */
}

.page-content ol li {
    counter-increment: item;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2.5rem; /* Space for the counter */
}

.page-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    width: 2rem;
    text-align: right;
    padding-right: 0.5rem;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-content a:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-dark);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-content img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    background-color: var(--light-bg);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.page-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: "Prata", serif;
}

.page-content code {
    background: var(--light-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.page-content pre {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.page-content pre code {
    background: transparent;
    padding: 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-radius: 8px;
}

.page-content table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.page-content table tbody tr {
    transition: background-color 0.2s ease;
}

.page-content table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
}

.page-content table tbody tr:hover {
    background-color: rgba(192, 152, 103, 0.1);
}

.page-content table th,
.page-content table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-content table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ===== Accordion Styles for Page Content ===== */
.page-content .accordion {
    margin: 2rem 0;
}

.page-content .accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fffaf4;
    transition: all 0.3s ease;
}

.page-content .accordion-item:hover {
    border-color: rgba(192, 152, 103, 0.9);
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.12);
}

.page-content .accordion-item:first-of-type {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.page-content .accordion-item:last-of-type {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-bottom: 0;
}

.page-content .accordion-button {
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.14), rgba(255, 255, 255, 0.85));
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    position: relative;
    transition: all 0.3s ease;
}

.page-content .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.22), rgba(255, 250, 244, 0.95));
    color: var(--primary-color);
    box-shadow: none;
}

.page-content .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C09867'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.page-content .accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(192, 152, 103, 0.22);
    z-index: 3;
}

.page-content .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232C1810'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.page-content .accordion-body {
    padding: 1.5rem;
    background-color: #fffdf9;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.page-content .accordion-body p:last-child {
    margin-bottom: 0;
}

/* Accordion with icons */
.page-content .accordion-button i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.page-content .accordion-button:not(.collapsed) i {
    color: var(--primary-color);
}

/* Panel-style accordion CSS (legacy .panel-group/.panel markup) */
.page-content .panel-group {
    margin: 2rem 0;
}

.page-content .panel-group .panel {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #fffaf4;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.page-content .panel-group .panel:hover {
    border-color: rgba(192, 152, 103, 0.9);
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.12);
}

.page-content .panel-group .panel-heading {
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.14), rgba(255, 255, 255, 0.85));
    padding: 0;
}

.page-content .panel-group .panel-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.page-content .panel-group .panel-title > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
}

.page-content .panel-group .panel-title > a:hover {
    color: var(--primary-color);
}

.page-content .panel-group .panel-title > a:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(192, 152, 103, 0.22);
}

.page-content .panel-group .panel-title > a::after {
    content: '';
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232C1810'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.page-content .panel-group .panel-title > a[aria-expanded="true"] {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(192, 152, 103, 0.22), rgba(255, 250, 244, 0.95));
}

.page-content .panel-group .panel-title > a[aria-expanded="true"]::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C09867'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.page-content .panel-group .panel-collapse,
.page-content .panel-group .panel-body {
    background-color: #fffdf9;
}

.page-content .panel-group .panel-body {
    padding: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* Page content responsive adjustments */
@media (max-width: 768px) {
    .page-content {
        font-size: 1rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
    
    .page-content h2 {
        font-size: 1.75rem;
    }
    
    .page-content h3 {
        font-size: 1.5rem;
    }
    
    .page-content ul,
    .page-content ol {
        padding-left: 1.5rem;
    }
    
    .page-content ul li {
        padding-left: 1.5rem;
    }
    
    .page-content table {
        font-size: 0.9rem;
    }
    
    .page-content table th,
    .page-content table td {
        padding: 0.75rem;
    }
    
    .page-content .accordion-button {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .page-content .accordion-body {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
}

/* ===== Video Container ===== */
.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Gallery Styles ===== */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .position-absolute {
    background: rgba(0, 0, 0, 0.5) !important;
}

.gallery-item:hover .bi-zoom-in {
    opacity: 1 !important;
}

/* GLightbox Customization */
.glightbox-clean .gslide-description {
    background: rgba(62, 39, 35, 0.95);
    color: white;
    padding: 1rem;
    border-radius: 8px;
}

.glightbox-clean .gslide-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== Leadership Team Period Selector ===== */
#periodTabs {
    background-color: var(--secondary-color) !important;
}

#periodTabs .nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white !important;
    background-color: transparent !important;
}

#periodTabs .nav-link:hover {
    background-color: rgba(220, 53, 69, 0.3) !important;
    border-color: rgba(220, 53, 69, 0.5) !important;
    color: white !important;
    transform: translateY(-2px);
}

#periodTabs .nav-link.active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* ===== Leadership Team Year Filter Dropdown ===== */
#yearFilter {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    background-color: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

#yearFilter:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(62, 39, 35, 0.1);
}

#yearFilter:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(192, 152, 103, 0.25);
    outline: none;
}

#yearFilter option {
    padding: 0.5rem;
    font-weight: 600;
}

/* Leadership Team Cards */
.leadership-card {
    transition: all 0.3s ease;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.15) !important;
}

.blockquote-footer {

    background: none !important;
}
