/**
 * We Root To Rise — Home sections (Bienvenue, Services, Philosophy, Testimonials, Banner)
 */

.wrtr-home {
    --wrtr-primary: var(--theme, #2D3F26);
    --wrtr-secondary: var(--theme-2, #C66A4E);
    --wrtr-tertiary: var(--theme-3, #C0AC87);
    --wrtr-off-white: #F2EEE4;
    --wrtr-grey: #888888;
    --wrtr-white: #FFFFFF;
    --wrtr-font-display: "Tan Songbird", Georgia, serif;
    --wrtr-font-heading: "Cinzel", "Times New Roman", serif;
    --wrtr-font-body: "Gabarito", "Century Gothic", sans-serif;
}

.wrtr-home,
.wrtr-home * {
    box-sizing: border-box;
}

.wrtr-section-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 640px) {
    .wrtr-section-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .wrtr-section-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ===== Bienvenue ===== */
.bienvenue-section {
    background: #fff;
    padding: 3rem 0;
    font-family: var(--wrtr-font-body, "Gabarito", sans-serif);
}

@media (min-width: 640px) {
    .bienvenue-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .bienvenue-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1280px) {
    .bienvenue-section {
        padding: 6rem 0;
    }
}

.bienvenue-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .bienvenue-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1280px) {
    .bienvenue-grid {
        gap: 4rem;
    }
}

.bienvenue-media img {
    display: block;
    width: 100%;
    height: auto;
}

.bienvenue-aside-text {
    text-align: center;
    margin-top: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.bienvenue-aside-text p {
    color: var(--wrtr-grey, #888);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
    .bienvenue-aside-text {
        margin-top: 2.5rem;
    }

    .bienvenue-aside-text p {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .bienvenue-aside-text p {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .bienvenue-aside-text {
        margin-top: 3rem;
    }
}

.bienvenue-highlight {
    color: var(--wrtr-secondary, #C66A4E) !important;
    font-weight: 700;
}

.bienvenue-content {
    margin-top: 0;
}

@media (min-width: 768px) {
    .bienvenue-content {
        margin-top: 140px;
    }
}

.bienvenue-title {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    color: var(--wrtr-primary, #2D3F26);
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
    .bienvenue-title {
        font-size: 50px;
    }
}

.bienvenue-subtitle {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    color: var(--wrtr-primary, #2D3F26);
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

@media (min-width: 640px) {
    .bienvenue-subtitle {
        font-size: 35px;
    }
}

.bienvenue-text p {
    color: var(--wrtr-grey, #888);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .bienvenue-text p {
        font-size: 20px;
    }
}

/* ===== Services ===== */
.services-section {
    background: var(--wrtr-off-white, #F2EEE4);
    padding: 3rem 0;
    font-family: var(--wrtr-font-body, "Gabarito", sans-serif);
}

@media (min-width: 640px) {
    .services-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .services-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1280px) {
    .services-section {
        padding: 6rem 0;
    }
}

.services-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .services-header {
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .services-header {
        margin-bottom: 3.5rem;
    }
}

.services-eyebrow,
.philosophy-eyebrow,
.testimonials-eyebrow {
    font-family: var(--wrtr-font-display, "Tan Songbird", serif);
    color: var(--wrtr-tertiary, #C0AC87);
    font-size: 16px;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {

    .services-eyebrow,
    .philosophy-eyebrow,
    .testimonials-eyebrow {
        font-size: 18px;
    }
}

.services-title {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    color: var(--wrtr-primary, #2D3F26);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-title {
        font-size: 40px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .services-grid {
        gap: 2.5rem;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.service-card-image {
    width: 100%;
    margin-bottom: 1.5rem;
}

.service-card-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.service-card-title {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    color: var(--wrtr-primary, #2D3F26);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
    .service-card-title {
        font-size: 30px;
    }
}

.service-card-desc {
    color: var(--wrtr-grey, #888);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    max-width: 280px;
}

.service-card-btn {
    margin-top: auto;
    width: 100%;
}

@media (min-width: 640px) {
    .service-card-btn {
        width: auto;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card:last-child {
        grid-column: 1 / -1;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Philosophy ===== */
.philosophy-section {
    background: #fff;
    padding: 3rem 0;
    font-family: var(--wrtr-font-body, "Gabarito", sans-serif);
}

@media (min-width: 640px) {
    .philosophy-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .philosophy-section {
        padding: 5rem 0;
    }
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.philosophy-content {
    margin-top: 0;
}

@media (min-width: 768px) {
    .philosophy-content {
        margin-top: 60px;
    }
}

.philosophy-eyebrow {
    margin-bottom: 1rem;
}

.philosophy-title {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    color: var(--wrtr-primary, #2D3F26);
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0 0 1.25rem;
}

@media (min-width: 768px) {
    .philosophy-title {
        font-size: 30px;
    }
}

.philosophy-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.philosophy-text p {
    color: var(--wrtr-grey, #888);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin: 0;
}

@media (min-width: 768px) {
    .philosophy-text p {
        font-size: 18px;
    }
}

.philosophy-media img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.philosophy-divider {
    width: 40%;
    max-width: 420px;
    height: 1px;
    background: rgba(136, 136, 136, 0.5);
    margin: 3rem auto 0;
}

@media (min-width: 640px) {
    .philosophy-divider {
        width: 35%;
        margin-top: 4rem;
    }
}

@media (min-width: 1024px) {
    .philosophy-divider {
        width: 30%;
        margin-top: 5rem;
    }
}

/* ===== Testimonials ===== */
.testimonials-section {
    background: #fff;
    padding: 4rem 0;
    font-family: var(--wrtr-font-body, "Gabarito", sans-serif);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .testimonials-header {
        margin-bottom: 3rem;
    }
}

.testimonials-title {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    color: var(--wrtr-primary, #2D3F26);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-title {
        font-size: 40px;
    }
}

.testimonials-stage {
    position: relative;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
}

.testimonials-tree {
    /* position: relative; */
    z-index: 1;
    /* width: 65%; */
    /* max-width: 280px; */
    /* margin: 0 auto 2rem; */
    width: 100%;
    max-width: 250px;
    POSITION: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.testimonials-tree img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.testimonial-card {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    background: #F7F1E8;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1.25rem;
}

.testimonial-card:last-child {
    margin-bottom: 0;
}

.testimonial-quote {
    color: var(--wrtr-primary, #2D3F26);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .testimonial-quote {
        font-size: 18px;
    }
}

.testimonial-author {
    color: var(--wrtr-primary, #2D3F26);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .testimonial-author {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .testimonials-tree {
        display: none;
    }
}

@media (min-width: 1024px) {
    .testimonial-author {
        font-size: 20px;
    }

    /* .testimonials-tree {
        position: absolute;
        left: 50%;
        top: 32%;
        transform: translate(-50%, -50%);
        width: 38%;
        max-width: 400px;
        margin: 0;
    } */

    .testimonial-card {
        position: absolute;
        margin: 0;
        max-width: 270px;
    }

    .testimonial-card-left {
        left: 0;
        top: 42%;
        transform: translateY(-50%);
    }

    .testimonial-card-right {
        right: 0;
        top: 0;
    }

    .testimonial-card-bottom {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        max-width: 300px;
    }
}

@media (min-width: 1280px) {
    .testimonials-stage {
        min-height: 490px;
    }

    .testimonial-card {
        max-width: 257px;
    }

    .testimonial-card-bottom {
        max-width: 270px;
    }
}

@media (max-width: 1200px) and (min-width: 1024px) {
    .testimonials-stage {
        min-height: 491px;
    }
}

/* ===== Banner CTA ===== */
.banner-section {
    position: relative;
    overflow: hidden;
    font-family: var(--wrtr-font-body, "Gabarito", sans-serif);
}

.banner-section-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.banner-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
}

.banner-section-inner {
    position: relative;
    z-index: 2;
}

.banner-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 420px;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .banner-section-grid {
        min-height: 480px;
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .banner-section-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 520px;
        padding: 5rem 0;
    }
}

@media (min-width: 1280px) {
    .banner-section-grid {
        min-height: 560px;
    }
}

.banner-section-spacer {
    display: none;
}

@media (min-width: 1024px) {
    .banner-section-spacer {
        display: block;
    }
}

.banner-section-content {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .banner-section-content {
        margin: 0 2rem 0 auto;
        text-align: center;
    }
}

@media (min-width: 1280px) {
    .banner-section-content {
        margin-right: 3rem;
    }
}

.banner-section-title {
    font-family: var(--wrtr-font-heading, Cinzel, serif);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .banner-section-title {
        font-size: 40px;
    }
}

.banner-section-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.banner-section-text p {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin: 0;
}

@media (min-width: 768px) {
    .banner-section-text p {
        font-size: 18px;
    }
}

.banner-section .wrtr-btn-banner {
    background: var(--wrtr-tertiary, #C0AC87);
    color: #454545 !important;
    border-color: var(--wrtr-tertiary, #C0AC87);
    width: 100%;
}

@media (min-width: 640px) {
    .banner-section .wrtr-btn-banner {
        width: auto;
    }
}

.banner-section .wrtr-btn-banner:hover {
    background: var(--wrtr-secondary, #C66A4E);
    color: #fff !important;
    border-color: var(--wrtr-secondary, #C66A4E);
}

/* ===== Top Category — solid theme bg, no image ===== */
.wrtr-category-section.mhq-top-category-section,
.mhq-top-category-section.wrtr-category-section {
    background-color: var(--theme, #2D3F26) !important;
    background-image: none !important;
}

.wrtr-category-section .category-shape-1 {
    display: none !important;
}

.wrtr-category-section .section-title h6.style-2 {
    background: rgba(242, 238, 228, 0.18);
    color: var(--theme-off-white, #F2EEE4);
}

.wrtr-category-section .section-title h2 {
    color: #fff !important;
}

.wrtr-category-section .mhq-category-box-items {
    background: rgba(242, 238, 228, 0.12);
    border: 1px solid rgba(242, 238, 228, 0.2);
}

.wrtr-category-section .mhq-category-box-items .mhq-content h3 {
    color: #fff !important;
    font-family: var(--wrtr-font-heading, Cinzel, serif) !important;
}

.wrtr-category-section .mhq-category-box-items .mhq-content p {
    color: rgba(242, 238, 228, 0.9) !important;
}

.wrtr-category-section .mhq-category-box-items:hover .mhq-content h3,
.wrtr-category-section .mhq-category-box-items:hover .mhq-content p {
    color: #fff !important;
}

.wrtr-category-section .mhq-category-box-items .mhq-icon {
    background: var(--theme-off-white, #F2EEE4);
    color: var(--theme, #2D3F26);
}

.wrtr-category-section .mhq-category-box-items .mhq-category-icon,
.wrtr-category-section .mhq-category-box-items .mhq-category-icon i {
    color: var(--theme, #2D3F26);
}

.wrtr-category-section .mhq-category-box-items .mhq-content .theme-btn {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    overflow: visible;
    max-width: 100%;
    width: auto;
    padding: 5px 5px 5px 16px;
    gap: 10px;
    box-sizing: border-box;
}

.wrtr-category-section .mhq-category-box-items .mhq-content .theme-btn .theme-btn-label {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.wrtr-category-section .mhq-category-box-items .mhq-content .theme-btn i {
    background-color: var(--theme-2, #C66A4E);
    color: #fff !important;
    position: relative;
    z-index: 2;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 14px;
    overflow: hidden;
}

.wrtr-category-section .mhq-category-box-items:hover {
    background-color: var(--theme-2, #C66A4E);
    border-color: transparent;
}

.wrtr-category-section .mhq-category-box-items:hover .mhq-icon {
    background: #fff;
}

.wrtr-category-section .mhq-category-box-items:hover .mhq-content .theme-btn {
    background: #fff !important;
    color: var(--theme, #2D3F26) !important;
    border-color: transparent;
}

.wrtr-category-section .mhq-category-box-items:hover .mhq-content .theme-btn i {
    background-color: var(--theme, #2D3F26);
    color: #fff;
}

.wrtr-category-section .array-button .array-prev,
.wrtr-category-section .array-button .array-next {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
}

.wrtr-category-section .array-button .array-prev:hover,
.wrtr-category-section .array-button .array-next:hover {
    background: var(--theme-2, #C66A4E);
    border-color: var(--theme-2, #C66A4E);
    color: #fff;
}

/* ===== Courses section — WRTR palette ===== */
.wrtr-courses-section {
    background: var(--theme-off-white, #F2EEE4) !important;
}

.wrtr-courses-section .section-title h6 {
    color: var(--theme-3, #C0AC87) !important;
    background: transparent !important;
    font-family: var(--wrtr-font-display, "Tan Songbird", Georgia, serif) !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.wrtr-courses-section .section-title h2 {
    color: var(--theme, #2D3F26) !important;
    font-family: var(--wrtr-font-heading, Cinzel, serif) !important;
}

.wrtr-courses-section .mhq-courses-box-items {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.wrtr-courses-section .mhq-courses-content h3,
.wrtr-courses-section .mhq-courses-content h3 a {
    color: var(--theme, #2D3F26) !important;
    font-family: var(--wrtr-font-heading, Cinzel, serif) !important;
}

.wrtr-courses-section .mhq-courses-content p {
    color: #888888;
    font-family: var(--wrtr-font-body, Gabarito, sans-serif);
}

.wrtr-courses-section .mhq-courses-content .text-primary,
.wrtr-courses-section .client-info-area h2 {
    color: var(--theme-2, #C66A4E) !important;
}

.wrtr-courses-section>.container>.theme-btn,
.wrtr-courses-section .section-title-area>.theme-btn {
    background: var(--theme, #2D3F26);
    color: #fff !important;
    font-family: var(--wrtr-font-body, Gabarito, sans-serif) !important;
}

.wrtr-courses-section>.container>.theme-btn:hover,
.wrtr-courses-section .section-title-area>.theme-btn:hover {
    background: var(--theme-2, #C66A4E);
}

.wrtr-category-section .section-title h6.style-2 {
    background: rgba(242, 238, 228, 0.18) !important;
    color: var(--theme-off-white, #F2EEE4) !important;
    font-family: var(--wrtr-font-display, "Tan Songbird", Georgia, serif) !important;
}

.wrtr-category-section .section-title h2 {
    color: #fff !important;
    font-family: var(--wrtr-font-heading, Cinzel, serif) !important;
}

.wrtr-category-section .mhq-category-box-items .mhq-content h3 {
    color: #fff !important;
    font-family: var(--wrtr-font-heading, Cinzel, serif) !important;
}

.wrtr-category-section .mhq-category-box-items .mhq-content p,
.wrtr-category-section .mhq-category-box-items .mhq-content .theme-btn {
    font-family: var(--wrtr-font-body, Gabarito, sans-serif) !important;
}

/* Neutralize LMS theme link color inside WRTR blocks */
.bienvenue-section a,
.services-section a,
.philosophy-section a,
.testimonials-section a,
.banner-section a {
    text-decoration: none;
}

.bienvenue-section h1,
.bienvenue-section h2,
.bienvenue-section h3,
.services-section h1,
.services-section h2,
.services-section h3,
.philosophy-section h1,
.philosophy-section h2,
.philosophy-section h3,
.testimonials-section h1,
.testimonials-section h2,
.banner-section h2 {
    font-family: inherit;
}
/* ===== Global hover text visibility fix ===== */
/* The base .theme-btn:hover in main.css sets color to var(--header) (#2D3F26)
   which is identical to the button's own background var(--theme) (#2D3F26),
   making text invisible on hover. Fix: keep text white so it's visible
   against the ::before overlay (--theme-2 brown). */
.theme-btn:hover {
    color: #fff !important;
}

/* style-2 variant (outline/border buttons on light backgrounds) should
   show dark text on hover since ::before fills with --theme-2 */
.theme-btn.style-2:hover {
    color: #fff !important;
}

/* Course-access header tabs � ensure text stays visible on hover */
.course-header-tabs a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.course-header-tabs li.active a:hover {
    color: var(--theme, #2D3F26) !important;
    background: #fff !important;
}

/* Forum filter buttons inside course-access */
.forum-view-wrapper .btn-primary:hover,
.forum-view-wrapper .theme-btn:hover {
    color: #fff !important;
}

.forum-view-wrapper .btn-light:hover {
    color: #212529 !important;
    background-color: #e2e6ea !important;
}

/* Ensure all links inside dark backgrounds stay visible */
.course-header-bar a:hover,
.course-header-bar button:hover {
    color: #fff !important;
}
