/* ==========================================================================
   Legacy CSS for OLV Church Fresno - Restored Pages
   Replicates the WordPress.com "Apostrophe 2" theme design
   Fonts: PT Serif (headings/titles), Open Sans (body/nav/sidebar/footer)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #404040;
    background-color: #f7f7f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Links ---------- */
a {
    color: #21759b;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0f3647;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Layout Container ---------- */
.olv-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER - Apostrophe 2 style: white/light background, centered logo + title
   ========================================================================== */
.olv-header {
    background-color: #fff;
    padding: 40px 0 20px;
    text-align: center;
    border-bottom: none;
}

.olv-header-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Logo link - wraps the image */
.olv-logo {
    display: inline-block;
    text-decoration: none;
    color: #000;
}

.olv-logo:hover {
    text-decoration: none;
    color: #000;
    opacity: 0.85;
}

/* Logo image - stained glass Virgin Mary */
.olv-logo img {
    display: block;
    width: 150px;
    height: 144px;
    object-fit: cover;
    border-radius: 0;
    margin: 0 auto;
}

/* Site title - PT Serif, black, like the original h1{color:#000} custom CSS */
.site-title {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Legacy fallback: if the logo text span is still present (before HTML updates) */
.olv-logo-text {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    display: block;
    text-align: center;
}

.olv-logo-text small {
    display: block;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ==========================================================================
   NAVIGATION - Apostrophe 2 style: clean horizontal links on white/light bg
   Simple text menu, NOT a dark bar
   ========================================================================== */
.olv-nav {
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.olv-nav-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.olv-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.olv-nav ul li {
    position: relative;
}

.olv-nav ul li a {
    display: block;
    padding: 12px 16px;
    color: #404040;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.olv-nav ul li a:hover,
.olv-nav ul li.active a {
    color: #21759b;
    background-color: transparent;
    text-decoration: none;
}

/* Sub-menu dropdown */
.olv-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 220px;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    text-align: left;
}

.olv-nav ul li:hover ul {
    display: block;
}

.olv-nav ul li ul li a {
    padding: 8px 16px;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 400;
    border-bottom: 1px solid #f5f5f5;
    color: #404040;
}

.olv-nav ul li ul li a:hover {
    color: #21759b;
    background-color: #f9f9f9;
}

.olv-nav ul li ul li:last-child a {
    border-bottom: none;
}

/* Mobile menu toggle */
.olv-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #404040;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: 100%;
    text-align: center;
}

.olv-menu-toggle:hover {
    color: #21759b;
}

/* ---------- Breadcrumb ---------- */
.olv-breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: #999;
}

.olv-breadcrumb a {
    color: #21759b;
}

.olv-breadcrumb a:hover {
    color: #0f3647;
}

.olv-breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

/* ==========================================================================
   CONTENT AREA - White card on light gray background, Apostrophe 2 style
   ========================================================================== */
.olv-content-wrap {
    display: flex;
    gap: 40px;
    padding: 40px 0 60px;
}

.olv-main-content {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

/* For full-width pages without sidebar */
.olv-main-content.full-width {
    max-width: 100%;
}

/* ==========================================================================
   SIDEBAR - Right side, white cards, Apostrophe 2 style
   ========================================================================== */
.olv-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.olv-sidebar-widget {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

.olv-sidebar-widget h3 {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    color: #000;
    text-transform: none;
    letter-spacing: 0;
}

.olv-sidebar-widget p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #404040;
}

.olv-sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.olv-sidebar-widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.olv-sidebar-widget ul li:last-child {
    border-bottom: none;
}

.olv-sidebar-widget ul li a {
    font-size: 14px;
    color: #21759b;
}

/* ==========================================================================
   TYPOGRAPHY - PT Serif for entry/page titles, Open Sans for body
   ========================================================================== */

/* Page title (h1) - PT Serif, black per original custom CSS h1{color:#000} */
.olv-main-content h1 {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.35;
}

.olv-main-content h2 {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-top: 30px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.olv-main-content h3 {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #404040;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.olv-main-content h4 {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #404040;
    margin-top: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.olv-main-content h5,
.olv-main-content h6 {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #404040;
    margin-top: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.olv-main-content p {
    margin-bottom: 18px;
    line-height: 1.75;
}

.olv-main-content ul,
.olv-main-content ol {
    margin-bottom: 18px;
    padding-left: 28px;
}

.olv-main-content ul li,
.olv-main-content ol li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.olv-main-content blockquote {
    border-left: 3px solid #ddd;
    padding: 12px 20px;
    margin: 24px 0;
    background-color: transparent;
    font-style: italic;
    color: #666;
}

.olv-main-content hr,
.olv-main-content .wp-block-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 28px 0;
}

.olv-main-content em {
    font-style: italic;
}

.olv-main-content strong {
    font-weight: 700;
}

/* Entry content for legacy WordPress pages */
.entry-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #404040;
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.entry-content h3 a {
    text-decoration: underline;
}

/* Blue text styling from original WordPress content */
.blue-text {
    color: #0000ff;
}

/* ---------- Text alignment classes from WordPress ---------- */
.has-text-align-center {
    text-align: center;
}

.has-text-align-left {
    text-align: left;
}

.has-text-align-right {
    text-align: right;
}

.has-small-font-size {
    font-size: 14px;
}

/* ---------- WordPress block: columns ---------- */
.wp-block-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.wp-block-column {
    flex: 1;
    min-width: 0;
}

/* ---------- WordPress block: cover ---------- */
.wp-block-cover {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    margin-bottom: 24px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wp-block-cover.has-background-dim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.wp-block-cover.has-background-dim-20::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.wp-block-cover.has-background-dim-30::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.wp-block-cover.has-background-dim-70::before {
    background-color: rgba(0, 0, 0, 0.7);
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2,
.wp-block-cover__inner-container p {
    color: #fff;
}

/* ---------- WordPress block: media-text ---------- */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 24px;
}

.wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 50%;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: 2;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    order: 1;
}

.wp-block-media-text__media img {
    width: 100%;
    height: auto;
    display: block;
}

.wp-block-media-text__content {
    padding: 0 20px;
}

/* ---------- WordPress block: file (download buttons) ---------- */
.wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wp-block-file a:first-child {
    color: #21759b;
    font-size: 15px;
}

.wp-block-file__button {
    background-color: #21759b;
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.wp-block-file__button:hover {
    background-color: #0f3647;
}

/* ---------- WordPress block: button ---------- */
.wp-block-button {
    margin-bottom: 16px;
}

.wp-block-button.aligncenter {
    text-align: center;
}

.wp-block-button__link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #21759b;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.wp-block-button__link:hover {
    background-color: #0f3647;
}

/* ---------- WordPress block: group ---------- */
.wp-block-group {
    margin-bottom: 24px;
}

.wp-block-group__inner-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- WordPress block: spacer ---------- */
.wp-block-spacer {
    display: block;
}

/* ---------- WordPress block: gallery ---------- */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.blocks-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blocks-gallery-item {
    flex: 1;
    min-width: 100px;
}

.blocks-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- WordPress: image alignment ---------- */
.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 20px 12px 0;
}

.alignright {
    float: right;
    margin: 0 0 12px 20px;
}

.alignfull {
    margin-left: -40px;
    margin-right: -40px;
    width: calc(100% + 80px);
    max-width: none;
}

.alignwide {
    max-width: 100%;
}

/* Clearfix for floated images */
.olv-main-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ---------- WordPress: Enfold/Avia layout divs ---------- */
.flex_column {
    margin-bottom: 20px;
}

.flex_column.av_one_half {
    width: 48%;
    float: left;
}

.flex_column.av_one_half.first {
    margin-right: 4%;
}

/* Clear after Enfold columns */
.flex_column.av_one_half + .flex_column.av_one_half::after {
    content: '';
    display: table;
    clear: both;
}

/* ---------- Page Title Banner (optional, some pages use this) ---------- */
.olv-page-title-bar {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.olv-page-title-bar h1 {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* ==========================================================================
   FOOTER - Apostrophe 2 style: simple, minimal, centered copyright
   The original just had "Copyright 2008-2020 Our Lady of Victory Catholic
   Church, Fresno" centered at the bottom. We keep the multi-column footer
   for restored pages since it contains useful church info, but style it
   more like the Apostrophe 2 clean aesthetic.
   ========================================================================== */
.olv-footer {
    background-color: #fff;
    color: #404040;
    padding: 40px 0 0;
    margin-top: 0;
    border-top: 1px solid #eee;
}

.olv-footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px 30px;
}

.olv-footer-col h3 {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-transform: none;
    letter-spacing: 0;
}

.olv-footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #666;
}

.olv-footer-col a {
    color: #21759b;
}

.olv-footer-col a:hover {
    color: #0f3647;
}

.olv-footer-col ul {
    list-style: none;
    padding: 0;
}

.olv-footer-col ul li {
    padding: 4px 0;
}

.olv-footer-col ul li a {
    font-size: 14px;
}

.olv-footer-col small {
    font-size: 12px;
    color: #999;
}

/* Footer socket / copyright - simple centered text like Apostrophe 2 */
.olv-socket {
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
}

.olv-socket a {
    color: #21759b;
}

/* ==========================================================================
   BULLETIN DOWNLOAD LINKS
   ========================================================================== */
.bulletin-list {
    list-style: none;
    padding: 0;
}

.bulletin-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulletin-list li:last-child {
    border-bottom: none;
}

.bulletin-list .download-link {
    background-color: #21759b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.bulletin-list .download-link:hover {
    background-color: #0f3647;
    text-decoration: none;
}

/* ==========================================================================
   CONTACT INFO BOX
   ========================================================================== */
.olv-contact-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    margin: 20px 0;
}

.olv-contact-box h3 {
    margin-top: 0;
    color: #000;
}

.olv-contact-box p {
    margin-bottom: 6px;
    font-size: 15px;
}

/* ==========================================================================
   MASS SCHEDULE BOX
   ========================================================================== */
.olv-schedule-box {
    border-left: none;
    background-color: #fff;
}

.olv-schedule-box h3,
.olv-schedule-box b,
.olv-schedule-box strong {
    color: #000;
}

/* ==========================================================================
   POST META & NAVIGATION
   ========================================================================== */
.olv-post-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}

.olv-post-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

/* ==========================================================================
   WORDPRESS CONTACT FORM (Jetpack/Grunion)
   ========================================================================== */
.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #404040;
    margin-bottom: 4px;
}

.contact-form label span {
    font-weight: 400;
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #404040;
    background-color: #fff;
    transition: border-color 0.2s ease;
    margin-bottom: 16px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #21759b;
    box-shadow: 0 0 0 1px #21759b;
}

.contact-form .grunion-field-wrap {
    margin-bottom: 4px;
}

.contact-submit {
    margin-top: 8px;
}

.pushbutton-wide {
    display: inline-block;
    padding: 10px 30px;
    background-color: #21759b;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pushbutton-wide:hover {
    background-color: #0f3647;
}

/* ==========================================================================
   RESPONSIVE - Mobile-first adjustments
   ========================================================================== */
@media screen and (max-width: 768px) {
    .olv-content-wrap {
        flex-direction: column;
        gap: 30px;
    }

    .olv-sidebar {
        width: 100%;
    }

    .olv-header {
        padding: 24px 0 16px;
    }

    .olv-logo img {
        width: 100px;
        height: 96px;
    }

    .site-title,
    .olv-logo-text {
        font-size: 26px;
    }

    .olv-nav ul {
        display: none;
        flex-direction: column;
    }

    .olv-nav ul.show {
        display: flex;
    }

    .olv-nav ul li a {
        text-align: left;
        padding: 10px 16px;
        border-bottom: 1px solid #f5f5f5;
    }

    .olv-nav ul li ul {
        position: static;
        box-shadow: none;
        border: none;
        transform: none;
    }

    .olv-nav ul li ul li a {
        padding-left: 32px;
    }

    .olv-menu-toggle {
        display: block;
    }

    .olv-footer-inner {
        grid-template-columns: 1fr;
    }

    .olv-main-content {
        padding: 24px;
    }

    .olv-main-content h1 {
        font-size: 26px;
    }

    .olv-main-content h2 {
        font-size: 21px;
    }

    .alignfull {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }

    /* WordPress columns stack on mobile */
    .wp-block-columns {
        flex-direction: column;
        gap: 20px;
    }

    .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }

    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
        order: 1;
    }

    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
        order: 2;
    }

    .wp-block-media-text__content {
        padding: 16px 0;
    }

    /* Enfold columns stack on mobile */
    .flex_column.av_one_half {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    /* Calendar iframe responsive */
    iframe {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .olv-main-content {
        padding: 20px;
    }

    .olv-main-content h1 {
        font-size: 24px;
    }

    .olv-main-content h2 {
        font-size: 19px;
    }

    .olv-main-content h3 {
        font-size: 15px;
    }

    .site-title,
    .olv-logo-text {
        font-size: 22px;
    }

    .olv-nav ul li a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .alignfull {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
}
