/* =================================== */
/*         BASE & DESKTOP STYLES       */
/* =================================== */

/* General Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    color: #333;
    background-color: #ffffff;
    word-break: keep-all; /* 단어 단위로 줄바꿈 */
}

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

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0 5%;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50; /* Midnight Blue */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 25px;
    font-weight: 700;
    position: relative; /* 추가 */
}

.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 180px;
}



.nav-links .has-sub:hover .sub-menu {
    display: block;
}

.nav-links .sub-menu li {
    margin: 0;
}

.nav-links .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-weight: normal;
    white-space: nowrap;
}

.nav-links .sub-menu a:hover {
    background-color: #f0f0f0;
    color: #c0392b;
}

.nav-links a:hover {
    color: #c0392b; /* Pomegranate */
}

.auth-links a {
    margin-left: 20px;
    font-size: 14px;
}

.nav-links .mobile-only {
    display: none;
}

.mobile-break {
    display: none;
}

/* Burger Menu (Hidden on Desktop) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    padding-top: 80px; /* Header height */
}

/* Hero Section */

/* --- DESKTOP STYLES (screens > 480px) --- */
.hero {
    background: url('../images/hypInedx-en2.png') no-repeat center center/contain;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    width: 65%;
    margin: 0 auto;
    padding-top: 100px;
}

.hero-text-mobile {
    display: none; /* 모바일용 텍스트는 데스크톱에서 숨김 */
}

.hero-text-desktop {
    display: block; /* 데스크톱용 컨테이너는 표시 */
}


/* --- MOBILE STYLES (screens <= 480px) --- */
@media (max-width: 480px) {
    .hero {
        background: url('../images/hypInedx-en2-mobile.png') no-repeat center top / contain;
        background-size: 100% auto;
        padding-top: 100px;
        padding-bottom: 20px;
        width: 100%;
        margin: 0;
        min-height: 50vh;
        height: auto;
    }
     /* 내부 텍스트 컨테이너 완전 숨김 */
    .hero-text-desktop,
    .hero-text-mobile {
        display: none !important;
    }

    /* 데스크톱용 기존 버튼 숨김 (있으면) */
    .hero-text-desktop .cta-button,
    .hero-text-mobile .cta-button {
        display: none !important;
    }

    .sub-page-container {
        padding: 10px 5px; /* 패딩 더 줄임 */
    }
    
    .sub-page-content {
        padding: 30px 5px; /* 패딩 더 줄임 */
    }
    
    .session-detail-header {
        padding: 15px 10px; /* 패딩 더 줄임 */
    }
    
    .session-detail-header h3 {
        font-size: 20px; /* 글자 크기 줄임 */
        word-break: keep-all; /* 단어 단위로 줄바꿈 */
    }
    
    .session-detail-body {
        padding: 15px 10px; /* 패딩 더 줄임 */
    }
    
    .session-detail-body p,
    .session-detail-body li {
        font-size: 15px; /* 글자 크기 줄임 */
    }

    /* 카드 스타일 추가 조정 */
    .content-grid {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

    .content-grid img {
        width: 120px !important;
        height: 120px !important;
    }

    .content-grid h3 {
        font-size: 20px;
    }

    .content-grid p {
        font-size: 15px;
        padding: 0 10px;
    }

    .content-grid .cta-button {
        width: 90%;
        font-size: 16px;
    }

    /* content-section 조정 */
    .content-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

}
/* 기본 스타일 (모든 화면) */
.hero-mobile-cta {
    display: block !important;
    padding: 12px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    background: #c0392b !important;
    border: none !important;
    border-radius: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    width: fit-content !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2) !important;
}

/* 데스크탑 (481px 이상) - 여기서 위치 조절 */
@media (min-width: 481px) {
    .hero-mobile-cta {
        margin: -77px auto 40px !important;  /* ← 데스크탑 위치 조절: 첫 번째 값 변경 */
    }
}

/* 모바일 (480px 이하) - 여기서 위치 조절 */
@media (max-width: 480px) {
    .hero-mobile-cta {
        margin: -330px auto 30px !important;  /* ← 모바일 위치 조절: 첫 번째 값 변경 */
    }
}

.cta-button {
    display: inline-block;
    background-color: #c0392b; /* Pomegranate */
    color: white !important;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e74c3c; /* Alizarin */
    transform: translateY(-3px);
}



/* Intro Section */
.intro {
    padding: 5px 5%;
    text-align: center;
    background-color: #f8f9fa;
}

