/* ============================================
   CSS 변수
   ============================================ */

   :root {
    --color-primary: #3F261B;
    --color-bg-light: #cbc2dc;
    --color-bg-youtube: #CBC2DE;
}

/* ============================================
   공통 버튼 스타일
   ============================================ */

/* 공통 크기 및 여백 (모든 버튼 동일) */
.btn-primary,
.btn-white,
.btn-outline-primary,
.btn-outline-white {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 55px;
    transition: all 0.3s ease;
    min-height: 45px;
}

.btn-primary span,
.btn-white span,
.btn-outline-primary span,
.btn-outline-white span {
    font-size: 15px;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-weight: 700;
}

.btn-primary svg,
.btn-white svg,
.btn-outline-primary svg,
.btn-outline-white svg {
    width: 24px;
    height: 24px;
    margin-left: 8px;
}

/* btn-primary 스타일 */
.btn-primary {
    background-color: #2A1F1B;
}

.btn-primary:hover {
    background-color: #000000;
}

.btn-primary span {
    color: white;
    transition: color 0.3s ease;
}

/* btn-white 스타일 */
.btn-white {
    background-color: white;
}

.btn-white:hover {
    background-color: #000000;
}

.btn-white span {
    color: #2A1F1B;
    transition: color 0.3s ease;
}

.btn-white:hover span {
    color: white;
}

/* btn-outline-primary 스타일 */
.btn-outline-primary {
    border: 2px solid var(--color-primary);
    border-radius: 9999px;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
}

