@charset "UTF-8";

/* ========================================
   Main Page Styles - tongdal
   ======================================== */

/* ========================================
   Main Visual
   ======================================== */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.main-visual .swiper,
.main-visual .swiper-wrapper,
.main-visual .swiper-slide {
    width: 100%;
    height: 100%;
}

/* ========================================
   Main Visual Animations
   ======================================== */
@keyframes visualBgZoom {
    from { transform: scale(1.2); }
    to   { transform: scale(1); }
}

@keyframes visualFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes visualFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.visual-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* 배경 줌: .visual-bg 별도 div에 애니메이션 적용 */
.visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.2);
}

.visual-slide.is-active .visual-bg {
    animation: visualBgZoom 5500ms ease forwards;
}

/* 텍스트 요소 기본: 숨김 */
.visual-title,
.visual-desc,
.visual-more-btn {
    opacity: 0;
}

/* active 슬라이드에서 순차 애니메이션 */
.visual-slide.is-active .visual-title {
    animation: visualFadeInUp 0.7s ease forwards;
    animation-delay: 0.1s;
}

.visual-slide.is-active .visual-desc {
    animation: visualFadeInUp 0.7s ease forwards;
    animation-delay: 0.4s;
}

.visual-slide.is-active .visual-more-btn {
    animation: visualFadeIn 0.7s ease forwards;
    animation-delay: 0.7s;
}

/* bg(0) → inner(1) */
.visual-slide-inner {
    z-index: 1;
}

/* 슬라이드 내부: 좌하단 텍스트 배치 */
.visual-slide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    max-width: calc(var(--inner-max) + var(--inner-pad) * 2);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--inner-pad) 240px;
}

.visual-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.visual-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.visual-desc {
    font-family: 'Noto Serif KR', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.visual-desc strong {
    font-weight: 700;
    color: #fff;
}

/* 자세히 보기 버튼 */
.visual-more-btn {
    display: flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 40px;
}

.visual-more-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.visual-more-num {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.visual-more-num-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: block;
}

.visual-more-num-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* ========================================
   Visual Bottom : 타임라인 (단일 바, inner 안)
   ======================================== */
.visual-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-bottom: 80px;
}

.visual-bottom .inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.visual-timeline {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 16px;
}

.visual-timeline-item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    white-space: nowrap;
    transition: color 0.3s;
}

.visual-timeline-item.active {
    color: #fff;
}

.visual-timeline-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.75);
}

/* 단일 프로그레스 바 */
.visual-timeline-bar-wrap {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.visual-timeline-bar {
    height: 100%;
    background: #fff;
    width: 0%;
}

/* ========================================
   Section Title (공통)
   ======================================== */
.sec-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.sec-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #840028;
    line-height: 1;
}

.sec-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
    text-align: center;
}

/* ========================================
   Section 02 : 주요 진료 프로그램
   ======================================== */
@keyframes programDescFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sec-program {
    padding: 160px 0;
}

.sec-program .inner {
    max-width: calc(var(--inner-max-program) + var(--inner-pad) * 2);
}

.program-cards {
    display: flex;
    gap: 20px;
}

.program-card {
    position: relative;
    flex: 1;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.program-card[data-aos].aos-animate {
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease, transform 0.4s ease, opacity 0.4s ease !important;
}

.program-card:not([data-aos]),
.program-card:not(.aos-animate) {
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 기본: 흑백 */
.program-card-img {
    position: absolute;
    inset: 0;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 호버/활성: 컬러 복원 + 카드 확장 */
.program-card:hover .program-card-img,
.program-card--active .program-card-img {
    filter: grayscale(0%);
}

.program-card:hover,
.program-card--active {
    flex: 1.67;
}

/* 오버레이 */
.program-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 30, 31, 0) 40%, rgba(34, 30, 31, 0.8) 90%);
    transition: background 0.5s ease;
}

.program-card:hover .program-card-overlay,
.program-card--active .program-card-overlay {
    background: linear-gradient(180deg, rgba(34, 30, 31, 0) 40%, rgba(34, 30, 31, 0.8) 90%);
}

/* 카드 텍스트 */
.program-card-text {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 1;
}

