/*
 Theme Name:   Holy Spirit Astra Child
 Template:     astra
 Description:  Child theme for Holy Spirit Orthodox Church
 Version:      1.1.0
*/

/* ============================================
   Holy Spirit Orthodox Church — Custom Styles
   Color Palette:
   - Burgundy (primary):  #722F37
   - Gold (accent):       #C9A84C
   - Cream (background):  #F5F0E8
   - Charcoal (text):     #2C2C2C
   - Body warm white:     #FDFBF7
   ============================================ */

/* ---- Global Reset & Base ---- */

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333333;
    background-color: #FDFBF7;
    line-height: 1.8;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    color: #2C2C2C;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.4em; letter-spacing: 0.02em; }
h2 { font-size: 1.9em; letter-spacing: 0.015em; }
h3 { font-size: 1.5em; letter-spacing: 0.01em; }
h4 { font-size: 1.25em; }

p {
    margin-bottom: 1.4em;
    line-height: 1.85;
}

/* ---- Links ---- */

a {
    color: #722F37;
    transition: color 0.3s ease;
}
a:hover {
    color: #C9A84C;
}

/* ---- Header & Navigation ---- */

header.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* When logged in, offset for WP admin bar */
.admin-bar header.site-header {
    top: 32px;
}

.ast-primary-header-bar,
.main-header-bar {
    background-color: #FDFBF7 !important;
    border-bottom: 2px solid #C9A84C !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* Logo as icon mark — smaller alongside text */
.custom-logo {
    max-width: 55px !important;
    width: 55px !important;
    height: auto !important;
    transition: all 0.3s ease;
}

/* Stretch header container to full width */
.ast-primary-header-bar .ast-builder-grid-row-container,
.ast-primary-header-bar .site-primary-header-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.site-primary-header-wrap {
    transition: padding 0.3s ease;
}

/* Shrunk header on scroll */
header.site-header.header-shrunk .ast-primary-header-bar,
header.site-header.header-shrunk .main-header-bar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

header.site-header.header-shrunk .custom-logo {
    max-width: 50px !important;
    width: 50px !important;
    height: auto !important;
}

header.site-header.header-shrunk .ast-primary-header-bar,
header.site-header.header-shrunk .site-primary-header-wrap {
    min-height: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

header.site-header.header-shrunk .main-navigation a {
    font-size: 0.95em;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

header.site-header.header-shrunk .ast-builder-grid-row {
    min-height: 0 !important;
}

.main-navigation a,
.ast-header-break-point .ast-button-wrap .menu-toggle {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2C2C2C;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #722F37;
}

/* Nav link hover — color change only (underline clashes with header border) */
.main-navigation .menu-item > a {
    transition: color 0.3s ease;
}
.main-navigation .menu-item > a:hover {
    color: #C9A84C;
}

/* Parish Life nav separator — orthodox cross between Contact and Parish Life */
.main-navigation .menu-item-92 {
    position: relative;
    margin-left: 20px;
}
.main-navigation .menu-item-92::before {
    content: '\2626';
    color: #C9A84C;
    font-size: 1em;
    font-weight: 300;
    opacity: 0.7;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

/* Site title — Cinzel lockup beside logo */
.site-title {
    display: inline-block !important;
    font-family: 'Cinzel', 'Georgia', serif !important;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2C2C2C;
    line-height: 1.2;
    transition: font-size 0.3s ease;
}

.site-title a {
    color: #2C2C2C;
    text-decoration: none;
}

/* Hide tagline — not needed */
.site-description {
    display: none;
}

/* Shrunk state for site title */
header.site-header.header-shrunk .site-title {
    font-size: 0.85em !important;
    letter-spacing: 0.06em;
}

/* ---- Content Spacing ---- */

.site-content > .ast-container,
.site-content > .ast-full-width-container {
    padding-top: 40px;
    padding-bottom: 50px;
}

/* Remove top padding when page starts with a cover block */
.entry-content > .wp-block-cover:first-child {
    margin-top: -40px;
}

/* Hide page title on front page */
.home .entry-title,
.home .page-title,
.home .ast-archive-description {
    display: none;
}

/* ---- Buttons ---- */

.ast-button,
.wp-block-button__link,
input[type=submit] {
    background-color: #722F37;
    color: #FFFFFF;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 28px;
    border: 2px solid transparent;
    transition: all 0.35s ease;
    box-shadow: 0 2px 6px rgba(114, 47, 55, 0.2);
}

.ast-button:hover,
.wp-block-button__link:hover,
input[type=submit]:hover {
    background-color: #5a2028;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
    transform: translateY(-1px);
}

/* Gold accent buttons (secondary) */
.wp-block-button__link[style*="background-color:#C9A84C"] {
    box-shadow: 0 2px 6px rgba(201, 168, 76, 0.25);
}
.wp-block-button__link[style*="background-color:#C9A84C"]:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
    transform: translateY(-1px);
}

/* White buttons on hero */
.wp-block-button__link.has-white-background-color {
    border: 2px solid #2C2C2C;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.wp-block-button__link.has-white-background-color:hover {
    background-color: #F5F0E8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* ---- Separators / Horizontal Rules ---- */

hr.wp-block-separator {
    border: none !important;
    height: 2px !important;
    background: #C9A84C !important;
    opacity: 1 !important;
    margin: 1.5em auto !important;
    max-width: 80px !important;
    border-radius: 1px;
}

/* Wide separators — same as regular */
hr.wp-block-separator.is-style-wide {
    max-width: 80px;
}

/* ---- Cover Blocks (Hero Sections) ---- */

.wp-block-cover {
    overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container h1,
.wp-block-cover .wp-block-cover__inner-container h2 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.wp-block-cover .wp-block-cover__inner-container p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---- Columns / Cards ---- */

/* Service time cards and similar card-style columns */
.wp-block-column[style*="background-color:#F5F0E8"],
.wp-block-column[style*="background-color: #F5F0E8"] {
    border-top: 3px solid #C9A84C;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 6px;
}

.wp-block-column[style*="background-color:#F5F0E8"]:hover,
.wp-block-column[style*="background-color: #F5F0E8"]:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Cream info boxes */
p.has-background[style*="background-color:#F5F0E8"],
p.has-background[style*="background-color: #F5F0E8"] {
    border-left: 4px solid #C9A84C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ---- Lists ---- */

.wp-block-list {
    padding-left: 0;
    list-style: none;
}

.wp-block-list li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.8em;
    line-height: 1.7;
}

.wp-block-list li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    top: 0;
    color: #C9A84C;
    font-size: 0.7em;
    line-height: 2.4;
}

/* Nested list items get a simpler marker */
.wp-block-list li li::before {
    content: '\u2013';
    color: #999;
    font-size: 1em;
    line-height: 1.7;
}

/* ---- Tables ---- */

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}
.wp-block-table th {
    background-color: #722F37;
    color: #FFFFFF;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 16px;
    text-align: left;
}
.wp-block-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8e2d8;
}
.wp-block-table tr:nth-child(even) {
    background-color: #F5F0E8;
}
.wp-block-table tr:hover {
    background-color: #efe8db;
}

/* ---- Blockquotes ---- */

blockquote,
.wp-block-quote {
    border-left: 4px solid #C9A84C;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background-color: #F5F0E8;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

blockquote p,
.wp-block-quote p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a4a4a;
}

blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #722F37;
    font-style: normal;
    font-weight: 600;
}

/* ---- Columns alignment ---- */

.entry-content .wp-block-columns {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0;
    gap: 2em;
}

/* ---- Images ---- */

.wp-block-image.aligncenter,
.wp-block-column .wp-block-image {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-column .wp-block-image img {
    display: inline-block;
}

.wp-block-image img {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.wp-block-image figcaption {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

/* ---- Custom Footer Widget Area ---- */

.hsoc-footer-widgets {
    background-color: #2C2C2C;
    color: #d4cfc5;
    border-top: 3px solid #C9A84C;
    padding: 50px 0 30px;
}

.hsoc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.hsoc-footer-title {
    color: #C9A84C;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.hsoc-footer-widgets a {
    color: #d4cfc5;
    transition: color 0.3s ease;
}
.hsoc-footer-widgets a:hover {
    color: #C9A84C;
}

.hsoc-footer-widget p {
    line-height: 1.7;
    margin-bottom: 0.5em;
    color: #d4cfc5;
}

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

.hsoc-footer-widget li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hsoc-footer-widget li:last-child {
    border-bottom: none;
}

/* Footer Copyright Bar */
.site-footer,
.ast-footer-overlay {
    background-color: #1a1a1a !important;
}

.site-footer .ast-builder-grid-row,
.site-footer .site-below-footer-wrap {
    background-color: #1a1a1a;
    color: #888;
    font-size: 0.85em;
    padding: 15px 0;
}

.site-footer a {
    color: #C9A84C;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: #F5F0E8;
}

/* Mobile footer */
@media (max-width: 768px) {
    .hsoc-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---- WPForms ---- */

.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container textarea,
.wpforms-container select {
    border: 1px solid #d4cfc5;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpforms-container input[type=text]:focus,
.wpforms-container input[type=email]:focus,
.wpforms-container textarea:focus {
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    outline: none;
}

.wpforms-container .wpforms-submit {
    background-color: #722F37 !important;
    font-family: 'Cormorant Garamond', 'Georgia', serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 12px 32px !important;
    transition: all 0.35s ease !important;
}
.wpforms-container .wpforms-submit:hover {
    background-color: #5a2028 !important;
    transform: translateY(-1px);
}

/* ---- Simple Calendar — spacing after buttons ---- */

.simcal-calendar + p {
    margin-top: 1.5em;
}

/* ---- Simple Calendar — inline event times ---- */

.simcal-time-inline {
    font-size: 0.85em;
    color: #555;
    font-weight: normal;
}

.simcal-calendar-head .simcal-current h3::before {
    content: 'Holy Spirit Orthodox Church';
    display: block;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #722F37;
    margin-bottom: 2px;
}

/* Uniform day number headers */
.simcal-default-calendar-grid .simcal-day-number {
    background: #e0e0e0 !important;
    color: #333 !important;
}

.simcal-today .simcal-day-number {
    background: #ccc !important;
    color: #000 !important;
    font-weight: bold;
}

/* Fasting day highlight */
.simcal-fasting-day {
    background-color: #d4edda !important;
}

/* Calendar legend */
.simcal-calendar-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    margin-left: 20px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1em;
    color: #555;
    white-space: nowrap;
}

.simcal-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #d4edda;
    border: 1px solid #b1dfbb;
    border-radius: 2px;
}

/* ---- Accessibility & Focus ---- */

*:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* ---- Selection Color ---- */

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #2C2C2C;
}

/* ---- Smooth Scroll ---- */

html {
    scroll-behavior: smooth;
}

/* ---- Medium Desktop (header fits on one line) ---- */

@media (max-width: 1280px) {
    .site-title {
        font-size: 0.9em !important;
        letter-spacing: 0.05em;
    }
    header.site-header.header-shrunk .site-title {
        font-size: 0.75em !important;
        letter-spacing: 0.04em;
    }

    .custom-logo {
        max-width: 42px !important;
        width: 42px !important;
    }

    .main-navigation a,
    .ast-header-break-point .ast-button-wrap .menu-toggle {
        font-size: 0.92em;
        letter-spacing: 0.02em;
    }

    .ast-primary-header-bar .ast-builder-grid-row-container,
    .ast-primary-header-bar .site-primary-header-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 1080px) {
    .site-title {
        font-size: 0.75em !important;
        letter-spacing: 0.04em;
    }
    header.site-header.header-shrunk .site-title {
        font-size: 0.6em !important;
        letter-spacing: 0.03em;
    }

    .custom-logo {
        max-width: 45px !important;
        width: 45px !important;
    }
}

/* ---- Mobile Refinements ---- */

@media (max-width: 768px) {
    .site-title {
        font-size: 0.6em !important;
        letter-spacing: 0.03em;
    }
    header.site-header.header-shrunk .site-title {
        font-size: 0.5em !important;
        letter-spacing: 0.02em;
    }

    .custom-logo {
        max-width: 40px !important;
        width: 40px !important;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.25em; }

    .wp-block-columns {
        gap: 20px;
    }

    .wp-block-cover {
        min-height: 250px !important;
    }

    .wp-block-button__link {
        padding: 10px 22px;
        font-size: 0.95em;
    }

    hr.wp-block-separator.is-style-wide::before {
        background: #FDFBF7;
    }
}

/* ---- Blog Archive (Parish Life) ---- */

/* Hide default archive title/description */
.blog .ast-archive-description,
.category .ast-archive-description {
    display: none !important;
}

/* Remove top padding on blog pages so hero goes edge-to-edge */
.blog .site-content > .ast-container,
.category .site-content > .ast-container {
    padding-top: 0;
}

/* Hero Banner */
.hsoc-blog-hero {
    background-size: cover;
    background-position: center 30%;
    position: relative;
    margin: -40px -20px 0;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsoc-blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(114, 47, 55, 0.7), rgba(44, 44, 44, 0.65));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hsoc-blog-hero-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 3em;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    margin: 0 0 10px;
}

.hsoc-blog-hero-subtitle {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin: 0;
}

/* Intro paragraph */
.hsoc-blog-intro {
    max-width: 720px;
    margin: 35px auto 5px;
    text-align: center;
}

.hsoc-blog-intro p {
    font-size: 1.05em;
    color: #555;
    line-height: 1.8;
}

/* Category filter buttons */
.hsoc-blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 10px;
    padding: 0 20px;
}

.hsoc-filter-btn {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid #722F37;
    border-radius: 4px;
    color: #722F37;
    background: transparent;
    transition: all 0.3s ease;
}

.hsoc-filter-btn:hover {
    background-color: #722F37;
    color: #FFFFFF;
}

.hsoc-filter-btn.active {
    background-color: #722F37;
    color: #FFFFFF;
}

/* Blog separator */
.hsoc-blog-separator {
    border: none;
    height: 2px;
    background: #C9A84C;
    max-width: 80px;
    margin: 25px auto 30px;
}

/* ---- Featured Posts (Page 1) ---- */

.hsoc-featured-posts {
    max-width: 760px;
    margin: 0 auto 40px;
}

.hsoc-featured-post {
    padding: 5px 0 25px;
}

.hsoc-featured-meta {
    font-size: 0.9em;
    font-style: italic;
    color: #888;
    margin-bottom: 6px;
}

.hsoc-featured-meta time {
    color: #888;
}

.hsoc-meta-sep {
    margin: 0 6px;
    color: #ccc;
}

.hsoc-featured-cat {
    color: #C9A84C;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hsoc-featured-cat:hover {
    color: #722F37;
}

.hsoc-featured-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.hsoc-featured-title a {
    color: #2C2C2C;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hsoc-featured-title a:hover {
    color: #722F37;
}

.hsoc-featured-image {
    margin-bottom: 14px;
}

.hsoc-featured-image img {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    height: auto;
}

.hsoc-featured-excerpt p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.8;
    margin: 0 0 10px;
}

