/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #2C1810;
    --background: #FFF8F0;
    --text-dark: #2C1810;
    --text-light: #666;
    --border-color: #E8D5C4;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Multiple Masses in Single Card */
.multiple-masses {
    margin-top: 1rem;
}

.mass-time-slot {
    padding: 1rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

    .mass-time-slot:first-child {
        margin-top: 0;
    }

    .mass-time-slot:last-child {
        margin-bottom: 0;
    }

.mass-time-multiple {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0 0 0.25rem 0;
}

.mass-type-small {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.25rem 0;
}
.catechism-alert {
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

    .catechism-alert.cancelled {
        background: #f8d7da;
        color: #721c24;
        border-left: 4px solid #dc3545;
    }

    .catechism-alert.time-change {
        background: #fff3cd;
        color: #856404;
        border-left: 4px solid #ffc107;
    }
.mass-notes-small {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0.25rem 0 0 0;
}

/* Adjust card height for multiple masses */
.mass-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.cross-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
}

.nav-brand p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }

        .nav-menu a:hover {
            background: rgba(255,255,255,0.1);
            color: var(--secondary-color);
        }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.7)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path fill="%238B4513" d="M0,200 Q300,100 600,200 T1200,200 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 6rem 2rem;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-style: italic;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: var(--secondary-color);
    }

/* Mass Timings */
.mass-timings-section {
    margin-bottom: 4rem;
}

.mass-timings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mass-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

    .mass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .mass-card h3 {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

.mass-time {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

.mass-type {
    color: var(--text-light);
    font-size: 0.95rem;
}

.mass-notes {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.special-note {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

    .special-note p {
        margin: 0.5rem 0;
    }

/* Announcements */
.announcements-section {
    margin-bottom: 4rem;
}

.announcements-grid {
    display: grid;
    gap: 1.5rem;
}

.announcement-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary-color);
}

    .announcement-card h3 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

.announcement-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Events */
.events-section {
    margin-bottom: 4rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    transition: transform 0.3s ease;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.event-date {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.event-day {
    font-size: 2rem;
    font-weight: bold;
}

.event-month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    padding: 1.5rem;
    flex: 1;
}

    .event-details h3 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

.event-time, .event-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-secondary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-danger-small {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

    .page-header h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

/* Forms */
.registration-form, .contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--text-dark);
    }

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.family-member-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

    .contact-item h3 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

/* History Page */
.history-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.history-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.history-content h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Admin Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

    .dashboard-card h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

.dashboard-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

    .admin-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .admin-table th {
        background: var(--primary-color);
        color: white;
        padding: 1rem;
        text-align: left;
    }

    .admin-table td {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-table tr:hover {
        background: #f8f9fa;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .mass-timings-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}
/* Add these new styles to your existing site.css */

/* Mass Card Updates */
.mass-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
    position: relative;
}

    .mass-card.today {
        border-top: 4px solid #28a745;
        background: linear-gradient(to bottom, #f0fff4 0%, white 20%);
    }

    .mass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.day-badge {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.date-badge {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.today-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.mass-time {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

.mass-type {
    color: var(--text-light);
    font-size: 0.95rem;
}

.mass-notes {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}
/* Admin Form Styles */
.admin-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-form {
    width: 100%;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge-success {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
}
/* Mobile Navigation Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

/* Event Year Display */
.event-year {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.3);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }

        .nav-menu.active {
            left: 0;
        }

        .nav-menu li {
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

            .nav-menu li:last-child {
                border-bottom: none;
            }

        .nav-menu a {
            display: block;
            padding: 0.5rem 2rem;
        }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-brand p {
        font-size: 0.75rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .mass-timings-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        padding: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-table {
        overflow-x: auto;
    }

        .admin-table table {
            min-width: 800px;
        }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .mass-card {
        padding: 1.5rem;
    }

    .event-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}