/*
 * Home Page Template styles for Richfolds.
 * Loaded only by the Home Page Template.
 */

:root {
    --rf-home-accent-blue: #17425e;
    --rf-home-accent-blue-gradient: linear-gradient(to bottom, transparent, #ffffff40);
    --rf-home-accent-gold: #916c2b;
    --rf-home-visual-height: 550px;
    --rf-home-visual-width: 86%;
    --rf-home-visual-offset: 60px;
    --rf-home-gold-width: 95px;
    --rf-home-gold-height: 350px;
    --rf-home-blue-width: 95px;
    --rf-home-blue-height: 390px;
    --rf-home-visual-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

/* hero.php */
/* Section 1: Hero Home Page Styles */
.rf-hs1-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.rf-hs1-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

.rf-hs1-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Subtle dark overlay for text readability */
    z-index: 0;
}

.rf-hs1-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.rf-hs1-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.2;
}

.rf-hs1-btn,
.rf-hs2-btn,
.rf-hs4-btn,
.rf-hs6-btn {
    border: 1px solid #000000;
    background-color: #0000;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 20px;
    font-family: Bodoni Moda, sans-serif;
    transition: all .2s;
    box-shadow: 0 2px 5px #0003;
    display: inline-block;
}

.rf-hs1-btn {
    border-color: #ffffff;
    color: #ffffff;
}

.rf-hs2-btn {
    border-color: #000000;
    color: #000000;
}

.rf-hs4-btn {
    border-color: #000000;
    color: #000000;
}

.rf-hs6-btn {
    border-color: #000000;
    color: #000000;
}

.rf-hs1-btn:hover,
.rf-hs1-btn:focus,
.rf-hs2-btn:hover,
.rf-hs2-btn:focus,
.rf-hs4-btn:hover,
.rf-hs4-btn:focus,
.rf-hs6-btn:hover,
.rf-hs6-btn:focus {
    border-color: #916c2b;
    background-color: #17425e;
    color: #ffffff;
    box-shadow: 0 2px 5px #00000080;
}

/* home_welcome.php */
.rf-hs2-about {
    padding: 120px 0;
    position: relative;
    /* Updated 3-Layer Background to show Wave Texture */
    background-image:
        linear-gradient(318deg, rgba(255, 255, 255, 0.5), #fff 47%),
        linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/wave-scaled.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.rf-hs2-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(420px, 0.98fr) minmax(0, 1fr);
    gap: 25px;
    align-items: center;
    position: relative;
}

.rf-hs2-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: var(--rf-home-visual-height);
    margin-left: auto;
}

.rf-hs2-gold-bar {
    width: var(--rf-home-gold-width);
    height: var(--rf-home-gold-height);
    position: absolute;
    background-color: var(--rf-home-accent-gold);
    left: 44px;
    top: 48px;
    z-index: 1;
}

.rf-hs2-image-portrait {
    position: absolute;
    top: 0;
    left: var(--rf-home-visual-offset);
    width: var(--rf-home-visual-width);
    height: calc(100% + 30px);
    z-index: 2;
    box-shadow: var(--rf-home-visual-shadow);
}

.rf-hs2-image-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-hs2-blue-about-block {
    position: absolute;
    bottom: -83px;
    left: 0;
    width: var(--rf-home-blue-width);
    height: var(--rf-home-blue-height);
    background-color: var(--rf-home-accent-blue);
    background-image: var(--rf-home-accent-blue-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-shadow: -5px 2px 10px rgba(0, 0, 0, 0.2);
}

.rf-hs2-blue-about-text {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 36px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 4px;
}

.rf-hs2-content {
    max-width: 650px;
    padding-left: 0;
}

.rf-hs2-welcome-text {
    font-size: 28px;
    color: #888;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.rf-hs2-title {
    font-size: 64px;
    color: #333;
    margin: 10px 0 30px 0;
    line-height: 1.1;
    display: inline-block;
    padding-bottom: 18px;
    position: relative;
}

.rf-hs2-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200px;
    height: 1px;
    background-color: #333;
}

