/* ============================================================
   Jesus Le R.O.C. / Jesus The R.O.C.
   Modernized design inspired by the original website
   — burnt orange surround, white content, warm and spiritual
   ============================================================ */

:root {
    /* The signature orange — muted from the original #CC3300 */
    --orange: #B84225;
    --orange-dark: #8C3018;
    --orange-light: #D4613E;

    /* Content area */
    --white: #ffffff;
    --content-bg: #ffffff;
    --page-bg: var(--orange);

    /* Text */
    --navy: #003366;
    --text: #333333;
    --text-light: #666666;

    /* Accents */
    --gold: #CC6600;
    --gold-hover: #E07700;
    --link: #003366;
    --link-hover: #CC6600;

    /* Nav */
    --nav-bg: rgba(0, 0, 0, 0.7);

    /* Section backgrounds */
    --section-alt: #F5F8FB;

    /* Typography */
    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    --font-ui: 'Bricolage Grotesque', system-ui, sans-serif;

    /* Layout */
    --container: 960px;
    --content-padding: 2rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
}

::selection { background: rgba(204, 102, 0, 0.2); }

.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--navy); color: #fff;
    padding: 0.5rem 1rem; border-radius: 0 0 6px 6px;
    z-index: 1000; font-family: var(--font-ui); font-size: 0.85rem;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================
   BANNER — full-width header image
   ============================================================ */
.site-banner {
    background: var(--page-bg);
    text-align: center;
}
.banner-img {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: block;
}

/* About Us section — full article on homepage */
.about-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}
.about-title {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.about-layout {
    overflow: hidden; /* contain the float */
}
.about-image {
    flex-shrink: 0;
    width: 220px;
    float: left;
    margin: 0 1.5rem 1rem 0;
}
.about-image img {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
/* On mobile, image above text */
@media (max-width: 599px) {
    .about-layout { flex-direction: column; }
    .about-image {
        float: none;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1rem;
    }
}

/* ============================================================
   NAVIGATION — below the banner, dark bar
   ============================================================ */
.site-nav {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0;
}
.nav-link {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    padding: 12px 16px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.nav-link--lang {
    color: var(--gold);
    font-weight: 700;
}
.nav-link--lang:hover { color: var(--gold-hover); }
.nav-lang { margin-left: auto; }

/* Hamburger — hidden, nav is always visible */
.menu-toggle { display: none; }

/* ============================================================
   PAGE WRAPPER — white content on orange background
   ============================================================ */
.page-wrapper {
    max-width: var(--container);
    margin: 0 auto;
}
.content-area {
    background: var(--content-bg);
    padding: var(--content-padding);
    min-height: 60vh;
}

/* (Welcome section removed — replaced by About Us section) */

/* ============================================================
   HOMEPAGE — Sections
   ============================================================ */
.home-section {
    margin-bottom: 2rem;
}
.home-section-title {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Article entries — flowing, not cards */
.home-article {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.home-article:last-child { border-bottom: none; }
.home-article-section {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    margin-right: 1rem;
}
.home-article-date {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-light);
}
.home-article-title {
    font-size: 1.15rem;
    margin: 0.3rem 0;
}
.home-article-title a { color: var(--navy); }
.home-article-title a:hover { color: var(--gold); }
.home-article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Section list — simple clean links */
.section-list {
    list-style: none;
}
.section-list-item {
    border-bottom: 1px solid #eee;
}
.section-list-item:last-child { border-bottom: none; }
.section-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.5rem;
    color: var(--navy);
    transition: background 0.2s, padding-left 0.2s;
}
.section-list-link:hover {
    background: var(--section-alt);
    padding-left: 1rem;
    color: var(--navy);
}
.section-list-link strong {
    font-family: var(--font-display);
    font-size: 1rem;
}
.section-list-count {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============================================================
   SECTION PAGE
   ============================================================ */
.section-page-title {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.section-featured {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}
.section-all-list {
    margin-top: 1rem;
}
.section-all-count {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Legacy — keep for compatibility */
.section-hero { display: none; }
.section-hero-title, .section-hero-count { display: none; }

/* Breadcrumb — positioned in footer area */
.breadcrumb {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-light);
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e5e5;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { margin: 0 0.4rem; opacity: 0.5; }
.breadcrumb-current { color: var(--text-light); opacity: 0.7; }
/* Hide breadcrumb from section hero — it renders at page bottom instead */
.section-hero .breadcrumb { display: none; }

/* ============================================================
   ARTICLE LIST (section pages) — flowing, not cards
   ============================================================ */
.section-block { padding: 0; }

.article-list {
    display: flex;
    flex-direction: column;
}
.article-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
    transition: none;
}
.article-card:last-child { border-bottom: none; }
.article-card:hover {
    transform: none;
    box-shadow: none;
}
.article-card--list {
    border-left: none;
    padding: 1.2rem 0;
}
.article-card--list:hover {
    border-left-color: transparent;
    transform: none;
    box-shadow: none;
    background: var(--section-alt);
    padding-left: 1rem;
}
.article-card--featured { border-top: none; }
.article-card--featured::before { display: none; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-light);
}
.card-section-tag {
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.68rem;
}
.card-section-tag:hover { color: var(--gold); }
.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--gold); }
.card-excerpt {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.card-read-more {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
}
.card-read-more:hover { color: var(--gold-hover); }

/* Featured grid — remove grid, just stack */
.featured-grid {
    display: flex;
    flex-direction: column;
}

/* Sections overview — simple list */
.sections-overview { background: transparent; }
.sections-overview::before { display: none; }
.sections-grid { display: flex; flex-direction: column; gap: 0; }
.section-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s, padding-left 0.2s;
}
.section-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--section-alt);
    padding-left: 1rem;
    color: var(--text);
}
.section-card-accent { display: none; }
.section-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}
.section-card-count {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0;
}
.section-card-latest { display: none; }
.section-card-arrow { display: none; }

