@charset "utf-8";

/* Multi-language Font System */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:wght@400;700&display=swap');

/* Global Reset & Base */
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Language-specific Font Overrides */
body.lang-CN, body.lang-CN *, 
body.lang-cn, body.lang-cn *,
html[lang="cn"], html[lang="cn"] *,
html[lang="zh-CN"], html[lang="zh-CN"] * {
    font-family: 'Noto Sans SC', sans-serif !important;
}

body.lang-JP, body.lang-JP *,
body.lang-jp, body.lang-jp *,
html[lang="jp"], html[lang="jp"] * {
    font-family: 'Noto Sans JP', sans-serif !important;
}

/* Font Awesome Icon Exception: Restore FA font regardless of language override */
body.lang-CN i[class*="fa-"],
body.lang-cn i[class*="fa-"],
html[lang="cn"] i[class*="fa-"],
html.lang-CN i[class*="fa-"],
html.lang-cn i[class*="fa-"],
body.lang-JP i[class*="fa-"],
body.lang-jp i[class*="fa-"],
html[lang="jp"] i[class*="fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'FontAwesome' !important;
}

/* Language-specific UI Hiding Rules */
body.lang-CN #mainEventSection,
body.lang-cn #mainEventSection,
html[lang="cn"] #mainEventSection {
    display: none !important;
}

/* Language-specific UI Fixes (Moved from i18n.js) */
body.lang-EN #main-visual-overlay {
    display: none !important;
}
body.lang-EN .intro-content p,
body.lang-EN .highlight-box,
body.lang-EN .highlight-box h3,
body.lang-EN .highlight-box p {
    text-align: center !important;
    word-break: keep-all !important;
}
body.lang-EN .highlight-box {
    border-left: none !important;
    border-top: 5px solid #a9a298 !important;
}
body.lang-EN .consultation-title {
    font-family: 'Noto Sans KR', sans-serif !important;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header Top Row (Login | Logo | Menu) */
.header-top {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    background-color: #fff;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.header-left .divider {
    margin: 0 10px;
    color: #ddd;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    /* Standardized size */
    width: auto;
    filter: invert(72%) sepia(8%) saturate(488%) hue-rotate(352deg) brightness(91%) contrast(88%);
}

/* Category Menu Toggle Icon */
.category-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 17px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.category-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #a9a298;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.category-menu-toggle:hover span:nth-child(2) {
    width: 70%;
}

/* Header Nav Row (Sticky Navigation) */
.header-nav {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    width: 100%;
}

.header-nav.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.gnb>ul {
    display: flex;
    justify-content: center;
    gap: 50px;
    list-style: none;
}

.gnb>ul>li {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
}

.gnb>ul>li>a {
    font-size: 16px;
    font-weight: 500;
    color: #a9a298;
    padding: 0 10px;
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

.gnb>ul>li:hover>a {
    color: #a9a298;
    transform: scale(1.05);
}

.gnb>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    /* Adjusted to be below text */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #a9a298;
    transition: width 0.3s;
}

.gnb>ul>li:hover>a::after {
    width: 100%;
}