.intro h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.intro-content img {
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-content p {
    font-size: 18px;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 10px 5%;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    width: 350px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
    text-align: left;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 16px;
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter {
    background-color: #2c3e50; /* Midnight Blue */
    color: white;
    padding: 70px 5%;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    width: 300px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    background-color: #f1c40f; /* Sunflower */
    color: #2c3e50;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #f39c12; /* Orange */
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 50px 5%;
    text-align: center;
}

/* =================================== */
/*         SUB-PAGE STYLES             */
/* =================================== */

.sub-page-container {
    padding: 10px 5%;
}

.sub-page-hero {
    background-color: #f8f9fa;
    padding: 10px 5%;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 8px;
}

.sub-page-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 1px 1px 0px #ffffff, 2px 2px 0px #e0e0e0, 3px 3px 5px rgba(0,0,0,0.1);
}

.sub-page-hero p {
    font-size: 18px;
    color: #555;
    text-shadow: 1px 1px 0px #ffffff, 2px 2px 0px #e0e0e0, 3px 3px 5px rgba(0,0,0,0.1);
}


.sub-page-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

.sub-page-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.sub-page-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #34495e;
    margin-top: 40px;
    margin-bottom: 20px;
}

.sub-page-content p, .sub-page-content li {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}

.sub-page-content p {
    margin-bottom: 20px;
}

.sub-page-content ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.sub-page-content li {
    margin-bottom: 12px;
}

.sub-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.highlight-red {
    color: #c0392b;
}

/* Content Section for complex layouts */
.content-section {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 2-column grid layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center; /* Changed from 'start' to 'center' */
}

.image-center-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Changed to space-evenly */
    height: 100%;
}

.image-center-vertical img {
    /* Removed margin-bottom from here */
}

.image-center-vertical img:last-child {
    /* Removed margin-bottom from here */
}

/* Card Style B for Future/Hypno-Secret pages */
.card-style-b-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 세 번째 카드를 중앙에 배치하기 위한 스타일 */
.card-style-b-container > div:nth-child(3) {
    grid-column: 1 / -1; /* 모든 열을 차지 */
    justify-self: center; /* 수평 중앙 정렬 */
    max-width: 410px; /* 기존 너비 유지 */
}

/* =================================== */
/*     회원가입 동의 페이지 스타일        */
/* =================================== */

.form-group {
    margin-bottom: 25px;
}

.checkbox-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.checkbox-line label {
    margin: 0;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.checkbox-line input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* textarea 스타일 개선 - 사이트 폰트와 동일하게 */
.agreement-text {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Noto Sans KR', sans-serif; /* 사이트와 동일한 폰트 */
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    resize: vertical;
    box-sizing: border-box;
}

/* 버튼 그룹 스타일 - 같은 라인에 좌우 배치 */
.button-group {
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    gap: 20px;
    margin-top: 40px;
    padding: 0 20px;
}

.button-group .cta-button {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 다음 단계 버튼 - 옅은 노란색 */
.button-group .cta-button:first-child {
    background-color: #9c9c70; /* 회색 */
    color: rgb(39, 3, 3);
}

.button-group .cta-button:first-child:hover {
    background-color: #4e1a1a;
    transform: translateY(-2px);
}

/* 취소 버튼 - 자주색 */
.button-group .cancel-button {
    background-color: #08c7a7; /* 옅은 남초록색 */
    color: #210ce2;
}

.button-group .cancel-button:hover {
    background-color: #07db18;
    transform: translateY(-2px);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .checkbox-line {
        padding: 8px 12px;
    }
    
    .checkbox-line label {
        font-size: 14px;
    }
    
    .agreement-text {
        height: 120px;
        font-size: 13px;
        padding: 12px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .button-group .cta-button {
        max-width: 100%;
        padding: 15px 20px;
    }
}

/* 모바일에서 세 번째 카드의 텍스트 줄바꿈 */
@media (max-width: 768px) {
    .card-style-b-container > div:nth-child(3) p {
        white-space: normal; /* 줄바꿈 허용 */
    }
}

.card-style-b {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card-style-b:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.card-style-b img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.card-style-b-content {
    padding: 25px;
}

.card-style-b-content h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: none;
}

.card-style-b-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.session-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    justify-items: center;
    align-items: start;
    margin-top: 50px;
    margin-bottom: 50px;
}

.session-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    padding: 20px;
    position: relative; /* 라벨 위치 지정을 위해 추가 */
}

.session-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #27ae60; /* 짙은 초록색 */
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 5px 10px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1; /* 이미지가 겹치지 않도록 */
}