.section-heading {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
}
.section-heading::before { display: none; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-header {
    background: transparent;
    border-bottom: none;
    padding: 0 0 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}
.article-header::after { display: none; }
.article-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: var(--gold);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text-light);
}
.meta-sep { opacity: 0.4; }
.lang-switch-link {
    font-weight: 700;
    color: var(--gold);
}
.lang-switch-link:hover { color: var(--navy); }

/* Article body — the reading experience */
.article-body { padding: 0; }
.article-page { padding: 0; }
.prose {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
}
.prose p { margin: 1.3em 10% 0 10%; }
/* Collapse Quill's empty paragraphs <p><br></p> */
.prose p:has(> br:only-child) { margin: 0; line-height: 0; font-size: 0; }
.prose h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-top: 2em;
    margin-bottom: 0.7em;
    color: var(--navy);
}
.prose h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--navy);
}
.prose strong { font-weight: 600; color: var(--navy); }
.prose blockquote {
    border-left: 3px solid var(--gold);
    padding: 0.8rem 1.2rem;
    margin: 1.5em 0;
    background: #FFF8F0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--text-light);
}
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.5em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: 4px; margin: 1.5em 0; }
.prose a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 2px;
}
.prose a:hover { color: var(--gold); }

/* Quill content classes */
.prose .ql-size-huge { font-size: 2em; }
.prose .ql-size-large { font-size: 1.5em; }
.prose .ql-size-small { font-size: 0.8em; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }

/* Prev/Next nav */
.article-nav {
    border-top: 1px solid #e5e5e5;
    padding: 1.5rem 0;
}
.article-nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.article-nav-link {
    display: block;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: border-color 0.2s;
}
.article-nav-link:hover {
    border-color: var(--gold);
    color: var(--text);
}
.article-nav-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin-bottom: 0.2rem;
}
.article-nav-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.35;
}
.article-nav-next { text-align: right; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}
.pagination-link {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.pagination-link:hover { background: var(--section-alt); }
.pagination-link.disabled {
    color: var(--text-light);
    pointer-events: none;
    opacity: 0.4;
}
.pagination-info {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-page { padding: 4rem 0; text-align: center; }
.not-found-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    color: #e5e5e5;
    line-height: 1;
}
.not-found-title { font-size: 1.4rem; margin-top: 0.8rem; }
.not-found-message { color: var(--text-light); margin: 0.8rem 0 2rem; }
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
}
.btn-primary:hover {
    background: var(--orange-dark);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.75);
    padding: 2.5rem 0 0;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    display: grid;
    gap: 2rem;
}
.footer-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
}
.footer-tagline {
    font-size: 0.88rem;
    margin-top: 0.3rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
}
.footer-heading {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}
.footer-links { list-style: none; }
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 3px 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-address {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.8;
}
.footer-address a { color: rgba(255,255,255,0.65); }
.footer-address a:hover { color: var(--gold); }
.footer-bottom {
    max-width: var(--container);
    margin: 2rem auto 0;
    padding: 1rem var(--content-padding);
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
    .article-nav-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
    .prose { font-size: 1.12rem; }
}

/* nav-list is always flex, no breakpoint needed */

/* Empty state */
.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 4rem 0;
    font-size: 1.05rem;
    font-style: italic;
}