.rf-hs2-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 991px) {
    .rf-hs2-container {
        grid-template-columns: 1fr;
    }

    .rf-hs2-visual-wrapper {
        max-width: 500px;
        height: 500px;
        margin-bottom: 0;
        margin-inline: auto;
    }

    .rf-hs2-title {
        font-size: 42px;
    }

    .rf-hs2-image-portrait {
        left: 40px;
        width: 88%;
        height: 470px;
    }

    .rf-hs2-blue-about-block {
        left: -10px;
        height: 320px;
        width: 70px;
    }

    .rf-hs2-gold-bar {
        left: 10px;
        top: 30px;
        height: 280px;
        width: 70px;
    }
}

@media (max-width: 479px) {
    .rf-hs2-visual-wrapper {
        height: 400px;
    }

    .rf-hs2-image-portrait {
        left: 0;
        width: 100%;
        height: 400px;
    }

    .rf-hs2-gold-bar,
    .rf-hs2-blue-about-block {
        display: none;
    }
}

/* home_services.php */
/* Prefix applied to the container */
.rf-hs3-boxed-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

/* Ultra-wide constraint using the prefixed class */
@media screen and (min-width: 1920px) {
    .rf-hs3-boxed-container {
        max-width: 1440px;
    }
}

.rf-hs3-services {
    padding-top: 140px;
    padding-bottom: 140px;
    background-color: #e4e0da;
    background-image: linear-gradient(to right,
            rgba(0, 0, 0, 0.2),
            rgb(255 255 255) 40%,
            rgb(255 255 255) 60%,
            rgba(0, 0, 0, 0.2)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/03/rich-scaled.webp');

    text-align: center;
    background-position: 0 0, 50%;
    background-size: auto, cover;
    background-attachment: scroll, fixed;
}

.rf-hs3-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rf-hs3-subtitle {
    font-family: 'Bodoni Moda', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: flex;
    font-size: 24px;
    font-weight: 400;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #17425e;
}

.rf-hs3-subtitle::before,
.rf-hs3-subtitle::after {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #000000;
}

.rf-hs3-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-top: 25px;
}

/* Grid Layout */
.rf-hs3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rf-hs3-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rf-hs3-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transform-origin: center;
    transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
    z-index: 1;
}

.rf-hs3-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.6s ease;
    z-index: 2;
}

.rf-hs3-card-content {
    position: relative;
    z-index: 3;
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rf-hs3-card-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.45s ease;
}

.rf-hs3-card-btn-wrap {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: translateY(18px);
    width: 100%;
}

.rf-hs3-card-btn-wrap a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 10px 18px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.rf-hs3-card-btn-wrap a:hover,
.rf-hs3-card-btn-wrap a:focus {
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
}

/* Hover States */
.rf-hs3-card:hover .rf-hs3-card-img {
    transform: scale(1.065);
}

.rf-hs3-card:hover .rf-hs3-card-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.rf-hs3-card:hover .rf-hs3-card-title {
    opacity: 0;
}

.rf-hs3-card:hover .rf-hs3-card-btn-wrap {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* home_meet.php */
/* Prefixed Boxed Container */
.rf-hs4-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-hs4-boxed-container {
        max-width: 1440px;
    }
}

/* Section Container */
.rf-hs4-section {
    padding: 120px 0;
    background-image: linear-gradient(32deg, #ffffff59, #fff 56%), linear-gradient(#ffffffe0, #ffffffe0), url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/wave-scaled.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    /* Prevents the negative bottom offsets from creating scrollbars */
}

/* Grid Layout */
.rf-hs4-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.98fr);
    gap: 25px;
    align-items: center;
}

/* ==========================================
   LEFT COLUMN: Text Elements
   ========================================== */
.rf-hs4-text-wrap {
    z-index: 5;
    max-width: 650px;
    padding-right: 0;
}

.rf-hs4-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: #777;
    margin: 0 0 5px 0;
}

.rf-hs4-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    color: #333;
    margin: 0 0 25px 0;
    line-height: 1.1;
    display: inline-block;
    padding-bottom: 18px;
    position: relative;
}

.rf-hs4-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 150px;
    height: 1px;
    background-color: #333;
}

.rf-hs4-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* ==========================================
   RIGHT COLUMN: Visual Stack
   ========================================== */
.rf-hs4-visual-wrap {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: var(--rf-home-visual-height);
    margin-right: auto;
}

