:root {
    --banner-ratio-624: calc(100vw * (496 / 624)); /* 預設比例 */
    --banner-ratio-1024: calc(100vw * (624 / 1024));
    --banner-ratio-1440: calc(100vw * (712 / 1440));
    --banner-ratio-1280: calc(100vw * (712 / 1280));
    --banner-ratio-1920: calc(100vw * (720 / 1920));

    --color-EBB260: #EBB260;
    --color-E8D9C0: #E8D9C0;
    --color-BB8E6F: #BB8E6F;
    --color-A0896B: #A0896B;
    --color-E9DBD1: #E9DBD1;
    --color-BF9477: #BF9477;
    --color-f7f5f0: #f7f5f0;
    --color-615A56: #615A56;
    --color-FFCB27: #FFCB27;
    --color-E77021: #E77021;
    --color-F6F6F4: #F6F6F4;
    --color-F1E5D3: #F1E5D3;
    --color-83A35D: #83A35D;
    --color-96745D: #96745D;
    --color-AA998B: #AA998B;
    --color-D2BEAE: #D2BEAE;

    --border-radius-15: 15px;
    --border-radius-50: 50px;

    --box-shadow-10px-30px-rgba-0-0-0-0-05: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.w-fit {
    width: fit-content;
}

.text-large-plus {
    font-size: 1.5rem !important;
}

.text-large {
    font-size: 1.25rem !important;
}

.text-medium {
    font-size: 1.1rem !important;
}

.text-normal {
    font-size: 1rem !important;
}

.text-small-normal {
    font-size: 0.85rem !important;
}

.text-small {
    font-size: 0.75rem !important;
}

.text-smaller {
    font-size: 0.625rem !important;
}

.line-height-1-8 {
    line-height: 1.8 !important;
}

.line-height-high {
    line-height: 1.8 !important;
}

.line-height-higher {
    line-height: 2 !important;
}

.letter-spacing-2 {
    letter-spacing: 2px !important;
}

.border-radius-30 {
    border-radius: 30px !important;
}

.text-bf9477 {
    color: var(--color-BF9477);
}

.bg-bf9477 {
    background-color: var(--color-BF9477);
}

.text-615A56 {
    color: var(--color-615A56);
}

.bg-615A56 {
    background-color: var(--color-615A56);
}

.text-FFCB27 {
    color: var(--color-FFCB27);
}

.bg-FFCB27 {
    background-color: var(--color-FFCB27);
}

.text-e77021 {
    color: var(--color-E77021);
}

.bg-e77021 {
    background-color: var(--color-E77021);
}

.text-bb8e6f {
    color: var(--color-BB8E6F);
}

.bg-bb8e6f {
    background-color: var(--color-BB8E6F);
}

.text-f6f6f4 {
    color: var(--color-F6F6F4);
}

.bg-f6f6f4 {
    background-color: var(--color-F6F6F4);
}

.text-83A35D {
    color: var(--color-83A35D);
}

.text-96745D {
    color: var(--color-96745D);
}

.bg-96745D {
    background-color: var(--color-96745D);
}

.text-AA998B {
    color: var(--color-AA998B);
}

.bg-AA998B {
    background-color: var(--color-AA998B);
}

.text-A0896B {
    color: var(--color-A0896B);
}

.bg-A0896B {
    background-color: var(--color-A0896B);
}

.text-EBB260 {
    color: var(--color-EBB260);
}

.bg-EBB260 {
    background-color: var(--color-EBB260);
}

.text-E8D9C0 {
    color: var(--color-E8D9C0);
}

.bg-E8D9C0 {
    background-color: var(--color-E8D9C0);
}

p {
    line-height: 1.8;
    color: var(--color-615A56);
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-main {
    background-color: var(--color-BB8E6F);
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-main:hover {
    background-color: var(--color-A0896B);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 142, 111, 0.3);
}

.btn-second {
    background-color: #fff;
    color: var(--color-BB8E6F);
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-BB8E6F);
}

.btn-second:hover {
    background-color: var(--color-BB8E6F);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(187, 142, 111, 0.35);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

#hero .item1,
#hero .item2,
#hero .item3 {
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* width: 100vw; */
}

#hero .item1 {
    background-image: url(../images/00-hp/banner01_624.png);
}
#hero .item2 {
    background-image: url(../images/00-hp/banner02_624.png);
}
#hero .item3 {
    background-image: url(../images/00-hp/banner03_624.png);
}

@media (max-width: 768px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-624);
        /* height: 100vw; 以正方形顯示 */
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1024);
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1280);
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1440);
    }
}

@media (min-width: 1440px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1920);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1024.png);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner01_1024.png);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1024.png);
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1280.png);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner02_1280.png);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1280.png);
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1440.png);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner02_1440.png);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1440.png);
    }
}

@media (min-width: 1440px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1920.png);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner02_1920.png);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1920.png);
    }
}

/* Custom Navigation Styles */
.navbar .nav-link {
    color: #615A56 !important;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding-left: 20px !important;
    padding-right: 20px !important;
    position: relative;
    display: flex;
    align-items: center;
}

/* Hide default underline from style.css for ALL nav links */
.navbar .nav-link::after {
    content: none !important;
    display: none !important;
}

/* Re-instate and Custom Style the Dropdown Icon */
/* We must use !important to override the 'content: none' above */
.navbar .dropdown-toggle::after {
    content: '' !important;
    display: inline-block !important;
    border: solid #615A56;
    border-width: 0 2px 2px 0;
    padding: 3px;
    margin-left: 10px; /* Space between text and icon */
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    vertical-align: middle;
    margin-bottom: 3px;
    
    /* Reset styles that might have come from the underline rule if selector specificity was an issue */
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
}

