@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f7f0e4;
    --paper: #fffaf0;
    --cream: #f9edd8;
    --ink: #1c1712;
    --muted: #766b5d;
    --line: rgba(35, 25, 18, .11);
    --gold: #c79546;
    --gold-soft: #ecd09a;
    --wine: #7b1e19;
    --wine-dark: #4f100d;
    --dark: #0e0f0d;
    --dark-soft: #1b1712;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(58, 35, 16, .14);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% -10%, rgba(199, 149, 70, .22), transparent 34%),
        linear-gradient(180deg, #fff8ea 0%, var(--bg) 48%, #f4eadb 100%);
    font-family: var(--sans);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    min-height: 78px;
    padding: 0 clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 240, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px rgba(39, 25, 12, .06);
}

.brand img { width: 174px; height: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.35vw, 22px);
    margin-left: auto;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    opacity: .78;
    transition: color .2s ease, opacity .2s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .2s ease;
}

.main-nav a:hover { color: var(--wine); opacity: 1; }
.main-nav a:hover::after { width: 100%; }

.donate-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.donate-btn,
.btn.wine {
    color: #fff8ea;
    background: linear-gradient(135deg, var(--wine), var(--wine-dark));
    box-shadow: 0 13px 24px rgba(123, 30, 25, .25);
}

.btn.gold {
    color: #20160e;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 14px 26px rgba(199, 149, 70, .28);
}

.btn.ghost {
    color: #fff8ea;
    border-color: rgba(255, 248, 234, .34);
    background: rgba(255, 248, 234, .09);
}

.btn:hover,
.donate-btn:hover { transform: translateY(-2px); }

.search-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 25px;
    opacity: .84;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 20px;
    background: var(--ink);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    min-height: 620px;
    padding: clamp(72px, 8vw, 118px) clamp(24px, 7vw, 100px);
    overflow: hidden;
    color: #fff8ea;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 10, 8, .94), rgba(25, 18, 12, .72), rgba(55, 33, 18, .30)),
        radial-gradient(circle at 78% 34%, rgba(236, 208, 154, .48), transparent 23%),
        radial-gradient(circle at 88% 20%, rgba(123, 30, 25, .5), transparent 26%),
        linear-gradient(135deg, #0f0f0d 0%, #26170f 45%, #7b4c1d 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .28;
    background:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-bg::after {
    content: '✛';
    position: absolute;
    right: 7%;
    top: 4%;
    color: rgba(255, 248, 234, .07);
    font-family: Georgia, serif;
    font-size: clamp(220px, 31vw, 440px);
    line-height: 1;
}

.hero-content,
.hero-card { position: relative; z-index: 2; }

.hero-content { max-width: 700px; }

.hero-card {
    justify-self: end;
    width: min(360px, 100%);
    padding: 26px;
    border: 1px solid rgba(236, 208, 154, .3);
    border-radius: 30px;
    background: rgba(255, 248, 234, .08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
    backdrop-filter: blur(12px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--wine);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: currentColor;
}

.eyebrow.light { color: var(--gold-soft); }

.hero h1,
.page-hero h1,
.article-header h1,
.section-head h2,
.dizimo-panel h2,
.intro-strip h2 {
    font-family: var(--serif);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(46px, 6vw, 84px);
}

.hero p {
    max-width: 570px;
    margin: 22px 0 28px;
    color: rgba(255, 248, 234, .88);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.content-wrap {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(46px, 6vw, 78px) 0;
}

.intro-strip {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(22px, 5vw, 70px);
    align-items: end;
    border-bottom: 1px solid var(--line);
}

.intro-strip h2 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(32px, 4.5vw, 58px);
}

.intro-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-head.centered {
    justify-content: center;
    text-align: center;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 50px);
}

.section-head > a {
    color: var(--wine);
    font-size: 14px;
    font-weight: 900;
}

.compact { margin-bottom: 18px; }

.grid { display: grid; gap: 22px; }

.cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.article-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, .92);
    box-shadow: 0 16px 42px rgba(58, 35, 16, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dark);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.article-card:hover .card-image img { transform: scale(1.045); }