.hsoc-read-more {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #722F37;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hsoc-read-more:hover {
    color: #C9A84C;
}

/* Divider between featured posts */
.hsoc-post-divider {
    border: none;
    height: 1px;
    background: rgba(201, 168, 76, 0.4);
    margin: 25px 0;
}

/* ---- Compact Post List (Earlier Posts) ---- */

.hsoc-older-posts {
    max-width: 760px;
    margin: 0 auto 30px;
}

.hsoc-older-heading {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2C2C2C;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #C9A84C;
    display: inline-block;
}

.hsoc-compact-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 12px;
    border-left: 3px solid #C9A84C;
    border-bottom: 1px solid #ede8dd;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.hsoc-compact-row:hover {
    background-color: #F5F0E8;
}

.hsoc-compact-date {
    flex: 0 0 60px;
    font-size: 0.88em;
    color: #888;
    white-space: nowrap;
}

.hsoc-compact-title {
    flex: 1;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.05em;
    font-weight: 600;
    color: #2C2C2C;
    transition: color 0.3s ease;
}
.hsoc-compact-row:hover .hsoc-compact-title {
    color: #722F37;
}

.hsoc-compact-cat {
    flex: 0 0 auto;
    font-size: 0.82em;
    color: #C9A84C;
    white-space: nowrap;
}