/* 1. Back Layer: Gold Bar */
.rf-hs4-gold-bar {
    position: absolute;
    z-index: 0;
    background-color: var(--rf-home-accent-gold);
    width: var(--rf-home-gold-width);
    height: var(--rf-home-gold-height);
    top: 48px;
    left: 62px;
}

/* 2. Middle Layer: Doctor Image */
.rf-hs4-image-portrait {
    position: absolute;
    z-index: 1;
    background-image: url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/03/Dr_Tahki-scaled.webp');
    background-position: 50% 0;
    background-size: cover;
    width: var(--rf-home-visual-width);
    height: 100%;
    right: 0;
    top: 0;
    box-shadow: var(--rf-home-visual-shadow);
}

/* 3. Front Layer: Blue Box */
.rf-hs4-blue-block {
    position: absolute;
    z-index: 2;
    background-color: var(--rf-home-accent-blue);
    background-image: var(--rf-home-accent-blue-gradient);
    width: var(--rf-home-blue-width);
    height: var(--rf-home-blue-height);
    bottom: -40px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 2px 10px rgba(0, 0, 0, 0.2);
}

.rf-hs4-blue-text {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 36px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 4px;
    margin: 0;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 991px) {
    .rf-hs4-section {
        padding: 80px 0;
    }

    .rf-hs4-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rf-hs4-text-wrap {
        order: 2;
        padding-right: 0;
        text-align: center;
    }

    .rf-hs4-visual-wrap {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
        height: 500px;
    }

    .rf-hs4-title {
        font-size: 48px;
    }

    /* Adjust visual stack scaling for smaller screens */
    .rf-hs4-image-portrait {
        width: 88%;
        height: 450px;
    }

    .rf-hs4-gold-bar {
        left: 10px;
        bottom: 80px;
        height: 280px;
        width: 70px;
    }

    .rf-hs4-blue-block {
        left: -10px;
        bottom: 0px;
        height: 320px;
        width: 70px;
    }

    .rf-hs4-blue-text {
        font-size: 28px;
    }
}

@media screen and (max-width: 479px) {
    .rf-hs4-visual-wrap {
        height: 400px;
    }

    .rf-hs4-image-portrait {
        width: 100%;
        height: 380px;
    }

    .rf-hs4-gold-bar,
    .rf-hs4-blue-block {
        display: none;
    }

    /* Simplify on tiny phones */
}

/* home_pillars.php */
/* Prefixed Boxed Container to enforce max-width on large screens */
.rf-hs5-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-hs5-boxed-container {
        max-width: 1440px;
    }
}

/* Main Section Background */
.rf-hs5-pillars {
    background-color: #e4e0da;
    background-image: url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/last-scaled.webp');
    background-position: 50% 0, 0 0;
    background-size: cover, auto;
    background-attachment: fixed;
    padding-top: 140px;
    padding-bottom: 140px;
    position: relative;
}

/* Header & Subtitle */
.rf-hs5-header {
    text-align: center;
    margin-bottom: 60px;
}

.rf-hs5-subtitle {
    font-family: 'Bodoni Moda', serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rf-hs5-subtitle::before,
.rf-hs5-subtitle::after {
    content: "";
    width: 50px;
    height: 1px;
    background-color: #fff;
}

/* 4-Column Grid */
.rf-hs5-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Base Card Styles */
.rf-hs5-card {
    position: relative;
    height: 550px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Background Image Layer */
.rf-hs5-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
    z-index: 1;
}

/* Overlay Layer (Starts invisible) */
.rf-hs5-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    z-index: 2;
}