.program-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.program-card-en {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.program-card-ko {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* desc: 기본 숨김 */
.program-card-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0s, transform 0s;
}

/* 호버/활성: desc fadeup */
.program-card:hover .program-card-desc,
.program-card--active .program-card-desc {
    animation: programDescFadeUp 0.4s ease 0.15s forwards;
}

/* program-card-en: 기본 흰색 → 호버/활성 오렌지 */
.program-card-en {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.4s ease;
}

.program-card:hover .program-card-en,
.program-card--active .program-card-en {
    color: #F7941C;
}

/* ========================================
   Section 03 : About Tongdal Clinic
   ======================================== */
#secAbout {
    position: relative;
    background: #221E1F;
    overflow: hidden;
}

/* --- 인트로 (일반 플로우, 텍스트 + 이미지 카드) --- */
.sa-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(110px, 9vw, 160px) 0 clamp(28px, 2.8vw, 40px);
}

.sa-intro .inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sa-intro-text {
    display: flex;
    flex-direction: column;
    width: min(100%, 800px);
    max-width: none;
    margin: 0 auto;
}

.sa-intro-h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(44px, 4.2vw, 64px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 40px;
  	margin-bottom: 50px;
}

.sa-intro-lead {
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* --- Features 핀 영역 --- */
.sa-features {
    position: relative;
}

.sa-motion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: visible;
}

/* bg 공통 */
.sa-bg {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform, clip-path;
}

.sa-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    backface-visibility: hidden;
    will-change: width, height, transform, clip-path;
}

.sa-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.18);
}

.sa-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform, clip-path;
}

.sa-bg1 { z-index: 1; }
.sa-bg2 { z-index: 2; }

/* feature 공통 */
.sa-feature {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    min-height: 100vh;
    z-index: 3;
}

.sa-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 0;
    color: #fff;
}

/* 타이틀 reveal: strong overflow:hidden, span translateY */
.sa-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 160px;
}