.session-grid-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px; /* 사각형 유지 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    margin-top: 30px; /* 라벨 공간 확보 */
}

.session-grid-item.top-center {
    grid-column: 1 / span 2; /* 1열부터 2열까지 병합 */
    width: 300px; /* 상단 이미지 너비 */
}

.session-grid-item.bottom-left {
    grid-column: 1 / 2;
}

.session-grid-item.bottom-right {
    grid-column: 2 / 3;
}

.session-text-content h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: none;
}

.session-text-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

@media (max-width: 768px) {
    .session-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .session-grid-item {
        width: 90%;
        max-width: 300px;
    }

    .session-grid-item.top-center {
        grid-column: auto; /* 모바일에서는 병합 해제 */
    }

    .session-grid-item.bottom-left,
    .session-grid-item.bottom-right {
        grid-column: auto;
    }

    .session-grid-item img {
        width: 150px;
        height: 150px;
    }
}

/* Booking Page Specific Styles */
.session-detail-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%; /* 추가 */
    box-sizing: border-box; /* 추가 */
}

.session-detail-header {
    padding: 20px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box; /* 추가 */
}

.session-detail-header h3 {
    margin: 0;
    font-size: 26px;
    color: #2c3e50;
}

.session-detail-body {
    padding: 30px;
    box-sizing: border-box; /* 추가 */
}

.session-detail-body p, .session-detail-body li {
    font-size: 16px;
    line-height: 1.8;
}

.session-detail-image {
    display: none; /* Hide old images for now */
}

.price-info, .option-info {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.price-info .original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.price-info .discount-price, .option-info b {
    color: #c0392b;
    font-weight: 700;
}

.relationship-images {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* 이미지들을 균등하게 배치 */
    align-items: center; /* 이미지를 수평 가운데 정렬 */
    height: 100%; /* 부모 요소의 높이를 채우도록 설정 */
}

.relationship-images img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

/* Contact Form Styles */
.contact-info {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-form button {
    width: 100%;
}

.board-section {
    margin-top: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}
/* =================================== */
/*      HEALTH PAGE LAYOUT STYLES      */
/* =================================== */

/* Health 페이지 전용 서브페이지 컨텐츠 스타일 */
.health-page .sub-page-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* 데스크탑 Health 페이지 레이아웃 - 세로 배치 */
.health-section {
    margin-bottom: 60px;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.health-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.health-image-container img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.health-image-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* 모든 이미지 크기 통일 */
.health-image-container.single-image img {
    width: 400px;
    height: 400px;
}

.health-text-content {
    text-align: left;
    max-width: 100%;
}

.health-text-content h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #c0392b;
    padding-bottom: 15px;
    text-align: center;
}

.health-text-content h4 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #34495e;
    padding-left: 20px;
    border-left: 4px solid #f1c40f;
}

.health-text-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.health-text-content ul {
    padding-left: 30px;
    margin-bottom: 30px;
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.health-text-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.health-text-content li strong {
    color: #2c3e50;
    font-weight: 700;
}

.health-text-content strong {
    color: #c0392b;
    font-weight: 700;
}

.health-text-content small {
    color: #666;
    font-size: 15px;
    font-style: italic;
}

.health-text-content .cta-button {
    margin-top: 25px;
    display: inline-block;
}

/* 버튼 정렬 */
.health-button-center {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.health-button-center .cta-button {
    font-size: 20px;
    padding: 18px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
    transition: all 0.3s ease;
}

.health-button-center .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(192, 57, 43, 0.4);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    /* Health 페이지 모바일 레이아웃 */
    .health-page .sub-page-content {
        max-width: none;
        padding: 0 15px;
    }

    .health-section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    .health-image-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .health-image-container img,
    .health-image-container.single-image img {
        width: 350px;
        height: 350px;
    }

    .health-text-content h3 {
        font-size: 22px;
    }

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

    .health-text-content ul {
        padding: 20px 25px;
    }

    .health-text-content li {
        font-size: 15px;
    }

    .health-button-center {
        padding: 20px;
        margin-top: 30px;
    }

    .health-button-center .cta-button {
        font-size: 18px;
        padding: 15px 30px;
    }
}


/* =================================== */
/*         ADMIN PAGE STYLES           */
/* =================================== */

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;  /* 텍스트 중앙 정렬 */
}

.admin-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

/* 검색 폼 컨테이너 스타일 */
.search-form-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center !important;
    display: flex;
    justify-content: center;
}

