@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Ethiopic:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --accent-gold: #B8860B;
    --accent-gold-light: #DAA520;
    --accent-burgundy: #5C1A1A;
    --accent-burgundy-deep: #3D0F0F;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --border-color: #eeeeee;
    --transition: all 0.3s ease;
    --max-width: 100%;
    --header-height: 80px;
    --brana-color: #f4e4bc;
}

.brana-bg {
    background-image: url('../images/brana_bg.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.brana-card {
    background-image: url('../images/brana_bg.png');
    background-size: cover;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(184, 134, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.brana-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.ornamental-divider {
    height: 80px;
    background-image: url('../images/ethiopian_border.png');
    background-size: contain;
    background-repeat: repeat-x;
    background-position: center;
    margin: 3rem 0;
    opacity: 0.8;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--primary-color);
    overflow-x: hidden;
}

/* Language Specific Styling */
body.lang-am {
    font-family: 'Noto Sans Ethiopic', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    font-weight: 700;
}

body.lang-am h1,
body.lang-am h2,
body.lang-am h3,
body.lang-am h4,
body.lang-am h5,
body.lang-am h6 {
    font-family: 'Noto Sans Ethiopic', sans-serif;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

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

@media (max-width: 768px) {

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

/* Header & Navigation */
.site-header {
    height: var(--header-height);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo-text .main-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-burgundy);
    line-height: 1.2;
}

.logo-text .sub-title {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item {
    position: relative;
    padding: 1rem 0;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--accent-gold);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 4px;
    padding: 1rem 0;
}

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

.dropdown-right {
    left: auto;
    right: 0;
}

.dropdown-header {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--accent-gold);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 5px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent-burgundy);
    color: white;
}

/* User Profile Button */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.user-profile-btn:hover {
    background: white;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.avatar-small {
    width: 28px;
    height: 28px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-burgundy);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--accent-burgundy);
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--accent-burgundy);
    color: white;
}

/* Give Button Refined */
.btn-give {
    background: linear-gradient(135deg, #B8860B 0%, #5C1A1A 100%);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(92, 26, 26, 0.25);
    border: none;
    transition: var(--transition);
}

.btn-give:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(92, 26, 26, 0.35);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: var(--header-height);
    background-color: var(--secondary-color);
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('../images/ethiopian_border.png');
    background-size: contain;
    background-repeat: repeat-x;
    z-index: 5;
    opacity: 0.7;
}

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

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

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-burgundy);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Service Schedule */
.schedule-section {
    padding: 80px 0;
    background: white;
}

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

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

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 0 auto 1.5rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-table th {
    background: var(--accent-burgundy);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background: var(--bg-light);
}

@media (max-width: 768px) {

    .schedule-table,
    .schedule-table thead,
    .schedule-table tbody,
    .schedule-table th,
    .schedule-table td,
    .schedule-table tr {
        display: block;
    }

    .schedule-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .schedule-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 1.5rem;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }

    .schedule-table td {
        border: none;
        border-bottom: 1px solid #f5f5f5;
        position: relative;
        padding-left: 45% !important;
        text-align: right;
        min-height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .schedule-table td:last-child {
        border-bottom: none;
    }

    .schedule-table td:before {
        position: absolute;
        top: 50%;
        left: 1.5rem;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--accent-burgundy);
        transform: translateY(-50%);
        content: attr(data-label);
        font-size: 0.85rem;
        text-transform: uppercase;
    }
}

