/* ===========================
   Home Page Styles — The ADR Initiative
   =========================== */

/* ── Shared layout utilities moved to shared.css ─────────── */


/* ============================================================
   SECTION 1 — HERO SLIDER
   ============================================================ */

.home-hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}


.hero-headline {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.1;
    margin: 0;
    max-width: 860px;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-black);
    margin: 0;
    max-width: 680px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.hero-btn,
.hero-btn-primary,
.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: 50px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.hero-btn:hover,
.hero-btn-primary:hover,
.hero-btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid #e0e0e0;
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hero-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero-dot.is-active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* ── Partnership slide ────────────────────────────────────── */

.hero-slide--partner .hero-slide-inner {
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.partner-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.partner-logo {
    max-height: 72px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.partner-logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-black);
}

.partner-cross {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 300;
    color: var(--color-black);
    line-height: 1;
}

.partner-images-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1100px;
}

.partner-img-wrap {
    flex: 1;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.partner-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.partner-cta {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .partner-images-row {
        gap: 10px;
    }

    .partner-img-wrap {
        flex: 1;
        max-width: calc(33.333% - 8px);
    }

    .partner-img-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .partner-logos-row {
        gap: 16px;
    }

    .partner-logo {
        max-height: 52px;
    }
}

/* ============================================================
   SECTION 2 — WELCOME / ABOUT
   ============================================================ */

.home-welcome {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 32px;
    line-height: 1.2;
}

.welcome-body {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--color-black);
    line-height: 1.85;
    text-align: center;
}

.welcome-body p {
    margin: 0 0 20px;
}

.welcome-body p:last-child {
    margin-bottom: 0;
}

.welcome-cta {
    margin-top: 36px;
    text-align: center;
}

.partnerships-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-logo-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(87, 7, 102, 0.1);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
    display: block;
}

.partner-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.partner-logo-item a {
    display: contents;
}

.partner-logo-item span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    text-align: center;
}

/* ============================================================
   SECTION 2b — PARTNERSHIPS / ACCREDITATIONS
   ============================================================ */

.home-partnerships {
    background: linear-gradient(to bottom, var(--color-bg-light), var(--color-white));
    padding: 0;
}

.partnerships-heading {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-black);
    text-align: center;
    margin: 0 0 30px;
    line-height: 1.2;
}

.partnerships-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 200px;
}

.partnership-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partnership-logo {
    object-fit: contain;
}

.partnership-logo--gama {
    width: 220px;
    height: 220px;
}

.partnership-logo--mm {
    width: 130px;
    height: 130px;
}

.partnership-logo--imi {
    width: 200px;
    height: 200px;
}

.partnership-name {
    display: none;
}

@media (max-width: 768px) {
    .partnerships-grid {
        gap: 20px;
    }
    .partnership-logo--gama {
        width: 160px;
        height: 160px;
    }
    .partnership-logo--mm {
        width: 95px;
        height: 95px;
    }
    .partnership-logo--imi {
        width: 145px;
        height: 145px;
    }
}

@media (max-width: 480px) {
    .partnerships-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .partnership-logo--gama {
        width: 140px;
        height: 140px;
    }
    .partnership-logo--mm {
        width: 90px;
        height: 90px;
    }
    .partnership-logo--imi {
        width: 130px;
        height: 130px;
    }
}

/* ============================================================
   SECTION 3 — OUR TRAININGS
   ============================================================ */

.home-trainings {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.trainings-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.training-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(87, 7, 102, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 380px;
    max-width: 100%;
}

.training-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(87, 7, 102, 0.14);
}

.training-card-img {
    overflow: hidden;
    height: 260px;
    flex-shrink: 0;
}

.training-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.training-card:hover .training-card-img img {
    transform: scale(1.05);
}

.training-card-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
}

.training-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
    line-height: 1.3;
}

.training-card-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-black);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.training-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: 50px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    align-self: center;
    margin-top: 4px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.training-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================================
   SECTION 4 — TRUSTED BY INSTITUTIONS
   ============================================================ */

.home-trusted {
    background-color: var(--color-white);
    padding: 80px 0;
    overflow: hidden;
}

.trusted-header {
    text-align: center;
    margin-bottom: 44px;
}

