.banner-section {
    .banner-container {
        .banner-sub {
            max-width: 600px;
        }
    }
}

.health-banner,
.volunteer-banner.health-banner {
    background-image: url(/static/image/banner-2.jpg);
    background-position: center 90%;

    &::before {
        background-color: rgba(19, 19, 19, 0.8);
    }
}

/* 在炎熱天氣下，身體可能會有以下不適 */
.health-symptoms-section {
    padding: clamp(72px, 8vw, 100px) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    position: relative;

    &::before {
        content: '';
        background-image: url(/static/image/bg-2.jpg);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.04;
        z-index: 1;
    }
}

.health-symptoms-section .section-tip,
.health-symptoms-section .section-title,
.health-symptoms-section .section-sub-title {
    text-align: center;
}

.health-symptoms-section .section-title {
    padding-bottom: clamp(16px, 2vw, 24px);
}

.health-symptoms-section .section-sub-title {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 4px;
}

.health-symptoms-panel {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 30px;
}

.health-symptoms-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.health-symptom-card {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 18px);
    padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 28px);
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(30, 42, 59, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.health-symptom-card:hover {
    transform: translateY(-3px);
    border-color: rgba(1, 93, 178, 0.14);
    box-shadow: 0 12px 32px rgba(1, 93, 178, 0.1);
}

.health-symptom-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(56px, 5vw, 80px);
    height: clamp(56px, 5vw, 80px);
    border-radius: 50%;
    color: #ffffff;
    background: var(--main-color);

    img {
        width: 100%;
        height: 100%;
    }
}

.health-symptom-card__icon svg {
    width: clamp(28px, 2.6vw, 34px);
    height: clamp(28px, 2.6vw, 34px);
}

/* .health-symptom-card__icon--1 {
    background: #e8836f;
}

.health-symptom-card__icon--2 {
    background: var(--main-color);
}

.health-symptom-card__icon--3 {
    background: var(--orange-color);
}

.health-symptom-card__icon--4 {
    background: var(--red-color);
}

.health-symptom-card__icon--5 {
    background: #4a8fd4;
}

.health-symptom-card__icon--6 {
    background: #6b9e78;
} */

.health-symptom-card__label {
    margin: 0;
    flex: 1;
    min-width: 0;
    color: #1e2a3b;
    font-size: clamp(16px, 1.05vw, 18px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

/* 可能演變成以下疾病 */
.health-diseases-section {
    padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 8vw, 100px);
    background: #ffffff;
}

.health-diseases-section .section-tip,
.health-diseases-section .section-title,
.health-diseases-section .section-sub-title {
    text-align: center;
}

.health-diseases-section .section-title {
    padding-bottom: clamp(12px, 1.5vw, 20px);
}

.health-diseases-section .section-sub-title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: clamp(36px, 4vw, 52px);
}

/* 中暑急救三部曲 */
.health-aid-trilogy {
    padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
    border-radius: 20px;
    text-align: center;
}

.health-aid-trilogy__eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.92;
}

.health-aid-trilogy__title {
    color: var(--orange-color);
    margin: 0 0 clamp(28px, 3vw, 36px);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
   
}

.steps-section {
    background-image: url(/static/image/bg3.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-bottom: 180px;
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.68);
    }

    .my-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.health-aid-trilogy__steps {
    width: 998px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;

    .w-arrow {
        width: 200px;
        height: 100px;

        &.w-arrow-1 {
            transform: rotate(38deg);
        }

        &.w-arrow-2 {
            transform: scaleY(-1) rotate(38deg);
        }
    }
}

.health-aid-trilogy__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;

    .icon-wrapper {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        border: 4px dashed var(--orange-color);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;

        .safe-icon {
            width: 56%;
            height: 56%;

            path {
                fill: var(--main-color);
            }
        }

        .health-aid-trilogy__step-num {
            color: #ffffff;
            font-size: 16px;
            font-weight: bold;
            position: absolute;
            background-color: var(--orange-color);
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            bottom: -3px;
            right: -3px;
            line-height: 35px;
            border-radius: 50%;
            padding: 0px;
            transition: 0.7s;
        }
    }

    .health-aid-trilogy__step-text {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.08em;
        color: var(--main-color);
    }

    &:hover {
        .icon-wrapper {
            border-color: var(--main-color);
        }
        
        .safe-icon {
            animation: shake 0.5s infinite;
            path {
                fill: var(--orange-color);
            }
        }

        .health-aid-trilogy__step-num {
            background-color: var(--main-color);
        }

        .health-aid-trilogy__step-text {
            color: var(--orange-color);
        }
    }

    &:nth-child(1),
    &:nth-child(5) {
        margin-top: 60px;

    }
}