.schedule-category {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.schedule-category h3 {
    color: var(--accent-burgundy);
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.schedule-subtitle {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* About Patron Section */
.patron-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.patron-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.patron-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.btn-sticky {
    background: var(--accent-burgundy);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(92, 26, 26, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}


.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.footer-col ul {
    margin: 0;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-gold);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Navigation Adjustments */
@media (max-width: 1400px) {
    .container {
        padding: 0 1.5rem;
    }

    .main-nav {
        gap: 1rem;
    }

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

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

@media (max-width: 1250px) {
    .main-nav {
        gap: 0.8rem;
    }

    .nav-controls {
        gap: 0.7rem;
        margin-left: 1rem;
        padding-left: 1rem;
    }

    .btn-give {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .user-name {
        display: none;
    }

    .user-profile-btn {
        padding: 6px;
    }
}

@media (max-width: 1100px) {
    /* Adjustments for tight desktop screens can be added here */
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

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

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

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

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

/* Notice Section */
.notice-section {
    position: relative;
    overflow: hidden;
}

.notice-item {
    padding-left: 20px;
    border-left: 3px solid var(--accent-gold);
}

.notice-section::before {
    content: '✠';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 15rem;
    color: rgba(92, 26, 26, 0.03);
    pointer-events: none;
}

/* Video Columns */
.video-card {
    transition: var(--transition);
}

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

/* Scroll Animation Helper */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Typography Enhancements */
.geez-text {
    font-family: 'Noto Sans Ethiopic', sans-serif;
    letter-spacing: 0.5px;
}

/* Mobile Navigation Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--accent-burgundy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: white;
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: white;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(86, 28, 36, 0.98);
    /* Deep Burgundy */
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-close-btn:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}

.mobile-nav-content {
    text-align: center;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem 0;
}

.mobile-nav-link {
    display: block;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    margin: 1.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-group {
    margin: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.mobile-group-title {
    display: block;
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-sub-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    text-decoration: none;
    margin: 0.8rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-sub-link:hover {
    color: var(--accent-gold);
}

.mobile-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-give {
    display: inline-block;
    background: var(--accent-gold);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lang-toggle-mobile {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {

    .main-nav .nav-item,
    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .logo-area img {
        height: 40px !important;
    }

    .main-title {
        font-size: 1rem !important;
    }
}

.ethiopian-border {
    width: 100%;
    height: auto;
    display: block;
    max-height: 100px;
    object-fit: cover;
    margin-bottom: 0;
}

/* Sunday School Styles */
.grade-card {
    transition: var(--transition);
}

.grade-card:hover {
    transform: translateY(-10px);
}

.lesson-item {
    transition: var(--transition);
    border: 1px solid transparent;
}

.lesson-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

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

.age-badge {
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Calendar Visual Representation Styles */
.calendar-visual-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-bottom: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: #fff;
}

.calendar-day:hover {
    background: var(--bg-light);
    border-color: var(--accent-gold);
    transform: scale(1.02);
    z-index: 10;
}

.calendar-day.has-event {
    border-top: 3px solid var(--accent-gold);
}

.calendar-day.today {
    background: #fffdf5;
    border: 2px solid var(--accent-gold);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.day-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.event-indicator-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    margin-top: 5px;
}

.event-indicator {
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 3px;
    background: #f0f0f0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.indicator-weekly {
    background: #fee2e2;
    color: #991b1b;
}

.indicator-monthly {
    background: #fef3c7;
    color: #92400e;
}

.indicator-annual {
    background: #dcfce7;
    color: #166534;
}

.indicator-learning {
    background: #e0f2fe;
    color: #0369a1;
}

/* Reminder Modal Styles */
.reminder-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reminder-modal.active {
    display: flex;
    opacity: 1;
}

.reminder-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.reminder-modal.active .reminder-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .calendar-visual-container {
        padding: 1rem;
        overflow-x: auto;
    }

    .calendar-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .calendar-header>div:first-child {
        gap: 0.8rem !important;
    }

    .calendar-header h3 {
        font-size: 1.2rem;
        min-width: 120px !important;
    }

    .calendar-header button {
        width: 32px !important;
        height: 32px !important;
    }

    .calendar-grid {
        gap: 4px;
        min-width: 300px;
        /* Prevent total collapse */
    }

    .calendar-day-header {
        font-size: 0.7rem;
        padding-bottom: 0.5rem;
    }

    .calendar-day {
        padding: 4px;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .event-indicator {
        font-size: 0.45rem;
        padding: 1px;
        max-height: 12px;
        line-height: 1;
    }

    .reminder-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .reminder-modal-content h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .calendar-header h3 {
        font-size: 1rem;
    }

    .event-indicator-list {
        display: none;
        /* Hide text on very small screens, just use dot */
    }

    .calendar-day.has-event::after {
        content: '';
        width: 4px;
        height: 4px;
        background: var(--accent-gold);
        border-radius: 50%;
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
    }
}
/* ===== Simplified header and footer (website checklist, section 2) ===== */
.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-burgundy);
    color: var(--accent-burgundy);
    font-size: 0.9rem;
    transition: var(--transition);
}
.login-icon:hover { background: var(--accent-burgundy); color: white; }

.footer-grid--3 { grid-template-columns: repeat(3, 1fr); }
.footer-links { list-style: none; padding: 0; }
.footer-links a,
.footer-contact a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--accent-gold); }
.footer-links i,
.footer-contact i { color: var(--accent-gold); width: 1.2em; }
.footer-contact { line-height: 2; }
.footer-member-links { margin-bottom: 0.6rem; }
.footer-member-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
@media (max-width: 768px) {
    .footer-grid--3 { grid-template-columns: 1fr; }
}

/* ===== Home page, six sections (website checklist, section 3) ===== */
.home-hero__slides { position: absolute; inset: 0; }
.home-hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.home-hero__slide.is-active { opacity: 1; }
.home-section { padding: 70px 0; background: #fff; }
.home-section--cream { background: #fdfaf3; }
.home-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; text-align: center; margin-bottom: 2rem; color: var(--accent-burgundy-deep); }
.home-title--left { text-align: left; }
.home-more { display: inline-block; margin-top: 1.5rem; font-weight: 700; color: var(--accent-burgundy); text-decoration: none; }
.home-section .container > .home-more { display: block; text-align: center; }
.service-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.service-card { background: #fff; border: 1px solid #efe4cc; border-top: 4px solid var(--accent-gold); border-radius: 10px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; }
.service-card__day { font-weight: 700; color: var(--accent-burgundy); }
.service-card__time { font-size: 1.15rem; font-weight: 700; color: var(--secondary-color); }
.service-card__name { color: #555; }
.feast-list { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; }
.feast-list__item { display: flex; gap: 1.2rem; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px dashed #e5d8bb; }
.feast-list__date { flex: 0 0 72px; font-weight: 800; color: var(--accent-burgundy); }
.feast-list__name { font-size: 1.05rem; }
.home-welcome { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.home-welcome__photo { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 4 / 3; }
.home-welcome p { font-size: 1.1rem; line-height: 1.9; }
.home-video { max-width: 860px; text-align: center; }
.home-video__frame { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.home-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-video__caption { margin-top: 1rem; color: #555; }
.home-video__caption a { color: var(--accent-burgundy); font-weight: 700; text-decoration: none; }
.home-give { background: linear-gradient(90deg, var(--accent-burgundy-deep), #5c1a1a); color: #fff; padding: 40px 0; }
.home-give__inner { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; text-align: center; }
.home-give__inner p { margin: 0; font-size: 1.2rem; font-family: 'Playfair Display', serif; }
@media (max-width: 768px) {
    .home-welcome { grid-template-columns: 1fr; }
    .home-title, .home-title--left { text-align: center; }
}

/* ===== Schedule page ===== */
.schedule-block { margin-bottom: 3.5rem; }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-list li { display: flex; gap: 1.5rem; padding: 0.9rem 0; border-bottom: 1px dashed #e5d8bb; }
.schedule-list__name { flex: 1; font-weight: 600; }
.schedule-list__time { color: var(--accent-burgundy); font-weight: 700; text-align: right; }
@media (max-width: 600px) {
    .schedule-list li { flex-direction: column; gap: 0.2rem; }
    .schedule-list__time { text-align: left; }
}

/* Plain title band for text pages (instead of a stock-photo hero) */
.title-band { background: linear-gradient(135deg, var(--accent-burgundy-deep), #5c1a1a); color: #fff; padding: 56px 0 44px; text-align: center; }
.title-band h1 { font-family: 'Playfair Display', serif; color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.5rem; }
.title-band p { margin: 0; opacity: 0.85; }
/* Home hero: the photos without a frame or border band (checklist) */
.home-hero::after { display: none; }
.home-hero { height: 78vh; max-height: 760px; min-height: 480px; }
.service-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1000px; margin: 0 auto; }