.trusted-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    line-height: 1.2;
}

/* Marquee wrapper with edge fade */
.trusted-marquee-wrap {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

/* The scrolling track — duplicated items inside */
.trusted-marquee {
    display: flex;
    align-items: center;
    width: max-content;
    animation: trusted-scroll 28s linear infinite;
}

.trusted-marquee:hover {
    animation-play-state: paused;
}

@keyframes trusted-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.trusted-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.trusted-item img {
    max-height: 120px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* ============================================================
   SECTION 5 — TESTIMONIALS
   ============================================================ */

/* ============================================================
   FOUNDERS
   ============================================================ */

.home-founders {
    background-color: var(--color-white);
    padding: 80px 0;
}

.founders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 52px;
}

.founder-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 8px 40px rgba(28, 36, 75, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(28, 36, 75, 0.18);
}

.founder-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3.5;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    display: block;
    transition: filter 0.3s ease;
}

.founder-card:hover .founder-img {
    filter: grayscale(0%);
}

.founder-img-placeholder {
    width: 100%;
    height: 100%;
    background: #d0d4de;
}

.founder-body {
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.founder-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
    line-height: 1.25;
}

.founder-btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 11px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.founder-btn:hover {
    background: #3d1160;
    transform: scale(1.03);
}

.founder-socials {
    display: flex;
    gap: 6px;
    align-items: center;
}

.founder-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0edf6;
    color: var(--color-primary);
}

.founder-socials a:hover {
    background: #f0edf6;
    color: var(--color-primary);
}

.founder-socials svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.home-testimonials {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.testimonials-heading {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-black);
    text-align: center;
    margin: 0 0 18px;
    line-height: 1.2;
}

.testimonials-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0 auto 56px;
    border-radius: 2px;
}

/* Slider wrapper — holds slider + nav arrows side by side */
.testimonials-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonials-slider {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* Prev / Next nav buttons */
.testimonials-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.testimonials-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.testimonials-nav svg {
    width: 20px;
    height: 20px;
}

.testimonials-track {
    display: flex;
    /* width set via inline style from PHP */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

.testimonials-slide {
    /* flex-basis set via inline style from PHP */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 28px;
    padding-top: 60px;
    align-items: stretch;
    box-sizing: border-box;
}

.testimonials-slide .testimonial-card {
    width: calc(100% - 16px);
    margin: 0 8px;
}

/* Card */
.testimonial-card {
    flex: 1;
    background: var(--color-white);
    border-radius: 16px;
    padding: 70px 36px 40px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 20px rgba(28, 36, 75, 0.07);
    transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 40px rgba(28, 36, 75, 0.12);
}

/* Photo sits above the card */
.testimonial-photo-wrap {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-white);
    box-shadow: 0 4px 16px rgba(28, 36, 75, 0.15);
    background: #e8e8e8;
    flex-shrink: 0;
}

.testimonial-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dce2f5 0%, #c8d0ee 100%);
}

.testimonial-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    display: block;
    margin-bottom: 2px;
}

.testimonial-role {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-black);
    display: block;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 6px 0 4px;
}

