:root {
    --posts-background: #f5f3ed;
    --posts-surface: #ebe8df;
    --posts-dark: #17211d;
    --posts-dark-soft: #233029;
    --posts-text: #1d2722;
    --posts-muted: #707873;
    --posts-line: rgba(29, 39, 34, 0.14);
    --posts-accent: #b98752;
    --posts-accent-light: #d8bc94;
    --posts-white: #fffdf8;
    --posts-max-width: 1380px;
    --posts-font:
        "Pretendard Variable",
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.faith-posts-page {
    margin: 0;
    background: var(--posts-background);
    color: var(--posts-text);
    font-family: var(--posts-font);
}

.faith-posts-page * {
    box-sizing: border-box;
}

.faith-posts-page a {
    color: inherit;
    text-decoration: none;
}


/* Header */

.faith-posts-header {
    color: var(--posts-white);
}

.faith-posts-header.is-scrolled {
    color: var(--posts-text);
}

.faith-navigation-link.is-active::after {
    transform: scaleX(1);
}

.faith-navigation-dropdown a.is-active {
    background: var(--posts-surface);
    font-weight: 650;
}


/* Hero */

.faith-posts-hero {
    position: relative;
    min-height: 620px;
    padding: 160px 4vw 90px;
    display: flex;
    align-items: flex-end;
    color: var(--posts-white);
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(185, 135, 82, 0.24),
            transparent 24%
        ),
        linear-gradient(
            125deg,
            #111a16 0%,
            #21322a 55%,
            #15201b 100%
        );
    overflow: hidden;
}

.faith-posts-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.07) 1px,
            transparent 1px
        );
    background-size: 92px 92px;
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 94%
    );
}

.faith-posts-hero-glow {
    position: absolute;
    top: 40px;
    right: 10%;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(216, 188, 148, 0.17),
        transparent 68%
    );
    filter: blur(5px);
}

.faith-posts-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--posts-max-width);
    margin: 0 auto;
}

