.yht-section,
.yht-section * {
    box-sizing: border-box;
}

.yht-section {
    --yht-primary: #0a66c2;
    --yht-radius: 30px;
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
}

.yht-tabs {
    display: flex;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    min-height: 300px;
    height: clamp(300px, 24vw, 390px);
}

.yht-tab {
    position: relative;
    overflow: hidden;
    display: flex;
    flex: 0 0 118px;
    min-width: 0;
    border-radius: var(--yht-radius);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.23), transparent 34%),
        linear-gradient(135deg, var(--yht-bg, var(--yht-primary)), color-mix(in srgb, var(--yht-bg, var(--yht-primary)) 78%, #000 22%));
    color: #fff;
    cursor: pointer;
    outline: none;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .15);
    min-height: 0;
    transition:
        flex .62s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        transform .35s ease;
}

.yht-tab::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 100%);
    pointer-events: none;
}

.yht-tab.is-active {
    flex: 1 1 58%;
    cursor: default;
    box-shadow: 0 24px 62px rgba(15, 23, 42, .22);
}

.yht-tab:not(.is-active):hover,
.yht-tab:not(.is-active):focus-visible {
    transform: translateY(-4px);
}

.yht-tab:focus-visible {
    box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 7px color-mix(in srgb, var(--yht-bg, var(--yht-primary)) 70%, #000 30%);
}

.yht-collapsed-title {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease;
}

.yht-collapsed-title span {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .6px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .22);
    white-space: nowrap;
    max-height: 82%;
    overflow: hidden;
}

.yht-tab.is-active .yht-collapsed-title {
    opacity: 0;
    visibility: hidden;
}

.yht-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(170px, 40%) minmax(220px, 1fr);
    align-items: center;
    gap: clamp(18px, 2.3vw, 32px);
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 24px 42px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(26px);
    transition:
        opacity .28s ease,
        visibility .28s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.yht-tab.is-active .yht-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: .13s;
}

.yht-media {
    position: relative;
    width: 100%;
    border-radius: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 44px rgba(0,0,0,.13);
}

.yht-media img,
.yht-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    object-fit: cover;
}

.yht-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .55);
}

.yht-placeholder span {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--yht-bg, var(--yht-primary));
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.yht-body {
    max-width: 540px;
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

.yht-body h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(26px, 3.2vw, 32px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
}

.yht-body p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.9);
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
}

.yht-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    background: #e10303;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0,0,0,.13);
    transition: transform .25s ease, box-shadow .25s ease;
}

.yht-button:hover,
.yht-button:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 17px 30px rgba(0,0,0,.17);
    text-decoration: none;
}

.yht-button span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 1024px) {
    .yht-tabs {
        gap: 16px;
        min-height: 300px;
        height: 330px;
    }

    .yht-tab {
        flex-basis: 96px;
    }

    .yht-content {
        grid-template-columns: 1fr 1fr;
        padding: 22px;
        gap: 20px;
    }

    .yht-body h3 {
        font-size: 28px;
    }

    .yht-body p {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 767px) {
    .yht-tabs {
        flex-direction: column;
        min-height: auto;
        height: auto;
        gap: 14px;
    }

    .yht-tab,
    .yht-tab.is-active {
        flex: 0 0 auto;
        height: auto;
        min-height: 76px;
        border-radius: 24px;
    }

    .yht-tab.is-active {
        min-height: auto;
    }

    .yht-collapsed-title {
        align-items: center;
        justify-content: flex-start;
        padding: 16px 20px;
    }

    .yht-collapsed-title span {
        writing-mode: horizontal-tb;
        transform: none;
        white-space: normal;
    }

    .yht-content {
        position: relative;
        inset: auto;
        display: none;
        grid-template-columns: 1fr;
        gap: 14px;
        height: auto;
        padding: 16px;
        overflow: visible;
        transform: translateY(18px);
    }

    .yht-tab.is-active .yht-content {
        display: grid;
    }

    .yht-body {
        max-height: none;
        overflow-y: visible;
    }

    .yht-body h3 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .yht-body p {
        margin-bottom: 14px;
        line-height: 1.5;
    }
}