.testimonial-stars span {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.testimonial-stars svg {
    width: 100%;
    height: 100%;
}

.testimonial-stars .star-on  svg { fill: #f5a623; }
.testimonial-stars .star-off svg { fill: #d9d9d9; }

.testimonial-text {
    font-family: var(--font-body);
    font-size: 16px; /* card text — 1px below open body text */
    color: var(--color-black);
    line-height: 1.8;
    margin: 8px 0 0;
    text-align: center;
}

/* Dots */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cccccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.testimonials-dot.is-active {
    background: var(--color-primary);
    transform: scale(1.25);
}

.testimonials-dot:hover:not(.is-active) {
    background: var(--color-black);
}


/* ============================================================
   SECTION 7 — SUPPORTED BY MASTERS
   ============================================================ */

.home-masters {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.home-masters .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.masters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.master-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    max-width: 300px;
}

.master-photo-wrap {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.master-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.master-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 6px;
}

.master-title {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-black);
    margin: 0;
}

.masters-cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================================
   SECTION 8 — OUR JOURNEY
   ============================================================ */

.home-journey {
    background-color: var(--color-white);
    padding: 80px 0;
}

.home-journey .section-title {
    text-align: center;
    margin-bottom: 20px;
}


/* ============================================================
   SECTION 8b — JOURNEY TIMELINE
   ============================================================ */

/* Carousel hidden on desktop — shown only on mobile via responsive block */
.jtl-carousel {
    display: none;
}

.jtl-wrap {
    position: relative;
    min-height: 460px;
}

/* Dashed horizontal line */
.jtl-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px dashed #caccd5;
    transform: translateY(-50%);
    z-index: 0;
}

/* 8 equal columns */
.jtl-cols {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 1;
}

.jtl-col {
    min-height: 460px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top half — content aligns to bottom */
.jtl-above {
    height: calc(50% - 5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

/* Bottom half — content aligns to top */
.jtl-below {
    height: calc(50% - 5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

/* Dot on the line */
.jtl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ecf0f3;
    border: 1.5px solid #caccd5;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Year label */
.jtl-year {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-black);
    white-space: nowrap;
    display: block;
    line-height: 1;
}

.jtl-above .jtl-year { margin-bottom: -50px; }
.jtl-below .jtl-year { margin-top: 50px; }


/* House/pentagon box */
.jtl-box {
    display: flex;
    min-height: 160px;
    max-width: 130px;
    width: 100%;
    padding: 40px 12px 10px 12px;
    clip-path: polygon(50% 0%, 100% 18%, 100% 100%, 0% 100%, 0% 18%);
    background: linear-gradient(to bottom, #e8eaef 96%, var(--color-primary) 96%);
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: flex-start;
}

.jtl-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 5px;
    line-height: 1.3;
}

.jtl-desc {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--color-black);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   SECTION 9 — FIND YOUR EXPERT CTA
   ============================================================ */

.home-expert-cta {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.expert-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.expert-cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.expert-cta-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    line-height: 1.2;
}

.expert-cta-desc {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--color-black);
    line-height: 1.7;
    margin: 0;
}

.expert-cta-image {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.expert-cta-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ============================================================
   SECTION 10 — BOOK YOUR TRAINING
   ============================================================ */

.home-book-form {
    background-color: var(--color-white);
    padding: 80px 0;
}

.home-book-form .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.book-form-wrap {
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================================
   SECTION 11 — FOLLOW US
   ============================================================ */

.home-follow {
    background-color: var(--color-bg-light);
    padding: 80px 0;
    text-align: center;
}

.follow-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.2;
    margin: 0 0 32px;
}

.follow-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.follow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(87, 7, 102, 0.08);
    border: 2px solid rgba(87, 7, 102, 0.2);
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.follow-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-4px);
}

.follow-icon svg {
    width: 22px;
    height: 22px;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .hero-slider {
        height: 560px;
    }

    .hero-headline {
        font-size: 42px;
    }

    .hero-subheadline {
        font-size: 17px;
    }

    /* All section headings → 34px at tablet */
    .section-title,
    .welcome-title,
    .partnerships-heading,
    .trusted-title,
    .testimonials-heading,
    .expert-cta-title,
    .follow-title {
        font-size: 34px;
    }

    .welcome-inner {
        max-width: 100%;
    }

    .training-card {
        width: 340px;
    }

    .training-card-title {
        font-size: 18px;
    }

    .expert-cta-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .expert-cta-image {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .master-card {
        width: 260px;
        max-width: 260px;
    }

    .trusted-item img {
        max-height: 100px;
        max-width: 200px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */

@media (max-width: 768px) {

    .hero-slider {
        height: 500px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-subheadline {
        font-size: 16px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
    }

    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }

    /* All section headings → 26px at mobile */
    .section-title,
    .welcome-title,
    .partnerships-heading,
    .trusted-title,
    .testimonials-heading,
    .expert-cta-title,
    .follow-title {
        font-size: 28px;
    }

    .home-welcome,
    .home-trainings,
    .home-trusted,
    .home-testimonials,
    .home-founders,
    .home-masters,
    .home-journey,
    .home-expert-cta,
    .home-book-form,
    .home-follow {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .training-card {
        width: 100%;
    }

    .training-card-title {
        font-size: 18px;
    }

    .welcome-body,
    .expert-cta-desc {
        font-size: 16px;
    }

    .training-card-desc,
    .testimonial-text {
        font-size: 15px;
    }

    .founder-name {
        font-size: 18px;
    }

    .master-card {
        width: 240px;
        max-width: 240px;
    }

    .master-name {
        font-size: 17px;
    }

    .trusted-item img {
        max-height: 80px;
        max-width: 160px;
    }

    /* Journey timeline — swap desktop layout for carousel */
    .jtl-wrap {
        display: none;
    }

    .jtl-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .jtl-carousel-row {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .jtl-carousel-overflow {
        margin-top: 20px;
        flex: 1;
        overflow: hidden;
    }

    .jtl-carousel-track {
        display: flex;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .jtl-slide {
        flex: 0 0 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .jtl-slide .jtl-year {
        font-size: 20px;
        margin: 0;
    }

    .jtl-slide .jtl-box {
        padding: 30px 20px 20px 20px;
        max-width: 200px;
        min-height: 200px;
    }

    .jtl-slide .jtl-title {
        font-size: 16px;
    }

    .jtl-slide .jtl-desc {
        font-size: 14px;
    }

    .jtl-nav {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1.5px solid #dddddd;
        background: var(--color-white);
        color: var(--color-black);
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .jtl-nav:hover {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: var(--color-white);
    }

    .jtl-nav svg {
        width: 20px;
        height: 20px;
    }

    .jtl-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .jtl-carousel-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #caccd5;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .jtl-carousel-dot.is-active {
        background: var(--color-primary);
        transform: scale(1.25);
    }

    /* Testimonials: arrows overlaid inside on mobile */
    .testimonials-slider-wrap {
        position: relative;
    }

    .testimonials-slider {
        width: 100%;
        flex: none;
    }

    .testimonials-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 36px;
        height: 36px;
        background: var(--color-white);
    }

    .testimonials-prev {
        left: 8px;
    }

    .testimonials-next {
        right: 8px;
    }

    .testimonials-slide .testimonial-card {
        margin: 0;
        width: 100%;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */

@media (max-width: 480px) {

    .hero-slider {
        height: 440px;
    }

    .hero-headline {
        font-size: 26px;
    }

    .hero-subheadline {
        font-size: 15px;
    }

    /* All section headings → 24px at small mobile */
    .section-title,
    .welcome-title,
    .partnerships-heading,
    .trusted-title,
    .testimonials-heading,
    .expert-cta-title,
    .follow-title {
        font-size: 24px;
    }

    .home-welcome,
    .home-trainings,
    .home-trusted,
    .home-testimonials,
    .home-founders,
    .home-masters,
    .home-journey,
    .home-expert-cta,
    .home-book-form,
    .home-follow {
        padding: 48px 0;
    }

    .training-card-title {
        font-size: 17px;
    }

    .welcome-body,
    .expert-cta-desc {
        font-size: 15px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .training-card-desc,
    .testimonial-text {
        font-size: 14px;
    }

    .master-card {
        width: 100%;
        max-width: 280px;
    }

    .master-name {
        font-size: 16px;
    }

    .master-photo-wrap {
        width: 220px;
        height: 220px;
    }

    .trusted-item img {
        max-height: 60px;
        max-width: 130px;
    }
}

/* ============================================================
   DECORATIVE FLOATING ELEMENTS (A–E for review)
   ============================================================ */

/* ── Keyframe animations ──────────────────────────────────── */

/* Dot grid: float + keep rotation baked in */
@keyframes deco-float-dot-1 {
    0%, 100% { transform: rotate(15deg) translateY(0px); }
    50%       { transform: rotate(15deg) translateY(-26px); }
}
@keyframes deco-float-dot-2 {
    0%, 100% { transform: rotate(-12deg) translateY(0px); }
    50%       { transform: rotate(-12deg) translateY(-18px); }
}

/* Stripe: float + keep rotation baked in */
@keyframes deco-float-stripe-1 {
    0%, 100% { transform: rotate(14deg) translateY(0px); }
    50%       { transform: rotate(14deg) translateY(-22px); }
}
@keyframes deco-float-stripe-2 {
    0%, 100% { transform: rotate(-16deg) translateY(0px); }
    50%       { transform: rotate(-16deg) translateY(-15px); }
}

/* Scattered orbs: gentle organic drift */
@keyframes deco-orb-drift-1 {
    0%, 100% { transform: translate(0px, 0px); }
    30%       { transform: translate(14px, -22px); }
    70%       { transform: translate(-10px, -12px); }
}
@keyframes deco-orb-drift-2 {
    0%, 100% { transform: translate(0px, 0px); }
    30%       { transform: translate(-16px, -18px); }
    70%       { transform: translate(10px, -8px); }
}

/* Spinning dashed circles */
@keyframes deco-spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes deco-spin-reverse {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* Concentric rings pulse */
@keyframes deco-pulse {
    0%, 100% { transform: scale(1);     opacity: 0.80; }
    50%       { transform: scale(1.10); opacity: 1; }
}

/* ── Base: position + clip for decorated sections ─────────── */

.home-welcome,
.home-trainings,
.home-testimonials,
.home-founders,
.home-masters,
.home-expert-cta,
.home-book-form {
    position: relative;
    overflow: hidden;
}

.home-welcome .home-container,
.home-trainings .home-container,
.home-testimonials .home-container,
.home-founders .home-container,
.home-masters .home-container,
.home-expert-cta .home-container,
.home-book-form .home-container {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   OPTION B — Dot Grid  ·  Welcome
   TOP-LEFT huge (bleeds off)  +  MID-RIGHT small (interior)
   ═══════════════════════════════════════════════════════════ */

.home-welcome::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -80px;
    width: 440px;
    height: 440px;
    background-image: radial-gradient(circle, rgba(87, 7, 102, 0.52) 4px, transparent 4px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 62% 62% at 34% 36%, black 28%, rgba(0,0,0,0.38) 54%, transparent 76%);
    mask-image:         radial-gradient(ellipse 62% 62% at 34% 36%, black 28%, rgba(0,0,0,0.38) 54%, transparent 76%);
    pointer-events: none;
    z-index: 0;
    animation: deco-float-dot-1 5.5s ease-in-out infinite;
}

/* Interior right — mid-height, away from any section border */
.home-welcome::after {
    content: '';
    position: absolute;
    top: calc(50% - 65px);
    right: 40px;
    width: 124px;
    height: 124px;
    background-image: radial-gradient(circle, rgba(87, 7, 102, 0.42) 2.5px, transparent 2.5px);
    background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(ellipse 82% 82% at 54% 50%, black 32%, rgba(0,0,0,0.28) 60%, transparent 82%);
    mask-image:         radial-gradient(ellipse 82% 82% at 54% 50%, black 32%, rgba(0,0,0,0.28) 60%, transparent 82%);
    pointer-events: none;
    z-index: 0;
    animation: deco-float-dot-2 9s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   OPTION D — Scattered Orbs  ·  Trainings
   LEFT-CENTER cluster  +  BOTTOM-RIGHT soft glow blob
   ═══════════════════════════════════════════════════════════ */

/* Orbs anchored at mid-left, fan right and up/down */
.home-trainings::before {
    content: '';
    position: absolute;
    top: calc(50% - 8px);
    left: 52px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(87, 7, 102, 0.32);
    box-shadow:
         70px  -90px  0  24px rgba(87, 7, 102, 0.18),
        160px   48px  0  10px rgba(87, 7, 102, 0.24),
         30px   96px  0  30px rgba(87, 7, 102, 0.12),
        240px  -28px  0   6px rgba(87, 7, 102, 0.22),
        100px  170px  0  16px rgba(87, 7, 102, 0.10),
        -28px -130px  0  12px rgba(87, 7, 102, 0.20),
        310px   68px  0   4px rgba(87, 7, 102, 0.28),
        190px  210px  0  22px rgba(87, 7, 102, 0.08);
    pointer-events: none;
    z-index: 0;
    animation: deco-orb-drift-1 10s ease-in-out infinite;
}

/* Large soft glow blob — bottom-right, Stripe-style */
.home-trainings::after {
    content: '';
    position: absolute;
    bottom: -140px;
    right: -100px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(87, 7, 102, 0.09) 0%, rgba(87, 7, 102, 0.04) 40%, transparent 68%);
    pointer-events: none;
    z-index: 0;
    animation: deco-pulse 8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   OPTION E — Diagonal Stripes  ·  Testimonials
   TOP-LEFT huge  +  CENTER-BOTTOM small (away from founders border)
   ═══════════════════════════════════════════════════════════ */

.home-testimonials::before {
    content: '';
    position: absolute;
    top: -70px;
    left: -90px;
    width: 460px;
    height: 460px;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(87, 7, 102, 0.32) 0,
        rgba(87, 7, 102, 0.32) 3px,
        transparent 0,
        transparent 50%
    );
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 34% 36%, black 26%, rgba(0,0,0,0.36) 52%, transparent 75%);
    mask-image:         radial-gradient(ellipse 60% 60% at 34% 36%, black 26%, rgba(0,0,0,0.36) 52%, transparent 75%);
    pointer-events: none;
    z-index: 0;
    animation: deco-float-stripe-1 7s ease-in-out infinite;
}

/* Centered bottom — NOT at right edge (avoids clash with founders) */
.home-testimonials::after {
    content: '';
    position: absolute;
    bottom: 44px;
    left: calc(50% - 75px);
    width: 148px;
    height: 148px;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(87, 7, 102, 0.28) 0,
        rgba(87, 7, 102, 0.28) 2.5px,
        transparent 0,
        transparent 50%
    );
    background-size: 13px 13px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 52%, black 30%, rgba(0,0,0,0.30) 58%, transparent 80%);
    mask-image:         radial-gradient(ellipse 80% 80% at 50% 52%, black 30%, rgba(0,0,0,0.30) 58%, transparent 80%);
    pointer-events: none;
    z-index: 0;
    animation: deco-float-stripe-2 10s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   Shaped by Visionaries (.home-founders)
   TOP-LEFT soft glow blob  +  MID-RIGHT orb cluster
   (no top-right elements — avoids clash with testimonials center-bottom)
   ═══════════════════════════════════════════════════════════ */

/* Soft glow — large, very subtle, top-left */
.home-founders::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(87, 7, 102, 0.08) 0%, rgba(87, 7, 102, 0.03) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: deco-pulse 9s ease-in-out infinite;
}

/* Orb cluster at mid-right interior — NOT at top edge */
.home-founders::after {
    content: '';
    position: absolute;
    top: calc(50% - 8px);
    right: 56px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(87, 7, 102, 0.26);
    box-shadow:
        -80px  -68px  0  20px rgba(87, 7, 102, 0.14),
        -56px   60px  0  10px rgba(87, 7, 102, 0.20),
       -188px  -24px  0  28px rgba(87, 7, 102, 0.10),
       -130px   96px  0   6px rgba(87, 7, 102, 0.18),
        -28px -140px  0  14px rgba(87, 7, 102, 0.12),
       -260px   36px  0   4px rgba(87, 7, 102, 0.22),
       -200px -108px  0  20px rgba(87, 7, 102, 0.08),
       -100px  160px  0  10px rgba(87, 7, 102, 0.10);
    pointer-events: none;
    z-index: 0;
    animation: deco-orb-drift-2 12s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   Supported by Masters (.home-masters)
   TOP-LEFT spin circle LARGE  +  BOTTOM-RIGHT rings SMALL
   ═══════════════════════════════════════════════════════════ */

/* Spin circle off TOP-LEFT — distinct from Expert CTA which is top-right */
.home-masters::before {
    content: '';
    position: absolute;
    top: -210px;
    left: -190px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    border: 2.5px dashed rgba(87, 7, 102, 0.22);
    pointer-events: none;
    z-index: 0;
    animation: deco-spin-slow 26s linear infinite;
}

/* Smaller rings tucked off BOTTOM-RIGHT */
.home-masters::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 22%, rgba(87, 7, 102, 0.18) 22%, rgba(87, 7, 102, 0.18) 27%, transparent 27%,
        transparent 38%, rgba(87, 7, 102, 0.13) 38%, rgba(87, 7, 102, 0.13) 43%, transparent 43%,
        transparent 54%, rgba(87, 7, 102, 0.09) 54%, rgba(87, 7, 102, 0.09) 59%, transparent 59%,
        transparent 70%, rgba(87, 7, 102, 0.05) 70%, rgba(87, 7, 102, 0.05) 75%, transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    animation: deco-pulse 5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   OPTION C — Spinning Dashed Circles  ·  Expert CTA
   TOP-RIGHT huge  +  MID-LEFT medium (interior)
   ═══════════════════════════════════════════════════════════ */

/* Huge circle bleeds off TOP-RIGHT */
.home-expert-cta::before {
    content: '';
    position: absolute;
    top: -280px;
    right: -220px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    border: 3px dashed rgba(87, 7, 102, 0.24);
    pointer-events: none;
    z-index: 0;
    animation: deco-spin-slow 30s linear infinite;
}

/* Medium circle at mid-left — interior, not at bottom border */
.home-expert-cta::after {
    content: '';
    position: absolute;
    top: calc(50% - 120px);
    left: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px dashed rgba(87, 7, 102, 0.16);
    pointer-events: none;
    z-index: 0;
    animation: deco-spin-reverse 18s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   OPTION A — Concentric Rings  ·  Book Form
   BOTTOM-CENTER huge  +  TOP-LEFT small
   ═══════════════════════════════════════════════════════════ */

/* Large rings rise from BOTTOM-CENTER — symmetrical */
.home-book-form::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: calc(50% - 270px);
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 21%, rgba(87, 7, 102, 0.17) 21%, rgba(87, 7, 102, 0.17) 25%, transparent 25%,
        transparent 35%, rgba(87, 7, 102, 0.13) 35%, rgba(87, 7, 102, 0.13) 39%, transparent 39%,
        transparent 49%, rgba(87, 7, 102, 0.09) 49%, rgba(87, 7, 102, 0.09) 53%, transparent 53%,
        transparent 63%, rgba(87, 7, 102, 0.06) 63%, rgba(87, 7, 102, 0.06) 67%, transparent 67%,
        transparent 77%, rgba(87, 7, 102, 0.03) 77%, rgba(87, 7, 102, 0.03) 81%, transparent 81%
    );
    pointer-events: none;
    z-index: 0;
    animation: deco-pulse 4.5s ease-in-out infinite;
}

/* Small rings at TOP-LEFT corner */
.home-book-form::after {
    content: '';
    position: absolute;
    top: -60px;
    left: -70px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 22%, rgba(87, 7, 102, 0.15) 22%, rgba(87, 7, 102, 0.15) 27%, transparent 27%,
        transparent 38%, rgba(87, 7, 102, 0.11) 38%, rgba(87, 7, 102, 0.11) 43%, transparent 43%,
        transparent 54%, rgba(87, 7, 102, 0.07) 54%, rgba(87, 7, 102, 0.07) 59%, transparent 59%,
        transparent 70%, rgba(87, 7, 102, 0.04) 70%, rgba(87, 7, 102, 0.04) 75%, transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    animation: deco-pulse 7s ease-in-out infinite reverse;
}

/* ═══════════════════════════════════════════════════════════
   DECORATIVE ELEMENTS — Mobile / Tablet fixes
   Hide or shrink decorative elements so they don't overlap text
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .home-welcome::before,
    .home-trainings::before,
    .home-testimonials::before,
    .home-founders::before,
    .home-masters::before,
    .home-expert-cta::before,
    .home-book-form::before {
        transform: scale(0.6);
        opacity: 0.4;
    }

    .home-welcome::after,
    .home-trainings::after,
    .home-testimonials::after,
    .home-founders::after,
    .home-masters::after,
    .home-expert-cta::after,
    .home-book-form::after {
        transform: scale(0.5);
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .home-welcome::before,
    .home-welcome::after,
    .home-trainings::before,
    .home-trainings::after,
    .home-testimonials::before,
    .home-testimonials::after,
    .home-founders::before,
    .home-founders::after,
    .home-masters::before,
    .home-masters::after,
    .home-expert-cta::before,
    .home-expert-cta::after,
    .home-book-form::before,
    .home-book-form::after {
        display: none;
    }
}