.sa-overline {
    display: inline-flex;
    align-items: center;
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.sa-title strong {
    display: block;
    overflow: hidden;
    line-height: 1.2;
}

.sa-title strong span {
    display: block;
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(40px, 5.4vw, 74px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

@supports (text-box: trim-both cap alphabetic) {
    #secAbout .sa-title,
    #secAbout .sa-overline,
    #secAbout .sa-title strong,
    #secAbout .sa-title strong span,
    #secAbout .sa-sub {
        text-box: normal;
    }
}

/* desc: 우하단 */
.sa-desc {
    padding-bottom: 120px;
    margin-left: auto;
    width: min(100%, 470px);
}

.sa-desc-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
}

.sa-sub {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(28px, 2.7vw, 40px);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.sa-excerpt {
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    letter-spacing: -0.02em;
    margin: 0;
}

.sa-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sa-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    transform: translateY(-2px);
}

/* 스크롤 높이 프레임 (래퍼런스 원본 비율) */
.sa-frames {
    padding-bottom: 100vh;
}

.sa-f1-content { height: 100vh; }
.sa-f2-bg-show { height: 75vh; }
.sa-f2-content { height: 100vh; }

/* ========================================
   Section 04 : 진료 기준 (scroll sticky)
   ======================================== */
.sec-care {
    position: relative;
}

/* 좌우 레이아웃 래퍼 */
.care-layout {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

/* 좌측: sticky */
.care-left {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 50%;
    z-index: 2;
}

.care-left-inner {
    padding-left: max(var(--inner-pad), calc((100vw - calc(var(--inner-max) + var(--inner-pad) * 2)) / 2 + var(--inner-pad)));
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 550px;
    width: 100%;
}

.care-header {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.care-heading {
    text-align: left;
    font-size: 52px;
    line-height: 1.2;
}

.care-intro {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.7;
    text-align: left;
}

/* 진료 항목 — 활성 1개만 노출 */
.care-items {
    position: relative;
}

.care-item {
    display: none;
    flex-direction: column;
    gap: 30px;
}

.care-item.active {
    display: flex;
    animation: careItemFadeUp 0.4s ease forwards;
}

@keyframes careItemFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.care-item-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.care-item-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1.5;
}

/* 우측: inner 넘치는 이미지 — 4개 항목 × 100vh = 전체 스크롤 구간 */
.care-right {
    flex: 1;
    position: relative;
    height: calc(100vh * 4);
}

.care-panels {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.care-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 550px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.care-panel.active {
    opacity: 1;
}

.care-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px 0 0 30px;
}

/* 스크롤 트리거 구간 */
.care-triggers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.care-trigger {
    flex: 1;
    pointer-events: none;
}

/* ========================================
   Section 05 : 배너
   ======================================== */
.sec-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
}

.sec-banner .inner {
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.banner-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

/* ========================================
   Section 06 : 유튜브 + 블로그
   ======================================== */
.sec-media {
    background: #221E1F;
    overflow-x: hidden;
}

.media-youtube,
.media-blog {
    padding: 160px 0 0;
}

.media-blog {
    padding-bottom: 160px;
}

.media-intro {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
}

/* 더보기 버튼 래퍼: 제목 아래 중앙 */
.media-more-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.media-more {
    display: flex;
    height: 46px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.media-more:hover {
    color: #fff;
    border-color: #fff;
}

/* 유튜브: 화살표는 inner 바깥 40px 간격, 슬라이더는 inner 너비 고정 */
.youtube-slider-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    width: fit-content;
    margin: 0 auto;
}

.media-arrow {
    display: flex;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    background: none;
    color: #8C9091;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.media-arrow:hover {
    color: #fff;
    border-color: #fff;
}

.youtube-slider {
    padding: 0;
    max-width: var(--inner-max);
    flex-shrink: 0;
    overflow: hidden;
}

.youtube-swiper .swiper-slide {
    width: calc((var(--inner-max) - 20px * 2) / 3);
}

.youtube-card {
    display: block;
    border-radius: 30px;
    overflow: hidden;
}

.youtube-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 420;
    object-fit: cover;
    display: block;
}

/* 블로그: 원래 구조 + 오토슬라이드 */
.blog-slider-wrap {
    position: relative;
    max-width: calc(var(--inner-max) + var(--inner-pad) * 2);
    margin: 0 auto;
    padding: 0 var(--inner-pad);
    overflow: hidden;
}

.blog-slider {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.blog-slide {
    flex-shrink: 0;
    width: calc((var(--inner-max) - 20px * 3) / 4);
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    padding-bottom: 2px;
}

.blog-card-thumb {
    width: 100%;
    height: 240px;
    border-radius: 30px;
    background: #5F6369;
}

.blog-card-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
}

/* ========================================
   Section 07 : 후기
   ======================================== */
.sec-review {
    padding: 160px 0;
}

.review-intro {
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary);
    margin-top: 52px;
}

.review-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 52px;
}

.review-tag {
    display: flex;
    height: 46px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    background: transparent;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.review-tag:hover {
    border-color: #221E1F;
    color: #221E1F;
}

.review-tag.active {
    background: #221E1F;
    border-color: #221E1F;
    color: #fff;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 40px;
}

.review-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 30px;
    background: #5F6369;
}

.review-card-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
}

.review-card-cat {
    flex-shrink: 0;
    display: inline-flex;
    height: 25px;
    padding: 0 24px;
    align-items: center;
    border-radius: 100px;
    border: 1px solid #8C9091;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.review-card-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1.1;
}

.review-card-author {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #5F6369;
    line-height: 1;
}

.review-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.review-more-btn {
    display: flex;
    height: 46px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
}

.review-more-btn:hover {
    border-color: #221E1F;
    color: #221E1F;
}

/* ========================================
   Responsive (Main)
   ======================================== */
