/*
 * Blog listing and single-post styles for Richfolds.
 */

.rf-bl1-hero {
    position: relative;
    min-height: 0;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: var(--rf-bl1-hero-image);
    background-position: bottom;
    background-size: auto, cover;
    background-repeat: no-repeat;
    text-align: center;
    box-shadow: 0 2px 5px #0003;
}

.rf-bl1-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(7, 19, 28, 0.46), rgba(7, 19, 28, 0.46)),
        linear-gradient(rgba(7, 19, 28, 0.12), rgba(7, 19, 28, 0.56));
}

.rf-bl1-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 9rem 1.5rem 6rem;
}

.rf-bl1-content {
    width: min(100%, 960px);
    margin: 0 auto;
}

.rf-bl1-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #ffbf4e;
    margin-bottom: 2rem;
}

.rf-bl1-kicker::before,
.rf-bl1-kicker::after {
    content: "";
    width: 42px;
    height: 1px;
    background-color: rgba(255, 191, 78, 0.88);
}

.rf-bl1-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1.05;
    text-transform: uppercase;
    color: #ffbf4e;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.rf-bl1-decor-line {
    width: min(35%, 240px);
    height: 2px;
    margin: 1.2rem auto 0;
    background-image: linear-gradient(to right, transparent, #ffbf4e 50%, transparent);
    box-shadow: 0 1px 6px #00000061;
}

.rf-bl2-page {
    background: #fbfaf8;
}

.rf-bl2-section {
    padding: 72px 0 88px;
}

.rf-bl2-boxed-container {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.rf-bl2-header {
    width: min(100%, 900px);
    margin: 0 auto 40px;
    text-align: center;
}

.rf-bl2-heading {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 45px;
    line-height: 1.1;
    color: #22374a;
}

.rf-bl2-intro {
    margin: 1rem auto 0;
    max-width: 680px;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #5b6773;
}

.rf-bl2-header-line {
    width: min(100%, 760px);
    height: 2px;
    margin: 1.3rem auto 0;
    background: linear-gradient(to right, transparent, #d6a329 14%, #d6a329 86%, transparent);
}

.rf-bl2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.rf-bl2-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid #e8e4de;
    box-shadow: 0 14px 34px rgba(21, 34, 47, 0.08);
}

.rf-bl2-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #d9e6ea, #f8e1c0);
}

.rf-bl2-card-image,
.rf-bl2-card-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.rf-bl2-card-image {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rf-bl2-card:hover .rf-bl2-card-image,
.rf-bl2-card:focus-within .rf-bl2-card-image {
    transform: scale(1.04);
}

.rf-bl2-card-placeholder {
    background:
        linear-gradient(145deg, rgba(34, 55, 74, 0.12), rgba(214, 163, 41, 0.18)),
        linear-gradient(135deg, #eff5f6, #f6efe3);
}

.rf-bl2-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 24px;
}

.rf-bl2-card-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.25;
    color: #22374a;
}

.rf-bl2-card-title a {
    color: inherit;
    text-decoration: none;
}

.rf-bl2-card-title a:hover,
.rf-bl2-card-title a:focus {
    color: #0b5563;
}

.rf-bl2-card-subheading {
    margin: 0.95rem 0 1.35rem;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #4f5964;
}

.rf-bl2-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.7rem 1.15rem;
    border: 1px solid #163b58;
    background: #163b58;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rf-bl2-card-btn:hover,
.rf-bl2-card-btn:focus {
    background: #0b5563;
    border-color: #0b5563;
    color: #ffffff;
}

.rf-bl2-empty {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e8e4de;
    box-shadow: 0 14px 34px rgba(21, 34, 47, 0.06);
}

.rf-bl2-empty-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #22374a;
}

.rf-bl2-empty-text {
    margin: 1rem 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #5b6773;
}

.rf-bl2-pagination {
    margin-top: 42px;
}

.rf-bl2-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rf-bl2-pagination .page-numbers li {
    margin: 0;
}

.rf-bl2-pagination .page-numbers a,
.rf-bl2-pagination .page-numbers span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dbe0;
    background: #ffffff;
    color: #22374a;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.rf-bl2-pagination .page-numbers a:hover,
.rf-bl2-pagination .page-numbers a:focus {
    border-color: #0b5563;
    color: #0b5563;
}

.rf-bl2-pagination .page-numbers .current {
    border-color: #163b58;
    background: #163b58;
    color: #ffffff;
}

.rf-bp1-page {
    background: #ffffff;
}

.rf-bp1-boxed-container,
.rf-bp2-boxed-container {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.rf-bp1-boxed-container--narrow {
    max-width: 1200px;
}

.rf-bp1-intro {
    padding: 72px 0 48px;
}

.rf-bp1-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
    gap: 48px;
    align-items: center;
}

.rf-bp1-intro-copy {
    max-width: 560px;
}

.rf-bp1-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 37px;
    line-height: 45px;
    color: #1f4b68;
}

.rf-bp1-subheading {
    margin: 2rem 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    line-height: 25px;
    font-style: italic;
    color: #374151;
}

