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

:root {
    /* Palette A: Brown + Slate Blue */
    --c-brown: #93331B;
    --c-brown-dark: #6B2413;
    --c-blue: #4686D0;
    --c-blue-dark: #2E69B0;
    --c-bg: #FBF7F2;
    --c-page: #f5f5f5;
    --c-text: #2B2B2B;

    /* RGB helpers (for alpha colors via `rgb(var(--x) / a)`) */
    --c-brown-rgb: 147 51 27;
    --c-brown-dark-rgb: 107 36 19;
    --c-blue-rgb: 70 134 208;
    --c-blue-dark-rgb: 46 105 176;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--c-text);
    background-color: var(--c-page);
}

/* Default links (inside content) */
a {
    color: var(--c-blue);
}

a:hover {
    color: var(--c-blue-dark);
}

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

header {
    background: linear-gradient(
        135deg,
        rgb(var(--c-brown-rgb) / 0.92) 0%,
        rgb(var(--c-brown-dark-rgb) / 0.92) 70%,
        var(--c-blue) 100%
    );
    color: white;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header-image {
    display: block;
    max-height: 300px;
    height: 100%;
    width: auto;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
}

header .site-header-inner {
    display: flex;
    align-items: stretch; /* remove vertical gaps around icon */
    justify-content: center;
    gap: 1.25rem;
    height: 300px; /* icon height equals header height */
}

header .site-header-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.5rem;
}

header h1 {
    text-align: inherit;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header .site-title-line {
    display: block;
    line-height: 1.2;
}

header .subtitle {
    text-align: inherit;
    font-size: 1.1rem;
    opacity: 0.9;
}

nav {
    background-color: var(--c-blue-dark);
    padding: 1rem 0;
    position: relative;
    min-height: 50px;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgb(var(--c-blue-rgb) / 0.35); /* blue accent */
    color: white;
}

main {
    min-height: 60vh;
    padding: 2rem 0;
}

.content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content h1 {
    color: var(--c-blue);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--c-blue);
    padding-bottom: 0.5rem;
}

h2 {
    color: var(--c-blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--c-blue);
    padding-bottom: 0.5rem;
}

h3 {
    color: var(--c-brown-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    color: var(--c-brown-dark);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Rich text (detail pages) */
.rich-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.85;
    hyphens: auto;
}

.rich-text p {
    margin: 0 0 0.6rem;
    text-indent: 0;
}

/* Saint detail layout (image left, text right) */
.saint-detail-layout {
    /* let text wrap around image, then use full width below */
    display: flow-root; /* creates a new block formatting context (clearfix) */
}

.saint-detail-media {
    float: left;
    margin: 0 1.25rem 1rem 0;
}

.saint-detail-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0; /* override global img margin */
    border-radius: 8px;
    display: block;
}

.saint-detail-text {
    min-width: 0;
}

.messages {
    margin: 1rem 0;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    background-color: var(--c-blue-dark);
    color: white;
    text-align: center;
    padding: 0;
    height: 72px; /* doar bara cafenie (mai înaltă) */
    margin-top: 3rem;
}

.saint-card, .event-card, .service-card {
    background: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--c-brown);
    border-radius: 4px;
}

.saint-card h3, .event-card h3, .service-card h3 {
    margin-top: 0;
}

/* Events page: remove the left brown bar */
.event-card {
    border-left: none;
}

/* Service schedule page (Program slujbe) */
.schedule-page {
    padding: 1.75rem;
}

.schedule-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1.25rem 1.75rem;
    align-items: start;
}

.schedule-sidebar {
    border-right: 1px solid #eee;
    padding-right: 1.25rem;
}

.schedule-sidebar-year {
    font-weight: 800;
    color: #222;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.schedule-title-main {
    margin-top: 0;
    margin-bottom: 1rem;
}