@media (max-width: 1024px) {
    .visual-title {
        font-size: 40px;
    }

    .visual-desc {
        font-size: 16px;
    }

    .visual-slide-inner {
        padding-bottom: 80px;
    }

    .visual-bottom {
        padding-bottom: 28px;
    }

    .visual-timeline {
        gap: 20px;
        padding-bottom: 12px;
    }

    .visual-timeline-item {
        font-size: 16px;
    }

    .visual-more-text {
        font-size: 16px;
    }

    .visual-more-num {
        width: 48px;
        height: 48px;
    }

    .visual-more-num-text {
        font-size: 16px;
    }

    .sec-program {
        padding: 100px 0;
    }

    .sec-heading {
        font-size: 40px;
    }

    .sec-title {
        gap: 24px;
        margin-bottom: 40px;
    }

    .program-cards {
        flex-wrap: wrap;
    }

    .program-card {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
        height: 360px;
    }

    .program-card:hover {
        flex: 1 1 calc(50% - 10px);
    }

    /* sec-banner */
    .sec-banner {
        height: 300px;
    }

    .banner-heading {
        font-size: 40px;
    }

    .banner-desc {
        font-size: 18px;
    }

    /* sec-care */
    .sec-care {
        padding: 100px 0;
    }

    .care-intro {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .care-slide {
        width: auto !important;
    }

    .care-card,
    .care-card-img {
        width: 100%;
    }

    /* sec-about */
    .sa-intro {
        padding: 88px 0 32px;
    }

    .sa-intro-text {
        gap: 24px;
        max-width: 100%;
    }

    .sa-title {
        max-width: 100%;
    }

    .sa-desc {
        width: 100%;
        margin-left: 0;
    }

    .sa-desc-inner {
        max-width: 100%;
    }

    .sa-features.sa-features--stack .sa-motion {
        position: relative;
        display: grid;
        gap: 24px;
        height: auto;
        overflow: visible;
    }

    .sa-features.sa-features--stack .sa-bg,
    .sa-features.sa-features--stack .sa-feature {
        position: relative;
        inset: auto;
        min-height: 0;
        width: auto;
        height: auto;
    }

    .sa-features.sa-features--stack .sa-bg {
        aspect-ratio: 5 / 3;
        height: auto;
        margin: 0 var(--inner-pad);
        border-radius: 24px;
    }

    .sa-features.sa-features--stack .sa-bg2 {
        margin-top: 12px;
    }

    .sa-features.sa-features--stack .sa-img,
    .sa-features.sa-features--stack .sa-img img {
        width: 100%;
        height: 100%;
    }

    .sa-features.sa-features--stack .sa-content {
        height: auto;
        padding: 0 0 8px;
    }

    .sa-features.sa-features--stack .sa-feature .inner {
        padding-top: 0;
        padding-bottom: 0;
    }

    .sa-features.sa-features--stack .sa-title {
        gap: 14px;
        margin-bottom: 24px;
    }

    .sa-features.sa-features--stack .sa-desc {
        padding: 0;
    }

    .sa-features.sa-features--stack .sa-frames {
        display: none;
    }
}

@media (max-width: 640px) {
    .visual-title {
        font-size: 30px;
    }

    .visual-desc {
        font-size: 15px;
    }

    .visual-slide-inner {
        padding-bottom: 70px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 20px;
    }

    .visual-more-btn {
        margin-left: 0;
        gap: 16px;
    }

    .visual-more-text {
        font-size: 15px;
    }

    .visual-more-num {
        width: 40px;
        height: 40px;
    }

    .visual-more-num-text {
        font-size: 15px;
    }

    .visual-timeline {
        gap: 16px;
        padding-bottom: 12px;
    }

    .visual-timeline-item {
        font-size: 14px;
    }

    .sec-program {
        padding: 80px 0;
    }

    .sec-heading {
        font-size: 28px;
    }

    .sec-subtitle {
        font-size: 16px;
    }

    .sec-title {
        gap: 20px;
        margin-bottom: 32px;
    }

    .program-cards {
        gap: 12px;
    }

    .program-card {
        flex: 1 1 100%;
        min-width: 100%;
        height: 300px;
        border-radius: 20px;
    }

    .program-card-ko {
        font-size: 20px;
    }

    .program-card-text {
        bottom: 30px;
        gap: 24px;
    }

    /* sec-banner */
    .sec-banner {
        height: 240px;
    }

    .banner-heading {
        font-size: 28px;
    }

    .banner-desc {
        font-size: 15px;
    }

    .banner-text {
        gap: 24px;
    }

    /* sec-care */
    .sec-care {
        padding: 80px 0;
    }

    .care-intro {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .care-card-img {
        height: 180px;
    }

    .care-card-body p {
        font-size: 18px;
    }

    .care-card-body {
        min-height: 80px;
    }

    /* sec-about */
    .sa-intro {
        padding: 60px 0 28px;
    }

    .sa-title {
        gap: 12px;
    }

    .sa-overline {
        font-size: 16px;
    }

    .sa-title strong span {
        font-size: clamp(34px, 10vw, 48px);
    }

    .sa-sub {
        font-size: 24px;
    }

    .sa-excerpt {
        font-size: 15px;
        line-height: 1.65;
    }

    .sa-desc {
        margin-left: 0;
    }

    .sa-desc-inner {
        max-width: 100%;
    }

    .sa-btn {
        width: 100%;
        justify-content: center;
    }

    .sa-features.sa-features--stack .sa-motion {
        gap: 20px;
    }

    .sa-features.sa-features--stack .sa-bg {
        aspect-ratio: 5 / 3;
        height: auto;
        margin: 0 var(--inner-pad);
        border-radius: 20px;
    }

    .sa-features.sa-features--stack .sa-title {
        margin-bottom: 20px;
    }
}

/* ========================================
   영문 전용 스타일 (main-en.css only)
   ======================================== */

/* --- Visual 페이지네이션 바 (영문) --- */
.visual-en-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}

.visual-en-pag-bar {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s;
}

.visual-en-pag-bar.active {
    background: #fff;
}

/* --- Visual 영문 요소 기본: 숨김 + 순차 애니메이션 --- */
.visual-subtitle,
.visual-btns {
    opacity: 0;
}

/* 영문 비주얼 순차 애니메이션 재정의 */
/* visual-title: 0.1s (기존 그대로) */

/* visual-subtitle: 타이틀 다음 (0.4s) */
.main-visual .visual-slide.is-active .visual-subtitle {
    animation: visualFadeInUp 0.7s ease forwards;
    animation-delay: 0.4s;
}

/* visual-desc: subtitle 다음 (0.7s) — 기존 0.4s 덮어쓰기 */
.main-visual .visual-slide.is-active .visual-desc {
    animation: visualFadeInUp 0.7s ease forwards;
    animation-delay: 0.7s;
}

/* visual-btns: 마지막 (1.0s) */
.main-visual .visual-slide.is-active .visual-btns {
    animation: visualFadeIn 0.7s ease forwards;
    animation-delay: 1.0s;
}

/* --- Visual 중앙 정렬 (영문) --- */
.visual-slide-inner--center {
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 50px;
}

.visual-content--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
    width: 100%;
}

