* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI',
        'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* ========================================
   실리프팅 비포&애프터 섹션
   ======================================== */
   .lifting-ba-section {
    padding: 100px 20px;
    background: #ffffff;
}

.ba-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 카드 - 핑크 글로우 그림자만 (테두리 선 제거) */
.ba-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(240, 221, 216, 0.5),
                0 4px 12px rgba(166, 117, 106, 0.08);   /* ⭐ 테두리 선(0 0 0 1px) 제거! */
    cursor: pointer;
    transition: all 0.3s ease;
}

.ba-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(240, 221, 216, 0.7),
                0 6px 16px rgba(166, 117, 106, 0.15);   /* ⭐ hover도 테두리 선 제거! */
}

/* 페이지 표시/숨김 */
.ba-card[data-page]:not(.is-active) {
    display: none;
}

.ba-card.is-active {
    display: block;
}

/* ⭐ 카드 이미지 영역 - 안쪽 라운드 적용! */
.ba-card-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 2 / 1;
    border-radius: 8px;       /* ⭐ 안쪽 라운드 추가 (바깥 20px - padding 18px ≈ 안쪽 8px 자연스러움) */
    overflow: hidden;          /* ⭐ 라운드 적용 위해 필수 */
}

.ba-card-before,
.ba-card-after {
    position: relative;
    overflow: hidden;
}

/* 좌측 BEFORE - 연한 회색 (이미지 로드 전) */
.ba-card-before {
    background: #ECECEC;
}

/* 우측 AFTER - 살짝 진한 회색 (이미지 로드 전) */
.ba-card-after {
    background: #C8C8C8;
}

/* 이미지 표시 - 얼굴 위쪽 강조 */
.ba-card-before img,
.ba-card-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* BEFORE 카카오 로그인 게이트 */
.ba-card-before[data-logged-in="false"] .actual-before-image {
    filter: blur(20px);
}

.ba-card-before .before-login {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.85);
}

.ba-card-before[data-logged-in="true"] .before-login {
    display: none;
}

.ba-card-before .login-message {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
}

.ba-card-before .login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FEE500;
    color: #3C1E1E;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ba-card-before .login-btn:hover {
    opacity: 0.85;
}

.ba-card-before .login-btn img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* ⭐ 카드 라벨 - 안쪽 라운드와 연결 */
.ba-card-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 0 0 8px 8px;   /* ⭐ 하단도 살짝 라운드 (이미지 영역과 같이 둥근 카드 안쪽 느낌) */
    overflow: hidden;              /* ⭐ 라운드 적용 위해 필수 */
    margin-top: -8px;              /* ⭐ 이미지 영역 라운드와 자연스럽게 이어지게 */
    position: relative;
    z-index: 1;
}

.ba-card-labels span {
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.ba-card-labels .label-before {
    background: #888888;
}

.ba-card-labels .label-after {
    background: #A6756A;
}

/* ========================================
   페이지네이션 - 미니멀 라인 스타일
   ======================================== */
.ba-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 70px;
}

.ba-pagination button {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #A6756A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, color 0.2s;
    padding: 0;
}

.ba-pagination button:hover:not(:disabled) {
    opacity: 0.7;
}

.ba-pagination button:disabled {
    color: #E5D5D0;
    cursor: not-allowed;
}

.ba-pagination button svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.2;
}

.ba-page-info {
    font-size: 18px;
    color: #C9A89F;
    font-weight: 400;
    min-width: 60px;
    text-align: center;
    letter-spacing: 1px;
}

.ba-page-info .current-page {
    font-weight: 700;
    font-size: 22px;
    color: #A6756A;
}

.ba-page-info .total-pages {
    color: #D4BFB8;
}

/* ========================================
   비포&애프터 모달
   ======================================== */
.ba-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ba-modal.is-open {
    display: flex;
}

.ba-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.ba-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.ba-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.ba-modal-close:hover {
    background: #ffffff;
}

