/* ========================================
   The White Rehab - Blank Page Stylesheet
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #4a7c59;
    --dark-green: #2d5a3d;
    --light-green: #6b9b7a;
    --accent-red: #d32f2f;
    --gold: #c9a961;
    --cream: #f5f1e8;
    --brown: #8b6914;
    --text-dark: #333;
    --text-gray: #666;
}

body {
    font-family: 'DB Heavent', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

img {
    max-width: 100%;
    height: auto;
}

/* Content Area */

/* ========================================
   Vision Section
   ======================================== */
.vision-section {
    background-color: #f5f0e7;
    padding: 80px 0 70px;
    text-align: center;
}

.vision-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.vision-subtitle {
    font-size: 1.7rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.vision-pillar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pillar-letter {
    font-size: 14rem;
    font-weight: 900;
    /* font-family: 'Georgia', serif; */
    color: #9e6100;
    line-height: 1;
    flex-shrink: 0;
}

.pillar-title {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 0px;
    line-height: 0.9;
}

.pillar-desc {
    font-size: 1.25rem;
    color: #5a5a5a;
    line-height: 1.2;
}

/* ========================================
   History Section
   ======================================== */

.text-highlight {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 2rem;
    /* letter-spacing: -0.3px; */
    /* word-spacing: -1px; */
}

.history-section {
    background-color: #f5f0e7;
    padding: 60px 0 20px;
}

.history-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.history-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.history-image::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: rgba(255, 255, 255, 0.65); */
    /* border-radius: 4px; */
}

.history-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.history-image-caption {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    padding: 75px;
}

.history-caption-title {
    font-size: 3rem;
    font-weight: 500;
    text-align: left;
    color: #1a1a1a;
    line-height: 1.2;
}

.history-caption-sub {
    font-size: 2.5rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: -10px;
}

.history-content p {
    font-size: 1.5rem;
    color: #000000; 
    line-height: 1.2;
    margin-bottom: 18px;
}

.history-content p:last-child {
    margin-bottom: 0;
}

/* About Image Bar */
.image-bar {
    margin: 60px auto;
    max-width: 1400px;
    overflow: hidden;
}

.image-bar img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center 80%;  /* ← ปรับตรงนี้ */
    display: block;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .image-bar img {
        height: 220px;
    }
    
}

@media (max-width: 900px) {
      .history-image img {
        height: 300px;
        object-position: 30% center; /* เลื่อนภาพไปทางขวา */
    }
    .vision-pillars {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .history-inner {
        grid-template-columns: 1fr;
    }

    .history-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .vision-title {
        font-size: 3rem;
    }

    .vision-subtitle {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .history-image-caption {
        align-items: center;
        text-align: center;
        padding: 32px 24px;
    }

    .history-caption-title {
        font-size: 3rem;
        text-align: center;
    }

    .history-caption-sub {
        font-size: 1.5rem;
        text-align: center;
    }

    .history-content p {
        font-size: 1.25rem;
    }

    .text-highlight {
        font-size: 1.25rem;
    }

    .image-bar {
        margin: 40px auto;
    }
    
    .image-bar img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .vision-title {
        font-size: 3rem;
    }

    .vision-subtitle {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .pillar-letter {
        font-size: 10rem;
        width: 80px;
    }

    .pillar-title {
        font-size: 1.5rem;
    }

    .pillar-desc {
        font-size: 1.25rem;
    }

    .history-caption-title {
        font-size: 3rem;
    }

    .history-caption-sub {
        font-size: 1.5rem;
    }

    .history-content p {
        font-size: 1.5rem;
    }

    .text-highlight {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .vision-title {
        font-size: 3rem;
    }

    .vision-subtitle {
        font-size: 1.5rem;
    }

    .image-bar img {
        height: 150px;
    }
}

/* ========================================
   Expert Team Section
   ======================================== */

.experts-section {
    background-color: #f5f0e7;
    padding: 0px 0 0;
}

/* Top layout: intro text + 2 featured cards */
.experts-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.experts-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 52px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.1;
}

.experts-desc-group {
    align-self: end;
    justify-self: end;
    text-align: left;
    padding-right: 80px;
}

.experts-desc {
    font-size: 1.5rem;
    color: var(--text-gray);
    line-height: 1.3;
    margin: 0;
}

/* Featured expert cards */
.experts-featured {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 80px;
}

.expert-card {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.expert-card__fig {
    display: block;
}

.expert-card .silhouette-img {
    width: 180px;
    height: auto;
    display: block;
}

.silhouette-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.expert-card__footer {
    background-color: #f5f1e8;
    padding: 14px 0px 18px;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.expert-card__bar {
    display: block;
    width: 4px;
    border-radius: 2px;
    background-color: #2d5a3d;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 36px;
}

.expert-card__bar--light {
    background-color: #7db38a;
}

.expert-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4c7b5a;
    margin-bottom: 4px;
    line-height: 1.2;
}

.expert-card__role {
    font-size: 1.5rem;
    color: #a6d391;
    line-height: 1.3;
}

/* ---- Team Carousel ---- */
.team-carousel-outer {
    padding-bottom: 50px;
}

.team-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.team-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.team-card {
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card__fig {
    /* padding: 22px 16px 0; */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: unset;
    height: auto;
}

.team-card__footer {
    background-color: #f5f1e8;
    padding: 12px 14px 14px;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.team-card__bar {
    display: block;
    width: 4px;
    border-radius: 2px;
    background-color: #4c7b5a;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 28px;
}

.team-card__name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4c7b5a;
    line-height: 1.3;
    align-self: center;
}

/* Carousel nav buttons */
.carousel-btn {
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-bottom: 3px;
    color: #333;
    transition: background 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ---- Certificate Section ---- */
.certificate-section {
    background-color: #f5f0e7;
    line-height: 0;
}

.certificate-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- CTA Bar ---- */
.experts-cta-bar {
    padding: 0 0 60px;
}

.experts-cta-inner {
    /* background-color: #ede8da; */
    /* border-radius: 12px; */
    padding: 28px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.experts-cta-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.experts-cta-text {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

.experts-cta-phone {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.experts-cta-phone i {
    font-size: 26px;
    color: var(--primary-green);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .experts-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: flex-end;
    }

    .experts-featured {
        padding-right: 0;
        justify-content: flex-end;
    }

    .expert-card .silhouette-img {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .experts-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .experts-title {
        font-size: 3rem;
        text-align: center;
    }

    .experts-desc-group {
        padding-right: 0;
        text-align: left;
    }

    .experts-desc {
        font-size: 1.5rem;
        text-align: left;
        padding-right: 0;
    }

    .experts-featured {
        justify-content: center;
    }

    .expert-card .silhouette-img {
        width: 140px;
    }

    .team-card__fig {
        min-height: 220px;
    }

    .team-card__fig .silhouette-img {
        max-width: 80%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .experts-title {
        font-size: 3rem;
    }

    .experts-desc {
        font-size: 1.5rem;
    }

    .experts-featured {
        gap: 14px;
    }

    .expert-card .silhouette-img {
        width: 120px;
    }

    .expert-card__name {
        font-size: 17px;
    }

    .expert-card__role {
        font-size: 14px;
    }

    .experts-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }

    .experts-cta-img {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .experts-cta-text {
        font-size: 1.25rem;
    }

    .experts-cta-phone {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-card__fig {
        min-height: unset;
        height: auto;
    }

    .team-card__fig .silhouette-img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .experts-cta-inner {
        padding: 20px 16px;
    }

    .experts-cta-img {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}