/* 不斷微微左上 右下 右上 左下 震動 */
@keyframes shake {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-1px, 1px);
    }
    50% {
        transform: translate(1px, -1px);
    }
    75% {
        transform: translate(1px, 1px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* 疾病詳情卡片 */
.health-condition-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(20px, 2.5vw, 28px);
    max-width: 1200px;
    margin: 0 auto clamp(40px, 5vw, 56px);
}

.health-condition-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: clamp(28px, 3vw, 40px);
    /* border: 1px solid #e8edf3; */
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(30, 42, 59, 0.05);
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: -159px;
        left: -123px;
        width: 550px;
        height: 300px;
        background-image: url(/static/image/events-vector-1.png);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        opacity: 0.1;
    }

    .health-condition-card__img {
        position: absolute;
        top: 0;
        right: 0;
        width: 120px;
        height: 120px;
        object-fit: cover;
        z-index: 1;
    }
}

.health-condition-card + .health-condition-card {
    margin-top: 0;
}

.health-condition-card__header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: clamp(20px, 2.5vw, 28px);
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f5;
}

.health-condition-card__index {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--orange-color);
}

.health-condition-card__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--orange-color);
    letter-spacing: -0.02em;
}

.health-condition-card .health-disease-feature {
    padding: clamp(18px, 2vw, 22px) 0;
}

.health-condition-card .health-disease-feature__heading {
    margin-bottom: 10px;
}

.health-condition-card .health-disease-feature__text,
.health-condition-card .health-disease-feature__sub li,
.health-condition-card .health-disease-feature__steps li {
    font-size: 16px;
}

.health-condition-card .health-condition-note {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.health-condition-card__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 36px) clamp(32px, 4vw, 48px);
}

.health-condition-block--wide {
    grid-column: 1 / -1;
    padding-top: clamp(8px, 1vw, 16px);
    border-top: 1px solid #eef1f5;
}

.health-condition-block__label {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7a90;
}

.health-condition-block__list,
.health-condition-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.health-condition-block__list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 18px;
    color: #3d4a5c;
    font-size: 15px;
    line-height: 1.7;
}

.health-condition-block__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--main-color);
    transform: translateY(-50%);
}

.health-condition-block__list li:last-child {
    margin-bottom: 0;
}

.health-condition-block__text {
    margin: 0;
    color: #3d4a5c;
    font-size: 15px;
    line-height: 1.75;
}

.health-condition-steps {
    counter-reset: health-step;
}

.health-condition-steps li {
    position: relative;
    margin: 0 0 14px;
    padding-left: 36px;
    color: #3d4a5c;
    font-size: 15px;
    line-height: 1.7;
    counter-increment: health-step;
}

.health-condition-steps li::before {
    content: counter(health-step);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    color: var(--main-color);
    background: rgba(1, 93, 178, 0.08);
}

.health-condition-steps li:last-child {
    margin-bottom: 0;
}

.health-condition-note {
    margin: 20px 0 0;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #666666;
}

.health-condition-note__mark {
    margin-right: 4px;
    font-weight: 700;
    color: var(--orange-color);
}

/* 中暑等：參考義工關顧系統的勾選列表 */
.health-disease-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.health-disease-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(22px, 2.5vw, 28px) 0;
    border-bottom: 1px solid #e8edf3;
}

.health-disease-feature:hover .checked-icon {
    transform: rotateY(180deg);
}

.health-disease-feature:first-child {
    padding-top: 0;
}

.health-disease-feature:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.health-disease-features .checked-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
}

.health-disease-feature__body {
    flex: 1;
    min-width: 0;
}

.health-disease-feature__heading {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-color)
}

.health-disease-feature__text {
    margin: 0;
    color: #4e5a70;
    font-size: clamp(15px, 0.95vw, 17px);
    font-weight: 400;
    line-height: 1.8;
}

.health-disease-feature__sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.health-disease-feature__sub li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 16px;
    color: #5a6478;
    font-size: clamp(14px, 0.9vw, 16px);
    font-weight: 400;
    line-height: 1.75;
}

.health-disease-feature__sub li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange-color);
    transform: translateY(-50%);
}

.health-disease-feature__sub li:last-child {
    margin-bottom: 0;
}

.health-disease-feature__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: health-disease-step;
}

.health-disease-feature__steps li {
    position: relative;
    margin: 0 0 14px;
    padding-left: 30px;
    color: #4e5a70;
    font-size: 15px;
    line-height: 1.7;
    counter-increment: health-disease-step;
}

.health-disease-feature__steps li::before {
    content:  counter(health-disease-step) '.';
    position: absolute;
    left: 0;
    /* top: 0.1em; */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    color: var(--orange-color);
    /* background: rgba(255, 115, 0, 0.2); */
}

.health-disease-feature__steps li:last-child {
    margin-bottom: 0;
}

.health-disease-feature .health-condition-note {
    margin-top: 16px;
}