.visual-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.visual-btns {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.visual-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 60px;
    border-radius: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.visual-btn--outline {
    border: 1px solid #fff;
}

.visual-btn--sub {
    gap: 8px;
    padding: 8px;
    font-size: inherit;
}

.visual-btn-main {
    font-size: 20px;
    line-height: 1;
}

.visual-btn-sub {
    font-size: 12px;
    color: #F7941C;
    line-height: 1;
}

/* --- Section 02: Beauty Begins with Balance --- */
.sec-en-why {
    padding: 160px 0 120px;
}

.sec-en-why-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    margin-bottom: 52px;
}

.sec-en-why-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 80px;
}

.sec-en-cards-wrap {
    display: flex;
    flex-direction: column;
}

/* 캐러셀 컨테이너 */
.sec-en-carousel {
    overflow: hidden;
}

.sec-en-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 각 카드 아이템 */
.sec-en-carousel-item {
    width: 365px;
    flex-shrink: 0;
}

/* 카드 공통 */
.sec-en-card {
    display: block;
    text-decoration: none;
}

.sec-en-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 30px;
    transition: border-radius 0.3s;
}

.sec-en-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* active 카드(첫 번째 위치): 이미지 하단 radius 제거 */
.sec-en-carousel-item.is-active .sec-en-card-img {
    border-radius: 30px 30px 0 0;
}