.card-body { padding: 18px 18px 20px; }

.tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff8ea;
    background: linear-gradient(135deg, var(--wine), #9a3a31);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.article-card h3 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.13;
}

.article-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 15px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #8a7d6b;
    font-size: 12px;
    font-weight: 700;
}

.dimensions-section { padding-top: 28px; }

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dimension-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 26px;
    border: 1px solid rgba(199, 149, 70, .28);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 250, 240, .96), rgba(249, 237, 216, .86));
    box-shadow: 0 16px 46px rgba(58, 35, 16, .08);
}

.dimension-card::after {
    content: '';
    position: absolute;
    right: -38px;
    bottom: -52px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(123, 30, 25, .08);
}

.dimension-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #fff8ea;
    background: linear-gradient(135deg, var(--wine), var(--wine-dark));
    font-size: 26px;
}

.dimension-card h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 26px;
}

.dimension-card p { margin: 0; color: var(--muted); }

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 28px;
    align-items: stretch;
}

.news-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 240, .86);
}

.news-list a {
    display: grid;
    gap: 5px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.news-list a:last-child { border-bottom: 0; }
.news-list span { color: var(--wine); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.news-list strong { font-family: var(--serif); font-size: 21px; line-height: 1.18; }
.news-list small { color: var(--muted); font-weight: 700; }

.dizimo-panel {
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 450px;
    padding: 34px;
    border-radius: 28px;
    color: #fff8ea;
    background:
        radial-gradient(circle at 80% 10%, rgba(236, 208, 154, .4), transparent 28%),
        linear-gradient(145deg, rgba(79, 16, 13, .96), rgba(14, 15, 13, .98));
    box-shadow: var(--shadow);
}

.dizimo-panel h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 52px); }
.dizimo-panel p { color: rgba(255, 248, 234, .84); font-size: 18px; }

.events-row,
.events-list-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.events-list-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.event-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 250, 240, .88);
    box-shadow: 0 12px 32px rgba(58, 35, 16, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.event-date {
    display: grid;
    place-items: center;
    min-height: 76px;
    border-radius: 14px;
    color: #fff8ea;
    background: linear-gradient(135deg, var(--dark-soft), var(--wine));
    text-align: center;
}

.event-date strong { font-size: 28px; line-height: 1; }
.event-date small { max-width: 60px; overflow: hidden; font-size: 9px; font-weight: 900; }

.event-info strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.15;
}

.event-info small,
.event-info em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-weight: 700;
}

.page-hero {
    position: relative;
    min-height: 360px;
    padding: clamp(70px, 8vw, 110px) clamp(24px, 7vw, 96px);
    overflow: hidden;
    color: #fff8ea;
    background:
        radial-gradient(circle at 82% 20%, rgba(236, 208, 154, .38), transparent 26%),
        linear-gradient(135deg, #0f0f0d, #341914 55%, #7b4c1d);
}

.page-hero.slim { min-height: 290px; }
.page-hero h1 { max-width: 870px; margin: 0; font-size: clamp(44px, 6vw, 78px); }
.page-hero p { max-width: 720px; color: rgba(255, 248, 234, .86); font-size: 20px; }

.article-page { padding: clamp(34px, 5vw, 66px) 0 0; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 860px) 310px;
    gap: 34px;
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

.article-layout.single { grid-template-columns: minmax(0, 860px); justify-content: center; }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.article-header h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(44px, 5vw, 72px);
}

.article-header p {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0;
    color: var(--muted);
    font-weight: 800;
}

.share-row a,
.share-row button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--wine);
    background: rgba(255, 250, 240, .9);
    font-weight: 900;
}

.article-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.article-shell {
    width: 100%;
    margin: 32px auto 0;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 240, .9);
    box-shadow: 0 16px 44px rgba(58, 35, 16, .07);
}

.page-shell { width: min(940px, calc(100% - 36px)); }

.article-content {
    color: #2a221b;
    font-size: 20px;
    line-height: 1.78;
}