.faith-posts-breadcrumb {
    margin-bottom: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faith-posts-breadcrumb a {
    transition: color 0.2s ease;
}

.faith-posts-breadcrumb a:hover {
    color: var(--posts-white);
}

.faith-posts-breadcrumb strong {
    color: var(--posts-accent-light);
    font-weight: 600;
}

.faith-posts-hero-content {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(280px, 0.55fr);
    gap: 8vw;
    align-items: end;
}

.faith-posts-eyebrow {
    margin: 0 0 25px;
    color: var(--posts-accent-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.faith-posts-hero h1 {
    max-width: 900px;
    margin: 0;
    font-family: var(--posts-font);
    font-size: clamp(52px, 6.8vw, 103px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.065em;
    word-break: keep-all;
}

.faith-posts-hero h1.faith-posts-category-title {
    font-size: clamp(40px, 5vw, 76px);
}

.faith-posts-hero h1 strong {
    color: var(--posts-accent-light);
    font-weight: 600;
}

.faith-posts-hero-description {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faith-posts-hero-description p {
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 13px;
    line-height: 1.9;
    word-break: keep-all;
}

.faith-posts-count {
    display: block;
    margin-top: 32px;
    color: var(--posts-accent-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}


/* Category filter */

.faith-posts-filter-section {
    position: relative;
    z-index: 10;
    padding: 0 4vw;
    background: var(--posts-background);
    border-bottom: 1px solid var(--posts-line);
}

.faith-posts-filter {
    max-width: var(--posts-max-width);
    margin: 0 auto;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.faith-posts-filter::-webkit-scrollbar {
    display: none;
}

.faith-posts-filter a {
    position: relative;
    flex: 0 0 auto;
    padding: 24px 16px 20px;
    color: var(--posts-muted);
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.faith-posts-filter a::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: -1px;
    left: 16px;
    height: 2px;
    background: var(--posts-text);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.faith-posts-filter a:hover,
.faith-posts-filter a.is-active {
    color: var(--posts-text);
}

.faith-posts-filter a.is-active::after {
    transform: scaleX(1);
}


/* Main content */

.faith-posts-content {
    max-width: var(--posts-max-width);
    margin: 0 auto;
    padding: 120px 4vw 155px;
}

.faith-posts-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; align-items: start; }
.faith-posts-results { min-width: 0; }
.faith-posts-subcategory { border-right: 1px solid var(--posts-line); display: grid; gap: 5px; padding: 8px 26px 20px 0; position: sticky; top: 115px; }
.faith-posts-subcategory p { color: var(--posts-muted); font-size: .68rem; letter-spacing: .08em; line-height: 1.5; margin: 0 0 12px; }
.faith-posts-subcategory a { border-left: 2px solid transparent; color: var(--posts-muted); font-size: .84rem; line-height: 1.5; padding: 10px 12px; transition: background-color .2s, border-color .2s, color .2s; }
.faith-posts-subcategory a:hover, .faith-posts-subcategory a.is-active { background: var(--posts-surface); border-left-color: var(--posts-accent); color: var(--posts-text); font-weight: 650; }

.faith-posts-heading {
    margin-bottom: 50px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.faith-posts-section-kicker {
    margin: 0 0 14px;
    color: var(--posts-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.faith-posts-heading h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 600;
    letter-spacing: -0.055em;
}

.faith-posts-heading > span {
    color: var(--posts-muted);
    font-size: 12px;
}


/* Featured article */

.faith-posts-featured {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(330px, 0.75fr);
    min-height: 580px;
    margin-bottom: 90px;
    background: var(--posts-dark);
    color: var(--posts-white);
}

.faith-posts-featured-image {
    min-height: 580px;
    overflow: hidden;
}

.faith-posts-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(
        0.2,
        0.75,
        0.25,
        1
    );
}

.faith-posts-featured-image:hover img {
    transform: scale(1.035);
}

.faith-posts-featured-fallback {
    width: 100%;
    height: 100%;
    min-height: 580px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(
            circle at 80% 18%,
            rgba(216, 188, 148, 0.28),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #2d4439,
            #111a16
        );
}

.faith-posts-featured-fallback span {
    color: var(--posts-accent-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.faith-posts-featured-fallback strong {
    font-size: clamp(48px, 5vw, 84px);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.07em;
}

.faith-posts-featured-content {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faith-posts-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--posts-muted);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.faith-posts-featured-content .faith-posts-meta {
    color: rgba(255, 255, 255, 0.54);
}

.faith-posts-featured-content .faith-posts-meta span {
    color: var(--posts-accent-light);
}

.faith-posts-featured-content h2 {
    margin: 28px 0 0;
    font-size: clamp(36px, 4vw, 62px);
    line-height: 1.22;
    font-weight: 600;
    letter-spacing: -0.055em;
    word-break: keep-all;
}

.faith-posts-featured-summary {
    margin: 27px 0 35px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 15px;
    line-height: 1.85;
    word-break: keep-all;

    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.faith-posts-read-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 600;
}

.faith-posts-read-link span {
    transition: transform 0.3s ease;
}

.faith-posts-read-link:hover span {
    transform: translate(5px, -5px);
}


/* Card grid */

.faith-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 25px;
    row-gap: 70px;
}

.faith-post-card {
    min-width: 0;
}

.faith-post-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faith-post-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--posts-surface);
}

.faith-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(
        0.2,
        0.75,
        0.25,
        1
    );
}

.faith-post-card-link:hover .faith-post-card-image img {
    transform: scale(1.045);
}

.faith-post-card-fallback {
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--posts-white);
    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(216, 188, 148, 0.25),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #31473d,
            #17211d
        );
}

.faith-post-card-fallback span {
    color: var(--posts-accent-light);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.faith-post-card-fallback strong {
    align-self: flex-end;
    font-size: 80px;
    line-height: 0.8;
    font-weight: 600;
    opacity: 0.18;
}

.faith-post-card-category {
    position: absolute;
    top: 17px;
    left: 17px;
    padding: 8px 11px;
    color: var(--posts-text);
    background: rgba(255, 253, 248, 0.9);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 650;
}

.faith-post-card-body {
    flex: 1;
    padding: 24px 3px 0;
    display: flex;
    flex-direction: column;
}

.faith-post-card-body h2 {
    margin: 17px 0 0;
    font-size: clamp(24px, 2.15vw, 33px);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.04em;
    word-break: keep-all;
    transition: color 0.25s ease;
}

.faith-post-card-link:hover h2 {
    color: var(--posts-accent);
}

.faith-post-card-summary {
    margin: 17px 0 23px;
    color: var(--posts-muted);
    font-size: 14px;
    line-height: 1.75;
    word-break: keep-all;

    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.faith-post-card-read {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--posts-line);
    font-size: 12px;
    font-weight: 600;
}

.faith-post-card-read i {
    font-style: normal;
    transition: transform 0.3s ease;
}

.faith-post-card-link:hover .faith-post-card-read i {
    transform: translate(5px, -5px);
}


/* Empty state */

.faith-empty-posts {
    min-height: 430px;
    padding: 70px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--posts-line);
    text-align: center;
}

.faith-empty-icon {
    margin-bottom: 24px;
    color: var(--posts-accent);
    font-size: 32px;
}

.faith-empty-posts h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.faith-empty-posts p {
    max-width: 520px;
    margin: 18px 0 28px;
    color: var(--posts-muted);
    font-size: 15px;
    line-height: 1.8;
}

.faith-empty-posts a {
    display: inline-flex;
    gap: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 600;
}


/* Tablet */

@media (max-width: 1050px) {
    .faith-posts-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 38px; }
    .faith-posts-hero-content {
        grid-template-columns: 1fr;
    }

    .faith-posts-hero-description {
        max-width: 620px;
    }

    .faith-posts-featured {
        grid-template-columns: 1fr;
    }

    .faith-posts-featured-image,
    .faith-posts-featured-fallback {
        min-height: 480px;
    }

    .faith-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Mobile */

@media (max-width: 720px) {
    .faith-posts-layout { display: block; }
    .faith-posts-subcategory { border-bottom: 1px solid var(--posts-line); border-right: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 55px; padding: 0 0 18px; position: static; }
    .faith-posts-subcategory p { flex-basis: 100%; margin-bottom: 4px; }
    .faith-posts-subcategory a { border-bottom: 2px solid transparent; border-left: 0; padding: 8px 4px; }
    .faith-posts-subcategory a:hover, .faith-posts-subcategory a.is-active { border-bottom-color: var(--posts-accent); }
    .faith-posts-hero {
        min-height: 560px;
        padding: 130px 20px 70px;
    }

    .faith-posts-breadcrumb {
        margin-bottom: 48px;
    }

    .faith-posts-hero h1 {
        font-size: clamp(44px, 13vw, 66px);
        line-height: 1.12;
    }

    .faith-posts-filter-section {
        padding: 0 8px;
    }

    .faith-posts-filter a {
        padding: 20px 12px 17px;
        font-size: 12px;
    }

    .faith-posts-content {
        padding: 80px 20px 110px;
    }

    .faith-posts-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .faith-posts-heading h2 {
        font-size: 42px;
    }

    .faith-posts-featured {
        min-height: auto;
        margin-bottom: 65px;
    }

    .faith-posts-featured-image,
    .faith-posts-featured-fallback {
        min-height: 310px;
    }

    .faith-posts-featured-content {
        padding: 34px 25px 40px;
    }

    .faith-posts-featured-content h2 {
        font-size: 35px;
    }

    .faith-posts-grid {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }

    .faith-post-card-body h2 {
        font-size: 29px;
    }
}