.search-form-container form {
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.search-form-container select,
.search-form-container input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-form-container select {
    min-width: 120px;
}

.search-form-container input[type="text"] {
    min-width: 200px;
}

/* 테이블 스타일 */
/* 테이블 중앙 정렬 */
.admin-table {
    width: 100%;  /* 또는 auto;로 테이블이 컨테이너를 채우게 함 */
    margin: 0 auto;  /* 중앙 정렬 */
    border-collapse: collapse;  /* 테이블 스타일 개선 (선택) */
    border: 1px solid #ddd;  /* 테이블 테두리 추가 (선택) */
}

.admin-table thead {
    background-color: #2c3e50;
    color: white;
}

.admin-table th, .admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;  /* 셀 내용 왼쪽 정렬 (필요시 center로 변경) */
}

.admin-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* CTA 버튼 작은 버전 */
.cta-button-small {
    display: inline-block;
    background-color: #c0392b;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button-small:hover {
    background-color: #e74c3c;
    transform: translateY(-2px);
}

/* 페이지네이션 스타일 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
}

.pagination a.active {
    background-color: #c0392b;
    color: white;
}

.pagination a:hover {
    background-color: #f8f9fa;
    border-color: #c0392b;
}

/* 검색 폼 컨테이너: 이미 flex로 중앙이지만 강화 */
.search-form-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-button:hover {
    color: #333;
}

#modalTitle {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

#modalBody p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#modalBody strong {
    color: #2c3e50;
}

#modalBody ul {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 10px 0;
}

#modalFooter {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