.article-content p { margin: 0 0 22px; }
.article-content h2 { margin: 38px 0 14px; font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.article-content h3 { margin: 28px 0 10px; font-family: var(--serif); font-size: 28px; }
.article-content a { color: var(--wine); font-weight: 800; text-decoration: underline; }
.article-content blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    background: #fff3dc;
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.35;
}

.source-note {
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid rgba(199, 149, 70, .36);
    border-radius: 14px;
    background: #fff5df;
    color: var(--muted);
    font-size: 16px;
}

.article-sidebar {
    position: sticky;
    top: 104px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 240, .9);
    box-shadow: 0 15px 42px rgba(58, 35, 16, .08);
}

.sidebar-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 26px; }
.sidebar-card p { color: var(--muted); }
.sidebar-card > a { color: var(--wine); font-weight: 900; }

.sacred-card img { width: 150px; margin: 0 auto 14px; }

.mini-related {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    line-height: 1.2;
}

.mini-related:last-child { border-bottom: 0; }
.mini-related img { width: 76px; height: 62px; object-fit: cover; border-radius: 10px; }

.dimension-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
}

.dimension-showcase article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff6e5;
}

.dimension-showcase span { color: var(--wine); font-size: 26px; }
.dimension-showcase h3 { margin: 6px 0; }
.dimension-showcase p { margin: 0; font-size: 17px; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.contact-grid > div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff6e5;
}

.contact-form { display: grid; gap: 16px; margin-top: 24px; }
.contact-form label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; }
.search-form input,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffdf7;
    color: var(--ink);
    font: inherit;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 34px;
}

.empty-state {
    padding: 44px;
    border: 1px dashed rgba(123, 30, 25, .3);
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 250, 240, .7);
}