/* Dropdown Menu (Desktop) */
.depth2 {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #eee;
    border-top: none;
    min-width: 180px;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) translateX(-50%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px 0;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.gnb>ul>li:hover .depth2 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

.depth2 li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.depth2 li a:hover {
    color: #a9a298;
    background-color: #fcfcfc;
    font-weight: 500;
}

/* 3rd Level Menu (Depth3) */
.depth2 li {
    position: relative;
}

.depth3 {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    border: 1px solid #eee;
    min-width: 180px;
    list-style: none;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 100;
}

.depth2 li:hover .depth3 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.depth3 li a {
    padding: 10px 20px;
}

/* Category Slide-out Menu */
.category-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.category-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Category Menu Slide-out Panel */
.category-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 2100;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.category-menu.active {
    right: 0;
}

.category-menu-header {
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #f5f5f5;
}

.category-menu-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.category-menu-content {
    padding: 20px 30px;
}

/* Slide Menu Items */
.slide-gnb {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide-gnb>li {
    border-bottom: 1px solid #f5f5f5;
}

.slide-gnb>li>a {
    display: block;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.slide-gnb>li>a:hover {
    background-color: #f9f9f9;
    color: #a9a298;
}

.slide-depth2 {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.slide-gnb>li:hover .slide-depth2 {
    max-height: 500px;
}

.slide-depth2 li a {
    display: block;
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.slide-depth2 li a:hover {
    color: #a9a298;
    background-color: #fff;
}

/* Slide 3rd Level Menu (Slide-Depth3) */
.slide-depth3 {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #efefef;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.slide-depth2 li.active .slide-depth3 {
    max-height: 1000px;
    padding-bottom: 10px;
}

.slide-depth3 li a {
    display: block;
    padding: 10px 20px 10px 60px;
    font-size: 13px;
    color: #777;
    transition: all 0.2s;
}

.slide-depth3 li a:hover {
    color: #a9a298;
    background-color: #f5f5f5;
}

/* Toggle Arrow for Slide Menu */
.has-depth3>a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.has-depth3>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    transition: transform 0.3s;
}

.has-depth3.active>a::after {
    transform: rotate(180deg);
}

/* Main Visual Banner */
.main-visual {
    position: relative;
    height: 600px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

/* Animated Background Layer */
.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('이미지/AI_Generated/plastic_surgery_main.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: center center;
    animation: slowZoom 20s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 0;
}

/* Gradient Overlay */
.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(169, 162, 152, 0.65) 0%, rgba(193, 186, 176, 0.45) 100%);
    animation: gradientPulse 10s ease-in-out infinite alternate;
    z-index: 1;
}

/* Zoom Animation */
@keyframes slowZoom {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.3);
    }
}

/* Gradient Pulse Animation */
@keyframes gradientPulse {
    0% {
        opacity: 0.65;
    }

    100% {
        opacity: 0.45;
    }
}

.visual-text {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.visual-text h2 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.visual-text p {
    font-size: 20px;
    color: #fff;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

/* Swiper Override for Main Visual */
.swiper-main-visual {
    width: 100%;
    height: 100%;
}

.swiper-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    opacity: 1;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Popup Overlay & Content */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #fff;
    width: 400px;
    max-width: 90%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.popup-footer {
    display: flex;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.popup-close-today, .popup-close-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    color: #666;
    transition: background 0.2s;
}

.popup-close-today {
    border-right: 1px solid #eee;
}

.popup-close-today:hover, .popup-close-btn:hover {
    background: #f9f9f9;
    color: #333;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.section-title p {
    font-size: 16px;
    color: #888;
}

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    justify-items: center;
    /* Center cards */
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-img {
    height: 200px;
    background-color: #ddd;
    overflow: hidden;
}

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

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

.card-text {
    padding: 20px;
    text-align: center;
}

.card-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.card-text p {
    font-size: 14px;
    color: #888;
}

/* Signature Section → Customized Programs (Interactive) */
.ba-interactive-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1020px;
    margin: 0 auto;
}

.ba-display-area {
    flex: 1.8;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ba-main-text-group {
    padding: 20px 0 30px;
    text-align: center;
    transition: background-color 0.3s;
}

.ba-main-text-group:hover {
    background-color: #f9f9f9;
}

.ba-main-text {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ba-sub-text {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* Right Gallery Section */
.ba-gallery-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ba-gallery-header {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 5px;
}

.btn-more-ba {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-more-ba:hover {
    color: #a9a298;
}

.ba-img-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #eee;
}

.ba-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.ba-gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
}

.ba-gallery-item {
    display: flex;
    flex-direction: column;
    padding: 2px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ba-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ba-gallery-item.active {
    border: 2px solid #a9a298;
    padding: 1px;
    /* 테두리 두께만큼 패딩 조절 */
}

.ba-thumb {
    width: 100%;
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
}

.ba-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .ba-interactive-wrapper {
        flex-direction: column;
    }

    .ba-gallery-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .ba-gallery-item {
        flex: 0 0 160px;
    }
}

/* Footer */
footer {
    background-color: #a9a298;
    color: #fff;
    padding: 60px 0;
    font-size: 14px;
    font-weight: 300;
    margin-top: 40px;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer h2,
footer h3,
footer p,
footer a {
    color: #fff !important;
}

footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
}

footer .footer-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #fff;
    letter-spacing: 1px;
}

footer .footer-sns {
    display: flex;
    gap: 15px;
}

footer .footer-sns a {
    color: #fff;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

footer .footer-sns a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

footer .footer-middle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

footer .footer-info-group h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    display: inline-block;
}

footer .tel {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

footer .footer-reserve-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

footer .footer-reserve-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

footer .footer-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: underline;
    color: #fff;
}

footer .footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    footer .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    footer .footer-middle {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer .footer-info-group h3 {
        display: block;
    }
}

footer .footer-info-group p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

footer .footer-info-group .time {
    font-size: 13px;
    line-height: 1.8;
}

footer .footer-info-group .closed {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -10px;
    margin-bottom: 15px;
}

.business-info {
    margin-top: 25px !important;
    font-size: 10px !important;
    opacity: 0.7 !important;
    line-height: 1.1 !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.business-info p {
    margin-bottom: 0px !important;
    color: inherit !important;
    font-size: inherit !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links .divider {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   AUTHENTICATION PAGES
   ======================================== */
.auth-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: #a9a298;
    outline: none;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background-color: #a9a298;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    background-color: #8c867e;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.auth-links a:hover {
    color: #a9a298;
    text-decoration: underline;
}

/* Terms Section */
.terms-section {
    margin-bottom: 30px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.terms-box {
    height: 150px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #a9a298;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
}

/* Enhanced Auth Form Styles */
.section-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.section-label:first-of-type {
    margin-top: 0;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input {
    flex: 1;
}

.btn-check {
    padding: 0 15px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.btn-check:hover {
    background-color: #333;
}

.email-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-group input {
    flex: 1;
}

.email-group select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.address-group input {
    width: 100%;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .gnb>ul {
        gap: 30px;
    }

    .gnb>ul>li>a {
        font-size: 15px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 0;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {

    /* Header */
    header {
        height: 60px;
    }

    .header-top {
        height: 60px;
        border-bottom: none;
    }

    .header-nav {
        display: none;
        /* Hide horizontal nav on mobile */
    }

    .header-left {
        display: none;
        /* Hide login/signup on mobile header */
    }

    .logo img {
        max-height: 35px;
    }

    /* Category Menu (Mobile Full Width) */
    .category-menu {
        width: 100%;
        right: -100%;
    }

    /* Main Visual */
    .main-visual {
        margin-top: 0;
        height: 60vh;
    }

    .visual-text h2 {
        font-size: 32px;
    }

    .visual-text p {
        font-size: 16px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }

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

    /* Auth Pages */
    .auth-container {
        margin: 60px 20px;
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1020px;
    margin: 0 auto;
}

.signature-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    background: #fff;
    border: 1px solid #eee;
}

.signature-card:hover {
    transform: translateY(-10px);
}

.sig-img {
    height: 300px;
    overflow: hidden;
}

.sig-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.sig-text {
    padding: 40px 30px;
    text-align: center;
}

.sig-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sig-text h4 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.btn-view {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-view:hover {
    background-color: #a9a298;
    border-color: #a9a298;
    color: #fff;
}

@media (max-width: 768px) {
    .signature-grid {
        grid-template-columns: 1fr;
    }

    .sig-img {
        height: 250px;
    }
}

/* Event Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-title.text-left {
    text-align: left;
    margin-bottom: 0;
}

.btn-more {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.btn-more:hover {
    color: #a9a298;
    border-bottom-color: #a9a298;
}

/* Event Section Container */
.event-slider-container {
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
}

.event-more {
    position: absolute;
    top: -70px;
    right: 0;
    z-index: 5;
}

/* Event List Container */
.event-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 0;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f8f8f8;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.event-text {
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-text h4 {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: keep-all;
}

.event-text p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .event-list {
        grid-template-columns: 1fr;
    }

    .event-img {
        height: 250px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Event Page Styles */
.page-header {
    background: linear-gradient(135deg, #a9a298 0%, #c1bab0 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }
}

/* 3rd Level Menu CSS */
.gnb .depth3 {
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    background-color: #fff;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-left: 1px solid #f5f5f5;
}

.gnb .depth2>li:hover>.depth3 {
    opacity: 1;
    visibility: visible;
}

.gnb .depth3 li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.gnb .depth3 li a:hover {
    color: #a9a298;
    background-color: #f9f9f9;
}

/* Mobile 3rd Level Menu */
.slide-depth3 {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.has-depth3.active .slide-depth3 {
    max-height: 500px;
}

.slide-depth3 li a {
    display: block;
    padding: 10px 20px 10px 60px;
    font-size: 13px;
    color: #888;
}

.has-depth3>a {
    position: relative;
}

.has-depth3>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.has-depth3.active>a::after {
    transform: translateY(-50%) rotate(180deg);
}
/* Hospital Introduction Page (info.html) */
.info-hero {
    background-color: #fcfcfc;
    padding: 120px 0 80px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.info-hero .sub-title {
    font-size: 14px;
    color: #a9a298;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.info-hero h2 {
    font-size: 42px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    line-height: 1.2;
}

.info-hero .hero-desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    word-break: keep-all;
}

.info-features {
    padding: 100px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.feature-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.feature-item:hover .feature-img img {
    transform: scale(1.05);
}

.feature-text {
    flex: 1;
}

.feature-no {
    font-size: 60px;
    font-weight: 800;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: -20px;
    display: block;
}

.feature-text h3 {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.feature-text h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #a9a298;
}

.feature-item:nth-child(even) .feature-text h3::after {
    left: auto;
    right: 0;
}

.feature-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    word-break: keep-all;
}

@media (max-width: 991px) {
    .feature-item {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 80px;
    }
    .feature-text {
        text-align: center;
    }
    .feature-text h3::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
    .info-hero h2 {
        font-size: 32px;
    }
    .info-hero .hero-desc {
        font-size: 16px;
    }
}

/* Advanced Animations for info.html */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
    opacity: 0;
}

.animate-fade-up.active {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
}

.animate-fade-left.active {
    animation: fadeInLeft 1s ease forwards;
}

.animate-fade-right {
    opacity: 0;
}

.animate-fade-right.active {
    animation: fadeInRight 1s ease forwards;
}

/* Staggered Delays */
.delay-1 { animation-delay: 0.2s !important; }
.delay-2 { animation-delay: 0.4s !important; }
.delay-3 { animation-delay: 0.6s !important; }

.feature-text h3, .feature-text p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.feature-item.reveal .feature-text h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.feature-item.reveal .feature-text p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Responsive Line Break Utilities */
@media (min-width: 769px) {
    .mo-br { display: none !important; }
}
@media (max-width: 768px) {
    .pc-br { display: none !important; }
}

/* Header & Footer Standardized Layout Rules */
#header-placeholder {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1100 !important;
    min-height: 160px; /* Desktop height */
    background: #fff;
}
@media (max-width: 768px) {
    #header-placeholder {
        min-height: 60px; /* Mobile height */
    }
}

#footer-placeholder {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px; /* Standard fallback height to prevent layout jumps */
}




/* Fix CJK word wrapping */
body.lang-jp, body.lang-jp *, 
body.lang-cn, body.lang-cn * {
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* Balance text wrapping for hero elements */
.hero-content h1, .hero-content p { text-wrap: balance !important; }


/* Mobile Image Cropping Fix */
@media (max-width: 768px) {
    .procedure-img-wrap, .body-img-wrap, .process-img-wrap, .technique-img-wrap, 
    .core-img-wrap, .type-img-wrap, .feature-img-wrap, .peeling-img-wrap, .event-img,
    .depth-card img, .tilt-card img, .method-card img {
        height: auto !important;
    }
    .procedure-img-wrap img, .body-img-wrap img, .process-img-wrap img, .technique-img-wrap img, 
    .core-img-wrap img, .type-img-wrap img, .feature-img-wrap img, .peeling-img-wrap img, .event-img img {
        height: auto !important;
        position: relative !important;
        object-fit: contain !important;
    }
}

/* 다국어 모바일 줄바꿈 최적화 (요청사항 반영) */
@media (max-width: 768px) {
    body, div, p, span, h1, h2, h3, h4, h5, h6, li, a {
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }
    html[lang="en"] body, .lang-en, body.lang-EN, body.lang-en, body.lang-EN * {
        word-break: normal !important;
    }
}