.ba-modal-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ba-modal-before,
.ba-modal-after {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.ba-modal-before {
    background: #ECECEC;
}

.ba-modal-after {
    background: #C8C8C8;
}

/* 모달 이미지도 얼굴 위쪽 강조 */
.ba-modal-before img,
.ba-modal-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.modal-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: #888888;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.modal-label-after {
    background: #A6756A;
}

/* ========================================
   반응형 - 태블릿
   ======================================== */
@media (max-width: 1200px) {
    .ba-card-grid {
        gap: 30px;
        padding: 16px;
    }

    .ba-card {
        padding: 14px;
    }
}

/* ========================================
   반응형 - 모바일
   ======================================== */
@media (max-width: 768px) {
    .lifting-ba-section {
        padding: 60px 20px;
    }

    .ba-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 12px;
    }

    .ba-card {
        padding: 12px;
        border-radius: 16px;
    }

    .ba-card-images {
        border-radius: 6px;   /* ⭐ 모바일에선 안쪽 라운드 약간 줄임 */
    }

    .ba-card-labels {
        border-radius: 0 0 6px 6px;
        margin-top: -6px;
    }

    .ba-card-labels span {
        padding: 12px 14px;
        font-size: 14px;
    }

    .ba-card-before .login-message {
        font-size: 12px;
    }

    .ba-card-before .login-btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .ba-pagination {
        margin-top: 50px;
        gap: 36px;
    }

    .ba-pagination button svg {
        width: 24px;
        height: 24px;
    }

    .ba-page-info {
        font-size: 16px;
    }

    .ba-page-info .current-page {
        font-size: 20px;
    }

    /* 모달 - 모바일 */
    .ba-modal {
        padding: 12px;
    }

    .ba-modal-images {
        grid-template-columns: 1fr;
    }

    .modal-label {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* ========================================
   반응형 - 작은 모바일
   ======================================== */
@media (max-width: 480px) {
    .lifting-ba-section {
        padding: 50px 15px;
    }

    .ba-card {
        padding: 10px;
    }

    .ba-card-labels span {
        padding: 10px;
        font-size: 13px;
    }

    .ba-card-before .login-message {
        font-size: 11px;
    }

    .ba-card-before .login-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .ba-pagination {
        gap: 28px;
    }

    .ba-modal-close {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
    }
}
/* ========================================
   리프팅섹션
   ======================================== */
/* 리프팅 인트로 섹션 */

.lifting-intro-section {
    background: url('/gnuboard5/img/lifting_background.png') center/cover;
    background: #ffffff;
}

.lifting-container {
    max-width: 1400px;  

    margin: 0 auto;
}

.intro-header {
    text-align: center;
    margin-bottom: 80px;
}

.intro-label {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 8px;
    color: #999;
    margin-bottom: 20px;
}

.intro-title {
    font-size: 42px;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.4;
}

.intro-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-image {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* 포웨이 인트로 섹션 */
.fourway-intro-section {
    padding: 100px 20px;
    background: #ffffff;
}

.section-main-title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    color: #A6756A;
    margin-bottom: 60px;
    line-height: 1.5;
}

.fourway-content {
    max-width: 1200px;
    margin: 0 auto;
}

.fourway-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
}

.fourway-text.highlight {
    color: #000;
    font-weight: 500;
}

/* 추천 섹션 */
.recommend-section {
    padding: 100px 20px;
    background: #ffffff;
}

.recommend-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.recommend-text {
    flex: 1;
}

.recommend-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 10px;
    color: #A6756A;
    margin-bottom: 30px;
}

.recommend-title {
    font-size: 42px;
    font-weight: bold;
    color: #000;
    line-height: 1.3;
    margin-bottom: 60px;
}

.recommend-list {
    list-style: none;
    padding: 0;
}

