/* =========================================
   IMMERSIVE SERVICES SECTION
   ========================================= */
.services-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
}

/* Immersive Card */
.immersive-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 180px;
    /* Reduced to very small size */
    cursor: pointer;
}

.immersive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(90, 172, 78, 0.2);
}

/* Card Media (Image & Overlay) */
.card-media {
    position: relative;
    height: 100%;
    width: 100%;
}

.card-media img.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.immersive-card:hover .card-media img.main-img,
.immersive-card.active .card-media img.main-img {
    transform: scale(1.1);
    filter: brightness(0.3);
    /* Darken image to reveal content */
}

/* Default Title (Visible initially) */
.default-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
    transition: all 0.3s ease;
}

.immersive-card:hover .default-title,
.immersive-card.active .default-title {
    opacity: 0;
    transform: translateY(20px);
}

.default-title h3 {
    color: white;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover Overlay (Hidden by default - used as data source) */
.hover-overlay {
    display: none !important;
}

/* =========================================
   NEW MODAL STYLES (MATCHING REFERENCE)
   ========================================= */
.treatment-modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    /* Flexbox Layout for Fixed Header / Scrollable Body */
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Constrain modal height to viewport */
}

/* Enhanced Modal Width */
.modal-xl {
    max-width: 90% !important;
    /* Use more screen real estate */
}

/* 1. Green Header */
.modal-header-custom {
    background: #4caf50;
    /* Adjust to match precise green usually #5aac4e or similar */
    background: linear-gradient(90deg, #3d8c40 0%, #5aac4e 100%);
    padding: 25px 40px;
    /* Increased padding */
    color: white;
    flex-shrink: 0;
    /* Prevent header from shrinking */
}

.modal-title-custom {
    color: white;
    font-size: 28px;
    font-weight: 800;
    /* Bold as per image */
    margin: 0;
    text-transform: capitalize;
}

.header-subtext {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.modal-close-custom {
    background: white;
    /* White circle background */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #4caf50;
    /* Green X */
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-close-custom:hover {
    transform: rotate(90deg) scale(1.1);
}

.custom-modal-body {
    padding: 50px;
    /* More breathing room */
    background: #fdfdfd;
    overflow-y: auto;
    /* Scroll ONLY this area */
    flex-grow: 1;
    /* Fill remaining space */
    max-height: none;
    /* Reset max-height since parent controls it */
}

/* 2. Video Grid (2 videos side by side) */
.video-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.native-video-wrapper {
    width: 100%;
    height: 450px;
    /* Taller height for Portrait Mode (9:16 approx) */
    background: black;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #eee;
}

.native-video-wrapper video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the portrait container */
}

/* Removed old .vid-thumb modal styles as they are replaced by native player */


/* 3. Content Section */
.section-heading {
    font-size: 24px;
    font-weight: 800;
    /* Bolder */
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #5aac4e;
    border-radius: 2px;
}

.service-desc {
    color: #555;
    line-height: 1.8;
    /* Better readability */
    font-size: 16px;
    margin-bottom: 30px;
}

.green-subheading {
    color: #444;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #5aac4e;
    padding-left: 15px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.benefit-list li::before {
    content: '\f058';
    /* Solid Check Circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #5aac4e;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 18px;
    /* Larger icons */
}

/* Side Image */
.side-image-wrapper {
    height: 100%;
    min-height: 300px;
    /* Taller image */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.side-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Bottom Features */
.feature-item {
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Cards for features */
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 30px;
    color: #5aac4e;
    margin-bottom: 10px;
}

.feature-item h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* Book Button Large Base */
.book-btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: capitalize;
    /* "Book a Slot" case */
    letter-spacing: 0.5px;
    transition: all 0.3s;
    text-decoration: none;
    min-width: 200px;
}

/* Primary: Book a Slot (Filled) */
.book-slot {
    background: #4caf50;
    /* Fallback */
    background: linear-gradient(90deg, #3d8c40 0%, #5aac4e 100%);
    color: white !important;
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(90, 172, 78, 0.3);
}

.book-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(90, 172, 78, 0.4);
    background: linear-gradient(90deg, #347a36 0%, #4e9643 100%);
}

/* Secondary: Book a Session (Outlined) */
.book-session {
    background: white;
    color: #4caf50 !important;
    border: 2px solid #4caf50;
    box-shadow: none;
}

.book-session:hover {
    transform: translateY(-3px);
    background: #f0fff0;
    /* Light green tint */
    border-color: #3d8c40;
    color: #3d8c40 !important;
}

/* Responsive */
/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 Cols on smaller laptops/tablets */
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 Cols on tablets */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid-2 {
        grid-template-columns: 1fr;
        /* Stack videos on mobile */
    }

    .header-subtext {
        display: none;
    }

    .modal-title-custom {
        font-size: 22px;
    }

    /* Stack buttons on mobile */
    .book-btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }

    .immersive-card {
        height: 300px;
        /* Slightly more compact on mobile */
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Cols on mobile phones */
        gap: 8px;
    }

    .immersive-card {
        height: 125px;
        /* Smaller height to fit 6 items in view */
    }

    .default-title {
        padding: 5px;
    }

    .default-title h3 {
        font-size: 12px;
        line-height: 1.2;
    }

    .modal-header-custom {
        padding: 15px;
    }

    .custom-modal-body {
        padding: 20px;
    }

    /* Mobile: Smaller Portrait Video */
    .native-video-wrapper {
        height: 200px !important;
    }
}

/* =========================================
   STRICT SCROLL LOCKING (NUCLEAR OPTION)
   ========================================= */
body.modal-open-locked {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    /* fix scroll on iOS */
    width: 100%;
    touch-action: none;
}

/* Allow scrolling ONLY inside the modal body */
.custom-modal-body {
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    touch-action: pan-y;
    /* Re-enable vertical scroll */
}