.site-footer {
    margin-top: clamp(54px, 7vw, 90px);
    color: #fff8ea;
    background:
        radial-gradient(circle at 10% 0%, rgba(199, 149, 70, .22), transparent 35%),
        linear-gradient(135deg, #080908, #15120f 60%, #260d0b);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, .7fr);
    gap: clamp(24px, 4vw, 58px);
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 58px 0 44px;
}

.footer-logo { width: 170px; margin-bottom: 16px; }
.footer-inner p { max-width: 310px; color: rgba(255, 248, 234, .74); }
.footer-inner h3 { margin: 0 0 14px; color: var(--gold-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.footer-inner a { display: block; margin: 7px 0; color: rgba(255, 248, 234, .78); font-weight: 700; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 248, 234, .12);
    color: rgba(255, 248, 234, .62);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero { grid-template-columns: 1fr; }
    .hero-card { justify-self: start; width: 300px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .site-header { min-height: 70px; }
    .brand img { width: 148px; }
    .menu-toggle { display: block; margin-left: auto; }
    .main-nav {
        position: fixed;
        left: 18px;
        right: 18px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--paper);
        box-shadow: var(--shadow);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 12px; }
    .main-nav a::after { display: none; }
    .donate-btn,
    .search-icon { display: none; }
    .intro-strip,
    .split-section { grid-template-columns: 1fr; }
    .dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .events-row,
    .events-list-page { grid-template-columns: 1fr; }
    .cards-grid,
    .cards-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero { min-height: 560px; padding: 58px 18px; }
    .hero h1 { font-size: 42px; }
    .hero-card { width: 230px; padding: 18px; }
    .content-wrap { width: min(100% - 28px, 1180px); padding: 42px 0; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .cards-grid,
    .cards-grid.three,
    .dimension-grid,
    .article-sidebar { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 38px; }
    .article-content { font-size: 18px; }
    .article-shell { padding: 22px; }
    .article-layout { width: min(100% - 28px, 1220px); }
    .search-form { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

/* Editorial cleanup: no search, no events, no formation section */
.daily-home-section { margin-top: clamp(30px, 6vw, 64px); }

.daily-home-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(236, 208, 154, .28);
    border-radius: 28px;
    color: #fff8ea;
    background:
        linear-gradient(135deg, rgba(17, 13, 10, .96), rgba(79, 16, 13, .9)),
        radial-gradient(circle at 82% 20%, rgba(236, 208, 154, .3), transparent 34%);
    box-shadow: 0 28px 70px rgba(58, 35, 16, .16);
}

.daily-home-card h2 {
    max-width: 760px;
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.daily-home-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 248, 234, .82);
    font-size: 17px;
}

.prayer-mini-grid,
.prayer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.prayer-mini-card,
.prayer-card {
    display: grid;
    gap: 14px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 240, .9);
    box-shadow: 0 18px 44px rgba(58, 35, 16, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.prayer-mini-card:hover,
.prayer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(58, 35, 16, .13);
}

.prayer-mini-card img,
.prayer-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: #f6ead6;
}

.prayer-mini-card strong,
.prayer-card h2 {
    margin: 0;
    color: var(--wine-dark);
    font-family: var(--serif);
    line-height: 1.08;
}

.prayer-mini-card span,
.prayer-card p {
    color: var(--muted);
    font-size: 15px;
}

.prayer-card span {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.liturgy-hero,
.prayers-hero,
.prayer-detail-hero {
    background:
        linear-gradient(135deg, rgba(14, 15, 13, .96), rgba(79, 16, 13, .84)),
        radial-gradient(circle at 80% 20%, rgba(236, 208, 154, .32), transparent 32%);
}

.liturgy-page {
    max-width: 980px;
}

.liturgy-card-main,
.prayer-detail-card {
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 250, 240, .94);
    box-shadow: var(--shadow);
}

.liturgy-title-block {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.liturgy-title-block span,
.liturgy-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.liturgy-title-block h2 {
    margin: 0 0 10px;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.04;
}

.liturgy-title-block p { margin: 0; color: var(--muted); }
.liturgy-title-block a { color: var(--wine); font-weight: 800; }

.liturgy-tabs {
    position: sticky;
    top: 78px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 240, .92);
    backdrop-filter: blur(12px);
}

.liturgy-tabs a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--wine-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(199, 149, 70, .13);
}

.liturgy-block {
    padding: clamp(24px, 5vw, 44px) 0;
    border-bottom: 1px solid var(--line);
}

.liturgy-block:last-child { border-bottom: 0; }

.liturgy-block h3 {
    margin: 0 0 20px;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.1;
}

.psalm-block blockquote {
    margin: 0 0 22px;
    padding: 18px 22px;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.18;
    background: rgba(199, 149, 70, .12);
}

.gospel-block {
    position: relative;
    padding-left: clamp(0px, 3vw, 28px);
}

.gospel-block::before {
    content: '✠';
    position: absolute;
    left: 0;
    top: 36px;
    color: rgba(123, 30, 25, .18);
    font-family: Georgia, serif;
    font-size: 52px;
}

.prayer-detail-wrap { max-width: 900px; }

.prayer-detail-card {
    display: grid;
    gap: 28px;
}

.prayer-detail-card img {
    width: min(420px, 100%);
    margin: 0 auto;
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(58, 35, 16, .12);
}

.prayer-body {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.28;
    text-align: center;
}

@media (max-width: 920px) {
    .daily-home-card { align-items: flex-start; flex-direction: column; }
    .prayer-mini-grid,
    .prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .liturgy-tabs { top: 70px; border-radius: 20px; }
    .gospel-block { padding-left: 0; }
    .gospel-block::before { display: none; }
}

@media (max-width: 620px) {
    .prayer-mini-grid,
    .prayer-grid { grid-template-columns: 1fr; }
    .liturgy-card-main,
    .prayer-detail-card { border-radius: 22px; }
    .liturgy-tabs { position: static; }
    .liturgy-tabs a { flex: 1 1 auto; text-align: center; }
}

/* Prayer cards refinement: compact home block + image-based prayer library */
.prayers-home {
    padding-top: clamp(32px, 5vw, 62px);
}

.prayers-home .section-head {
    align-items: center;
    margin-bottom: 22px;
}

.prayer-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.prayer-mini-card {
    position: relative;
    overflow: hidden;
    display: grid;
    min-height: 270px;
    padding: 0;
    border: 1px solid rgba(199, 149, 70, .28);
    border-radius: 22px;
    background: #17100d;
    box-shadow: 0 16px 42px rgba(58, 35, 16, .10);
}

.prayer-mini-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 10, 8, .04), rgba(13, 10, 8, .78)),
        linear-gradient(135deg, rgba(123, 30, 25, .15), rgba(199, 149, 70, .12));
    pointer-events: none;
}