/* Vertical Title (Left, Middle alignment) */
.rf-hs5-card-title {
    position: absolute;
    z-index: 3;
    left: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-weight: 400;
    color: #fff;
    font-size: 24px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Description Content (Starts hidden) */
.rf-hs5-card-content {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.rf-hs5-card-desc {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================
   HOVER INTERACTIONS
   ========================================== */

/* 1. Zoom Image */
.rf-hs5-card:hover .rf-hs5-card-bg {
    transform: scale(1.065);
}

/* 2. Show 70% Black Overlay */
.rf-hs5-card:hover .rf-hs5-card-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* 3. Hide Vertical Title */
.rf-hs5-card:hover .rf-hs5-card-title {
    opacity: 0;
}

/* 4. Show Description */
.rf-hs5-card:hover .rf-hs5-card-content {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 1100px) {

    /* Drop to 2 columns on tablets */
    .rf-hs5-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 600px) {

    /* Drop to 1 column on mobile phones */
    .rf-hs5-pillars {
        background-attachment: scroll;
        padding: 80px 0;
    }

    .rf-hs5-grid {
        grid-template-columns: 1fr;
    }

    .rf-hs5-card {
        height: 450px;
    }
}

/* home_ted.php */
/* Prefixed Boxed Container */
.rf-hs6-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-hs6-boxed-container {
        max-width: 1440px;
    }
}

/* Section Container */
.rf-hs6-section {
    padding: 120px 0;
    background-image: linear-gradient(#ffffffeb, #ffffffeb), url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/04/wave-scaled.webp');
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Grid Layout (Image Left, Text Right) */
.rf-hs6-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.98fr) minmax(0, 1fr);
    gap: 25px;
    align-items: center;
}

/* ==========================================
   LEFT COLUMN: Visual Stack
   ========================================== */
.rf-hs6-visual-wrap {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: var(--rf-home-visual-height);
}

/* 1. Back Layer: Gold Bar */
.rf-hs6-gold-bar {
    position: absolute;
    z-index: 0;
    background-color: var(--rf-home-accent-gold);
    width: var(--rf-home-gold-width);
    height: var(--rf-home-gold-height);
    top: 48px;
    left: 43px;
}

/* 2. Middle Layer: Woman Image */
.rf-hs6-image-portrait {
    position: absolute;
    z-index: 1;
    background-image: url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/03/smile_dr-scaled.webp');
    background-position: center;
    background-size: cover;
    width: var(--rf-home-visual-width);
    height: 100%;
    left: var(--rf-home-visual-offset);
    top: 0;
    box-shadow: var(--rf-home-visual-shadow);
}

/* 3. Front Layer: Blue Box */
.rf-hs6-blue-block {
    position: absolute;
    z-index: 2;
    background-color: var(--rf-home-accent-blue);
    background-image: var(--rf-home-accent-blue-gradient);
    width: var(--rf-home-blue-width);
    height: 430px;
    bottom: -40px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 2px 10px rgba(0, 0, 0, 0.2);
}

.rf-hs6-blue-text {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 30px;
    /* Slightly smaller to fit the longer word */
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 4px;
    margin: 0;
    white-space: nowrap;
}

/* ==========================================
   RIGHT COLUMN: Text Elements
   ========================================== */
.rf-hs6-text-wrap {
    z-index: 5;
    max-width: 650px;
    padding-left: 0;
}

.rf-hs6-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: #666;
    margin: 0 0 5px 0;
}

.rf-hs6-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: #333;
    margin: 0 0 25px 0;
    line-height: 1.1;
    display: inline-block;
    padding-bottom: 18px;
    position: relative;
}

.rf-hs6-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200px;
    height: 1px;
    background-color: #333;
}

.rf-hs6-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 991px) {
    .rf-hs6-section {
        padding: 80px 0;
    }

    .rf-hs6-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rf-hs6-text-wrap {
        order: 2;
        padding-left: 0;
        text-align: center;
    }

    .rf-hs6-visual-wrap {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
        height: 500px;
    }

    .rf-hs6-title {
        font-size: 42px;
    }

    /* Adjust visual stack scaling for smaller screens */
    .rf-hs6-image-portrait {
        width: 88%;
        height: 450px;
        left: 40px;
        right: auto;
    }

    .rf-hs6-gold-bar {
        left: 10px;
        top: 30px;
        height: 280px;
        width: 60px;
    }

    .rf-hs6-blue-block {
        left: -10px;
        bottom: 0px;
        height: 320px;
        width: 60px;
    }

    .rf-hs6-blue-text {
        font-size: 24px;
    }
}

@media screen and (max-width: 479px) {
    .rf-hs6-visual-wrap {
        height: 400px;
    }

    .rf-hs6-image-portrait {
        left: 0;
        width: 100%;
        height: 380px;
    }

    .rf-hs6-gold-bar,
    .rf-hs6-blue-block {
        display: none;
    }

    /* Simplify on tiny phones */
}