/* Rotate icon when active */
.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

/* Hover/Active Dot Effect for Main Items */
/* Note: We use ::before for the dot, so it doesn't conflict with ::after icon */
.navbar .nav-link:hover::before,
.navbar .nav-link.active::before,
.navbar .nav-link:focus::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #EBB260;
    border-radius: 50%;
}

/* Dropdown positioning - Centering relative to parent */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown {
        position: relative;
    }

    /* Invisible bridge to prevent menu from disappearing */
    .navbar .nav-item.dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px; /* Bridge the gap */
        background: transparent;
        z-index: 1000;
    }
    
    .navbar .dropdown-menu {
        display: none; /* Controlled by JS or Hover */
        position: absolute;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin-top: 10px !important; /* Visual gap */
    }

    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Dropdown styling */
.navbar .dropdown-menu {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding: 0;
    overflow: hidden;
    min-width: 220px;
}

.navbar .dropdown-category {
    color: #BB8E6F;
    font-size: 1.1rem;
    padding: 15px 20px 10px;
    text-align: center;
    font-weight: 500;
    background-color: #F7F6F5;
}

.navbar .dropdown-item {
    color: #615A56 !important;
    padding: 10px 20px;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal;
    position: relative;
}

.navbar .dropdown-item:hover, 
.navbar .dropdown-item:focus {
    background-color: #FDF9F7;
    color: #615A56 !important;
}

/* Dot effect for sub-items */
.navbar .dropdown-item:hover::before,
.navbar .dropdown-item:focus::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #EBB260;
    border-radius: 50%;
}

/* Social Icon Adjustment */
.navbar .nav-fb-icon {
    /* padding: 0 10px !important; */
    display: flex;
    align-items: center;
}
.navbar .nav-fb-icon::before {
    display: none !important;
}
.navbar .nav-fb-icon img {
    /* width: 20px; */
    /* height: auto; */
    padding: 10px;
}

.times {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    cursor: pointer;
}

.howtogo {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    cursor: pointer;
}

@media (max-width: 991px) and (min-width: 768px) {
    .times {
        width: 50%;
    }
    .howtogo {
        transform: translateY(-50%);
        width: 135px;
        height: 135px;
    }
    .times-col {
        position: absolute;
        top: 0;
        left: 0;
    }
    .howto-col {
        position: absolute !important;
        top: 0;
        right: 0;
    }
}
    

@media (max-width: 768px) {
    .times {
        position: relative;
    }
    .howtogo {
        transform: translateY(-80%);
        width: 80px;
        height: 80px;
    }
    .times-col {
        position: absolute;
        top: 0;
        left: 0;
    }
    .howto-col {
        position: absolute !important;
        top: 0;
        right: 0;
    }
}

.department-card {
    background-color: #ffffff;
    border-radius: 15px;
    /* padding: 20px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.department1 {
    background-image: url('../images/00-hp/department01-bg.png');
    background-size: 100% 100%;
    background-position: center;
}

.department2 {
    background-image: url('../images/00-hp/department02-bg.png');
    background-size: 100% 100%;
    background-position: center;
}

.department-label {
    background-size: cover;
    background-position: center;
    width: auto;
    /* Forces the item to fill the flex container's cross-axis (height in row, width in column) */
    align-self: stretch; 
    /* Center the text content inside this label container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.department-label01 {
    background-image: url('../images/00-hp/left_pink.png');
}

.department-label02 {
    background-image: url('../images/00-hp/left_yellow.png');
}

.department-label p {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 25px 0px;
    text-align: center;
}

.department-content {
    padding: 3rem 2rem;
}

.department-content * {
    color: var(--color-BB8E6F);
}

.department-title {
    background-color: #fff;
    border-radius: 50px;
    border: 2px solid var(--color-E8D9C0);
    padding: 10px 2rem;
    width: fit-content;
}

.icon-dermatology {
    width: auto !important;
    height: 100px !important;
}

.icon-mind {
    width: auto !important;
    height: 100px !important;
}

.arrow-icon {
    width: 40px !important;
    height: 40px !important;
}

@media (min-width: 991px) {
    .department-label p {
        writing-mode: vertical-rl;
    }
}

@media (max-width: 768px) {
    .department1 {
        background-image: url('../images/00-hp/department01-1-bg.png');
        background-size: 100% 100%;
        background-position: center;
    }
    .department2 {
        background-image: url('../images/00-hp/department02-1-bg.png');
        background-size: 100% 100%;
        background-position: center;
    }
    .department-title {
        padding: 1rem 1.2rem;
    }
    .department-content {
        padding: 2rem 1.5rem;
    }
    .department-label {
        width: 100%;
        height: auto !important;
    }
    .department-label p {
        writing-mode: horizontal-tb;
        padding: 10px 25px;
    }
    .icon-dermatology {
        width: auto !important;
        height: 70px !important;
        margin-right: 1rem;
    }
    .icon-mind {
        width: auto !important;
        height: 70px !important;
        margin-right: 1rem;
    }
    .arrow-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* News Section Styles */
#hp-news .news-header h2 {
    color: #4a4a4a; /* Dark gray for title */
    margin-bottom: 0;
}

#hp-news .news-header span {
    color: var(--color-BB8E6F);
    font-size: 0.9rem;
    font-weight: 500;
}