.prayer-mini-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    background: #17100d;
    transition: transform .42s ease, filter .42s ease;
}

.prayer-mini-card strong,
.prayer-mini-card span {
    position: relative;
    z-index: 2;
    align-self: end;
    color: #fff8ea;
}

.prayer-mini-card strong {
    display: block;
    margin: auto 18px 4px;
    font-family: var(--serif);
    font-size: clamp(22px, 2.15vw, 29px);
    line-height: 1.02;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .38);
}

.prayer-mini-card span {
    display: block;
    min-height: 58px;
    margin: 0 18px 18px;
    color: rgba(255, 248, 234, .82);
    font-size: 14px;
    line-height: 1.3;
}

.prayer-mini-card:hover img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.04);
}

.prayers-page-wrap {
    padding-top: clamp(42px, 6vw, 76px);
}

.prayers-page-head {
    align-items: end;
    margin-bottom: 28px;
}

.prayers-page-head p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.enhanced-prayer-grid,
.prayer-grid.enhanced-prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.enhanced-prayer-card,
.prayer-card.enhanced-prayer-card {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 0;
    border: 1px solid rgba(199, 149, 70, .24);
    border-radius: 24px;
    background: rgba(255, 250, 240, .94);
    box-shadow: 0 18px 48px rgba(58, 35, 16, .09);
}

.prayer-card-media {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 16 / 10;
    background: #17100d;
}

.prayer-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(18, 12, 8, .48));
}

.prayer-card-media img,
.enhanced-prayer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    background: #17100d;
    transition: transform .42s ease, filter .42s ease;
}

.prayer-card-content {
    padding: 22px 22px 24px;
}

.prayer-card-content span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.prayer-card-content h2 {
    margin: 0 0 10px;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.02;
}

.prayer-card-content p {
    min-height: 72px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.prayer-card-content em {
    color: var(--wine);
    font-style: normal;
    font-size: 14px;
    font-weight: 900;
}

.enhanced-prayer-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}

.enhanced-prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 68px rgba(58, 35, 16, .16);
}

.prayer-detail-card img {
    width: min(620px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 1040px) {
    .prayer-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enhanced-prayer-grid,
    .prayer-grid.enhanced-prayer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .prayers-home .section-head,
    .prayers-page-head {
        align-items: flex-start;
    }

    .prayer-mini-grid,
    .enhanced-prayer-grid,
    .prayer-grid.enhanced-prayer-grid {
        grid-template-columns: 1fr;
    }

    .prayer-mini-card {
        min-height: 220px;
    }

    .prayer-mini-card strong {
        font-size: 28px;
    }

    .prayer-card-content p {
        min-height: 0;
    }
}

/* Prayer section rebuild: image-first cards, compact rhythm and premium editorial layout */
.prayers-library {
    padding-top: clamp(48px, 7vw, 88px);
    padding-bottom: clamp(56px, 8vw, 104px);
}

.prayers-library-head {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto clamp(32px, 5vw, 52px);
    text-align: center;
}

.prayers-cross {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1;
}

.prayers-cross::before,
.prayers-cross::after {
    content: '';
    width: 44px;
    height: 1px;
    background: rgba(199, 149, 70, .42);
}

.prayers-cross::before { margin-right: 18px; }
.prayers-cross::after { margin-left: 18px; }

.prayers-library-head h1 {
    margin: 0;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(54px, 8vw, 92px);
    line-height: .95;
    letter-spacing: -.045em;
}

.prayers-library-head p,
.prayers-home-head p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.5;
}

.prayers-home {
    padding-top: clamp(34px, 5vw, 70px);
    padding-bottom: clamp(48px, 7vw, 88px);
}

.prayers-home .section-head,
.prayers-home-head {
    align-items: end;
    margin-bottom: clamp(22px, 3vw, 34px);
}

.prayers-home-head h2 {
    margin-bottom: 8px;
}