.recommend-list li {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.recommend-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

.recommend-image {
    flex: 1;
    max-width: 600px;
}

.recommend-image img {
    width: 100%;
    border-radius: 0 70px;
}

/* 실 종류 섹션 */
.thread-types-section {
    padding: 100px 20px;
    background: #ffffff;
}

.section-desc {
    text-align: center;
    font-size: 18px;
    color: #000000;
    line-height: 1.8;
    margin-bottom: 80px;
}

.thread-compare {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.thread-item {
    text-align: center;
}

.thread-image {
    width: 100%ㄴ;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.thread-image img {
    max-width: 100%;
    height: auto;
}

.thread-name {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

/* 시술부위 섹션 */
.treatment-area-section {
    padding: 100px 20px;
    background: #ffffff;
}

.treatment-image {
    text-align: center;
    margin-top: 60px;
}

.area-img {
    max-width: 1400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* CARE 시스템 섹션 */
.care-system-section {
    position: relative;
    height: 600px;
    background: url('/gnuboard5/img/care-banner.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.care-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.care-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.care-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.care-title {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.8;
}

.care-title .highlight {
    font-weight: 700;
    font-size: 42px;
}

/* 반응형 - 태블릿 */
@media (max-width: 1200px) {
    .feature-grid {
        gap: 30px;
    }

    .feature-image {
        height: 280px;
    }

    .intro-title {
        font-size: 36px;
    }

    .section-main-title {
        font-size: 32px;
    }

    .recommend-content {
        gap: 60px;
    }

    .thread-compare {
        gap: 50px;
    }

    .thread-image {
        width: 300px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .lifting-intro-section {
        padding: 60px 20px 60px;
    }

    .intro-header {
        margin-bottom: 50px;
    }

    .intro-label {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .intro-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .intro-description {
        font-size: 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-image {
        height: 250px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-desc {
        font-size: 14px;
    }

    .fourway-intro-section {
        padding: 60px 20px;
    }

    .section-main-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .fourway-text {
        font-size: 14px;
        margin-bottom: 20px;
        text-align: center;
    }

    .recommend-section {
        padding: 60px 20px;
    }

    .recommend-label {
        font-size: 12px;
        letter-spacing: 4px;
        margin-bottom: 20px;
    }

    .recommend-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .recommend-content {
        flex-direction: column;
        gap: 40px;
    }

    .recommend-list li {
        font-size: 15px;
        line-height: 2.2;
    }

    .recommend-image {
        max-width: 100%;
    }

    .recommend-image img {
        border-radius: 0 40px;
    }

    .thread-types-section {
        padding: 60px 20px;
    }

    .section-desc {
        font-size: 14px;
        margin-bottom: 50px;
    }

    .thread-compare {
        flex-direction: column;
        gap: 80px;
        align-items: center;
    }

    .thread-image {
        width: 100%;
        max-width: 300px;
        height: 80px;
    }

    .thread-name {
        font-size: 18px;
    }

    .treatment-area-section {
        padding: 60px 20px;
    }

    .treatment-image {
        margin-top: 40px;
    }

    .area-img {
        border-radius: 10px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    .lifting-intro-section {
        padding: 60px 15px 50px;
    }

    .intro-title {
        font-size: 22px;
    }

    .intro-description {
        font-size: 14px;
    }

    .feature-image {
        height: 220px;
        border-radius: 15px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 13px;
    }

    .fourway-intro-section {
        padding: 50px 15px;
    }

    .section-main-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .fourway-text {
        font-size: 13px;
    }

    .recommend-section {
        padding: 50px 15px;
    }

    .recommend-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .recommend-list li {
        font-size: 14px;
        line-height: 2;
    }

    .thread-types-section {
        padding: 50px 15px;
    }

    .section-desc {
        font-size: 13px;
    }

    .thread-image {
        height: 70px;
    }

    .thread-name {
        font-size: 16px;
    }

    .treatment-area-section {
        padding: 50px 15px;
    }

    .care-system-section {
        height: 400px;
    }

    .care-label {
        font-size: 10px;
    }

    .care-title {
        font-size: 18px;
    }

    .care-title .highlight {
        font-size: 22px;
    }
}

/* ============================================================
   Why 4way lifting? 섹션
   ============================================================ */
.why-4way-section {
    padding: 100px 20px 120px;
    background: #ffffff;
}

/* 헤더 */
.why-4way-header {
    text-align: center;
    margin-bottom: 80px;
}

.why-4way-title {
    font-size: 32px;
    font-weight: 700;
    color: #A6756A;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.why-4way-subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    font-weight: 400;
}

/* 3원형 + 플러스 */
.why-4way-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 90px;
    flex-wrap: wrap;
}

.circle-item {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.circle-brown {
    background: #A6756A;
}

.circle-gray {
    background: #888888;
}

.circle-light-brown {
    background: #A6756A;
}

.circle-plus {
    font-size: 28px;
    color: #999;
    font-weight: 300;
    line-height: 1;
}

/* 4-Way Lifting 배너 */
.why-4way-banner {
    margin: 0 auto 90px;
    max-width: 1400px;
}

.banner-inner {
    position: relative;
    background: linear-gradient(135deg, #F8E6E0 0%, #FBEFEB 100%);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 180px;
}

.banner-text {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    text-align: center;
}

.banner-label {
    font-size: 28px;
    color: #A6756A;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 300;
}

.banner-title {
    font-size: 56px;
    font-weight: 600;
    color: #A6756A;
    line-height: 1.1;
}

.banner-image {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
}

.banner-image img {
    height: 100%;
    max-height: 360px;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
}

/* 인용 + 설명 */
.why-4way-quote {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-text {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin-bottom: 50px;
}

.quote-highlight {
    color: #A6756A;
    font-weight: 700;
}

.quote-description {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
}

.quote-description p {
    margin: 0 0 22px;
}

.quote-description p:last-child {
    margin-bottom: 0;
}

.quote-description strong {
    color: #222;
    background: linear-gradient(transparent 60%, #F8E6E0 60%);
    padding: 0 4px;
    font-weight: 600;
}

/* ========== 태블릿 (max 1024px) ========== */
@media (max-width: 1024px) {
    .why-4way-section {
        padding: 80px 20px 100px;
    }

    .why-4way-title {
        font-size: 28px;
    }

    .circle-item {
        width: 150px;
        height: 150px;
        font-size: 14px;
    }

    .banner-inner {
        padding: 50px 50px;
        min-height: 280px;
    }

    .banner-title {
        font-size: 44px;
    }

    .banner-image img {
        max-height: 300px;
    }

    .quote-text {
        font-size: 20px;
    }
}

/* ========== 모바일 (max 768px) ========== */
@media (max-width: 768px) {
    .why-4way-section {
        padding: 60px 16px 80px;
    }

    .why-4way-header {
        margin-bottom: 50px;
    }

    .why-4way-title {
        font-size: 24px;
    }

    .why-4way-subtitle {
        font-size: 14px;
    }

    .why-4way-circles {
        gap: 14px;
        margin-bottom: 60px;
    }

    .circle-item {
        width: 110px;
        height: 110px;
        font-size: 12px;
    }

    .circle-plus {
        font-size: 20px;
    }

    .banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 30px 0;
        min-height: auto;
        gap: 20px;
    }

    .banner-title {
        font-size: 34px;
    }

    .banner-image {
        width: 100%;
        align-items: flex-end;
        justify-content: center;
    }

    .banner-image img {
        max-height: 240px;
    }

    .quote-text {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .quote-description {
        font-size: 14px;
    }
}

/* ========== 작은 모바일 (max 480px) ========== */
@media (max-width: 480px) {
    .why-4way-circles {
        gap: 8px;
    }

    .circle-item {
        width: 90px;
        height: 90px;
        font-size: 11px;
    }

    .circle-plus {
        font-size: 16px;
    }

    .banner-title {
        font-size: 28px;
    }

    .quote-text {
        font-size: 16px;
    }
}