#hp-news .news-header .title-decorate-line {
    width: 30px;
    height: 1px;
    background-color: var(--color-BB8E6F);
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.news-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover .news-title {
    color: var(--color-BB8E6F) !important;
}

.news-item:hover .btn-circle-arrow {
    background-color: var(--color-BB8E6F);
    color: #fff;
}

.news-thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.news-date {
    font-size: 0.85rem;
    /* color: #999; */
    color: var(--color-BB8E6F) !important;
}

.news-title {
    font-size: 1.05rem;
    /* color: #4a4a4a; */
    color: var(--color-BB8E6F) !important;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.btn-circle-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E0E0E0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-circle-arrow i {
    font-size: 1.2rem;
}

.btn-more-news {
    background-color: var(--color-BB8E6F);
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-more-news:hover {
    background-color: var(--color-A0896B);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 142, 111, 0.3);
}

.news-feature-img {
    border-radius: 30px 0 0 30px; /* Distinctive rounded corner as seen in image */
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.news-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature-caption {
    font-size: 0.9rem;
    color: var(--color-BB8E6F);
    letter-spacing: 2px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.news-feature-caption::after {
    content: '';
    width: 80px;
    height: 1px;
    background-color: var(--color-E8D9C0);
}

@media (max-width: 991px) {
    .news-feature-img {
        border-radius: 20px;
        min-height: 250px;
        margin-top: 30px;
    }
    
    .news-thumb img {
        width: 100px;
        height: 70px;
    }
}

/* Extend Right Column to Edge */
#hp-news {
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

@media (min-width: 992px) {
    .news-visual-wrapper {
        width: 50vw; /* Force width to half viewport */
        position: relative;
        /* Ensure height matches left column or has min-height */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%; 
    }
    
    .news-feature-img {
        /* Adjust height to fill available space minus caption */
        flex-grow: 1;
        /* Ensure min-height */
        min-height: 500px;
    }
}

/* ========================================
   Core Commitment Section (核心承諾)
   ======================================== */
#hp-commitment {
    position: relative;
    overflow: visible;
    padding: 80px 0;
    background-size: 100% 100%; /* Show full background including curved edges */
    background-position: center;
    background-repeat: no-repeat;
}

/* Bottom line spanning between hand illustrations */
#hp-commitment::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--color-E9DBD1);
    z-index: 1;
}

@media (min-width: 1200px) {
    #hp-commitment::after {
        left: 12%;
        right: 12%;
    }
}

@media (min-width: 1600px) {
    #hp-commitment::after {
        left: 15%;
        right: 15%;
    }
}

/* Responsive Background Images */
/* Mobile first - 750px */
#hp-commitment {
    background-image: url('../images/00-hp/核心承諾BG_750.png');
}

@media (min-width: 768px) {
    #hp-commitment {
        background-image: url('../images/00-hp/核心承諾BG_1024.png');
    }
}

@media (min-width: 1024px) {
    #hp-commitment {
        background-image: url('../images/00-hp/核心承諾BG_1080.png');
    }
}

@media (min-width: 1280px) {
    #hp-commitment {
        background-image: url('../images/00-hp/核心承諾BG_1280.png');
    }
}

@media (min-width: 1440px) {
    #hp-commitment {
        background-image: url('../images/00-hp/核心承諾BG_1440.png');
    }
}

@media (min-width: 1920px) {
    #hp-commitment {
        background-image: url('../images/00-hp/核心承諾BG_1920.png');
    }
}