.prayer-display-grid,
.prayer-mini-grid,
.prayer-grid.enhanced-prayer-grid,
.enhanced-prayer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 30px);
}

.prayer-photo-card,
.prayer-mini-card,
.prayer-card.enhanced-prayer-card,
.enhanced-prayer-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    border: 1px solid rgba(120, 79, 38, .16);
    border-radius: 13px;
    color: inherit;
    background: rgba(255, 251, 244, .95);
    box-shadow: 0 18px 44px rgba(58, 35, 16, .10);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.prayer-photo-card:hover,
.prayer-mini-card:hover,
.prayer-card.enhanced-prayer-card:hover,
.enhanced-prayer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(199, 149, 70, .36);
    box-shadow: 0 28px 64px rgba(58, 35, 16, .15);
}

.prayer-photo-card img,
.prayer-mini-card img,
.prayer-card-media img,
.enhanced-prayer-card img,
.prayer-card.enhanced-prayer-card img {
    position: static;
    display: block;
    width: 100%;
    height: clamp(178px, 15vw, 235px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    background: #f2e1c7;
    transition: transform .38s ease, filter .38s ease;
}

.prayer-home-grid .prayer-photo-card img {
    height: clamp(165px, 13.5vw, 210px);
}

.prayer-photo-card:hover img,
.prayer-mini-card:hover img,
.enhanced-prayer-card:hover img {
    transform: scale(1.025);
    filter: saturate(1.03) contrast(1.02);
}

.prayer-photo-card::after,
.prayer-mini-card::after,
.prayer-card-media::after {
    display: none;
}

.prayer-photo-card-body,
.prayer-card-content,
.prayer-mini-card {
    min-width: 0;
}

.prayer-photo-card-body,
.prayer-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(20px, 2vw, 28px) clamp(20px, 2.25vw, 30px) clamp(22px, 2.4vw, 30px);
}

.prayer-photo-card h2,
.prayer-photo-card h3,
.prayer-card-content h2,
.prayer-mini-card strong {
    position: static;
    z-index: auto;
    margin: 0 0 12px;
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: clamp(26px, 2.25vw, 34px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.02em;
    text-shadow: none;
}

.prayer-photo-card p,
.prayer-card-content p,
.prayer-mini-card span {
    position: static;
    z-index: auto;
    min-height: 82px;
    margin: 0 0 22px;
    color: rgba(50, 42, 34, .78);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.48;
}

.prayer-home-grid .prayer-photo-card p {
    min-height: 72px;
}

.prayer-photo-card span,
.prayer-card-content em {
    margin-top: auto;
    color: var(--gold-dark, #a9722c);
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .01em;
}

.prayer-card-content span {
    display: none;
}

.prayer-card-media {
    margin: 0;
    aspect-ratio: auto;
    background: #f2e1c7;
}

.prayer-detail-card img {
    width: min(680px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 1040px) {
    .prayer-display-grid,
    .prayer-mini-grid,
    .prayer-grid.enhanced-prayer-grid,
    .enhanced-prayer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .prayers-home .section-head,
    .prayers-home-head {
        align-items: flex-start;
    }

    .prayer-display-grid,
    .prayer-mini-grid,
    .prayer-grid.enhanced-prayer-grid,
    .enhanced-prayer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .prayer-photo-card img,
    .prayer-mini-card img,
    .prayer-card-media img,
    .enhanced-prayer-card img,
    .prayer-card.enhanced-prayer-card img {
        height: auto;
        min-height: 190px;
    }

    .prayer-photo-card p,
    .prayer-card-content p,
    .prayer-mini-card span,
    .prayer-home-grid .prayer-photo-card p {
        min-height: 0;
    }

    .prayers-library-head h1 {
        font-size: clamp(46px, 14vw, 68px);
    }
}

/* Prayer cards: keep 3 cards per row on desktop, matching the approved layout */
@media (min-width: 901px) {
    .prayer-display-grid,
    .prayer-home-grid,
    .prayers-library .prayer-display-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) and (min-width: 681px) {
    .prayer-display-grid,
    .prayer-home-grid,
    .prayers-library .prayer-display-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