/* home_reviews.php */
/* Prefixed Boxed Container */
.rf-hs7-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-hs7-boxed-container {
        max-width: 1440px;
    }
}

/* Section Background (Fixed Parallax) */
.rf-hs7-reviews-section {
    background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/03/forest-scaled.webp');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    padding-top: 140px;
    padding-bottom: 140px;
}

.rf-hs7-content-wrapper {
    max-width: 1240px;
    margin: 0 auto;
}

.rf-hs7-header {
    text-align: center;
    margin: 0 auto 65px;
}

.rf-hs7-subtitle {
    font-family: 'Bodoni Moda', serif;
    color: #17425e;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.rf-hs7-subtitle::before,
.rf-hs7-subtitle::after {
    content: "";
    width: 58px;
    height: 1px;
    background-color: #17425e;
}

.rf-hs7-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    text-transform: uppercase;
    color: #111827;
    margin: 0;
    line-height: 1.1;
}

.rf-hs7-featured-review {
    max-width: 1140px;
    margin: 0 auto 72px;
    padding-left: 22px;
    border-left: 4px solid rgba(255, 255, 255, 0.96);
}

.rf-hs7-featured-quote {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #1f2937;
    line-height: 1.85;
    margin: 0 0 28px;
}

.rf-hs7-featured-author {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #111827;
    margin: 0;
}

.rf-hs7-carousel {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 54px;
}

.rf-hs7-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.rf-hs7-slides {
    display: flex;
    align-items: stretch;
    width: 100%;
    transform: translate3d(0, 0, 0);
}

.rf-hs7-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
}

.rf-hs7-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    padding: 22px 36px 18px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rf-hs7-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #e4b327;
    margin-bottom: 18px;
}

.rf-hs7-stars svg {
    width: 18px;
    height: 18px;
    display: block;
}

.rf-hs7-card-quote {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #23262d;
    line-height: 1.3;
    margin: 0;
}

.rf-hs7-card-author {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #111827;
    margin: 20px 0 0;
}

.rf-hs7-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(93, 93, 93, 0.62);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    z-index: 4;
}

.rf-hs7-carousel-btn:hover,
.rf-hs7-carousel-btn:focus {
    background: rgba(23, 66, 94, 0.88);
    transform: translateY(-50%) scale(1.05);
}

.rf-hs7-carousel-btn--prev {
    left: 0;
}

.rf-hs7-carousel-btn--next {
    right: 0;
}

.rf-hs7-carousel-btn i {
    font-size: 18px;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 991px) {
    .rf-hs7-reviews-section {
        padding-top: 100px;
        padding-bottom: 100px;
        background-attachment: scroll;
    }

    .rf-hs7-title {
        font-size: 42px;
    }

    .rf-hs7-featured-review {
        margin-bottom: 54px;
    }

    .rf-hs7-featured-quote {
        font-size: 17px;
    }

    .rf-hs7-carousel {
        padding: 0 42px;
    }

    .rf-hs7-card {
        padding: 20px 24px 18px;
    }
}

@media screen and (max-width: 767px) {
    .rf-hs7-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
        gap: 12px;
    }

    .rf-hs7-subtitle::before,
    .rf-hs7-subtitle::after {
        width: 34px;
    }

    .rf-hs7-title {
        font-size: 34px;
    }

    .rf-hs7-featured-review {
        border-left-width: 3px;
        padding-left: 18px;
        margin-bottom: 40px;
    }

    .rf-hs7-carousel {
        padding: 0 0 66px;
    }

    .rf-hs7-card {
        padding: 18px 18px 16px;
    }

    .rf-hs7-card-quote {
        font-size: 18px;
    }

    .rf-hs7-carousel-btn {
        top: auto;
        bottom: 0;
        transform: none;
        width: 42px;
        height: 42px;
    }

    .rf-hs7-carousel-btn:hover,
    .rf-hs7-carousel-btn:focus {
        transform: scale(1.05);
    }

    .rf-hs7-carousel-btn--prev {
        left: calc(50% - 52px);
    }

    .rf-hs7-carousel-btn--next {
        right: calc(50% - 52px);
    }
}

