/* ========================================
   The White Rehab - Services 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;
}

/* ========================================
   Services Grid Section (includes hero title)
   ======================================== */

.services-grid .container{
    max-width: 1400px;  
}

.services-grid {
    padding: 70px 0 70px;
    background-color: var(--cream);
    position: relative;
}

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 20px;
}

.services-title h1 {
    font-size: 4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.1;
}

.services-title .subtitle {
    font-size: 2.5rem;
    color: var(--text-gray);
    font-weight: 300;
}

.carousel-nav-buttons {
    display: none;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.carousel-arrow {
    background-color: #ffffff;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-dark);
}

.carousel-arrow:hover {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.carousel-arrow i {
    font-size: 0.9rem;
}

/* Card strip inside container */
.services-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: flex-start;
}

.service-card:nth-child(even) {
    margin-top: 60px;
}

.services-wrapper::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 1;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    transition: opacity 0.3s ease;
    /* background: white; */
    border-right: none;
}

.service-card:last-child {
    border-right: none;
}

.service-image {
    position: relative;
    width: 100%;
    padding-bottom: 140%;
    overflow: hidden;
}

.service-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    background: none;
    color: white;
    padding: 14px;
    text-align: center;
}

.service-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.service-overlay p {
    font-size: 1rem;
    line-height: 1.3;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.service-card .read-more {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    padding: 10px 16px;
    background-color: rgba(201, 169, 97, 0.75);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: background-color 0.25s ease;
    font-family: 'DB Heavent', sans-serif;
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(2px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.service-card .read-more:hover {
    background-color: rgba(201, 169, 97, 0.97);
}

/* ========================================
   Room Types Section
   ======================================== */


.room-types {
    padding: 80px 0;
    background-color: var(--cream);
}

.room-types .container {
    max-width: 1400px;
}

.accommodation-title {
    text-align: center;
    margin-bottom: 40px;
}

.accommodation-title h2 {
    font-size: 4rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 24px; */
    align-items: start;
}

.room-card {
    background: transparent;
}

/* Room Image Carousel */
.room-carousel {
    position: relative;
    /* border-radius: 16px; */
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.room-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.room-carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-carousel-btn {
    position: absolute;
    top: 12px;
    bottom: auto;
    transform: none;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    font-size: 0.7rem;
    color: #ffffff;
    transition: background 0.2s, color 0.2s;
}

.room-carousel-btn:hover {
    background: white;
    color: var(--primary-green);
}

.room-carousel-btn.prev { right: 46px; left: auto; }
.room-carousel-btn.next { right: 12px; left: auto; }

/* Room Overlay (info on top of image) */
.room-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 45%, transparent 100%);
    padding: 60px 18px 18px;
    z-index: 2;
}

.room-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #a6d391;
    border-left: 4px solid #a6d391;
    padding-left: 12px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.room-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

.room-features-note {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding-left: 18px;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.room-features-note::before {
    content: "•";
    position: absolute;
    left: 4px;
    transform: scale(1.2);
    transform-origin: center;
}

.room-features {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

.room-features li {
    padding: 0px 0px;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .services-title h1 {
        font-size: 2.5rem;
    }

    .service-card {
        flex: 0 0 25%;
    }

    .banner-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        padding: 50px 0 50px;
    }

    .services-title h1 {
        font-size: 2rem;
    }

    .services-title .subtitle {
        font-size: 0.95rem;
    }

    .service-card {
        flex: 0 0 50%;
    }

    .banner-content {
        flex-direction: column;
        height: auto;
    }

    .banner-image,
    .banner-text {
        flex: 0 0 auto;
        width: 100%;
    }

    .banner-image {
        height: 300px;
    }

    .banner-text {
        padding: 50px 30px;
    }

    .banner-text h2 {
        font-size: 2rem;
    }

    .rooms-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .services-title h1 {
        font-size: 3rem;
    }

    .accommodation-title h2 {
        font-size: 3rem;
    }

    .services-title .subtitle {
        font-size: 1.5rem;
    }
    
    .carousel-nav-buttons {
        display: flex;
    }

    .service-card {
        flex: 0 0 75%;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .room-name {
        font-size: 1.4rem;
    }
}

/* Content Area */

/* ========================================
   Food Course Detail Section
   ======================================== */
.food-course-detail {
    background-color: var(--cream);
    padding: 50px 0;
}

.food-course-layout {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.food-course-image {
    flex: 0 0 48%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    min-height: 700px;
}

.food-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.food-course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.food-course-content h2 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1.25;
    margin-bottom: 28px;
}

.food-course-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.food-course-body p {
    font-size: 1.5rem;
    color: var(--text-gray);
    line-height: 1.75;
}

@media (max-width: 1024px) {
    .food-course-image {
        flex: 0 0 46%;
    }

    .food-course-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .food-course-layout {
        flex-direction: column;
        gap: 36px;
    }

    .food-course-image {
        flex: none;
        width: 100%;
        min-height: unset;
        height: 300px;
    }

    .food-course-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .food-course-content h2 {
        font-size: 2.8rem;
    }

    .food-course-body p {
        font-size: 1.5rem;
    }
}

/* ========================================
   Admission Process Section
   ======================================== */
.admission-process {
    background-color: var(--cream);
    padding: 20px 0 0;
}

.admission-header {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 36px;
}

.admission-title h2 {
    font-size: 4.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 6px;
}

.admission-subtitle {
    font-size: 2.5rem;
    color: var(--text-gray);
    font-weight: 300;
}

.admission-description {
    margin-left: auto;
    max-width: 520px;
    align-self: flex-end;
    padding-bottom: 6px;
}

.admission-description p {
    font-size: 1.5rem;
    color: var(--text-gray);
    line-height: 1.75;
}

/* Full Width Image Slider */
.admission-slider-fullwide {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 36px;
    user-select: none;
}

.admission-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.admission-slide {
    flex: 0 0 100%;
    width: 100%;
}

.admission-slide img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.admission-slider-dots {
    display: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: #e8943a;
    transform: scale(1.3);
}

/* CTA Button */
.admission-cta {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 0;
}

.btn-admission-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e8943a;
    color: white;
    padding: 3px 25px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    font-family: 'DB Heavent', sans-serif;
    transition: background-color 0.25s ease;
}

.btn-admission-cta:hover {
    background-color: #d07828;
    color: white;
}

.btn-admission-cta i {
    font-size: 0.85rem;
}

/* Contact Bar */
.admission-contact-bar {
    margin-top: 50px;
    background-color: #e8dfc8;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Rebirth Tagline */
.admission-rebirth {
    padding: 50px 20px 60px;
    text-align: center;
}

.rebirth-en {
    font-size: 4.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: -10px;
}

.rebirth-th {
    font-size: 2.5rem;
    color: var(--text-gray);
    font-weight: 300;
}

.contact-bar-text {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-bar-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 3rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-bar-phone-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 2.5rem;
}

/* Admission Responsive */
@media (max-width: 1024px) {
    .admission-title h1 {
        font-size: 2.5rem;
    }

}


@media (max-width: 768px) {
    .admission-process {
        padding: 50px 0 0;
    }

    .admission-header {
        flex-direction: column;
        gap: 20px;
    }

    .admission-title h1 {
        font-size: 2rem;
    }

    .admission-description {
        max-width: 100%;
    }

    .contact-bar-text,
    .contact-bar-phone {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .admission-title h2 {
        font-size: 3rem;
    }

    .btn-admission-cta {
        font-size: 1rem;
        padding: 12px 28px;
    }

    .admission-contact-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 22px 20px;
    }

    .contact-bar-text,
    .contact-bar-phone-icon,
    .contact-bar-phone {
        font-size: 2.2rem;
    }
    .rebirth-en {   
        font-size: 2rem;
    }
    .rebirth-th {   
        font-size: 2rem;
    }

    .admission-title h1  {
        font-size: 2.25rem;
    }
    .admission-subtitle {
        font-size: 1.5rem;
    }

}