/* ---- Pagination ---- */

.nav-links {
    margin-top: 40px;
    text-align: center;
}

.nav-links .page-numbers {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    font-size: 1em;
    padding: 8px 14px;
    margin: 0 4px;
    border: 2px solid #722F37;
    border-radius: 4px;
    color: #722F37;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links .page-numbers:hover {
    background-color: #722F37;
    color: #FFFFFF;
}

.nav-links .page-numbers.current {
    background-color: #722F37;
    color: #FFFFFF;
}

/* ---- Blog Mobile ---- */

@media (max-width: 768px) {
    .hsoc-blog-hero {
        min-height: 220px;
        margin: -40px -10px 0;
    }

    .hsoc-blog-hero-title {
        font-size: 2em;
    }

    .hsoc-blog-hero-subtitle {
        font-size: 1.05em;
    }

    .hsoc-blog-filters {
        gap: 8px;
    }

    .hsoc-filter-btn {
        font-size: 0.85em;
        padding: 6px 14px;
    }

    .hsoc-featured-title {
        font-size: 1.35em;
    }

    .hsoc-compact-row {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .hsoc-compact-date {
        flex: 0 0 auto;
    }

    .hsoc-compact-cat {
        flex-basis: 100%;
        padding-left: 0;
        font-size: 0.78em;
    }
}

/* ---- Shop / Food Menu ---- */

.food-menu {
    max-width: 780px;
    margin: 0 auto;
}

.food-section {
    margin-bottom: 40px;
}

.food-section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e8e2d8;
    padding-bottom: 8px;
}