#modalFooter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
    
    .admin-title {
        font-size: 24px;
    }
    
    .search-form-container form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-form-container select,
    .search-form-container input[type="text"] {
        width: 100%;
        max-width: 300px;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }
    
    .admin-table th {
        font-size: 12px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* =================================== */
/*         RESPONSIVE STYLES           */
/* =================================== */

@media screen and (max-width: 1024px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        overflow-y: auto; /* 스크롤 가능하게 */
    }

    .nav-links li {
        opacity: 0;
        margin: 15px 0; /* 간격 조정 */
        width: 90%; /* 전체 너비 사용 */
    }
    
    .nav-links a {
        color: white;
        font-size: 20px;
        display: block;
        padding: 10px 20px;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    header nav .burger {
        display: block !important; /* !important 추가로 강제 표시 */
        z-index: 1001;
    }
    
    .auth-links {
        display: none;
    }

    .nav-links .mobile-only {
        display: list-item;
    }
    

    .nav-active {
        transform: translateX(0%);
    }

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

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* 개선된 모바일 서브메뉴 스타일 */
    .nav-links .has-sub {
        width: 100%;
        position: relative;
    }

    .nav-links .has-sub > a {
        position: relative;
        padding-right: 40px; /* 화살표 공간 확보 */
    }

    /* 화살표 아이콘 추가 */
    .nav-links .has-sub > a::after {
        content: '▼';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .nav-links .has-sub.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .nav-links .has-sub .sub-menu {
        position: static;
        background-color: rgba(0, 0, 0, 0.3);
        width: 100%;
        text-align: left;
        box-shadow: none;
        border-radius: 5px;
        margin-top: 5px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        list-style: none;
    }

    .nav-links .has-sub.active .sub-menu {
        max-height: 300px; /* 충분한 높이 */
        padding: 10px 0;
    }

    .nav-links .has-sub .sub-menu li {
        margin: 0;
        opacity: 1;
        width: 100%;
    }

    .nav-links .has-sub .sub-menu a {
        font-size: 16px;
        color: #eee;
        padding: 12px 30px;
        display: block;
        border-radius: 3px;
        margin: 2px 10px;
        transition: all 0.3s ease;
        background-color: transparent;
    }

    .nav-links .has-sub .sub-menu a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: #f1c40f;
        transform: translateX(5px);
    }

    /* 서브메뉴가 열릴 때 애니메이션 */
    .nav-links .has-sub .sub-menu li {
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links .has-sub.active .sub-menu li {
        transform: translateY(0);
        opacity: 1;
    }

    /* 서브메뉴 항목들의 순차적 애니메이션 */
    .nav-links .has-sub.active .sub-menu li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links .has-sub.active .sub-menu li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links .has-sub.active .sub-menu li:nth-child(3) {
        transition-delay: 0.3s;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
        padding-left: 0;
    }

    .hero-text h2 {
        font-size: 42px;
    }

    .intro-content {
        flex-direction: column;
        gap: 30px;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .newsletter-form input {
        width: 90%;
        max-width: 350px;
        text-align: center;
    }
    
    .sub-page-hero h1 {
        font-size: 34px;
    }

    .sub-page-content {
        padding: 0 10px;
        width: 100%; /* 추가 */
        overflow-x: hidden; /* 추가 */
    }
    
    .sub-page-content h2 {
        font-size: 20px;
    }

    .content-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }

    .sub-page-content h3 {
        font-size: 20px;
    }

    .session-detail-card {
        margin-left: 0; /* 추가 */
        margin-right: 0; /* 추가 */
    }

    .session-detail-header {
        padding: 20px 15px; /* 모바일에서 패딩 줄임 */
    }

    .session-detail-header h3 span {
        display: block;
        margin-top: 5px; /* 필요에 따라 간격 조정 */
    }

    .card-style-b-container h3 {
        font-size: 24px;
    }

    .cta-button .mobile-break {
        display: block;
    }

    .english-term {
        font-size: 15px;
    }

    .relationship-content h3 .mobile-line-break {
        display: block;
    }

    .session-detail-body {
        padding: 20px 15px; /* 모바일에서 패딩 줄임 */
    }

    .session-detail-body .mobile-indent-break {
        display: block;
        padding-left: 20px; /* 들여쓰기 */
    }

    .english-term {
        font-size: 20px; /* 모바일에서 글자 크기 확대 */
    }

    .mobile-break {
        display: block;
    }

    .sub-page-hero p {
        max-width: 250px; /* 모바일에서 줄바꿈 유도 */
        margin-left: auto;
        margin-right: auto;
    }

    .content-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        padding: 30px 20px;
        margin-bottom: 30px;
        gap: 0;
    }

    /* 모든 content-grid의 자식 요소에 order 적용 */
    .content-grid > div:first-child {
        order: 1; /* 첫 번째 div (이미지 또는 텍스트) */
    }

    .content-grid > div:last-child {
        order: 2; /* 두 번째 div (텍스트 또는 이미지) */
    }

    /* 두 번째 content-grid만 순서 변경 (Hypno-Theraphy 섹션) */
    .content-grid:nth-of-type(3) > div:first-child {
        order: 2; /* 텍스트를 뒤로 */
    }

    .content-grid:nth-of-type(3) > div:last-child {
        order: 1; /* 이미지를 앞으로 */
    }

    .content-grid img {
        width: 140px !important;
        height: 140px !important;
        margin-bottom: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .content-grid p {
        text-align: center;
        padding: 0 15px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .content-grid .cta-button {
        width: 80%;
        max-width: 300px;
        text-align: center;
        padding: 12px 20px;
    }

    .content-grid h3 {
        text-align: center;
        margin-bottom: 15px;
        font-size: 22px;
    }

    .image-center-vertical img {
        max-width: 100%; /* 추가 */
        width: 100%; /* 추가 */
        height: auto; /* 추가 */
    }

    .content-section p .english-term {
        white-space: nowrap; /* 한 줄로 표시 */
        font-size: 15px; /* 글자 크기 줄임 */
    }

    /* Health 페이지 모바일 레이아웃 */
    .health-page .sub-page-content {
        max-width: none;
        padding: 0 15px;
    }

    .health-section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    .health-image-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .health-image-container img {
        width: 350px;
        height: 350px;
    }

    .health-image-container.single-image img {
        width: 350px;
        height: 350px;
    }

    .health-text-content h3 {
        font-size: 22px;
    }

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

    .health-text-content ul {
        padding: 20px 25px;
    }

    .health-text-content li {
        font-size: 15px;
    }

    .health-button-center {
        padding: 20px;
        margin-top: 30px;
    }

    .health-button-center .cta-button {
        font-size: 18px;
        padding: 15px 30px;
    }
}

/* booking_manager.php에 추가할 CSS 스타일 */

/* 개선된 FullCalendar 텍스트 스타일 - 관리자 페이지용 */
#admin_calendar .fc {
    color: #000 !important;
}

/* 모든 FullCalendar 텍스트 요소 강제 검은색 */
#admin_calendar .fc *,
#admin_calendar .fc .fc-daygrid-day-number,
#admin_calendar .fc .fc-col-header-cell-cushion,
#admin_calendar .fc .fc-timegrid-slot-label,
#admin_calendar .fc .fc-event-title,
#admin_calendar .fc .fc-event-time,
#admin_calendar .fc .fc-event-main,
#admin_calendar .fc .fc-daygrid-event-harness,
#admin_calendar .fc .fc-timegrid-event-harness {
    color: #000 !important;
    font-weight: 500 !important;
}

/* 이벤트 내부 텍스트 */
#admin_calendar .fc-event .fc-event-main {
    color: #000 !important;
}