.schedule-priest-message {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, var(--c-bg) 100%);
    border: 1px solid rgb(var(--c-blue-rgb) / 0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.schedule-priest-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.schedule-priest-text p {
    margin: 0 0 0.75rem;
}

.schedule-priest-text p:last-child {
    margin-bottom: 0;
}

.schedule-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.year-pill {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgb(var(--c-blue-rgb) / 0.28);
    color: var(--c-blue-dark);
    background: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.year-pill:hover {
    background: rgb(var(--c-blue-rgb) / 0.08);
}

.year-pill.is-active {
    background: rgb(var(--c-blue-rgb) / 0.12);
    border-color: rgb(var(--c-blue-rgb) / 0.55);
    font-weight: 700;
}

.month-nav {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.month-nav--sidebar {
    display: block;
    margin-top: 1rem;
}

.month-nav--sidebar li {
    margin: 0;
}

.month-nav--sidebar a {
    display: block;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid #eee;
}

.month-nav--sidebar a:hover {
    background: rgb(var(--c-blue-rgb) / 0.08);
}

.month-nav a {
    color: var(--c-blue);
    text-decoration: none;
    border-bottom: 1px dotted rgb(var(--c-blue-rgb) / 0.6);
}

.month-nav a:hover {
    border-bottom-style: solid;
}

.schedule-month {
    margin-bottom: 1.25rem;
}

.schedule-table {
    border-top: 1px solid #eee;
}

.schedule-row {
    display: grid;
    grid-template-columns: 230px 120px 1fr;
    gap: 1.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.schedule-row.is-day-start {
    margin-top: 0.25rem;
}

.schedule-col--date {
    font-weight: 700;
    color: var(--c-brown); /* main site color */
}

.schedule-col--date.is-sunday {
    color: var(--c-brown); /* main site color */
}

.schedule-col--time {
    font-weight: 700;
    color: #222;
}

.schedule-col--time.is-important {
    color: var(--c-brown); /* main site color */
}

.schedule-row.has-day-title .schedule-col--daytitle {
    grid-column: 2 / 4; /* start at time column, span to end */
    color: var(--c-brown); /* main site color */
}

.schedule-row.has-day-title .schedule-col--text {
    display: none;
}

.schedule-item-title {
    font-weight: 700;
    color: #222;
}

.schedule-item-title.is-important {
    color: var(--c-brown); /* main site color */
}

.schedule-item-desc {
    margin-top: 0.25rem;
    color: #444;
}

.schedule-callout {
    margin-top: 1.5rem;
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf7f2 100%);
    border: 1px solid rgb(var(--c-brown-rgb) / 0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.schedule-callout p {
    margin-bottom: 0.75rem;
}

.schedule-callout p:last-child {
    margin-bottom: 0;
}

.callout-lines {
    margin-top: 0.25rem;
}

.schedule-info-message {
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, var(--c-bg) 100%);
    border: 1px solid rgb(var(--c-blue-rgb) / 0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.schedule-info-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.schedule-info-text p {
    margin: 0 0 0.75rem;
}

.schedule-info-text p:last-child {
    margin-bottom: 0;
}

/* Saint banner (homepage) */
.saint-banner {
    --banner-h: 280px;
    display: grid;
    /* Left column follows the image width (shrink-wrap), with a max cap */
    grid-template-columns: fit-content(420px) 1fr;
    gap: 1.25rem;
    background: #fff;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    margin-bottom: 2rem;
    max-height: var(--banner-h);
    border: 1px solid rgb(var(--c-brown-rgb) / 0.12);
}

.saint-banner-media {
    background: linear-gradient(180deg, #fff 0%, #fbf7f2 100%);
    height: var(--banner-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    width: fit-content;
    justify-self: start;
}

.saint-banner-img {
    width: auto; /* flexible width based on aspect ratio */
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
    border-radius: 0;
}

.saint-banner-body {
    padding: 1.1rem 1.25rem 1.1rem;
    height: var(--banner-h);
    display: flex;
    flex-direction: column;
}

.saint-banner-title {
    margin: 0 0 0.35rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.35rem;
    color: var(--c-brown);
}

.saint-banner-feast {
    margin: 0 0 0.75rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.saint-banner-text {
    color: #333;
    margin-bottom: 0.85rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.saint-banner .btn {
    align-self: flex-start;
    margin-top: auto; /* keep button at the bottom */
}

.saint-banner-text p {
    margin: 0 0 0.75rem;
}

.saint-banner-text p:last-child {
    margin-bottom: 0;
}

.saint-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.saint-section:last-child {
    border-bottom: none;
}

.saint-subtitle {
    font-style: italic;
    color: var(--c-brown-dark);
    margin-bottom: 1rem;
}

.welcome-section h4 {
    color: var(--c-brown);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-section h4 {
    color: var(--c-brown);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-section h4:first-child {
    margin-top: 0;
}

.contact-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.contact-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.contact-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--c-brown);
    font-weight: bold;
}

/* Homepage contact block (2 columns, fancy cards) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.contact-grid--stack {
    grid-template-columns: 1fr;
}

.contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbf7f2 100%);
    border: 1px solid rgb(var(--c-brown-rgb) / 0.18);
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.contact-card h4 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgb(var(--c-brown-rgb) / 0.25);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.contact-card--bank h4::before {
    content: "▦";
    color: var(--c-brown);
    font-weight: 700;
}

.contact-card--address h4::before {
    content: "⌂";
    color: var(--c-brown);
    font-weight: 700;
}

.contact-card ul {
    margin-bottom: 0;
}

.contact-card ul li {
    padding-left: 1.25rem;
}

.contact-card ul li:before {
    content: "›";
    color: rgb(var(--c-brown-rgb) / 0.9);
}

.contact-card a {
    color: var(--c-blue-dark);
    text-decoration: none;
    border-bottom: 1px dotted rgb(var(--c-blue-rgb) / 0.6);
}

.contact-card a:hover {
    border-bottom-style: solid;
}

/* Contact icons in address card */
.contact-card--bank ul li,
.contact-card--address ul li {
    padding-left: 0;
}

.contact-card--bank ul li:before,
.contact-card--address ul li:before {
    content: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.contact-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(var(--c-blue-rgb) / 0.10);
    border: 1px solid rgb(var(--c-blue-rgb) / 0.25);
    color: var(--c-blue);
    flex: 0 0 28px;
    margin-top: 1px;
}

.contact-item-text {
    flex: 1;
    min-width: 0;
}

.contact-item-text p {
    margin: 0;
}

.contact-item--facebook a {
    color: var(--c-blue);
    border-bottom: none;
}

.contact-item--facebook a:hover {
    text-decoration: underline;
}

.contact-facebook {
    margin-top: 0.35rem;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-blue);
    border-bottom: none;
}

.facebook-link:hover {
    text-decoration: underline;
}

.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(var(--c-brown-rgb) / 0.10);
    border: 1px solid rgb(var(--c-brown-rgb) / 0.25);
}

.contact-card li strong {
    color: var(--c-brown-dark);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.gallery-section {
    margin-top: 1rem;
}

.gallery-carousel-container {
    position: relative;
    margin-top: 0.75rem;
    max-width: 100%;
}

.gallery-carousel {
    --gap: 5px;
    --per-view: 5;
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
    border-radius: 8px;
}

.gallery-carousel-item {
    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    background: transparent;
    opacity: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-carousel-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 8px;
}

/* captions removed for gallery images */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(var(--c-brown-rgb) / 0.9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s;
    line-height: 1;
    padding: 0;
    box-shadow: none;
}

.carousel-btn .carousel-icon {
    position: relative;
    top: -1px; /* visually centers ‹ › across common fonts */
    line-height: 1;
    display: block;
}

.carousel-btn:hover {
    background: rgb(var(--c-brown-rgb) / 1);
    opacity: 1;
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}
.gallery-carousel {
    scrollbar-width: none; /* Firefox */
}

.home-main .gallery-section h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.25rem;
}

.gallery-thumb {
    cursor: pointer;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.gallery-lightbox.is-open {
    display: block;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.gallery-lightbox-content {
    position: relative;
    max-width: 1100px;
    margin: 4vh auto;
    padding: 0 56px; /* room for arrows */
    z-index: 2001;
}

.gallery-lightbox-figure {
    margin: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-lightbox-img {
    width: 100%;
    height: min(78vh, 720px);
    object-fit: contain;
    display: block;
    background: #000;
}

.gallery-lightbox-caption {
    display: none;
}

.gallery-lightbox-close {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-prev { left: 6px; }
.gallery-lightbox-next { right: 6px; }

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(0,0,0,0.75);
}

@media (max-width: 768px) {
    .gallery-lightbox-content {
        padding: 0 46px;
    }
    .gallery-lightbox-img {
        height: 70vh;
    }
    .gallery-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--c-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    /* no hover effect requested (keep same visuals) */
    background-color: var(--c-blue);
    color: white; /* override global a:hover color */
}

.btn--blue {
    background-color: var(--c-blue);
}

.btn--blue:hover {
    background-color: var(--c-blue-dark);
}

form {
    max-width: 600px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Tablet styles */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .content {
        padding: 1.5rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 1.25rem 0;
    }

    header .site-header-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-header-image {
        height: auto;
        max-height: 200px;
        margin: 0 auto;
    }
    
    header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    header .subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    nav {
        padding: 1rem 0;
        min-height: 56px;
    }
    
    nav .container {
        flex-direction: column;
        align-items: stretch;
        min-height: 56px;
    }
    
    .menu-toggle {
        display: flex;
        right: 15px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0;
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    nav ul.active {
        display: flex;
        max-height: 1000px;
        padding: 0.5rem 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav a {
        display: block;
        text-align: left;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    nav a:hover {
        background-color: rgba(255,255,255,0.15);
    }
    
    main {
        padding: 1.5rem 0;
    }
    
    .content {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
        margin-top: 1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    .saint-card, .event-card, .service-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .schedule-header {
        align-items: flex-start;
    }

    .schedule-layout {
        grid-template-columns: 1fr;
    }

    .schedule-sidebar {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .saint-banner {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .saint-banner-media { height: 220px; }
    .saint-banner-body { height: auto; }

    .saint-detail-layout {
        display: block;
    }
    .saint-detail-media {
        float: none;
        margin: 0 0 1rem 0;
    }
    .saint-detail-img {
        max-width: 100%;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    form {
        max-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links ul {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 1.1rem 1.1rem 1rem;
    }
    
    .gallery-carousel {
        --per-view: 3;
        --gap: 5px;
    }

    .gallery-carousel-item img {
        height: 200px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .message {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    header {
        padding: 1rem 0;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    header .subtitle {
        font-size: 0.85rem;
    }
    
    nav {
        padding: 0.875rem 0;
        min-height: 52px;
    }
    
    nav .container {
        min-height: 52px;
    }
    
    .menu-toggle {
        right: 12px;
        padding: 0.625rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .content {
        padding: 1rem;
        border-radius: 6px;
    }
    
    .content h1 {
        font-size: 1.35rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    h4 {
        font-size: 0.95rem;
    }
    
    .saint-card, .event-card, .service-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    footer {
        padding: 1.25rem 0;
        font-size: 0.85rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .gallery-carousel {
        --per-view: 2;
        --gap: 5px;
    }

    .gallery-carousel-item img {
        height: 170px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
    
    .gallery-caption {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