.btn-outline-primary span {
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.btn-outline-primary:hover span {
    color: white;
}

/* btn-outline-white 스타일 */
.btn-outline-white {
    border: 2px solid white;
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: white;
}

.btn-outline-white span {
    color: white;
    text-align: center;
    transition: color 0.3s ease;
}

.btn-outline-white:hover span {
    color: #CBC2DE;
}

/* ============================================
   공통 섹션 스타일
   ============================================ */
.section-logo {
    width: 43px;
    height: 43px;
}

.section-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   공통 텍스트 스타일
   ============================================ */

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

/* ============================================
   공통 유틸리티 클래스
   ============================================ */

.section-container {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 250px;
    padding-right: 250px;
}

@media (max-width: 1279px) {
    .section-container {
        padding-left: 120px;
        padding-right: 120px;
    }
}

@media (max-width: 1024px) {
    .section-container {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 767px) {
    .section-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

.text-left {
    text-align: left;
}

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

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.md\:block {
    display: block;
}

.md\:hidden {
    display: none;
}

@media (max-width: 767px) {
    .md\:block {
        display: none;
    }
    
    .md\:hidden {
        display: block;
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

.whitespace-nowrap {
    white-space: nowrap;
}

.whitespace-pre {
    white-space: pre;
}

.max-w-full {
    max-width: 100%;
}

.h-auto {
    height: auto;
}

.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

.pointer-events-none {
    pointer-events: none;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

/* ============================================
   메인 배너
   ============================================ */

.main-banner-section {
    height: 100vh;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: bannerZoom 5s ease-out forwards;
    -webkit-animation: bannerZoom 5s ease-out forwards;
}

@keyframes bannerZoom {
    0% {
        transform: perspective(500px) scale(1.1) rotate(.001deg);
    }
    100% {
        transform: perspective(500px) scale(1) rotate(.001deg);
    }
}

@-webkit-keyframes bannerZoom {
    0% {
        -webkit-transform: perspective(500px) scale(1.1) rotate(.001deg);
    }
    100% {
        -webkit-transform: perspective(500px) scale(1) rotate(.001deg);
    }
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.banner-text-container {
    position: absolute;
    bottom: 200px;
    left: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 10;
}

.banner-content-wrapper.center .banner-text-container {
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    align-items: center;
    text-align: center;
}

/* 메인 배너 텍스트 애니메이션 초기 상태 */
.main-banner-content .banner-main,
.main-banner-content .banner-sub,
.main-banner-content .banner-bottom-text {
    opacity: 0;
}

.banner-main {
    font-family: 'Monik', serif;
    font-weight: 100;
    color: white;
    font-size: 60px;
    line-height: 1.2;
}

.banner-bottom-text {
    color: white;
    font-size: 18px;
    text-align: left;
    margin-top: 30px;
    line-height: 1.5;
}

.banner-sub {
    font-family: 'Monik', serif;
    font-weight: 100;
    color: white;
    font-size: 15px;
    letter-spacing: 3px;
}

.banner-content-wrapper.center .banner-bottom-text {
    text-align: center;
}

@media (max-width: 1279px) {
    .banner-text-container {
        bottom: 220px;
        left: 120px;
    }
    
    .banner-main {
        font-size: 55px;
    }
}

@media (max-width: 1024px) {
    .banner-text-container {
        bottom: 180px;
        left: 60px;
    }
    
    .banner-main {
        font-size: 45px;
    }
    
    .banner-sub {
        font-size: 20px;
        letter-spacing: 5px;
    }
    
    .banner-bottom-text {
        font-size: 16px;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .banner-text-container {
        width: 100%;
        bottom: 120px;
        left: 20px;
    }
    
    .banner-main {
        font-size: 32px;
    }
    
    .banner-sub {
        font-size: 15px;
        letter-spacing: 3px;
    }
    
    .banner-bottom-text {
        font-size: 15px;
        margin-top: 15px;
    }
}

/* 배너 카카오톡 버튼 */
.banner-kakao-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding: 12px 24px;
    background-color: #8F7365;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}


.banner-kakao-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.banner-kakao-btn:hover {
    background-color: #E5CF00;
}

@media (max-width: 767px) {
    .banner-kakao-btn {
        display: flex;
    }
}

.main-banner-scroll-overlay {
    transition: background-color 0.3s ease;
    z-index: 1;
}


/* 통합 배너 텍스트 스타일 */
.main-banner-text-unified {
    z-index: 10;
}

.banner-main .letter {
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* ============================================
   애니메이션
   ============================================ */

.scroll-animate {
    opacity: 0;
}

.scroll-animate.animate-visible {
    opacity: 1;
}

.scroll-fadeInDown {
    transform: translateY(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fadeInDown.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fadeInLeft {
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fadeInLeft.animate-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fadeInRight {
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fadeInRight.animate-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fadeInUp {
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fadeInUp.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fadeIn {
    transition: opacity 0.6s ease-out;
}

.scroll-fadeIn.animate-visible {
    opacity: 1;
}

.scroll-zoomIn {
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-zoomIn.animate-visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-fade {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-fade.scroll-fade-visible {
    opacity: 1;
}

.text-char-fade .char {
    display: inline-block;
    opacity: 0;
    animation: charFade 0.4s ease-out forwards;
    margin-right: 88px;
}

.text-char-fade .char:last-child {
    margin-right: 0;
}

.text-char-fade .char-space {
    display: inline-block;
}

@keyframes charFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-circle-rotate {
    animation: spin-slow 20s linear infinite;
}

/* ============================================
   특별 프로그램 섹션
   ============================================ */

.special-programs-section {
    position: relative;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 90px;
    background-image: 
    linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 35%),
    linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 30%),
    url(../images/section05_banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.special-programs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

@media (max-width: 767px) {
    .special-programs-container {
        gap: 20px;
    }
}

.special-programs-item-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 25px 350px;
    height: 146px;
    position: relative;
}

@media (max-width: 1279px) {
    .special-programs-item-inner {
        padding: 25px 80px;
    }
}

@media (max-width: 1024px) {
    .special-programs-item-inner {
        padding: 25px 25px;
    }
}

@media (max-width: 767px) {
    .special-programs-item-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
        height: auto;
    }
}

.special-programs-item-inner:first-child {
    padding-top: 41px;
    padding-bottom: 41px;
}

.special-programs-item-inner:not(:first-child) {
    padding-top: 30px;
    padding-bottom: 30px;
    height: 130px;
}

@media (max-width: 767px) {
    .special-programs-item-inner:first-child {
        padding-top: 25px;
        padding-bottom: 25px;
    }
    
    .special-programs-item-inner:not(:first-child) {
        padding-top: 25px;
        padding-bottom: 25px;
        height: auto;
    }
}

.special-programs-title {
    font-family: 'Monik', serif;
    font-weight: 100;
    line-height: 62px;
    font-size: 37px;
    color: var(--color-primary);
    white-space: pre;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

@media (max-width: 767px) {
    .special-programs-title {
        line-height: 1.2;
        font-size: 23px;
        margin-top: 15px;
    }
}

.special-programs-desc {
    font-weight: 400;
    line-height: 62px;
    font-size: 20px;
    color: var(--color-primary);
    text-align: right;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

@media (max-width: 767px) {
    .special-programs-desc {
        line-height: 1.5;
        font-size: 15px;
        text-align: left;
        margin-top: 15px;
    }
}

.special-programs-hover-text {
    font-weight: 400;
    line-height: 62px;
    font-size: 20px;
    color: white;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

@media (max-width: 767px) {
    .special-programs-hover-text {
        line-height: 1.5;
        font-size: 17px;
    }
}

.differences-section {
    background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 20%),
    linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 15%),
    url(../images/section05_banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.special-programs-list {
    position: relative;
}

.special-programs-mainlist {
    margin-top: 70px;
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
}

.special-programs-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    transition-duration: 0.4s;
    cursor: pointer;
}

.special-programs-item-inner {
    padding-left: 350px;
    padding-right: 350px;
    transition: all 0.4s;
}

.special-programs-title {
    flex-shrink: 0;
}

.special-programs-desc {
    width: 640px;
    flex-shrink: 0;
}

.special-programs-hover-text {
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.special-programs-item:hover {
    background-color: #8F7365;
}

.special-programs-item:hover .special-programs-item-inner > p:not(.special-programs-hover-text) {
    opacity: 0;
}

.special-programs-item:hover .special-programs-hover-text {
    opacity: 1 !important;
    pointer-events: auto;
}

/* ============================================
   Swiper 공통
   ============================================ */

.swiper {
    overflow: initial;
    position: relative;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    position: relative;
    width: 352px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.swiper-programs {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.swiper-programs .swiper-slide {
    width: 352px !important;
    flex-shrink: 0;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.swiper-slide-text {
    font-size: 22px;
    color: var(--color-primary);
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide-active .swiper-slide-text {
    opacity: 1;
}

.swiper-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    height: 48px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 20;
    transition: background-color 0.3s;
}

.swiper-nav-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.swiper-nav-button-prev {
    left: 120px;
}

.swiper-nav-button-next {
    right: 120px;
}

/* ============================================
   유튜브 섹션
   ============================================ */

.youtube-section {
    position: relative;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 120px;
}

@media (max-width: 767px) {
    .youtube-section {
        padding-top: 60px;
        padding-bottom: 50px;
    }
}

.youtube-container {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 80px;
    padding-right: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (max-width: 767px) {
    .youtube-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.youtube-header-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

@media (max-width: 1024px) {
    .youtube-header-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .youtube-header-wrapper {
        gap: 30px;
    }
}

.youtube-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .youtube-text-wrapper {
        gap: 30px;
    }
}

.youtube-header-text {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    letter-spacing: 5px;
}

@media (max-width: 767px) {
    .youtube-header-text {
        font-size: 20px;
    }
}

.youtube-description {
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .youtube-description {
        font-size: 16px;
    }
}

.youtube-buttons-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: auto;
}

.youtube-button {
    flex: none;
}

@media (max-width: 767px) {
    .youtube-buttons-wrapper {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .youtube-button {
        flex: 1;
    }
}

.youtube-link {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-youtube .swiper-slide {
    transition: transform 0.3s;
    transform: translate(0);
    border-radius: 27px;
    overflow: hidden;
    background: #fff;
    margin-right: 40px;
    width: 425px;
    height: 425px;
    border: 1px solid #c4c4c4;
    position: relative;
}

@media (max-width: 1024px) and (min-width: 768px) {
    .swiper-youtube .swiper-slide {
        height: 350px;
    }
}

.swiper-youtube .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.youtube-thumbnail-bg {
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    top: 0;
    left: 0;
}

.youtube-thumbnail-bg img {
    width: auto;
    height: auto;
}

.youtube-text-box {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.youtube-category {
    font-weight: 600;
    max-width: 130px;
    width: 100%;
    height: 40px;
    line-height: 38px;
    font-size: 15px;
    color: #6f6f6f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #c4c4c4;
    border-radius: 50px;
    transition: 0.4s;
    margin: 0;
}

.youtube-category img {
    width: 18px;
    height: 13px;
}

.youtube-category-text {
    transition: 0.4s;
    color: #6f6f6f;
}

.youtube-title-text {
    font-size: 23px;
    text-align: left;
    line-height: 37px;
    padding-bottom: 40px;
    transition: 0.4s;
    color: #192426;
    font-weight: 600;
    margin: 0;
}

.youtube-date-text {
    color: #b2b2b2;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.4s;
}

.youtube-date-text img {
    width: 20px;
    height: 20px;
}

.swiper-youtube .swiper-slide:hover {
    transform: translate(0, -10%);
}

.swiper-youtube .swiper-slide:hover .youtube-category {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.swiper-youtube .swiper-slide:hover .youtube-category-text {
    color: #fff;
}

.swiper-youtube .swiper-slide:hover .youtube-thumbnail-bg {
    opacity: 1;
}

.swiper-youtube .swiper-slide:hover a {
    background: #cbc2dc;
}

.swiper-youtube .swiper-slide:hover .youtube-date-text {
    display: none;
}

.swiper-youtube .swiper-slide:hover .youtube-title-text {
    color: #fff;
    text-decoration-line: underline;
}

.swiper-youtube .youtube-scrollbar.swiper-scrollbar-horizontal,
.swiper-youtube .swiper-scrollbar.swiper-scrollbar-horizontal {
    margin: 80px auto 0 !important;
    height: 3px !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: relative !important;
    bottom: auto !important;
    z-index: 50;
}

.youtube-scrollbar .swiper-scrollbar-drag {
    background: #2A1F1B;
}

/* ============================================
   푸터
   ============================================ */

.footer-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 40px;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.02em;
    font-weight: 400;
    gap: 0.75rem;
    padding: 0 15px;
    border: 1px solid #9f9995;
    transition: 0.3s;
    box-sizing: border-box;
    min-width: 120px;
}

@media (max-width: 767px) {
    .footer-map-btn {
        min-width: auto;
    }
}

.footer-map-btn:hover {
    background: #000;
    color: #fff;
    border: none;
}

/* ============================================
   팝업 모달
   ============================================ */

.main-m-popup-sect {
    display: none;
}

.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 89;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 840px;
    max-height: 85vh;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.popup-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.popup-slide.active {
    display: block;
}

.popup-slide .popup-image,
.popup-slide .popup-image-link {
    width: 100%;
    height: 100%;
    display: block;
    vertical-align: top;
}

.popup-slide .popup-image-link {
    text-decoration: none;
    line-height: 0;
}

.popup-slide .popup-image-link img,
.popup-slide .popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .popup-image-wrapper,
    .popup-slide,
    .popup-slide .popup-image-link {
        height: auto !important;
    }
    .popup-slide .popup-image-link img,
    .popup-slide .popup-image {
        width: 100% !important;
        height: auto !important;
    }
}

.popup-tabs {
    display: flex;
    align-items: center;
    width: 100%;
    background: white;
    border-top: 1px solid rgb(143, 115, 101, 0.25);
}

.popup-tab-btn {
    flex: 1;
    padding: 15px 10px;
    background: transparent;
    border: none;
    border-right: 1px solid rgb(143, 115, 101, 0.25);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.popup-tab-btn:last-child {
    border-right: none;
}

.popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px;
    background: #8F7365;
    border-radius: 0 0 10px 10px;
}

.popup-footer span,
.popup-hide-day {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.popup-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.popup-close-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.popup-close-btn:hover {
    opacity: 0.7;
}

/* ============================================
   퀵 메뉴
   ============================================ */

.quick-menu {
    position: fixed;
    bottom: 2.5rem;
    right: 1.5rem;
    z-index: 9999;
}


@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
        -webkit-transform: translateY(-15px);
    }
}

.quick-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.quick-wrap > .quick-btn-area {
    position: relative;
    align-self: flex-end;
    margin-right: calc((143px - 50px) / 2);
}

.quick-wrap > .top_btn01 {
    position: relative;
    align-self: flex-end;
    margin-right: calc((143px - 25px) / 2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-hide-title {
    opacity: 0;
}

.quick-button-group {
    position: absolute;
    width: 143px;
    right: 0;
    bottom: calc(50px + 20px);
    pointer-events: none;
    transition: bottom 0.3s ease;
}

.quick-wrap.is-active .quick-button-group {
    height: auto;
    pointer-events: fill;
}

.quick-social-icon {
    display: block;
    opacity: 0;
}

.quick-wrap.is-active .quick-social-icon {
    opacity: 1;
}

.quick-social-icon .title-wrap {
    font-weight: 600;
    border: 1px solid var(--color-primary);
    letter-spacing: -0.5px;
    gap: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 100%;
    border-radius: 2rem;
    background: #fff;
    margin-bottom: 9px;
    font-size: 15px;
    padding: 0 15px;
    height: 45px;
    text-decoration: none;
    opacity: 0;
}

.quick-wrap.is-active .quick-social-icon .title-wrap {
    opacity: 1;
}

.quick-social-icon .icon-social {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.quick-social-icon .tit {
    cursor: pointer;
    font-family: 'BonmyeongjoSourceHanSerif', serif;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    line-height: 1;
}

.quick-btn-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.quick-btn-area .quick-bg {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0px;
    right: 0px;
    border-radius: 100%;
    background: #8F7365;
    transition: all 400ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    -webkit-transition: all 400ms cubic-bezier(0.215, 0.61, 0.355, 1) 0ms;
    overflow: hidden;
}

.is-active .quick-btn-area .quick-bg {
    display: none;
    background: none;
    transition: transform 330ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms;
}

.open_btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.open_btn > div {
    width: 4px;
    height: 4px;
    border-radius: 100%;
    display: inline-block;
    margin: 0 3px;
    background-color: #fff;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
}

.open_btn .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.open_btn .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.chatbot_button_icon {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.quick-close-btn {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 50px;
    height: 50px;
    background: #575757;
    border-radius: 50%;
    opacity: 0;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    -webkit-transition: background 0ms ease 500ms, opacity 0ms ease 500ms, -webkit-transform 500ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transition: background 0ms ease 500ms, opacity 0ms ease 500ms, -webkit-transform 500ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transition: transform 500ms cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0ms ease 500ms, background 0ms ease 500ms;
    transition: transform 500ms cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0ms ease 500ms, background 0ms ease 500ms, -webkit-transform 500ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.quick-wrap.is-active .quick-close-btn {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: -webkit-transform 330ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms;
    transition: -webkit-transform 330ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms;
    transition: transform 330ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms;
    transition: transform 330ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms, -webkit-transform 330ms cubic-bezier(0.215, 0.61, 0.355, 1) 150ms;
    opacity: 1;
}

.quick-close-btn span {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 2px;
    background-color: #fff;
}

.quick-close-btn span:nth-of-type(1) {
    transform: translate(-50%, -50%) rotate(47deg);
    -webkit-transform: translate(-50%, -50%) rotate(47deg);
}

.quick-close-btn span:nth-of-type(2) {
    transform: translate(-50%, -50%) rotate(313deg);
    -webkit-transform: translate(-50%, -50%) rotate(313deg);
}

@-webkit-keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
    }
}

@keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

@-webkit-keyframes bounce {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-15px);
    }
}

#top_btn {
    position: absolute;
    bottom: -100%;
    right: inherit;
    border: 0;
    background: url("../img/top_btn.png") no-repeat center/ 100% auto;
    opacity: 0;
    visibility: hidden;
}

#top_btn:hover {
    border: 0;
    background: url("../img/top_btn.png") no-repeat center/ 100% auto;
    color: inherit;
}

#quick.on #top_btn {
    opacity: 1;
    visibility: visible;
    border: 0;
    background: none;
}

#quick .top_btn01 {
    position: relative;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

#quick.on .top_btn01 {
    display: flex;
}

.top_btn01 svg {
    width: 15px;
    height: 35px;
}

.top_btn01 svg line {
    transition: stroke 0.3s ease;
}

/* ============================================
   스크롤 아이콘 애니메이션
   ============================================ */

.scroll-icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
    outline: none;
}

.scroll-icon-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.scroll-icon-btn:active {
    transform: scale(0.95);
}

.scroll-icon-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   새로운 헤더 드롭다운 메뉴 스타일
   ============================================ */

header {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f5f5f5;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out, max-height 0.5s ease-in-out;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

@media (max-width: 768px) {
    .dropdown-menu {
        display: none;
    }
}

.dropdown-menu > div {
    display: flex;
    justify-content: flex-end;
}

.dropdown-menu .grid {
    
    margin-left: auto;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
}

.dropdown-column {
    border-right: 1px solid #e0e0e0;
    padding-right: 40px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dropdown-menu.active .dropdown-column {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu.active .dropdown-column:nth-child(1) {
    transition-delay: 0.1s;
}

.dropdown-menu.active .dropdown-column:nth-child(2) {
    transition-delay: 0.2s;
}

.dropdown-menu.active .dropdown-column:nth-child(3) {
    transition-delay: 0.3s;
}

.dropdown-menu.active .dropdown-column:nth-child(4) {
    transition-delay: 0.4s;
}

.dropdown-menu.active .dropdown-column:nth-child(5) {
    transition-delay: 0.5s;
}

.dropdown-column:last-child {
    border-right: none;
}

.dropdown-column h3,
.dropdown-column h4 {
    color: #2A1F1B;
    margin-bottom: 20px;
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-column ul li {
    margin-bottom: 12px;
}

.dropdown-column ul li a {
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

#main-nav.menu-active {
    background-color: var(--color-primary);
}

@media (max-width: 767px) {
    #main-nav.menu-active {
        background-color: transparent;
    }
}

.hamburger-menu-btn {
    position: relative;
    display: flex;
    z-index: 10002;
}

.hamburger-menu-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    left: 0;
}

/* 메인 페이지: 기본 primary 컬러 */
.hamburger-menu-btn span:nth-child(1) {
    top: 0;
}

.hamburger-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu-btn span:nth-child(3) {
    bottom: 0;
}

.hamburger-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%);
}

.hamburger-menu-btn.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* 햄버거 메뉴 active 상태일 때 흰색 */
.hamburger-menu-btn.active span {
    background-color: white !important;
}

/* 메뉴 active 상태일 때 로고와 텍스트 흰색 */
#main-nav.menu-active #logo-link img {
    filter: brightness(0) invert(1) !important;
}

#main-nav.menu-active #logo-link p,
#main-nav.menu-active .text-primary,
#main-nav.menu-active .text-primary span {
    color: white !important;
}

/* ============================================
   서브메뉴 스타일
   ============================================ */

.nav-item-with-submenu {
    position: relative;
}

.nav-item-with-submenu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: transparent;
    pointer-events: none;
    z-index: 10001;
}

.nav-item-with-submenu:hover::after {
    pointer-events: auto;
}

.submenu {
    pointer-events: none;
    transform: translateX(-50%) translateY(0);
}

.submenu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: transparent;
    z-index: 10001;
}

.nav-item-with-submenu:hover .submenu,
.submenu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.submenu a {
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.submenu a:first-child {
    border-radius: 8px 8px 0 0;
}

.submenu a:last-child {
    border-radius: 0 0 8px 8px;
}

/* ============================================
   메인 페이지 반응형
   ============================================ */

/* 헤더 */
header {
    z-index: 10001;
}

.header-hamburger {
    display: none !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    position: fixed;
    right: 15px;
    top: 20px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #2A1F1B;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    background-color: white !important;
}

.header-hamburger.active .hamburger-line:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: white !important;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    display: none;
}

@media (max-width: 768px) {
    .mobile-sidebar {
        display: block;
    }
}

.mobile-sidebar.active {
    visibility: visible;
    opacity: 1;
}

.mobile-sidebar-overlay {
    display: none;
}

.mobile-sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    padding-top: 150px;
}

.mobile-sidebar.active .mobile-sidebar-content {
    transform: translateY(0);
}

.mobile-sidebar-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10003;
}

.mobile-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mobile-sidebar-close {
    width: 24px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-sidebar-close span:first-child {
    transform: rotate(45deg);
}

.mobile-sidebar-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 0 20px;
    width: 100%;
}

.mobile-nav-item {
    padding: 0;
    font-size: 20px;
    color: white;
    text-decoration: none;
    border: none;
    transition: opacity 0.3s;
    overflow: hidden;
}

.mobile-nav-item .letter {
    display: inline-block;
    vertical-align: top;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mobile-nav-button {
    padding: 10px 21px;
    background-color: #fff;
    border: none;
    border-radius: 55px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 20px;
}

.mobile-nav-button span {
    color: var(--color-primary);
}

.mobile-nav-item-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-nav-accordion-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    color: white;
    text-align: left;
    width: 100%;
    position: relative;
    transition: opacity 0.3s;
    overflow: hidden;
}


.mobile-submenu {
    width: 100%;
}

.mobile-submenu-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu-accordion.active {
    max-height: 500px;
}

.mobile-submenu-item {
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
    text-align: left;
    display: block;
}

.mobile-submenu-item:hover {
    opacity: 1;
    color: white;
}

.mobile-submenu-divider {
    margin: 12px 0;
}

.mobile-submenu-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0;
}

/* 노트북 */

@media (max-width: 1919px) {
    .main-banner-section .main-banner-text {
        width: 90% !important;
    }
    
    .brand-bg-image {
        width: 550px !important;
        height: 600px !important;
        left: -300px !important;
    }
    
    .swiper-nav-button-prev {
        left: 60px !important;
    }
    
    .swiper-nav-button-next {
        right: 60px !important;
    }

    /* 베타테스트 */
    .beta-notice-box {
        bottom: 2.5rem !important;
        left: 1.5rem !important;
    }
    
    .beta-notice-content {
        padding: 14px 20px !important;
        min-width: 160px !important;
    }
    
    .beta-notice-line1,
    .beta-notice-line2 {
        font-size: 13px !important;
    }
}

/* 태블릿 */

@media (max-width: 1200px) {    
    /* 메인 배너 */
    .main-banner-section {
        height: 600px !important;
    }

    .main-banner-content {
        opacity: 1 !important;
    }

    .main-banner-content-mobile {
        opacity: 1 !important;
    }

    .main-banner-image {
        content: url(../images/m_main_banner.png) !important;
    }

    .mobile-banner-subtitle {
        font-size: 14px !important;
        letter-spacing: 5px !important;
    }

    .mobile-banner-main {
        font-size: 45px !important;
        letter-spacing: 6px !important;
    }

    .main-banner-section .main-banner-text {
        width: 90% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 70px !important;
    }

    .main-banner-section .banner-header-1 {
        font-size: 16px !important;
        margin-bottom: 0 !important;
        order: 1 !important;
    }

    .main-banner-section .main-banner-text .absolute.left-0.top-\[30\%\] {
        top: 55px !important;
    }

    .main-banner-section .main-banner-text .absolute.left-0.top-\[30\%\] p {
        font-size: 18px !important;
    }

    .main-banner-section .banner-header-2 {
        font-size: 16px !important;
        margin-bottom: 0 !important;
    }

    .main-banner-section .main-banner-text .absolute.bottom-\[10\%\] {
        position: relative !important;
        bottom: 96px;
    }

    .main-banner-section .main-banner-text .absolute.bottom-\[10\%\] p {
        font-size: 18px !important;
    }

    .main-banner-section .banner-header-3 {
        font-size: 16px !important;
        margin-bottom: 0 !important;
        order: 5 !important;
    }

    /* 브랜드 섹션 */
    .brand-essential-section .section-container {
        padding-left: 30px !important;
        padding-right: 30px !important;
        gap: 40px !important;
    }
    
    .brand-essential-section .scroll-text-ws {
        padding-top: 100px !important;
    }
    
    .brand-bg-image {
        width: 450px !important;
        height: 500px !important;
        left: -300px !important;
        top: 20% !important;
    }
    
    /* 프로그램 섹션 */
    .swiper-nav-button-prev {
        left: 30px !important;
    }
    
    .swiper-nav-button-next {
        right: 30px !important;
    }
    
    .swiper-slide {
        width: 280px !important;
    }
    
    .swiper-programs .swiper-slide {
        width: 280px !important;
    }
    
    /* 푸터 */
    /* footer 반응형은 HTML에서 Tailwind로 처리 */
}

/* 모바일 */

@media (max-width: 767px) {
    /* 버튼 */
    .btn-primary,
    .btn-white,
    .btn-outline-primary,
    .btn-outline-white {
        padding: 10px 15px !important;
    }
    
    .btn-primary span,
    .btn-white span,
    .btn-outline-primary span,
    .btn-outline-white span {
        font-size: 13px !important;
    }
            
    .brand-essential-section .scroll-text-ws {
        padding-top: 60px !important;
    }
    
    .swiper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .swiper-nav-button-prev {
        left: 10px !important;
        width: 28px !important;
        height: 40px !important;
    }
    
    .swiper-nav-button-next {
        right: 10px !important;
        width: 28px !important;
        height: 40px !important;
    }
    
    .swiper-nav-button img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .swiper-slide {
        width: 280px !important;
    }
    
    .swiper-programs .swiper-slide {
        width: 280px !important;
    }
    
    .swiper-slide img {
        height: 250px !important;
    }
    
    .swiper-slide-text {
        font-size: 16px !important;
        margin-top: 15px !important;
    }
    
    /* 의료진 섹션 */
    .doctors-bg-image {
        width: 400px !important;
        height: 400px !important;
        right: -180px !important;
        top: 34% !important;
    }
    
    .doctors-cards-container {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .doctor-card {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .doctor-card .flex-1 {
        width: 100% !important;
    }
    
    .doctor-info > div:first-child > p:first-child {
        font-size: 22px !important;
    }
    
    .doctor-info > div:first-child > p:last-child {
        font-size: 14px !important;
    }
    
    .doctor-info > div:first-child {
        gap: 12px !important;
    }
    
    .doctor-image {
        width: 100% !important;
        max-width: 327px !important;
        height: auto !important;
        aspect-ratio: 327 / 425 !important;
    }
    
    .doctor-text-image {
        display: none !important;
    }
    
    /* 특별 프로그램 섹션 */
    .special-programs-section {
        padding-top: 70px !important;
        padding-bottom: 60px !important;
    }
    
    .special-programs-section > div{
        gap: 20px !important;
    }
    
    .special-programs-item {
        padding: 0 !important;
    }
    
    .special-programs-item-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 25px 20px !important;
        height: auto !important;
    }
    
    .special-programs-desc {
        width: 100% !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }
    
    .special-programs-hover-text {
        font-size: 20px !important;
    }
    
    /* 유튜브 섹션 */
    .youtube-section {
        padding-top: 60px !important;
        padding-bottom: 50px !important;
    }
    
    .youtube-header-wrapper {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .youtube-section .youtube-header-1,
    .youtube-section .youtube-header-2 {
        font-size: 20px !important;
        letter-spacing: 5px !important;
    }
    
    .youtube-text-wrapper{
        gap: 30px !important;
    }

    .youtube-text-wrapper p  {
        font-size: 16px !important;
    }
    
    .youtube-buttons-wrapper {
        flex-direction: row !important;
        width: 100% !important;
        gap: 5px !important;
    }
    
    .youtube-buttons-wrapper > * {
        flex: 1 !important;
    }
    
    
    .swiper-youtube .swiper-slide {
        width: 300px !important;
        height: 300px !important;
        margin-right: 20px !important;
    }
    
    .youtube-text-box {
        padding: 30px 25px !important;
    }
    
    .youtube-category {
        max-width: 110px !important;
        width: 100% !important;
        height: 35px !important;
        font-size: 12px !important;
    }
    
    .youtube-category img {
        width: 14px !important;
        height: 10px !important;
    }
    
    .youtube-title-text {
        font-size: 18px !important;
        line-height: 28px !important;
        padding-bottom: 30px !important;
    }
    
    .youtube-date-text {
        font-size: 14px !important;
    }
    
    .youtube-date-text img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .swiper-youtube .youtube-scrollbar.swiper-scrollbar-horizontal,
    .swiper-youtube .swiper-scrollbar.swiper-scrollbar-horizontal {
        margin: 30px auto 0 !important;
    }
    
    /* 푸터 */
    footer {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }
    
    footer .section-container {
        padding: 0 20px !important;
    }

    /* 퀵메뉴(탑버튼) - 모바일: 오른쪽 붙임, 아이콘만 */
    .quick-menu {
        bottom: 1.25rem;
        right: 1rem;
    }
    
    .quick-wrap {
        gap: 12px;
        align-items: center;
    }
    
    .quick-wrap > .quick-btn-area,
    .quick-wrap > .top_btn01 {
        margin-right: 0;
        align-self: center;
    }
    
    .quick-button-group {
        width: 44px;
        bottom: calc(44px + 12px);
        left: 50%;
        right: auto;
        margin-left: -22px;
    }
    
    .quick-social-icon .title-wrap .tit {
        display: none;
    }
    
    .quick-social-icon .title-wrap {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        margin-bottom: 8px;
        justify-content: center;
        border-radius: 50%;
    }
    
    .quick-social-icon .icon-social {
        width: 22px;
        height: 22px;
    }
    
    .quick-btn-area,
    .quick-btn-area .quick-bg,
    .chatbot_button_icon,
    .quick-close-btn {
        width: 44px;
        height: 44px;
    }

    /* 닥터 학회 */
    .doctor-societies-desktop {
        display: none !important;
    }
    
    /* 베타테스트 */
    .beta-notice-box {
        bottom: 100px !important;
        left: 15px !important;
    }
    
    .beta-notice-content {
        padding: 12px 18px !important;
        min-width: 150px !important;
        border-radius: 15px !important;
    }
    
    .beta-notice-line1,
    .beta-notice-line2 {
        font-size: 12px !important;
    }
}

/* 작은 모바일 */

@media (max-width: 480px) {
    .section-container {
        padding: 0 15px !important;
    }
    
    .quick-button-group {
        width: 40px;
        bottom: calc(40px + 10px);
        left: 50%;
        right: auto;
        margin-left: -19px;
    }
    
    .quick-social-icon .title-wrap {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-bottom: 6px;
    }
    
    .quick-social-icon .icon-social {
        width: 20px;
        height: 20px;
    }
    
    .quick-btn-area,
    .quick-btn-area .quick-bg,
    .chatbot_button_icon,
    .quick-close-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* top_btn01 - 웹 스타일 유지 */

    .main-banner-section .banner-header-1,
    .main-banner-section .banner-header-2,
    .main-banner-section .banner-header-3 {
        font-size: 14px !important;
    }
    
    .banner-text-animate .letter {
        margin-right: 0
    }
    
    .brand-essential-section .scroll-text-item {
        font-size: 30px !important;
    }
    
    .swiper-slide {
        width: 240px !important;
    }
    
    .swiper-programs .swiper-slide {
        width: 240px !important;
    }
    
    .swiper-slide img {
        height: 220px !important;
    }
    
    .swiper-youtube .swiper-slide {
        width: 280px !important;
        height: 280px !important;
    }
    
    .youtube-text-box {
        padding: 25px 20px !important;
    }
    
    .youtube-category {
        max-width: 100px !important;
        width: 100% !important;
        height: 32px !important;
        font-size: 11px !important;
    }
    
    .youtube-category img {
        width: 12px !important;
        height: 9px !important;
    }
    
    .youtube-title-text {
        font-size: 16px !important;
        line-height: 24px !important;
        padding-bottom: 25px !important;
    }
    
    .youtube-date-text {
        font-size: 12px !important;
    }
    
    .youtube-date-text img {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* 팝업 */
    .main-popup-sect.popup-modal.active {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .popup-container {
        width: 90% !important;
        max-width: 400px !important;
        max-height: 85vh !important;
        border-radius: 20px !important;
        margin: 0 auto !important;
    }
    
    .popup-footer span {
        font-size: 12px !important;
    }
    
    .popup-tab-btn {
        font-size: 11px !important;
    }
    
    /* 베타테스트 */
    .beta-notice-box {
        bottom: 100px !important;
        left: 15px !important;
    }
    
    .beta-notice-content {
        padding: 12px 18px !important;
        min-width: 150px !important;
        border-radius: 15px !important;
    }
    
    .beta-notice-line1,
    .beta-notice-line2 {
        font-size: 12px !important;
    }
}

/* ============================================
   고민별 맞춤 프로그램 섹션
   ============================================ */

.custom-programs-section {
    padding: 80px 0 60px;
}

.custom-programs-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.custom-programs-header-wrapper {
    margin-bottom: 40px;
}

.custom-programs-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.custom-programs-desc {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.5;
}

/* 탭 메뉴 */
.custom-tabs {
    position: relative;
    z-index: 20;
    margin-bottom: 24px;
}

.custom-tabs-list {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-tabs-list::-webkit-scrollbar {
    display: none;
}

.custom-tab-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 16px;
    padding-top: 0;
    font-size: 16px;
    font-weight: 500;
    color: #a3a3a3;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.custom-tab-btn:hover {
    color: var(--color-primary);
}

.custom-tab-btn.active {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom-color: var(--color-primary);
}

/* 탭 패널 */
.custom-tabs-content {
    position: relative;
}

.custom-tab-panel {
    display: none;
}

.custom-tab-panel.active {
    display: block;
}

/* 카드 스와이퍼 */
.custom-programs-swiper {
    overflow: visible;
}

.custom-programs-swiper .swiper-wrapper {
    margin-bottom: 32px;
}

.custom-programs-swiper .swiper-slide {
    width: 320px;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

/* 카드 스타일 */
.custom-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin-top: 12px;
    min-height: 180px;
    height: auto;
    border:1px solid #E5E5E5;
    padding: 24px 16px 16px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.custom-programs-swiper .swiper-slide .custom-card {
    width: 100%;
}

.custom-card-options {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.custom-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-card-desc {
    font-size: 16px;
    font-weight: 500;
    color: #a3a3a3;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.custom-card-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: auto;
}

.custom-card-discount {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
}

.custom-card-price-value {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
}

.custom-card-price-suffix {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.5;
    margin-top: 2px;
}

/* 스와이퍼 네비게이션 */
.custom-swiper-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    opacity: 0.7;
    margin-top: 16px;
}

.custom-swiper-prev,
.custom-swiper-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #817F7D;
    background: none;
    cursor: pointer;
    color: var(--color-primary);
    opacity: 0.7;
    transition: background-color 0.3s ease;
}

.custom-swiper-prev:hover,
.custom-swiper-next:hover {
    background-color: rgba(143, 115, 101, 0.15);
}

@media screen and (max-width: 1024px) {
    .custom-programs-section {
        padding: 60px 20px 40px;
    }
}
/* 고민별 맞춤 프로그램 모바일 반응형 */
@media screen and (max-width: 768px) {
    .custom-programs-section {
        padding: 0;
    }
    
    .custom-programs-container {
        padding: 0 20px;
    }
    
    .custom-programs-title {
        font-size: 18px;
    }
    
    .custom-programs-desc {
        font-size: 15px;
    }
    
    .custom-tab-btn {
        font-size: 13px;
        padding: 10px 12px;
        padding-top: 0;
    }
    
    .custom-programs-swiper {
        padding: 0 20px;
        margin: 0 -20px;
        touch-action: pan-y;
    }
    
    .custom-programs-swiper .swiper-slide {
        width: 80%;
        min-width: unset;
        padding: 0 8px;
    }
    
    .custom-card {
        height: auto;
        min-height: 200px;
    }
    
    .custom-card-options {
        font-size: 12px;
    }
    
    .custom-card-title {
        font-size: 16px;
    }
    
    .custom-card-desc {
        font-size: 15px;
    }
    
    .custom-card-discount {
        font-size: 17px;
    }
    
    .custom-card-price-value {
        font-size: 17px;
    }
    
    .custom-card-price-suffix {
        font-size: 15px;
    }
    
    .custom-swiper-nav {
        display: none;
    }
}

/* ============================================
   인스타그램 섹션
   ============================================ */

.instagram-section {
    padding: 190px 0;
    background-image: url('../images/insta_banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.instagram-container {
    display: flex;
    gap: 32px;
    padding-left: 56px;
    padding-right: 68px;
    max-width: 1600px;
    margin: 0 auto;
}

/* 왼쪽 텍스트 영역 */
.instagram-info {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instagram-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instagram-title {
    font-size: 27px;
    font-weight: 500;
    font-family: 'BonmyeongjoSourceHanSerif', serif;
    color: var(--color-primary);
    line-height: 1.5;
}

.instagram-desc {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.7;
}

.instagram-follow-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
}

.instagram-handle {
    font-size: 20px;
    font-weight: 500;
    font-family: 'BonmyeongjoSourceHanSerif', serif;
    color: var(--color-primary);
    line-height: 1.5;
}

.instagram-follow-btn {
    background-color: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: background-color 0.3s ease;
}

.instagram-follow-btn:hover {
    background-color: #000;
}

/* Elfsight "Free Instagram Feed Widget" 브랜딩 숨김 */
a[href*="utm_campaign=free-widget"],
.instagram-section a[href*="elfsight"],
.instagram-section a[href*="instagram-feed-instashow"],
.instagram-slider-wrapper a[href*="elfsight"],
.instagram-slider-wrapper a[href*="instagram-feed-instashow"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Elfsight 위젯 툴바 숨김 */
.eapps-widget-toolbar-panel-views,
.eapps-widget-toolbar-panel-views-green,
[class*="eapps-widget-toolbar-panel"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Elfsight 위젯 / placeholder */
.instagram-embed-wrapper {
    flex: 1;
    min-width: 0;
}
.instagram-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
}
.instagram-direct-link {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}
.instagram-direct-link:hover {
    text-decoration: underline;
    color: #000;
}

/* 오른쪽 슬라이더 영역 */
.instagram-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.instagram-swiper {
    overflow: visible;
    width: 100%;
}

.instagram-swiper .swiper-slide {
    width: 220px;
    height: 293px;
    flex-shrink: 0;
    padding: 0 6px;
    box-sizing: border-box;
}

/* 카드 스타일 */
.instagram-card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-card:hover img {
    transform: scale(1.05);
}

.instagram-card-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

/* 네비게이션 버튼 */
.instagram-swiper-next {
    position: absolute;
    right: -32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: #fff;
    cursor: pointer;
    color: var(--color-primary);
    opacity: 0.7;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.instagram-swiper-next:hover {
    background-color: rgba(143, 115, 101, 0.15);
}

/* 인스타그램 모바일 반응형 */
@media screen and (max-width: 1024px) {
    .instagram-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }
    
    .instagram-info {
        width: 100%;
    }
    
    .instagram-slider-wrapper {
        width: 100%;
    }
    
    .instagram-swiper-next {
        right: 0;
    }
}

@media screen and (max-width: 768px) {
    .instagram-section {
        padding: 60px 0 80px;
    }
    
    .instagram-title {
        font-size: 18px;
    }
    
    .instagram-desc {
        font-size: 15px;
    }
    
    .instagram-swiper .swiper-slide {
        width: 140px;
        height: 220px;
    }
    
    .instagram-swiper-next {
        display: none;
    }
}

/* ============================================
   Scroll Text Section
   ============================================ */

.scroll-text-section {
    width: 100%;
    overflow: hidden;
    padding: 35px 0;
}

@media (max-width: 767px) {
    .scroll-text-section {
        padding: 20px 0;
    }
}

.scroll-text-wrapper {
    width: 100%;
    overflow: hidden;
}

.scroll-text-content {
    display: flex;
    width: fit-content;
}

.scroll-text-item {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-text 20s linear infinite;
    padding-right: 50px;
    height: auto;
}

@media (max-width: 767px) {
    .scroll-text-item {
        display: none;
    }
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Brand Section
   ============================================ */

.brand-section {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.brand-container {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.brand-left {
    flex: 1.5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-right {
    flex: 1;
    background-image: 
        linear-gradient(rgba(42, 31, 27, 0.5), rgba(42, 31, 27, 0.5)),
        url(../images/bg.png);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 400px;
    text-align: center;
}

.brand-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: center;
}

.brand-title span {
    font-size: 28px;
    font-weight: 500;
    font-family: 'BonmyeongjoSourceHanSerif', serif;
    color: #fff;
    line-height: 1.4;
}

.brand-desc {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    line-height: 1.8;
    margin: 0;
}

.brand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    background-color: #fff;
    border: 1px solid #2A1F1B;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin: 0 auto;
}

.brand-btn:hover {
    background-color: #000;
}

.brand-btn:hover span{
    color: #fff;
}

.brand-btn span {
    font-size: 15px;
    font-weight: 700;
    color: #2A1F1B;
    line-height: 1;
}

.brand-container {
    max-width: 1920px;
}

@media (max-width: 1024px) {
    .brand-title span {
        font-size: 24px;
    }
    
    .brand-desc {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .brand-section {
        padding: 0;
    }
    
    .brand-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .brand-left {
        flex: 1;
        padding: 0;
        height: 300px;
    }
    
    .brand-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .brand-right {
        flex: 1;
        padding: 40px 20px;
    }
    
    .brand-content {
        max-width: 100%;
        gap: 20px;
    }
    
    .brand-title span {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .brand-desc {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .brand-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .brand-btn span {
        font-size: 14px;
    }
}

/* ============================================
   4 Word Section
   ============================================ */

.four-word-section {
    padding: 150px 0 120px;
    position: relative;
}

.four-word-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    margin-bottom: 120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 120px;
}

@media (max-width: 1024px) {
    .four-word-header {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .four-word-section {
        padding: 80px 0 100px;
    }
    
    .four-word-header {
        margin-bottom: 40px;
        gap: 20px;
    }
}

.four-word-swiper {
    padding-top: 30px;
    position: relative;
    overflow: visible!important;
}

.four-word-swiper .swiper-wrapper {
    display: flex;
    align-items: flex-start;
}

.four-word-swiper .swiper-slide {
    height: 700px;
    padding: 100px 110px;
    border-radius: 60px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (max-width: 1200px) and (min-width: 769px) {
    .four-word-swiper .swiper-slide {
        width: 100%!important;
        height: 500px!important;
        padding: 5% 6%!important;
    }
}

.four-word-swiper .swiper-slide-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .four-word-swiper .swiper-slide {
        opacity: 1 !important;
    }
}

.four-word-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.four-word-slide-01 .four-word-bg {
    background: url(../images/image_special01.png) 50% 50% / cover no-repeat;
}

.four-word-slide-02 .four-word-bg {
    background: url(../images/image_special02.png) 50% 50% / cover no-repeat;
}

.four-word-slide-03 .four-word-bg {
    background: url(../images/image_special03.png) 50% 50% / cover no-repeat;
}

.four-word-bg.bg-animate {
    animation: sub_top_view_bg 5s ease-in-out forwards;
}

.four-word-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.four-word-right-title {
    flex: 0 0 auto;
    max-width: 50%;
    color: #fff;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
    gap: 15px;
}

.four-word-right-title h1 {
    font-size: 50px;
    margin: 0;
    font-family: 'BonmyeongjoSourceHanSerif', serif;
    font-weight: 100;
    text-align: left;
    width: 100%;
}

.four-word-right-title p {
    margin: 0;
    text-align: left;
    width: 100%;
}

.four-word-subtitle {
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.four-word-desc {
    font-size: 20px;
    line-height: 1.5;
}

@keyframes sub_top_view_bg {
    0% {
        transform: perspective(500px) scale(1.05) rotate(0.001deg) translateZ(0);
    }
    100% {
        transform: perspective(500px) scale(1) rotate(0.001deg) translateZ(0);
    }
}

/* 반응형 */

@media (max-width: 767px) {
    .four-word-section {
        padding: 60px 20px 10px;
    }
    
    .four-word-swiper {
        padding-top: 20px;
        position: relative;
        overflow: hidden !important;
        touch-action: pan-y;
    }
    
    .four-word-swiper .swiper-slide {
        width: 100% !important;
        height: 350px !important;
        padding: 0!important;
        opacity: 1 !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .four-word-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }
    
    .four-word-right-title {
        flex: 0 0 auto;
        max-width: 100%;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
        margin-left: auto;
        margin-top: auto;
        padding: 20px;
        padding-bottom: 40px;
        gap: 12px;
    }
    
    .four-word-right-title h1 {
        font-size: 24px;
        font-weight: 400;
        margin: 0;
        line-height: 1.2;
    }
    
    .four-word-subtitle {
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
        margin: 0;
    }
    
    .four-word-desc {
        font-size: 12px;
        line-height: 1.6;
        margin: 0;
    }
}