/* ===== IMPORT CRIMSON TEXT FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* ===== GLOBAL FONT FAMILY ===== */
body,
p,
h1, h2, h3, h4, h5, h6,
a,
nav,
.caption,
.block-asset .caption,
figcaption {
    font-family: 'Crimson Text', Georgia, serif;
}

/* ===== HEADER LAYOUT ===== */
header {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Site title at top */
.site-title {
 
    padding: 1.5rem 0 1rem 0;
    text-align: center;
}


/* ===== BANNER WITH TEXT OVERLAY ===== */
.banner,
.banner-with-overlay,
.banner-wrapper {
    order: 3;
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    width: 100%; /* Ensure full width */
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Dark overlay on banner image */
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Banner text overlay */
.banner::after {
    content: 'Moravian Lives @ Moravian U';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    /* Layout */
    text-align: center;

    
    /* Typography */
    font-family: 'Crimson Text', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.15;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large tablets: Reduce nav spacing */
@media screen and (max-width: 1200px) {
    nav ul.navigation {
        gap: 1.5rem; /* Smaller gap */
    }
    
    nav ul.navigation a {
        font-size: 0.95rem; /* Slightly smaller text */
    }
}

/* Tablet: Keep on one line but smaller */
@media screen and (max-width: 968px) {
    nav {
        width: 65%;
        padding-left: 1rem;
    }
    
    #search {
        width: 33%;
        padding-right: 1rem;
    }
    
    nav ul.navigation {
        gap: 1rem;
    }
    
    nav ul.navigation a {
        font-size: 0.9rem;
    }
    
    #search input[type="text"] {
        width: 120px;
        font-size: 0.85rem;
    }
}

/* Mobile: Stack nav and search */
@media screen and (max-width: 768px) {
    nav,
    #search {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    nav {
        padding-bottom: 0.5rem;
        border-bottom: none;
    }
    
    #search {
        padding-top: 0.5rem;
    }
    
    nav ul.navigation {
        justify-content: center;
        flex-wrap: wrap; /* Allow wrapping on mobile */
        gap: 0.75rem;
    }
    
    #search form {
        justify-content: center;
    }
    
    .banner,
    .banner-with-overlay,
    .banner-wrapper {
        height: 250px;
    }
    
    .banner::after {