/* 하단 영역: [텍스트박스] [타임라인+화살표] */
.sec-en-cards-bottom {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

/* 텍스트박스 고정 영역 (카드 1개 너비) */
.sec-en-cards-label {
    width: 365px;
    flex-shrink: 0;
    background: #221E1F;
    border-radius: 0 0 30px 30px;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
    min-height: 90px;
}

.sec-en-cards-label-item {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.sec-en-cards-label-item.is-active {
    opacity: 1;
    pointer-events: auto;
}

.sec-en-cards-label-item p {
    margin: 0;
}

/* 타임라인 + 화살표 영역 */
.sec-en-cards-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sec-en-cards-timeline {
    flex: 1;
    height: 2px;
    background: rgba(34, 30, 31, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.sec-en-cards-timeline-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #221E1F;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.sec-en-cards-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sec-en-card-prev,
.sec-en-card-next {
    width: 40px;
    height: 30px;
    border: 1px solid rgba(34, 30, 31, 0.2);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #221E1F;
    transition: border-color 0.2s;
}

.sec-en-card-prev:hover,
.sec-en-card-next:hover {
    border-color: #221E1F;
}

/* --- Section 03: Our Specialized Treatment Programs --- */
.sec-en-programs {
    background: #221E1F;
    padding: 160px 0;
}

.sec-en-programs-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    margin-bottom: 60px;
}

.sec-en-programs-cards {
    display: flex;
    gap: 20px;
    max-width: calc(240px * 4 + 20px * 3);
    width: 100%;
    margin: 0 auto;
}

.sec-en-prog-card {
    position: relative;
    flex: 1;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* AOS 완료 후 transition 활성 (한국어 방식 동일) */
.sec-en-prog-card[data-aos].aos-animate {
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease, opacity 0.4s ease !important;
}

.sec-en-prog-card:not([data-aos]),
.sec-en-prog-card:not(.aos-animate) {
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sec-en-prog-card:hover {
    flex: 1.67;
}

.sec-en-prog-card-img {
    position: absolute;
    inset: 0;
}

.sec-en-prog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 기본 오버레이 */
.sec-en-prog-card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* 기본: 검정 그라디언트 */
.sec-en-prog-card-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* hover: 빨간 그라디언트 */
.sec-en-prog-card-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, #840028 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sec-en-prog-card:hover .sec-en-prog-card-overlay::before {
    opacity: 0;
}

.sec-en-prog-card:hover .sec-en-prog-card-overlay::after {
    opacity: 1;
}

.sec-en-prog-card-label {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.1px;
    color: #fff;
    line-height: 1.4;
    padding: 0 16px;
}

.sec-en-prog-card-label p {
    margin: 0;
}

/* --- 반응형 (영문 전용 섹션) --- */
@media (max-width: 1200px) {
    /* 히어로 페이지네이션 */
    .visual-en-pagination {
        bottom: 30px;
    }

    .visual-en-pag-bar {
        width: 60px;
    }

    /* 히어로 텍스트 */
    .visual-title {
        font-size: 36px;
    }

    .visual-subtitle {
        font-size: 24px;
    }

    .visual-desc {
        font-size: 16px;
    }

    .visual-btn {
        font-size: 14px;
        padding: 14px 28px;
    }

    /* Why Tongdal 카루셀 */
    .sec-en-why-title .sec-heading {
        font-size: 36px;
    }

    .sec-en-why-desc {
        font-size: 18px;
    }

    .sec-en-carousel-item {
        width: 300px;
    }

    .sec-en-card-img {
        height: 200px;
    }

    .sec-en-cards-bottom {
        gap: 16px;
    }

    .sec-en-cards-label {
        width: 300px;
        min-height: 72px;
        padding: 20px 16px;
    }

    .sec-en-cards-label-item {
        font-size: 20px;
    }

    .sec-en-cards-nav-spacer {
        display: none;
    }

    /* 프로그램 카드 */
    .sec-en-programs-cards {
        flex-wrap: wrap;
    }

    .sec-en-prog-card {
        max-width: calc(50% - 10px);
        flex: none;
        width: calc(50% - 10px);
        height: 360px;
    }

    .sec-en-prog-card-label {
        font-size: 20px;
    }

    /* 클로징 */
    .sec-closing .closing-text {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* ======== 히어로 ======== */
    .main-visual,
    .main-visual .swiper,
    .main-visual .swiper-wrapper,
    .main-visual .swiper-slide {
        height: 481px;
    }

    .visual-slide-inner--center {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 44px;
    }

    .visual-content--center {
        gap: 40px;
        padding: 0 24px;
    }

    .visual-title {
        font-size: 24px !important;
        line-height: 1.4;
    }

    .visual-subtitle {
        font-size: 14px !important;
        line-height: 1.6;
        white-space: normal;
    }

    .visual-desc {
        font-size: 14px !important;
        line-height: 1.6;
    }

    .visual-desc br.pc-br {
        display: none;
    }

    .visual-btns {
        flex-direction: row !important;
        gap: 16px;
    }

    .visual-btn {
        width: auto !important;
        height: 42px;
        font-size: 12px;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .visual-btn--sub {
        width: 137px !important;
        gap: 4px;
        padding: 12px 16px;
    }

    .visual-btn-main {
        font-size: 12px;
    }

    .visual-btn-sub {
        font-size: 8px;
    }

    .visual-en-pag-bar {
        width: 40px;
    }

    /* ======== Why Tongdal ======== */
    .sec-en-why {
        padding: 60px 0 40px;
    }

    .sec-en-why-title {
        text-align: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .sec-en-why-title .sec-subtitle {
        font-size: 12px;
    }

    .sec-en-why-title .sec-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    .sec-en-why-desc {
        font-size: 18px;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 40px;
    }


    /* 카루셀: 모바일 ~1.2개 보이기 */
    .sec-en-carousel {
        overflow: hidden;
    }

    .sec-en-carousel-track {
        gap: 12px;
    }

    .sec-en-carousel-item {
        width: 75vw;
        flex-shrink: 0;
    }

    .sec-en-card-img {
        height: 220px;
        border-radius: 12px;
        transition: border-radius 0.3s;
    }

    .sec-en-carousel-item.is-active .sec-en-card-img {
        border-radius: 12px 12px 0 0;
    }

    /* 텍스트 라벨 + 내비: 세로 배치, 왼쪽 정렬(카드 트랙과 일치) */
    .sec-en-cards-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .sec-en-cards-label {
        width: 75vw;
        border-radius: 0 0 12px 12px;
        min-height: 76px;
        padding: 17px 16px;
    }

    .sec-en-cards-label-item {
        font-size: 18px;
    }

    .sec-en-cards-nav {
        width: 100%;
        flex: none;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .sec-en-cards-timeline {
        flex: none;
        width: 100%;
        height: 2px;
    }

    .sec-en-card-prev,
    .sec-en-card-next {
        width: 52px;
        height: 38px;
        border-radius: 4px;
    }

    /* ======== 프로그램: 2x2 그리드 ======== */
    .sec-en-programs {
        padding: 60px 24px;
    }

    .sec-en-programs .inner {
        display: flex;
        flex-direction: column;
        gap: 32px;
        align-items: center;
        padding: 0;
    }

    .sec-en-programs-title {
        gap: 12px;
        margin-bottom: 0;
    }

    .sec-en-programs-title .sec-subtitle {
        font-size: 12px;
    }

    .sec-en-programs-title .sec-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    .sec-en-programs-cards {
        flex-wrap: wrap;
        gap: 20px 22px;
        justify-content: center;
        max-width: 342px;
    }

    .sec-en-prog-card {
        max-width: 160px !important;
        width: 160px !important;
        flex: none !important;
        height: 200px !important;
        border-radius: 12px;
        transition: none !important;
    }

    .sec-en-prog-card:hover {
        flex: none !important;
    }

    .sec-en-prog-card-img {
        border-radius: 12px;
    }

    .sec-en-prog-card-overlay,
    .sec-en-prog-card-overlay::before,
    .sec-en-prog-card-overlay::after {
        border-radius: 12px;
    }

    .sec-en-prog-card-label {
        font-size: 16px;
        bottom: 14px;
        left: 0;
        right: 0;
        padding: 0 10px;
        text-align: center;
    }

    .sec-en-prog-card-label p {
        font-size: 16px;
        line-height: 1.4;
    }

    /* ======== 클로징 ======== */
    .sec-closing {
        padding: 60px 0;
    }

    .sec-closing .closing-text {
        font-size: 18px;
        line-height: 1.4;
    }
}

/* ========================================
   Small Mobile (480px 이하)
   ======================================== */
@media (max-width: 480px) {
    /* 히어로: 더 작은 화면 대응 */
    .visual-content--center {
        gap: 30px;
    }

    /* 프로그램 카드: 화면에 맞춤 */
    .sec-en-programs-cards {
        max-width: 100%;
    }

    .sec-en-prog-card {
        max-width: calc(50% - 11px) !important;
        width: calc(50% - 11px) !important;
    }
}