.food-section-header h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #722F37;
    margin: 0;
}

.food-section-header span {
    font-size: 0.88em;
    color: #999;
    font-style: italic;
}

.food-item,
.food-item:visited {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 12px;
    margin: 0 -12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.2s;
    cursor: pointer;
}

.food-item:hover {
    background: #F5F0E8;
    color: inherit;
}

.food-item *,
.food-item:hover *,
.food-item:visited * {
    text-decoration: none !important;
}

.food-item-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.food-item-info {
    flex: 1;
    min-width: 0;
}

.food-item-info h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0 0 2px;
}

.food-item-info .food-desc {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    margin: 0;
}

.food-item-price {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #722F37;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .food-section-header {
        flex-direction: column;
        gap: 2px;
    }

    .food-item {
        gap: 14px;
    }

    .food-item-img {
        width: 56px;
        height: 56px;
    }
}

/* ---- Zeffy Food Sale — Sold Out / Remaining ---- */

.food-item-sold-out {
    opacity: 0.5;
    cursor: default;
}

.food-item-sold-out:hover {
    background: transparent;
}

.food-item-sold-out .food-item-img {
    filter: grayscale(100%);
}

.food-remaining {
    display: block;
    font-size: 0.8em;
    color: #C9A84C;
    font-weight: 600;
    margin-top: 2px;
}

