
        :root {
            --bs-primary-blue: #0D3880;
            --bs-primary-dark: #071F47;
            --bs-accent-cyan: #18B1E5;
            --bs-accent-light: #EBF7FC;
            --bs-light-bg: #F4F8FC;
            --bs-text-main: #2C3E50;
            --bs-text-muted: #6C7A89;
            --bs-gold: #D4AF37;
            --bs-wechat: #07C160;
            --bs-card-shadow: 0 10px 30px rgba(13, 56, 128, 0.08);
            --bs-hover-shadow: 0 15px 35px rgba(13, 56, 128, 0.16);
        }

        html,
        body {
            max-width: 100vw;
            overflow-x: hidden;
        }

        body {
            font-family: 'Noto Sans SC', 'Sarabun', 'Plus Jakarta Sans', sans-serif;
            color: var(--bs-text-main);
            background-color: #FFFFFF;
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
        }

        .bg-light-custom {
            background-color: var(--bs-light-bg);
        }

        .text-primary-custom {
            color: var(--bs-primary-blue) !important;
        }

        .text-accent-custom {
            color: var(--bs-accent-cyan) !important;
        }

        .btn-primary-custom {
            background: linear-gradient(135deg, #0D3880 0%, #154EAC 100%);
            color: #ffffff;
            border: none;
            border-radius: 50rem;
            padding: 0.8rem 2.2rem;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            box-shadow: 0 4px 15px rgba(13, 56, 128, 0.25);
            touch-action: manipulation;
        }

        .btn-primary-custom:hover {
            background: linear-gradient(135deg, #071F47 0%, #0D3880 100%);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(13, 56, 128, 0.35);
        }

        .btn-wechat-custom {
            background-color: var(--bs-wechat);
            color: #ffffff;
            border: none;
            border-radius: 50rem;
            padding: 0.8rem 2rem;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            box-shadow: 0 4px 15px rgba(7, 193, 96, 0.25);
        }

        .btn-wechat-custom:hover {
            background-color: #06AD56;
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(7, 193, 96, 0.35);
        }

        .navbar {
            padding: 0.8rem 0;
            box-shadow: 0 2px 20px rgba(13, 56, 128, 0.06);
            background-color: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .navbar-brand-text {
            font-weight: 800;
            font-size: 1.3rem;
            color: var(--bs-primary-blue);
            line-height: 1.15;
            letter-spacing: -0.3px;
        }

        .navbar-brand-sub {
            font-size: 0.75rem;
            color: var(--bs-accent-cyan);
            letter-spacing: 0.8px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .nav-link {
            font-weight: 500;
            color: var(--bs-text-main);
            margin: 0 0.2rem;
            padding: 0.5rem 0.8rem !important;
            border-radius: 8px;
            transition: all 0.25s ease;
        }

        .nav-link:hover,
        .nav-link.active {
            color: var(--bs-primary-blue) !important;
            background-color: var(--bs-light-bg);
            font-weight: 700;
        }

        .btn-lang-custom {
            color: var(--bs-primary-blue);
            border: 1.5px solid var(--bs-primary-blue);
            background-color: transparent;
            border-radius: 50rem;
            padding: 0.45rem 1.1rem;
            font-size: 0.875rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            height: 40px;
        }

        .btn-lang-custom:hover,
        .btn-lang-custom:focus,
        .btn-lang-custom.show {
            background-color: var(--bs-accent-light);
            color: var(--bs-primary-blue);
            border-color: var(--bs-primary-blue);
        }

        .btn-nav-booking {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 1.25rem !important;
            font-size: 0.875rem;
            height: 40px;
            box-shadow: 0 4px 12px rgba(13, 56, 128, 0.2);
        }

        .dropdown-menu {
            border-radius: 12px;
            border: 1px solid rgba(13, 56, 128, 0.1);
            padding: 0.5rem;
        }

        .dropdown-menu .dropdown-item {
            border-radius: 8px;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--bs-text-main);
            transition: all 0.2s ease;
        }

        .dropdown-menu .dropdown-item:hover {
            background-color: var(--bs-accent-light);
            color: var(--bs-primary-blue);
        }

        .dropdown-menu .dropdown-item.active,
        .dropdown-menu .dropdown-item:active {
            background-color: var(--bs-primary-blue);
            color: #ffffff;
            font-weight: 600;
        }

        /* --- Hero Section with DVH Support --- */
        .hero-section {
            background: url('images/home/homepage_hero_banner.jpg') no-repeat center center / cover;
            margin: 5rem 0;
            position: relative;
            min-height: 80vh;
            min-height: 80dvh;
            display: flex;
            align-items: center;
        }

        .trust-bar {
            background: #ffffff;
            border-radius: 20px;
            padding: 0.85rem 1.25rem;
            box-shadow: var(--bs-card-shadow);
            margin-top: -2.25rem;
            position: relative;
            z-index: 10;
            border: 1px solid rgba(24, 177, 229, 0.12);
        }

        .trust-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.85rem;
            color: var(--bs-primary-blue);
            font-weight: 700;
            font-size: 0.95rem;
            padding: 0.75rem 1.25rem;
            border-radius: 1rem;
            cursor: pointer;
            background-color: transparent;
            transition: all 0.35s cubic-bezier(0.25, 1, 0.3, 1);
        }

        .trust-item i {
            color: var(--bs-gold);
            font-size: 1.5rem;
            transition: transform 0.35s cubic-bezier(0.25, 1, 0.3, 1), color 0.35s ease;
        }

        .trust-item:hover {
            transform: translateY(-3px);
            background-color: #F0F7FF;
            box-shadow: 0 8px 20px rgba(13, 56, 128, 0.08);
            color: var(--bs-primary-dark);
        }

        .trust-item:hover i {
            transform: scale(1.15) rotate(6deg);
        }

        .service-card {
            background: #ffffff;
            border-radius: 18px;
            padding: 2.25rem 1.25rem;
            text-align: center;
            border: 1px solid #E2E8F0;
            box-shadow: var(--bs-card-shadow);
            height: 100%;
            transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
            will-change: transform, box-shadow;
            backface-visibility: hidden;
            transform: translateZ(0);
            cursor: pointer;
        }

        .service-card .service-title {
            transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            word-break: break-word;
        }

        .service-icon {
            width: 75px;
            height: 75px;
            border-radius: 50%;
            background: var(--bs-accent-light);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.25rem;
            padding: 12px;
            box-shadow: 0 4px 12px rgba(13, 56, 128, 0.08);
            transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s ease,
                box-shadow 0.35s ease;
        }

        .service-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
            transition: transform 0.35s ease;
        }

        .service-card:hover {
            background: linear-gradient(145deg, #0D3880 0%, #154EAC 100%);
            color: #ffffff;
            border-color: transparent;
            transform: translateY(-8px) scale(1.01);
            box-shadow: 0 20px 40px rgba(13, 56, 128, 0.28);
        }

        .service-card:hover .service-icon {
            background: #ffffff;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
            transform: translateY(-4px) scale(1.08);
        }

        .service-card:hover .service-title {
            color: #ffffff !important;
        }

        /* --- Section Horizontal Scroll Slider Styles --- */
        .treatment-slider-wrapper,
        .doctor-slider-wrapper,
        .testimonial-slider-wrapper {
            position: relative;
        }

        .treatment-slider,
        .doctor-slider,
        .testimonial-slider {
            display: flex;
            overflow-x: auto;
            gap: 1.5rem;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            padding: 0.5rem 0.25rem 1.5rem;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            cursor: grab;
            user-select: none;
            -webkit-user-select: none;
            scrollbar-width: thin;
            scrollbar-color: var(--bs-accent-cyan) #EAEFF5;
        }

        .treatment-slider.is-dragging,
        .doctor-slider.is-dragging,
        .testimonial-slider.is-dragging {
            cursor: grabbing;
            scroll-snap-type: none !important;
            scroll-behavior: auto !important;
        }

        .treatment-slider.is-dragging .treatment-card-exact,
        .doctor-slider.is-dragging .doctor-card,
        .testimonial-slider.is-dragging .case-card,
        .doctor-slider.is-dragging .testimonial-card {
            pointer-events: none;
        }

        .treatment-slider::-webkit-scrollbar,
        .doctor-slider::-webkit-scrollbar,
        .testimonial-slider::-webkit-scrollbar {
            height: 6px;
        }

        .treatment-slider::-webkit-scrollbar-track,
        .doctor-slider::-webkit-scrollbar-track,
        .testimonial-slider::-webkit-scrollbar-track {
            background: #EAEFF5;
            border-radius: 10px;
        }

        .treatment-slider::-webkit-scrollbar-thumb,
        .doctor-slider::-webkit-scrollbar-thumb,
        .testimonial-slider::-webkit-scrollbar-thumb {
            background: var(--bs-accent-cyan);
            border-radius: 10px;
        }

        .treatment-slider-item,
        .doctor-slider-item,
        .testimonial-slider-item {
            flex: 0 0 calc(33.333% - 1rem);
            min-width: 290px;
            scroll-snap-align: start;
        }

        .slider-control-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #ffffff;
            border: 1px solid rgba(13, 56, 128, 0.15);
            color: var(--bs-primary-blue);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            cursor: pointer;
            touch-action: manipulation;
        }

        .slider-control-btn:hover {
            background: var(--bs-primary-blue);
            color: #ffffff;
            transform: scale(1.08);
            box-shadow: 0 6px 16px rgba(13, 56, 128, 0.25);
        }

        /* --- Treatment Card Styling --- */
        .treatment-card-exact {
            background: #ffffff;
            border-radius: 20px;
            border: 1px solid rgba(13, 56, 128, 0.12);
            overflow: hidden;
            box-shadow: var(--bs-card-shadow);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            height: 100%;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .treatment-card-exact:hover {
            transform: translateY(-8px);
            box-shadow: var(--bs-hover-shadow);
            border-color: var(--bs-accent-cyan);
        }

        .treatment-card-head {
            position: relative;
            height: 320px;
            background: var(--bs-accent-light);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .treatment-card-bg-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            z-index: 1;
            transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1);
            pointer-events: none;
        }

        .treatment-card-exact:hover .treatment-card-bg-img {
            transform: scale(1.08);
        }

        .treatment-card-body-exact {
            position: relative;
            z-index: 3;
            background: #ffffff;
            padding: 1.25rem 1.5rem;
            border-radius: 0 0 20px 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-top: 1px solid rgba(24, 177, 229, 0.15);
        }

        .treatment-body-title {
            color: var(--bs-primary-blue);
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 0.1rem;
        }

        .treatment-body-sub {
            color: var(--bs-text-muted);
            font-size: 0.88rem;
            font-weight: 400;
            margin-bottom: 0.5rem;
        }

        .treatment-read-more {
            color: var(--bs-accent-cyan);
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        .treatment-card-exact:hover .treatment-read-more {
            color: var(--bs-primary-blue);
            transform: translateX(3px);
        }

        /* --- Doctor Section Styling --- */
        .doctor-section {
            background-color: #f8f9fa;
        }

        .doctor-card {
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--bs-card-shadow);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            border: 1px solid rgba(13, 56, 128, 0.1);
            position: relative;
            height: 400px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            cursor: pointer;
        }

        .doctor-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--bs-hover-shadow);
            border-color: var(--bs-accent-cyan);
        }

        .doctor-img-wrapper {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background: linear-gradient(180deg, #F0F4F8 0%, #E2E8F0 100%);
        }

        .doctor-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
            transition: transform 0.5s ease;
        }

        .doctor-card:hover .doctor-img {
            transform: scale(1.05);
        }

        .doctor-card-overlay {
            position: relative;
            z-index: 2;
            padding: 1.5rem 1.25rem 1.25rem;
            background: linear-gradient(180deg, rgba(7, 31, 71, 0) 0%, rgba(7, 31, 71, 0.85) 45%, rgba(7, 31, 71, 0.98) 100%);
            color: #ffffff;
        }

        /* --- Doctor Modal Styling --- */
        .doctor-modal-img-container {
            background: linear-gradient(135deg, #F4F8FC 0%, #EBF7FC 100%);
            border-radius: 20px;
            border: 1px solid rgba(24, 177, 229, 0.2);
            padding: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 25px rgba(13, 56, 128, 0.08);
            margin: 0 auto;
            max-width: 100%;
        }

        .doctor-modal-img {
            max-width: 100%;
            max-height: 60vh;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 14px;
            display: block;
            margin: 0 auto;
        }

        /* --- Testimonial / Cases Section Styles --- */
        .case-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 1.5rem;
            border: 1px solid #EAEFF5;
            box-shadow: var(--bs-card-shadow);
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.35s ease;
        }

        .case-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--bs-hover-shadow);
        }

        .case-card-img-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            cursor: pointer;
        }

        .case-card-img-wrapper img {
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .case-card-img-wrapper:hover img {
            transform: scale(1.05);
        }

        .booking-section {
            background: linear-gradient(135deg, #0D3880 0%, #071F47 100%);
            color: #ffffff;
            border-radius: 24px;
            padding: 3.5rem 2.5rem;
            box-shadow: 0 20px 40px rgba(7, 31, 71, 0.3);
        }

        .form-control-custom {
            background: rgba(255, 255, 255, 0.95);
            border: none;
            border-radius: 10px;
            padding: 0.8rem 1.2rem;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

        .form-control-custom:focus {
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(24, 177, 229, 0.4);
            outline: none;
        }

        /* --- Floating Sidebar --- */
        .floating-sidebar {
            position: fixed;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1040;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
        }

        .floating-item {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 54px;
            height: 52px;
            background: var(--bs-primary-blue);
            color: #ffffff;
            border-radius: 12px 0 0 12px;
            box-shadow: -4px 6px 18px rgba(13, 56, 128, 0.18);
            text-decoration: none;
            overflow: hidden;
            white-space: nowrap;
            transition: width 0.45s cubic-bezier(0.25, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-right: none;
            cursor: pointer;
            touch-action: manipulation;
        }

        .floating-item-icon {
            min-width: 54px;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .floating-item-text {
            font-size: 0.88rem;
            font-weight: 600;
            padding-right: 16px;
            opacity: 0;
            transition: opacity 0.3s ease 0.1s;
            white-space: nowrap;
            color: #ffffff;
        }

        .floating-item:hover {
            width: 200px;
            box-shadow: -6px 10px 25px rgba(13, 56, 128, 0.32);
            color: #ffffff;
        }

        .floating-item:hover .floating-item-text {
            opacity: 1;
        }

        .floating-item.wechat-item {
            background: #07C160;
        }

        .floating-item.wechat-item:hover {
            background: #06AD56;
        }

        footer {
            background-color: var(--bs-primary-dark);
            color: #A0AEC0;
            font-size: 0.9rem;
        }

        footer a {
            color: #CBD5E0;
            text-decoration: none;
            transition: color 0.2s;
        }

        footer a:hover {
            color: var(--bs-accent-cyan);
        }

        .btn-social-icon {
            width: 36px;
            height: 36px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .reveal {
            opacity: 0;
            transform: translateY(35px);
            transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1), transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
            will-change: opacity, transform;
        }

        .reveal.reveal-active {
            opacity: 1;
            transform: translateY(0);
        }

        .delay-1 {
            transition-delay: 0.1s;
        }

        .delay-2 {
            transition-delay: 0.2s;
        }

        .delay-3 {
            transition-delay: 0.3s;
        }

        .delay-4 {
            transition-delay: 0.4s;
        }

        /* --- Responsive Improvements & Media Queries --- */
        @media (min-width: 1200px) {
            .treatment-slider-item,
            .doctor-slider-item,
            .testimonial-slider-item {
                flex: 0 0 calc(33.333% - 1rem);
            }
        }

        @media (min-width: 768px) {
            .border-md-start {
                border-left: 1px solid rgba(24, 177, 229, 0.2) !important;
            }
        }

        @media (max-width: 991.98px) {
            .hero-section {
                margin: 5rem 0;
                min-height: 55vh;
                min-height: 55dvh;
            }

            .navbar-collapse {
                background: #ffffff;
                padding: 1.25rem;
                border-radius: 16px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                margin-top: 0.75rem;
            }

            .booking-section {
                padding: 2.25rem 1.5rem;
            }

            .trust-bar {
                margin-top: 1rem;
            }

            .treatment-slider-item,
            .doctor-slider-item,
            .testimonial-slider-item {
                flex: 0 0 calc(50% - 0.75rem);
                min-width: 250px;
            }

            .treatment-card-head {
                height: 280px;
            }

            .doctor-card {
                height: 360px;
            }
        }

        @media (max-width: 575.98px) {
            .navbar-brand-text {
                font-size: 1.1rem;
            }

            .service-card {
                padding: 1.25rem 0.5rem;
                border-radius: 14px;
            }

            .service-icon {
                width: 55px;
                height: 55px;
                padding: 8px;
                margin-bottom: 0.75rem;
            }

            .service-card .service-title {
                font-size: 0.88rem !important;
            }

            .treatment-slider-item,
            .doctor-slider-item,
            .testimonial-slider-item {
                flex: 0 0 85%;
                min-width: 230px;
            }

            .treatment-card-head {
                height: 240px;
            }

            .doctor-card {
                height: 340px;
            }

            .booking-section {
                padding: 2rem 1.25rem !important;
                border-radius: 18px;
            }

            /* Mobile Floating Sidebar Optimization */
            .floating-sidebar {
                top: auto;
                bottom: 20px;
                transform: none;
                right: 12px;
                gap: 8px;
            }

            .floating-item {
                width: 48px;
                height: 48px;
                border-radius: 50% !important;
                justify-content: center;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
            }

            .floating-item-icon {
                min-width: auto;
                font-size: 1.15rem;
            }

            .floating-item-text {
                display: none !important;
            }

            .floating-item:hover {
                width: 48px;
            }

            .doctor-modal-img {
                max-height: 45vh;
            }
        }

        /* Support for ultra-small device viewports (e.g., iPhone SE 320px-360px) */
        @media (max-width: 360px) {
            .treatment-slider-item,
            .doctor-slider-item,
            .testimonial-slider-item {
                flex: 0 0 92%;
                min-width: 210px;
            }

            .trust-item {
                font-size: 0.85rem;
                padding: 0.5rem;
            }
        }

        /* Landscape view optimizations for mobile devices */
        @media (max-height: 500px) and (orientation: landscape) {
            .hero-section {
                min-height: 100vh;
            }
            .doctor-modal-img {
                max-height: 35vh;
            }
        }