@media screen and (max-width: 479px) {
    .rf-hs7-boxed-container {
        padding: 0 20px;
    }

    .rf-hs7-featured-quote {
        font-size: 16px;
        line-height: 1.75;
    }

    .rf-hs7-featured-author {
        font-size: 22px;
    }

    .rf-hs7-card {
        min-height: 320px;
    }
}

/* home_contact.php */
/* Prefixed Boxed Container */
.rf-hs8-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-hs8-boxed-container {
        max-width: 1440px;
    }
}

/* Section Background (Fixed Parallax) */
.rf-hs8-contact-section {
    /* Using a 70% white overlay to make text readable against the mountains */
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/03/nature-scaled.webp');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    /* Creates the scroll effect */
    padding-top: 140px;
    /* Added massive bottom padding to allow the form to overlap the bottom edge */
    padding-bottom: 250px;
    position: relative;
    /* Margin 0 ensures no gap between this and the section above */
    margin-top: 0;
}

/* Header Grid (Title Left, Text Right) */
.rf-hs8-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.rf-hs8-subtitle {
    font-family: 'Bodoni Moda', serif;
    color: #916c2b;
    /* Gold accent */
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rf-hs8-subtitle::before {
    content: "";
    width: 30px;
    height: 1px;
    background-color: #916c2b;
}

.rf-hs8-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    color: #333;
    margin: 0;
    line-height: 1.1;
}

.rf-hs8-header-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin: 0;
    padding-top: 20px;
    /* Aligns visually with the title */
}

/* Form & Map Content Grid */
.rf-hs8-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Removing gap so they sit flush or overlap as designed */
    align-items: stretch;
    position: relative;
    z-index: 10;
    /* Pulls the whole block down slightly */
    transform: translateY(40px);
}

/* ==========================================
   THE FORM WIDGET
   ========================================== */
.rf-hs8-form-wrapper {
    background-color: #fff;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    /* Sits above the map */
}

.rf-hs8-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #17425e;
    /* Brand Blue */
    margin: 0 0 10px 0;
    text-align: center;
    text-transform: uppercase;
}

.rf-hs8-form-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Fields */
.rf-hs8-input-group {
    position: relative;
    margin-bottom: 20px;
}

.rf-hs8-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
}

.rf-hs8-input {
    width: 100%;
    padding: 15px 15px 15px 40px;
    /* Space for icon */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.rf-hs8-input:focus {
    outline: none;
    border-color: #17425e;
}

select.rf-hs8-input {
    padding-left: 15px;
    /* No icon for selects in design */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

textarea.rf-hs8-input {
    padding-left: 15px;
    min-height: 120px;
    resize: vertical;
}

.rf-hs8-submit-btn {
    width: 100%;
    background-color: #17425e;
    color: #fff;
    border: none;
    padding: 18px;
    font-family: 'Bodoni Moda', serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rf-hs8-submit-btn:hover {
    background-color: #916c2b;
    /* Changes to gold on hover */
}

/* ==========================================
   THE MAP WIDGET
   ========================================== */
.rf-hs8-map-wrapper {
    position: relative;
    z-index: 1;
    /* Sits slightly behind the form edge */
    background-color: #eee;
    /* Pushes map slightly under the form visually */
    margin-top: 60px;
    margin-left: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rf-hs8-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 991px) {
    .rf-hs8-contact-section {
        padding-top: 100px;
        padding-bottom: 150px;
    }

    .rf-hs8-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .rf-hs8-title {
        font-size: 42px;
    }

    .rf-hs8-content-grid {
        grid-template-columns: 1fr;
        transform: translateY(0);
    }

    .rf-hs8-map-wrapper {
        margin-top: 0;
        margin-left: 0;
        height: 400px;
        /* Fixed height for mobile */
    }
}

@media screen and (max-width: 479px) {
    .rf-hs8-contact-section {
        background-attachment: scroll;
        /* Disable fixed bg on mobile */
    }

    .rf-hs8-form-wrapper {
        padding: 30px 20px;
    }

    .rf-hs8-form-title {
        font-size: 28px;
    }
}