.food-sold-out {
    color: #999 !important;
    font-style: italic;
    font-size: 1em;
}

/* ---- Zeffy Modal Overrides ---- */

.zeffy-modal-content {
    height: 96vh !important;
    max-height: 96vh !important;
    width: 95% !important;
    max-width: 600px !important;
}

.zeffy-modal-body {
    padding: 0 !important;
}

.zeffy-modal-body #zeffy-form-embed {
    height: calc(96vh - 20px) !important;
    min-height: 700px !important;
}

/* ---- Print Styles — Calendar ---- */

@media print {
    /* Hide everything except calendar */
    .ast-primary-header-bar,
    .main-header-bar,
    #masthead,
    header,
    footer,
    .site-footer,
    .hsoc-footer-widgets,
    .ast-footer-overlay,
    .print-calendar-button,
    .simcal-nav-button,
    .wp-block-heading,
    .wp-block-paragraph,
    .wp-block-table,
    .wp-block-separator,
    .wp-block-shortcode + .wp-block-paragraph,
    #ast-scroll-top,
    .ast-breadcrumbs-wrapper {
        display: none !important;
    }

    /* Reset page */
    @page {
        size: landscape;
        margin: 0.3in;
    }

    body, html {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
    }

    .site-content,
    .site-content > .ast-container,
    .entry-content {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Calendar grid — fill full page */
    .simcal-calendar {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #aaa !important;
    }

    .simcal-default-calendar-grid > table {
        table-layout: fixed !important;
        width: 100% !important;
        height: 100% !important;
        border-collapse: collapse !important;
    }

    /* Header with church name */
    .simcal-calendar-head .simcal-current h3 {
        font-size: 20px !important;
        padding: 4px 0 !important;
    }

    .simcal-calendar-head .simcal-current h3::before {
        font-size: 18px !important;
        margin-bottom: 1px !important;
    }

    /* Day of week headers */
    .simcal-calendar-head th {
        font-size: 12px !important;
        padding: 3px !important;
        font-weight: bold !important;
    }

    /* Day cells — stretch to fill */
    .simcal-default-calendar-grid > table > tbody > tr {
        height: 20% !important;
    }

    .simcal-day > div {
        height: 100% !important;
        overflow: hidden !important;
    }

    .simcal-day,
    .simcal-day-void {
        overflow: hidden !important;
    }

    .simcal-default-calendar-grid > table {
        overflow: hidden !important;
    }

    .simcal-day-number {
        font-size: 11px !important;
        font-weight: bold !important;
        padding: 1px 3px !important;
    }

    /* Events in cells */
    .simcal-default-calendar-grid .simcal-events {
        font-size: 11px !important;
        line-height: 1.25 !important;
        padding: 1px !important;
    }

    .simcal-default-calendar-grid .simcal-events > .simcal-event {
        padding: 1px 2px !important;
        margin: 0 !important;
        border-bottom: 1px solid #ddd !important;
    }
    .simcal-default-calendar-grid .simcal-events > .simcal-event:last-child {
        border-bottom: none !important;
    }

    .simcal-event-title {
        font-size: 11px !important;
    }

    .simcal-time-inline {
        font-size: 9px !important;
    }

    /* Hide tooltips and bubbles */
    .simcal-tooltip-content,
    .simcal-event-bubble,
    .simcal-event-details {
        display: none !important;
    }

    /* Hide toggled/overflow elements */
    .simcal-events-toggle {
        display: none !important;
    }

    /* Show all events (unhide toggled ones) */
    .simcal-event-toggled {
        display: list-item !important;
    }

    /* Prevent page breaks inside calendar */
    .simcal-calendar,
    .simcal-default-calendar-grid > table {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Remove today highlight in print */
    .simcal-today,
    .simcal-today > div,
    .simcal-today .simcal-day-number,
    .simcal-today-has-events {
        border: none !important;
        border-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }
    .simcal-today {
        border: 1px solid #e0e0e0 !important;
    }

    /* Uniform day numbers in print */
    .simcal-default-calendar-grid .simcal-day-number {
        background: #e0e0e0 !important;
        color: #333 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Force fasting day backgrounds to print */
    .simcal-fasting-day {
        background-color: #d4edda !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* Legend in print */
    .simcal-calendar-legend {
        font-size: 12px !important;
        gap: 6px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .simcal-legend-swatch {
        width: 14px !important;
        height: 14px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}