/* Hand Illustrations */
.commitment-hand {
    position: absolute;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.commitment-hand-left {
    left: 10%;
}

.commitment-hand-left img {
    max-width: 200px;
    height: auto;
}

.commitment-hand-right {
    right: 10%;
}

.commitment-hand-right img {
    max-width: 200px;
    height: auto;
}

@media (min-width: 1200px) {
    .commitment-hand-left {
        left: 12%;
    }
    
    .commitment-hand-right {
        right: 12%;
    }
    
    .commitment-hand-left img,
    .commitment-hand-right img {
        max-width: 250px;
    }
}

@media (min-width: 1600px) {
    .commitment-hand-left {
        left: 15%;
    }
    
    .commitment-hand-right {
        right: 15%;
    }
    
    .commitment-hand-left img,
    .commitment-hand-right img {
        max-width: 300px;
    }
}

/* Content Styling */
.commitment-content {
    position: relative;
    z-index: 2;
}

.commitment-title {
    color: var(--color-615A56);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.commitment-icon {
    color: var(--color-BB8E6F);
    font-size: 1.5rem;
}

.commitment-icon i {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.commitment-subtitle {
    color: var(--color-BB8E6F);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.commitment-desc {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.btn-commitment {
    background-color: #fff;
    color: var(--color-BB8E6F);
    border-radius: 50px;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-BB8E6F);
    margin-top: 20px;
}

.btn-commitment:hover {
    background-color: var(--color-BB8E6F);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(187, 142, 111, 0.35);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    #hp-commitment {
        padding: 60px 0;
    }
    
    .commitment-title {
        font-size: 1.5rem;
    }
    
    .commitment-subtitle {
        font-size: 1rem;
    }
    
    .commitment-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #hp-commitment {
        padding: 50px 15px;
    }
    
    .commitment-title {
        font-size: 1.3rem;
    }
}

.hp-help {
    background-color: var(--color-f7f5f0);
}

.hp-help-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.hp-help-item {
    height: 100%;
    background-color: #fff;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 20px rgba(187, 142, 111, 0.35);
}

@media (max-width: 991px) {
    .hp-help {
        padding: 60px 0;
    }

    .hp-help-item {
        padding: 2rem;
    }
}

/* ========================================
   Sub Banner Section (圓弧椅banner)
   ======================================== */
.hp-subbanner {
    position: relative;
    width: 100%;
    padding: 0;
    background-size: 100% auto; /* Full width, auto height to maintain aspect ratio */
    background-position: center;
    background-repeat: no-repeat;
    /* Use aspect-ratio to maintain proportions without distortion */
    aspect-ratio: 640 / 720; /* Mobile - nearly square */
}

/* Responsive Background Images */
/* Mobile first - 640px */
.hp-subbanner {
    background-image: url('../images/00-hp/圓弧椅banner640.png');
}

@media (min-width: 768px) {
    .hp-subbanner {
        background-image: url('../images/00-hp/圓弧椅banner1024.png');
        aspect-ratio: 1024 / 443; /* Wider banner format */
    }
}

@media (min-width: 1024px) {
    .hp-subbanner {
        background-image: url('../images/00-hp/圓弧椅banner1280.png');
        aspect-ratio: 1280 / 576;
    }
}

@media (min-width: 1280px) {
    .hp-subbanner {
        background-image: url('../images/00-hp/圓弧椅banner1440.png');
        aspect-ratio: 1440 / 576;
    }
}

@media (min-width: 1440px) {
    .hp-subbanner {
        background-image: url('../images/00-hp/圓弧椅banner1920.png');
        aspect-ratio: 1920 / 576;
    }
}

.hp-appointment {
    background-color: var(--color-F6F6F4);
}

.hp-appointment-box {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.hp-appointment-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.hp-appointment-line {
    background-color: var(--color-BB8E6F);
    opacity: 0.5; /* Make it subtle */
}

@media (min-width: 992px) {
    .hp-appointment-line {
        width: 1px;
        align-self: stretch;
        margin: 0 50px;
        min-height: 100px;
    }
}

@media (max-width: 991px) {
    .hp-appointment-line {
        width: 80%;
        height: 1px;
        margin: 30px 0;
    }
}

@media (min-width: 992px) {
    .hp-appointment-img,
    .hp-appointment-content {
        flex: 1;
        width: 50%; /* Ensure they split the width */
    }
    
    .hp-appointment-img {
        object-fit: contain;
    }
}

.hp-appointment-cta-item {
    max-width: 100%;
}

/* Ensure images inside cta don't force overflow */
.hp-appointment-cta-item img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 450px) {
    .hp-appointment-cta-item {
        font-size: 0.9rem; /* Slightly smaller base text */
    }
    .hp-appointment-cta-item .text-large-plus {
        font-size: 1.2rem !important; /* Reduce the large phone number size on small screens */
    }
}

.hp-times-line {
    height: 50px !important;
}

@media (max-width: 768px) {
    .hp-times-line {
        height: 33px !important;
    }
}

.hp-qa-box {
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.hp-qa-title {
    background-image: url('../images/00-hp/qa-left-bg.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding: 80px 60px 80px 200px; /* Extra left padding to avoid overlap with icon */
    aspect-ratio: 504/179;
    max-width: 100%;
    width: fit-content;
    position: relative;
    min-height: 120px;
}

.hp-qa-title .icon-qa {
    position: absolute;
    left: 50px;
    top: -20px; /* Protrude from the top */
    width: 140px;
    height: auto;
    z-index: 2;
}

.hp-qa-title h2 {
    margin-bottom: 0 !important;
    text-align: left;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .hp-qa-title {
        background-image: url('../images/00-hp/qa-left-bg-mob.png');
        /* padding: 50px 60px 50px 100px; */
        gap: 20px;
        min-height: 100px;
        aspect-ratio: 362/174;
        width: 100%;
    }
    
    .hp-qa-title .icon-qa {
        /* width: 60px; */
        left: 15px;
        top: -25px;
    }
    
    .hp-qa-title h2 {
        /* font-size: 1.5rem; */
    }

    .icon-qa-arrow {
        position: absolute;
        bottom: -30px;
    }
}

@media (max-width: 576px) {
    .hp-qa-title {
        /* padding: 25px 50px 25px 80px; */
        gap: 15px;
        min-height: 80px;
    }
    
    .hp-qa-title .icon-qa {
        left: 10px;
        top: -20px;
    }
    
    .hp-qa-title h2 {
        letter-spacing: 1px;
    }
}

.hp-qa {
    z-index: 3;
}

.hp-qa-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
       
}

.hp-transition {
    background-image: url('../images/00-hp/漸層bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    z-index: 1;
}

/* Left image extends to viewport edge (mirrored from hp-news right visual) */
.transition-feature-img {
    border-radius: 0 30px 30px 0; /* Rounded corner on right side */
    overflow: hidden;
    height: 100%;
    max-height: 600px;
    width: 100%;
}

.transition-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Center the image */
}

@media (min-width: 992px) {
    .transition-visual-wrapper {
        width: 50vw; /* Force width to half viewport */
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        margin-left: calc(-50vw + 100%); /* Extend to left edge */
    }
    
    .transition-feature-img {
        flex-grow: 1;
        min-height: 500px;
    }
}

@media (max-width: 991px) {
    .transition-feature-img {
        max-height: 350px;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 576px) {
    .transition-feature-img {
        max-height: 200px;
        object-fit: cover;
        object-position: center;
    }
}

.hp-transition-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-transition-title {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.hp-transition-item {
    transition: all 0.3s ease;
}

.hp-transition-icon {
    flex-shrink: 0;
}

.transit-badge {
    color: var(--color-BB8E6F);
    font-size: 1rem;
}

.hp-transition-text h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

.hp-transition-text p {
    /* font-size: 1rem; */
    line-height: 1.8;
    color: var(--color-615A56);
}

/* Responsive */
@media (max-width: 991px) {
    .hp-transition-img-col {
        min-height: 300px;
    }
    
    .hp-transition-content {
        padding: 40px 20px;
    }
    
    .hp-transition-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .hp-transition-text h5 {
        font-size: 1rem;
    }
    
    .hp-transition-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hp-transition-title {
        font-size: 1.3rem;
    }
    
    .hp-transition-item {
        margin-bottom: 20px !important;
    }
    
    .hp-transition-text h5 {
        font-size: 0.95rem;
    }
    
    .hp-transition-text p {
        font-size: 0.9rem;
    }
}

.hp-map-content {
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid #F7F5F0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.hp-map-content iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
    .hp-map-content {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hp-map-content {
        height: 200px;
    }
}

.hp-map {
    position: relative;
}

.hp-map-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hp-footer {
    background-color: var(--color-F1E5D3) !important;
    position: relative;
}

.footer-header p {
    color: var(--color-615A56);
    background-color: #fff;
    border-radius: 20px;
    padding: 3px 15px;
}

.label-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.label-text::after {
    content: '';
    display: inline-block;
    width: 120px;
    height: 1px;
    background-color: #83A35D;
    vertical-align: middle;
}

.footer-line-button {
    /* width: 120px; */
}

.line-2rem::after {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2px;
    background-color: var(--color-615A56);
    vertical-align: middle;
}

.hp-footer .links a {
    color: unset !important;
}

.hp-footer-bottom {
    border-top: 1px solid var(--color-D2BEAE);
    padding: 20px;
}

.hp-footer-bottom a {
    color: unset !important;
}

.social-links-btn-mobile {
    width: 100vw;
    height: 45px;
    z-index: 9999;
}

.s-line-btn {
    background: linear-gradient(to bottom, #99B974 0%, #779850 100%);
    height: 100%;
    border-right: 0.5px solid #fff;
    /* border-left: 0.5px solid #fff; */
}

.s-phone-btn {
    background: linear-gradient(to bottom, #C7A686 0%, #AE7F5F 100%);
    height: 100%;
    /* border-right: 0.5px solid #fff; */
    border-left: 0.5px solid #fff;
}

.s-location-btn {
    background: linear-gradient(to bottom, #EBB260 0%, #E19D3C 100%);
    height: 100%;
    /* border-right: 0.5px solid #fff; */
    border-left: 0.5px solid #fff;
}

.social-links-btn-mobile a {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
}

.social-links-btn {
    position: fixed;
    z-index: 8;
    /* top: 50%; */
    right: 2rem;
    bottom: 3rem;
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
}

.social-links-btn a {
    width: 4rem;
    margin: 0.5rem 0rem;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 60px;
    }
    .hp-footer {
        margin-bottom: 45px !important;
    }
}

.line-qr-code {
    width: 150px;
}

@media (max-width: 991px) {
    .line-qr-code {
        width: 100px;
    }
}

/* ========================================
   Mobile Offcanvas Menu Styles
   ======================================== */
.mobile-menu.offcanvas {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 80%;
    max-width: 320px;
}

.mobile-menu .offcanvas-header {
    padding: 5px 25px;
    border-bottom: none;
}

/* 橘色 X 關閉按鈕 */
.btn-close-custom {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-custom i {
    font-size: 1.5rem;
    color: #E88B4D;
    font-weight: bold;
}

.btn-close-custom:hover i {
    color: #D67A3C;
}

.mobile-menu .offcanvas-body {
    padding: 0px 25px;
    padding-bottom: 60px;
}

/* 導覽項目樣式 */
.mobile-menu .navbar-nav {
    text-align: right;
}

.mobile-menu .nav-item {
    border-bottom: none;
}

.mobile-menu .nav-link {
    color: var(--color-615A56) !important;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.mobile-menu .nav-link:hover {
    color: var(--color-BB8E6F) !important;
}

/* 主治項目下拉箭頭 */
.mobile-dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* 子選單樣式 */
.mobile-submenu {
    text-align: right;
    padding-right: 0;
}

.submenu-category {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.submenu-list {
    text-align: right;
}

.submenu-list li {
    margin-bottom: 12px;
}

.submenu-list li a {
    color: var(--color-615A56);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.submenu-list li a:hover {
    color: var(--color-BB8E6F);
}

/* Social Icons */
.mobile-social-icons {
    /* padding-top: 20px; */
    /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
    margin-top: auto;
}

.social-icon-link {
    color: var(--color-615A56);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon-link:hover {
    color: var(--color-BB8E6F);
}

/* ========================================
   About Page - Belief Section (我們的堅持)
   ======================================== */
.pg-about-belief {
    position: relative;
    background-color: #f6f5f0;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    /* Mobile first - 750px */
    background-image: url('../images/01/01-關於膚悅心-我們的堅持BG_750.png');
    /* Minimum height based on aspect ratio to ensure full background visibility */
    min-height: calc(100vw * (750 / 750)); /* Adjust based on actual image aspect ratio */
}

@media (min-width: 768px) {
    .pg-about-belief {
        background-image: url('../images/01/01-關於膚悅心-我們的堅持BG_1024.png');
        min-height: calc(100vw * (600 / 1024)); /* Adjust based on actual image aspect ratio */
    }
}

@media (min-width: 1024px) {
    .pg-about-belief {
        background-image: url('../images/01/01-關於膚悅心-我們的堅持BG_1080.png');
        min-height: calc(100vw * (600 / 1080));
    }
}

@media (min-width: 1280px) {
    .pg-about-belief {
        background-image: url('../images/01/01-關於膚悅心-我們的堅持BG_1280.png');
        min-height: calc(100vw * (600 / 1280));
    }
}

@media (min-width: 1440px) {
    .pg-about-belief {
        background-image: url('../images/01/01-關於膚悅心-我們的堅持BG_1440.png');
        min-height: calc(100vw * (600 / 1440));
    }
}

@media (min-width: 1920px) {
    .pg-about-belief {
        background-image: url('../images/01/01-關於膚悅心-我們的堅持BG_1920.png');
        min-height: calc(100vw * (600 / 1920));
    }
}

.about-belief-item-icon {
    background-color: #fff;
    border-radius: 50%;
    padding: 3.5rem;
    width: 17rem;
    height: 17rem;
    box-shadow: 0px 0px 20px 2px #ffd8a0;
}

@media (max-width: 768px) {
    .about-belief-item-icon {
        width: 14rem;
        height: 14rem;
        padding: 2rem;
    }
}

/* =============================================
   服務頁面 - Service Pages
   ============================================= */

/* 頁面頂部標題區 - 移除底部邊框，增加間距 */
.service-page-header {
    background-color: #fff;
    border-bottom: none;
    padding-bottom: 20px;
}

.service-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #615A56;
    letter-spacing: 2px;
}

.service-page-subtitle {
    font-size: 0.8rem;
    color: #DE9E73; /* 改為偏紅的深橘色 */
    letter-spacing: 2px;
    margin-top: 8px;
    font-weight: 500;
}

/* =============================================
   過敏與發炎性皮膚 - Allergic Dermatitis Page
   ============================================= */

.allergic-dermatitis {
    background-color: #fff;
}

/* 側邊欄導航 */
.service-sidebar {
    background-color: #fff;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    padding-bottom: 8px;
    border-bottom: none;
    margin-bottom: 5px;
}

/* 側邊欄標題 - 兩側直條紋 */
.sidebar-title {
    /* font-size: 1.1rem; */
    font-size: 1.4rem;
    font-weight: 500;
    color: #615A56;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sidebar-title::before,
.sidebar-title::after {
    content: '';
    display: block;
    width: 2px;
    height: 18px;
    background-color: #615A56;
}

.sidebar-category {
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-category-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #EBB260; /* 亮橙色 */
    padding: 5px 0;
    /* margin-bottom: 5px; */
    cursor: default;
    border: none;
    padding-left: 0;
}

.sidebar-category-title.active {
    background: none;
    color: #EBB260;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.sidebar-menu li {
    padding: 8px 0;
    border-bottom: none;
}

.sidebar-menu li a {
    /* font-size: 0.95rem; */
    font-size: 1.1rem;
    color: #615A56;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 500;
}

.sidebar-menu li a:hover {
    color: #EBB260;
}

/* 選中項目 - 前方加圓點，無背景 */
.sidebar-menu li.active {
    background-color: transparent;
    margin: 0;
    padding: 10px 0;
}

.sidebar-menu li.active::before {
    display: none;
}

/* 側邊欄分類標題 - 兩側直條紋 */
.sidebar-menu li.active a {
    color: #EBB260;
    font-weight: 500;
    padding-left: 20px;
}

.sidebar-menu li.active a::before {
    content: '●';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #EBB260;
}

/* 主要內容區 */
.service-main-content {
    padding-left: 20px;
}

/* 標題區塊 - 淡灰色背景，上下細邊框 */
.ad-title-box {
    background-color: #F9F9F9;
    padding: 30px 20px;
    border-top: 1px solid #F1E5D3;
    border-bottom: 1px solid #F1E5D3;
    text-align: center;
    margin-bottom: 50px !important;
}

.ad-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #615A56;
    margin-bottom: 15px;
}

.ad-subtitle {
    font-size: 0.95rem;
    color: #615A56; /* 深灰文字 */
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 介紹區塊 */
.ad-intro-section {
    padding: 0;
}

/* 圓形圖片 */
/* 圓形圖片 - RWD 修正 */
.ad-intro-image {
    border-radius: 50%;
    overflow: hidden;
    width: 300px;
    max-width: 100%; /* Ensure it doesn't overflow on small screens */
    aspect-ratio: 1/1; /* Maintain circle */
    height: auto; /* Allow scaling */
    margin: 0 auto;
    position: relative;
    box-shadow: none;
}

/* 圖片佔位符更新為圓形 */
.ad-image-placeholder {
    background-color: #F5F5F5;
    background: linear-gradient(135deg, #F9F9F9 0%, #EFEFEF 100%);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    min-height: auto;
}

.ad-image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.ad-image-placeholder span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.ad-image-placeholder-sm {
    min-height: 150px;
    border-radius: 12px;
}

.ad-image-placeholder-sm i {
    font-size: 1.8rem;
}

.ad-image-placeholder-sm span {
    font-size: 0.8rem;
}

/* 引言區塊 */
.ad-quote-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-quote-text h4 {
    /* font-size: 1.1rem; */
    font-weight: 600;
    color: var(--color-BB8E6F);
    line-height: 1.5;
}

/* 介紹描述文字 */
.ad-intro-desc {
    /* font-size: 0.95rem; */
    color: var(--color-615A56);
    line-height: 1.9;
}

/* 區塊標題 */
/* 區塊標題 */
.ad-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-BB8E6F); /* User preference */
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* User commented out the underline, so we ensure it's removed or kept removed */
.ad-section-title::after {
    display: none;
}

/* 照護卡片 */
/* 照護卡片 - 透明背景，無陰影，無邊框 */
.ad-care-card {
    background-color: transparent; /* 改為透明背景 */
    border-radius: 0;
    padding: 0; /* 移除內邊距，圖片變大 */
    box-shadow: none; /* 移除陰影 */
    border: none;
    position: relative;
    height: 100%;
    text-align: center;
}

.ad-care-card:hover {
    transform: none; /* 移除懸停移動 */
    box-shadow: none;
}

/* 卡片編號 - 橙色斜體數字 */
/* 卡片編號 - 淺橘色/肉色斜體數字 */
/* 卡片編號 - 橙色斜體數字 */
.ad-care-number {
    position: absolute;
    top: -25px;
    left: -15px;
    font-size: 2.8rem;
    font-weight: 800;
    font-style: italic;
    color: #EBB260; /* User manual preference */
    font-family: 'Times New Roman', serif;
    line-height: 1;
    z-index: 2;
}

/* 卡片圖片區 */
.ad-care-image {
    margin-top: 15px;
    margin-bottom: 15px;
}

.ad-care-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

/* 卡片內容 */
.ad-care-content {
    text-align: center;
}

.ad-care-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-A0896B); /* 標題改為深灰色，非橙色 */
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ad-care-desc {
    /* font-size: 0.9rem; */
    color: #615A56;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify; /* 兩端對齊 */
    text-justify: inter-ideograph; 
}

/* 優勢區塊 - 淺粉色邊框框線 */
/* 移除之前的左寬邊距並合併樣式 */
/* 優勢區塊 - 淺粉色邊框，無填滿 */
.ad-advantage-box {
    background-color: transparent;
    border-radius: 20px;
    padding: 35px 40px;
    border: 6px solid #FBF1EC;
    text-align: center;
    margin-top: 30px;
}

.ad-advantage-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* 優勢區塊圖標 - 實心橙色圓形背景 */
.ad-advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #FFCB27; /* 亮黃橙色背景 */
    border-radius: 50%;
    color: #fff; /* 白色圖標 */
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(235, 178, 96, 0.3);
}

.ad-advantage-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #BB8E6F;
    letter-spacing: 1px;
}

.ad-advantage-content p {
    /* font-size: 0.95rem; */
    line-height: 2.2; /* 增加行高 */
    color: #615A56;
    text-align: justify; /* 兩端對齊讓文字區塊更整齊 */
    text-justify: inter-ideograph;
}

.ad-advantage-highlight {
    color: var(--color-BB8E6F) !important;
    font-weight: 500;
}

/* =============================================
   RWD 響應式設計 - Service Pages
   ============================================= */

@media (max-width: 991px) {
    /* Reset sticky position for mobile/tablet as sidebar will stack */
    .service-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f1f1f1; /* Optional separator */
    }
    
    /* Remove horizontal overrides - keep desktop style (vertical list) */


    .service-main-content {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .service-page-title {
        font-size: 1.5rem;
    }

    .service-page-subtitle {
        font-size: 0.75rem;
    }

    .ad-title-box {
        padding: 20px;
    }

    .ad-main-title {
        font-size: 1.35rem;
    }

    .ad-subtitle {
        font-size: 0.95rem;
    }

    .ad-image-placeholder {
        min-height: 220px;
    }

    .ad-quote-box {
        flex-direction: column;
        text-align: center;
    }

    .ad-quote-text h4 {
        font-size: 1.3rem;
    }

    .ad-intro-desc {
        font-size: 1rem;
        line-height: 1.8;
    }

    /* RWD: Adjust image size on mobile */
    .ad-intro-image {
        width: 250px;
    }


    .ad-advantage-box {
        padding: 20px;
    }

    .ad-advantage-title {
        /* font-size: 1rem; */
        font-size: 1.25rem;
    }

    .ad-advantage-content p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media (max-width: 575px) {
    .service-page-title {
        /* font-size: 1.25rem; */
    }

    .ad-main-title {
        /* font-size: 1.2rem; */
    }

    .ad-image-placeholder {
        min-height: 180px;
    }

    .ad-image-placeholder-sm {
        min-height: 120px;
    }

    .ad-care-number {
        /* font-size: 1.4rem; */
        left: -7.5px;
    }

    .ad-quote-icon img {
        width: 35px;
    }
}

.pg-team-lead {
    background-image: url('../images/03/gray-bg.png');
    background-size: 100% 100%;
    background-position: center;
}

/* 文字置中，左右有延伸線 */
.title-with-lines {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.title-with-lines::before,
.title-with-lines::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-EBB260);
}

/* =============================================
   醫療資訊頁面 - Medical Info Sidebar
   ============================================= */

/* 側邊欄導航 */
.medical-info-sidebar {
    background-color: #fff;
    position: sticky;
    top: 100px;
}

.medical-info-sidebar-section {
    padding-bottom: 8px;
    border-bottom: none;
    margin-bottom: 5px;
}

/* 側邊欄標題 - 兩側直條紋 */
.medical-info-sidebar-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #615A56;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.medical-info-sidebar-title::before,
.medical-info-sidebar-title::after {
    content: '';
    display: block;
    width: 2px;
    height: 18px;
    background-color: #615A56;
}

.medical-info-sidebar-category {
    margin-bottom: 20px;
    text-align: center;
}

.medical-info-sidebar-category-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #EBB260;
    padding: 5px 0;
    cursor: default;
    border: none;
    padding-left: 0;
}

.medical-info-sidebar-category-title.active {
    background: none;
    color: #EBB260;
}

.medical-info-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.medical-info-sidebar-menu li {
    padding: 8px 0;
    border-bottom: none;
}

.medical-info-sidebar-menu li a {
    font-size: 1.1rem;
    color: #615A56;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 500;
}

.medical-info-sidebar-menu li a:hover {
    color: #EBB260;
}

/* 選中項目 - 前方加圓點，無背景 */
.medical-info-sidebar-menu li.active {
    background-color: transparent;
    margin: 0;
    padding: 10px 0;
}

.medical-info-sidebar-menu li.active::before {
    display: none;
}

/* 側邊欄分類標題 - 兩側直條紋 */
.medical-info-sidebar-menu li.active a {
    color: #EBB260;
    font-weight: 500;
    padding-left: 20px;
}

.medical-info-sidebar-menu li.active a::before {
    content: '●';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #EBB260;
}

/* RWD 響應式設計 - Medical Info Sidebar */
@media (max-width: 991px) {
    .medical-info-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f1f1f1;
    }
}

.medical-info-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E8D9C0;
}

.medical-info-item-image {
    border-radius: 15px;
    overflow: hidden;
}

.medical-info-item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
}

.medical-info-item-category {
    font-size: 0.95rem;
    font-weight: 500;
    color: #615A56;
}

.medical-info-item-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #EBB260;
}

.medical-info-item-content-text {
    font-size: 1rem;
    font-weight: 500;
    color: #908681 !important;
}

.medical-info-item-link {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #EBB260;
    text-decoration: none;
    padding: 5px 20px;
    border-radius: 25px;
}


.medical-info-header {
    position: relative;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vw * (240 / 624));
    padding: 20px 0;
}

.medical-info-header {
    background-image: url('../images/04/04-醫療資訊banner_624.png');
}

@media (max-width: 624px) {
    .medical-info-header {
        background-image: url('../images/04/04-醫療資訊banner_624.png');
        background-size: 100% 100%;
    }
}

@media (min-width: 768px) {
    .medical-info-header {
        background-image: url('../images/04/04-醫療資訊banner_1024.png');
        min-height: calc(100vw * (247 / 1024));
    }
}

@media (min-width: 1024px) {
    .medical-info-header {
        background-image: url('../images/04/04-醫療資訊banner_1280.png');
        min-height: calc(100vw * (224 / 1280));
    }
}

@media (min-width: 1280px) {
    .medical-info-header {
        background-image: url('../images/04/04-醫療資訊banner_1440.png');
        min-height: calc(100vw * (224 / 1440));
    }
}

@media (min-width: 1440px) {
    .medical-info-header {
        background-image: url('../images/04/04-醫療資訊banner_1608.png');
        min-height: calc(100vw * (164 / 1608));
    }
}

.medical-info-detail-header {
    border-top: 1px solid #E8D9C0;
    padding: 20px 0;
}

.news-header {
    position: relative;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vw * (240 / 624));
    padding: 20px 0;
}

.news-header {
    background-image: url('../images/05/05-最新消息banner_624.png');
}

@media (max-width: 768px) {
    .news-header {
        background-image: url('../images/05/05-最新消息banner_624.png');
        background-size: 100% 100%;
    }
}

@media (min-width: 768px) {
    .news-header {
        background-image: url('../images/05/05-最新消息banner_1024.png');
        min-height: calc(100vw * (247 / 1024));
    }
}

@media (min-width: 1024px) {
    .news-header {
        background-image: url('../images/05/05-最新消息banner_1280.png');
        min-height: calc(100vw * (224 / 1280));
    }
}

@media (min-width: 1280px) {
    .news-header {
        background-image: url('../images/05/05-最新消息banner_1440.png');
        min-height: calc(100vw * (224 * 0.5 / 1440));
    }
}

@media (min-width: 1440px) {
    .news-header {
        background-image: url('../images/05/05-最新消息banner_1608.png');
        min-height: calc(100vw * (164*0.5 / 1608));
    }
}

.news-detail-header {
    padding: 20px 0;
}


.faq-header {
    position: relative;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vw * (511 / 624));
    padding: 20px 0;
}

.faq-header {
    background-image: url('../images/06/faq_banner_624.png');
}

@media (max-width: 768px) {
    .faq-header {
        background-image: url('../images/06/faq_banner_624.png');
        background-size: 100% 100%;
    }

    .faq-header-content {
        padding-top: 23rem;
    }
}

@media (max-width: 992px) {
    .faq-header {
        background-image: url('../images/06/faq_banner_1024.png');
        background-size: 100% 100%;
    }
}

@media (min-width: 768px) {
    .faq-header {
        background-image: url('../images/06/faq_banner_1024.png');
        min-height: calc(100vw * (832 / 1024));
    }
}

@media (min-width: 992px) {
    .faq-header {
        background-image: url('../images/06/faq_banner_1280.png');
        min-height: calc(100vw * (294 / 1280));
    }
}

@media (min-width: 1280px) {
    .faq-header {
        background-image: url('../images/06/faq_banner_1440.png');
        min-height: calc(100vw * (295*0.5 / 1440));
    }
}

@media (min-width: 1440px) {
    .faq-header {
        background-image: url('../images/06/faq_banner_1440.png');
        min-height: calc(100vw * (295*0.5 / 1440));
    }
}

.faq-item {
    border-bottom: 1px solid #E8D9C0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    height: 100%;
}