.rf-bp1-intro-line {
    width: min(100%, 540px);
    height: 2px;
    margin-top: 2.8rem;
    background: linear-gradient(to right, #d6a329 0%, rgba(214, 163, 41, 0.22) 100%);
}

.rf-bp1-intro-media {
    overflow: hidden;
    background: #f6f2eb;
    box-shadow: 0 18px 40px rgba(21, 34, 47, 0.12);
}

.rf-bp1-intro-image,
.rf-bp1-intro-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.rf-bp1-intro-image {
    min-height: 320px;
    object-fit: cover;
}

.rf-bp1-intro-placeholder {
    min-height: 320px;
    background:
        linear-gradient(145deg, rgba(34, 55, 74, 0.12), rgba(214, 163, 41, 0.18)),
        linear-gradient(135deg, #eff5f6, #f6efe3);
}

.rf-bp1-content-section {
    padding: 0 0 72px;
}

.rf-bp1-article {
    margin: 0 auto;
}

.rf-bp1-content {
    font-family: 'Roboto', sans-serif;
    color: #334155;
    line-height: 1.85;
    font-size: 17px;
}

.rf-bp1-content > :first-child {
    margin-top: 0;
}

.rf-bp1-content > :last-child {
    margin-bottom: 0;
}

.rf-bp1-content h1,
.rf-bp1-content h2,
.rf-bp1-content h3,
.rf-bp1-content h4,
.rf-bp1-content h5,
.rf-bp1-content h6 {
    margin: 1.9em 0 0.7em;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: #1f4b68;
}

.rf-bp1-content h3 {
    color: #17425e;
    font-size: 25px;
}

.rf-bp1-content p,
.rf-bp1-content ul,
.rf-bp1-content ol,
.rf-bp1-content blockquote {
    margin: 0 0 1.2rem;
}

.rf-bp1-content a {
    color: #0b5563;
}

.rf-bp1-content img {
    max-width: 100%;
    height: auto;
}

.rf-bp1-content blockquote {
    padding: 1.2rem 1.4rem;
    border-left: 3px solid #d6a329;
    background: #f8f5ef;
    color: #22374a;
}

.rf-bp1-return-wrap {
    margin-top: 3rem;
}

.rf-bp1-return-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 0.9rem 1.6rem;
    border: 1px solid #1f2937;
    background: #ffffff;
    color: #1f2937;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(21, 34, 47, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rf-bp1-return-btn:hover,
.rf-bp1-return-btn:focus {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.rf-bp2-recent {
    padding: 72px 0 84px;
    background-image: linear-gradient(#ffffff78, #ffffff78), url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/What-I-do-scaled.webp');
    background-position: center bottom;
    background-size: auto, cover;
    background-repeat: no-repeat;
}

.rf-bp2-header {
    margin-bottom: 2rem;
}

.rf-bp2-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 35px;
    line-height: 45px;
    color: #1f4b68;
}

.rf-bp2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rf-bp2-card {
    display: grid;
    grid-template-columns: 183px minmax(0, 1fr);
    align-items: start;
    background: rgba(247, 241, 233, 0.94);
    box-shadow: 0 12px 30px rgba(21, 34, 47, 0.08);
    overflow: hidden;
}

.rf-bp2-card-media {
    display: block;
    align-self: start;
    width: 183px;
    min-width: 183px;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #d9e6ea, #f8e1c0);
}

.rf-bp2-card-image,
.rf-bp2-card-placeholder {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
}

.rf-bp2-card-image {
    object-fit: cover;
}

.rf-bp2-card-placeholder {
    background:
        linear-gradient(145deg, rgba(34, 55, 74, 0.12), rgba(214, 163, 41, 0.18)),
        linear-gradient(135deg, #eff5f6, #f6efe3);
}

.rf-bp2-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 18px 0;
}

.rf-bp2-card-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 24px;
    color: #1f4b68;
}

.rf-bp2-card-title a {
    color: inherit;
    text-decoration: none;
}

.rf-bp2-card-title a:hover,
.rf-bp2-card-title a:focus {
    color: #0b5563;
}

.rf-bp2-card-text {
    margin: 0.85rem 0 1.1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4f5964;
}

.rf-bp2-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.6rem 1rem;
    border: 1px solid #a67d22;
    background: #a67d22;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rf-bp2-card-btn:hover,
.rf-bp2-card-btn:focus {
    background: #0b5563;
    border-color: #0b5563;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .rf-bl2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rf-bp1-intro-grid,
    .rf-bp2-grid {
        grid-template-columns: 1fr;
    }

    .rf-bp1-intro-copy {
        max-width: none;
    }

    .rf-bp2-card {
        grid-template-columns: 183px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .rf-bl1-hero {
        height: 78vh;
    }

    .rf-bl1-inner {
        padding: 8.5rem 1.25rem 5rem;
    }

    .rf-bl1-kicker {
        gap: 10px;
        font-size: 0.82rem;
        letter-spacing: 0.28em;
    }

    .rf-bl1-kicker::before,
    .rf-bl1-kicker::after {
        width: 24px;
    }

    .rf-bl2-section {
        padding: 56px 0 72px;
    }

    .rf-bl2-boxed-container {
        padding: 0 18px;
    }

    .rf-bl2-grid {
        grid-template-columns: 1fr;
    }

    .rf-bl2-card-body {
        padding: 18px 0 22px;
    }

    .rf-bp1-boxed-container,
    .rf-bp2-boxed-container {
        padding: 0 18px;
    }

    .rf-bp1-intro {
        padding: 56px 0 40px;
    }

    .rf-bp1-intro-grid {
        gap: 26px;
    }

    .rf-bp1-intro-image,
    .rf-bp1-intro-placeholder {
        min-height: 220px;
    }

    .rf-bp1-content-section {
        padding-bottom: 56px;
    }

    .rf-bp1-return-btn {
        width: 100%;
    }

    .rf-bp2-recent {
        padding: 56px 0 64px;
    }

    .rf-bp2-card {
        grid-template-columns: 1fr;
    }

    .rf-bp2-card-media {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
    }
}