/* 날짜 숫자 */
#admin_calendar .fc-daygrid-day-number {
    color: #000 !important;
    font-weight: 600 !important;
}

/* 헤더 텍스트 */
#admin_calendar .fc-col-header-cell-cushion {
    color: #000 !important;
    font-weight: 600 !important;
}

/* 시간 레이블 */
#admin_calendar .fc-timegrid-slot-label {
    color: #000 !important;
    font-weight: 500 !important;
}

/* 툴바 버튼 텍스트 */
#admin_calendar .fc-toolbar-chunk .fc-button {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #ddd !important;
}

#admin_calendar .fc-toolbar-chunk .fc-button:hover {
    background-color: #f8f9fa !important;
}

/* 제목 텍스트 */
#admin_calendar .fc-toolbar-title {
    color: #000 !important;
    font-weight: 600 !important;
}

/* 캘린더 배경 */
#admin_calendar .fc-daygrid-day,
#admin_calendar .fc-timegrid-slot {
    background-color: #fff;
}

/* 오늘 날짜 강조 */
#admin_calendar .fc-day-today {
    background-color: #fffacd !important;
}
/*여기까지 booking_manager.php에 추가할 CSS 스타일*/ 

/* Review Section Styles */
.reviews-section {
    padding: 20px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 40px;
    width: 80%; /* 너비를 설정 (원하는 값으로 조정 가능) */
    margin-left: auto; /* 좌우 중앙 정렬 */
    margin-right: auto;
}

.reviews-section h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.review-form-container, .reviews-list-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.review-form-container h3, .reviews-list-container h3 {
    font-size: 24px;
    color: #555;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.review-form .form-group {
    margin-bottom: 15px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form .cta-button {
    width: auto;
    padding: 10px 25px;
    font-size: 18px;
    margin-top: 10px;
}

.reviews-list .review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.reviews-list .review-item:last-child {
    border-bottom: none;
}

.review-author {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.review-author strong {
    color: #e74c3c; /* Example color, can be adjusted */
}

.review-date {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
}

.review-rating {
    color: #f39c12; /* Star color */
    font-size: 18px;
    margin-bottom: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews-section {
        padding: 15px; /* 모바일에서 패딩 조정 (선택 사항) */
        width: 90%; /* 모바일에서 너비를 약간 줄임 */
        margin-left: auto;
        margin-right: auto;

    }

    .reviews-section h2 {
        font-size: 28px;
    }

    .review-form-container, .reviews-list-container {
        padding: 20px;
    }

    .review-form-container h3, .reviews-list-container h3 {

/* ========================================== */
/*     SELF SESSION PAGE NEW LAYOUT STYLES    */
/* ========================================== */

.self-session-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.self-session-layout .ss-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.self-session-layout .ss-img2 img {
    width: 300px; /* Maintain the circular image size */
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
}

/* Desktop Layout */
@media (min-width: 769px) {
    .self-session-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0 40px; /* 0 for row gap, 40px for column gap */
        align-items: start;
    }

    .ss-item.ss-img1 {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }
    .ss-item.ss-text1 {
        grid-column: 2;
        grid-row: 1;
    }
    .ss-item.ss-img2 {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        margin-top: 20px;
    }
    .ss-item.ss-text2 {
        grid-column: 2;
        grid-row: 2;
    }

    .self-session-layout .ss-item img {
        margin: 0; /* Reset mobile margin */
    }

    .self-session-layout .ss-img1 img {
        width: 450px; /* Restore original desktop size */
    }
}

        font-size: 20px;
    }
}

/* Style for the vitamin image next to the price */
.Freebies-image-price-info {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    right: 10px;
    width: 50px;
    height: auto;
}
