/* 기본 설정 */
html, body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #ffffff;
}

/* 다크 모드와 라이트 모드 적용 */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #ffffff;
    }
    
    .container {
        background: #1e1e1e;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    }
    
    .header {
        background: linear-gradient(90deg, #CE8892, #CE8892);
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    }

    .back-button {
        color: #ffffff;
    }

    .back-button:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .lang-select select {
        background-color: #333 !important;
        color: #ffffff !important;
        border: 1px solid #444 !important;
    }

    .hospital-slider, .hospital-map, .doctor-item, .review-item, .faq-section {
        background-color: #1e1e1e;
        color: #ffffff;
    }

    .clinic-hours li, .address-info p, .doctor-name, .doctor-specialty, .doctor-services {
        color: #dddddd;
    }

    .specialty-item {
        background-color: #00796b;
        color: white;
    }

    .specialty-item:hover {
        background-color: #004d40;
    }

    .sticky-menu {
        background-color: rgba(18, 18, 18, 0.95);
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    }

    .sticky-menu ul li a {
        color: #ffffff;
    }

    .sticky-menu ul li a:hover {
        background-color: #333;
        color: #ffffff;
    }

    .faq-item {
        background-color: #1e1e1e;
        color: #ffffff;
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    }
    
    .faq-answer {
        border-top: 1px solid #444;
        color: #bbbbbb;
    }

    .total-rating {
        color: #ffffff;
    }

    .total-rating strong {
        color: #3c6e71;
    }
}

@media (prefers-color-scheme: dark) {
    .hospital-specialties-container li,
    .hospital-options-container li,
    .reservation-notes-container li,
    .main-treatments-container li {
        padding: 10px;
        border-radius: 8px;
        text-align: center;
        font-size: 14px;
        background-color: #2a2a2a; /* 어두운 배경색으로 변경 */
        color: #e0e0e0; /* 밝은 텍스트 색상으로 변경 */
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
        transition: background-color 0.3s ease;
    }

    .hospital-specialties-container li:hover,
    .hospital-options-container li:hover,
    .reservation-notes-container li:hover,
    .main-treatments-container li:hover {
        background-color: #3a3a3a; /* 호버 시 조금 더 밝은 배경색으로 변경 */
    }

    .review-item {
        background-color: #2a2a2a; /* 어두운 배경색으로 변경 */
        color: #e0e0e0; /* 밝은 텍스트 색상으로 변경 */
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    }

    .review-item:hover {
        background-color: #3a3a3a; /* 호버 시 조금 더 밝은 배경색으로 변경 */
    }

    .review-text, .review-date, .review-verification {
        color: #dddddd; /* 텍스트 색상 밝게 */
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: #e0f7fa;
        color: #333;
    }

    .container {
        background: white;
        color: #333;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .header {
        background: linear-gradient(90deg, #CE8892, #CE8892);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .back-button {
        color: #ffffff;
    }

    .back-button:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .lang-select select {
        background-color: #ffffff;
        color: #333;
        border: 1px solid #ccc;
    }

    .hospital-slider, .hospital-map, .doctor-item, .review-item, .faq-section {
        background-color: #ffffff;
        color: #333;
    }

    .clinic-hours li, .address-info p, .doctor-name, .doctor-specialty, .doctor-services {
        color: #555;
    }

    .specialty-item {
        background-color: #3c6e71;
        color: white;
    }

    .specialty-item:hover {
        background-color: #284b63;
    }

    .sticky-menu {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .sticky-menu ul li a {
        color: #333;
    }

    .sticky-menu ul li a:hover {
        background-color: #e0f7fa;
        color: #3c6e71;
    }

    .faq-item {
        background-color: #ffffff;
        color: #333;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .faq-answer {
        border-top: 1px solid #ddd;
        color: #555;
    }

    .total-rating {
        color: #333;
    }

    .total-rating strong {
        color: #3c6e71;
    }

    .review-item {
        background-color: #ffffff; /* 밝은 배경색 */
        color: #333; /* 다크한 텍스트 색상 */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .review-item:hover {
        background-color: #f0f0f0; /* 호버 시 약간 어두운 배경색 */
    }

    .review-text, .review-date, .review-verification {
        color: #555; /* 텍스트 색상 */
    }
}

/* 컨테이너 스타일 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* 헤더 스타일 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px;
    background: linear-gradient(90deg, #CE8892, #CE8892);
    border-radius: 0px;
    color: white;
    margin-bottom: 5px;
}

.hospital {
    display: flex;
    flex-direction: column; /* 세로 정렬 유지 */
    align-items: center; /* 가로 중앙 정렬 */
    width: 100%;
    position: static !important;
    overflow: visible !important;
}

.hospitalinfo_basic,
.hospital-specialties-container,
.hospital-options-container,
.reservation-notes-container,
.main-treatments-container,
.sergerys-container,
.hospital-map,
.event-section,
.price-section,
.before-after-section,
.review-section,
.rightme-reviews-section,
.faq-section {
    width: 96%; /* 필요하면 최대 너비 조정 가능 */
    max-width: 1200px; /* 최대 너비 설정 */
    text-align: center; /* 내부 요소 중앙 정렬 */
}
.clinic-hours, .address-info,
.doctors-list {
    width: 96%; /* 필요하면 최대 너비 조정 가능 */
    max-width: 1200px; /* 최대 너비 설정 */
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.back-button {
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 50%;
    margin-right: 15px;
}

.lang-select select {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 병원 기본 정보 스타일 */
.hospitalinfo_basic {
    margin-bottom: 0px;
}

.hospital-slider {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.hospital-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hospital-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hospital-details {
    text-align: center;
    padding: 10px;
}

.hospital-name {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.hospital-name::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* 병원 설명 스타일 */
.hospital-description {
    margin-bottom: 20px;
    font-size : 14px;
}

.hospital-description h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hospital-description p {
    font-size: 16px;
    line-height: 1.6;
}

/* 진료 시간 스타일 */
.clinic-hours {
    margin-bottom: 10px;
}

.clinic-hours h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.clinic-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clinic-hours li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 주소 정보 스타일 */
.address-info {
    margin-bottom: 20px;
}

.address-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.address-info p {
    font-size: 16px;
    line-height: 1.8;
}

/* 약도 스타일 */
.hospital-map {
    margin-bottom: 20px;
    text-align: center;
}

.hospital-map h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hospital-map-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hospital-map-image {
        aspect-ratio: 4 / 2;
    }
}

@media (max-width: 767px) {
    .hospital-map-image {
        aspect-ratio: 1 / 1;
    }
}

/* 소속 의사 리스트 스타일 */
.doctors-list {
    margin-bottom: 30px;
}

.doctors-list h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.doctor-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doctor-details {
    flex: 1;
    padding: 10px;
}

.doctor-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.doctor-specialty {
    font-size: 16px;
    margin-bottom: 5px;
}

.doctor-services {
    font-size: 16px;
}

/* 아이콘과 텍스트 스타일 */
.hospital-description h3, .clinic-hours h3, .address-info h3, .hospital-map h3, .doctors-list h3 {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hospital-description h3 i, .clinic-hours h3 i, .address-info h3 i, .hospital-map h3 i, .doctors-list h3 i {
    margin-right: 8px;
    font-size: 24px;
}

/* 리뷰 섹션 스타일 */
.review-section {
    margin-top: 40px;
}

.review-section h3 {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.review-section h3 i {
    margin-right: 8px;
    font-size: 16px;
}

/* 리뷰 이미지 슬라이더 */
.review-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.review-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.beforeandafter-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* 리뷰 리스트 */
.review-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-item {
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

.review-text {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.review-text-ko {
    font-size: 14px;
    color: blue;
    line-height: 1.6;
}

.review-date,
.review-verification {
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
}

.review-verification {
    font-style: italic;
}

/* 총평점을 표시하는 텍스트 스타일 */
.total-rating {
    font-size: 16px;
    margin: 10px 0;
    font-weight: bold;
}

/* 반응형 처리 */
@media (max-width: 767px) {
    .review-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .review-item {
        padding: 15px;
    }

    .review-text {
        font-size: 14px;
    }

    .review-date,
    .review-verification {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .review-list {
        grid-template-columns: 1fr;
    }

    .review-item {
        padding: 10px;
    }

    .review-text {
        font-size: 14px;
    }

    .review-date,
    .review-verification {
        font-size: 14px;
    }
}

/* 전후 사진 슬라이더 섹션 */
.before-after-section {
    margin-top: 40px;
}

.before-after-section h3 {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.before-after-section h3 i {
    margin-right: 8px;
    font-size: 24px;
}

.before-after-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.before-after-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.before-after-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* 반응형 처리 */
@media (max-width: 767px) {
    .review-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hospital-name {
        font-size: 18px;
    }

    .clinic-hours li, .address-info p, .doctor-name, .doctor-specialty, .doctor-services {
        font-size: 14px;
    }
}

/* 진료항목 가격표 섹션 */
.price-section {
    margin-top: 40px;
}

.price-section h3 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.price-section h3 i {
    margin-right: 8px;
    font-size: 24px;
}

.price-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.price-image {
    width: 100%;
    max-width: 100%px;
    height: auto;
    border-radius: 12px;
}

/* 이벤트 항목 섹션 */
.event-section {
    margin-top: 40px;
}

.event-section h3 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.event-section h3 i {
    margin-right: 8px;
    font-size: 24px;
}

.event-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.event-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 병원이 잘하는 분야 섹션 */
.hospital-specialties-container {
    margin-bottom: 20px;
}

.hospital-specialties-container h3 {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hospital-specialties-container h3 i {
    margin-right: 8px;
    font-size: 24px;
}

.hospital-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.specialty-item {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
    margin: 5px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specialty-item:hover {
    cursor: pointer;
}

/* 따라다니는 메뉴 스타일 */
.sticky-menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease-in-out;
    padding: 10px 0;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
    box-sizing: border-box;
}

.sticky-menu ul {
    display: inline-flex;
    gap: 20px;
    padding: 0 10px;
}

.sticky-menu ul li {
    display: inline-block;
}

.sticky-menu ul li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sticky-menu ul li a i.material-icons {
    margin-right: 5px;
    font-size: 20px;
}

/* 병원이 잘하는 분야, 병원 옵션, 예약 시 참고 항목, 주요 진료 내용 공통 스타일 */
.hospital-specialties-container ul,
.hospital-options-container ul,
.reservation-notes-container ul,
.main-treatments-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.hospital-specialties-container li,
.hospital-options-container li,
.reservation-notes-container li,
.main-treatments-container li {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.hospital-specialties-container li:hover,
.hospital-options-container li:hover,
.reservation-notes-container li:hover,
.main-treatments-container li:hover {
    cursor: pointer;
}

/* 각 섹션 헤더 스타일 */
.hospital-specialties-container h3,
.hospital-options-container h3,
.reservation-notes-container h3,
.main-treatments-container h3 {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hospital-specialties-container h3 i,
.hospital-options-container h3 i,
.reservation-notes-container h3 i,
.main-treatments-container h3 i {
    margin-right: 8px;
    font-size: 16px;
}

/* FAQ 섹션 스타일 */
.faq-section {
    margin-top: 40px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-section h3 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.faq-section h3 i {
    margin-right: 8px;
    font-size: 24px;
}

.faq-item {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.faq-question i {
    margin-right: 8px;
    font-size: 20px;
}

.faq-answer {
    padding: 10px 0;
    font-size: 14px;
    margin-top: 10px;
}


/* 이전 및 다음 버튼의 크기를 작게 설정 */
.swiper-button-next, .swiper-button-prev {
    width: 30px;  /* 버튼 너비 조정 */
    height: 30px; /* 버튼 높이 조정 */
    background-size: 100% 100%;  /* 배경 크기 조정 */
    color: #2a5b67;
}

/* 아이콘 크기 조정 */
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px;  /* 화살표 아이콘 크기 조정 */
}

/* Rightme 고객 리뷰 섹션 추가 */

/* Rightme 리뷰 섹션 */
.rightme-reviews-section {
    margin-top: 40px;
    padding: 0px;    
}

.rightme-reviews-section h3 {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.rightme-reviews-section h3 i {
    margin-right: 8px;
    font-size: 16px;
}

/* 리뷰 리스트 */
.rightme-review-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 리뷰 아이템 */
.rightme-review-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 리뷰 헤더 */
.rightme-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-size: 16px;
    font-weight: bold;
}

.review-rating .stars {
    color: #f5c518; /* 별점 색상 */
    font-size: 16px;
}

/* 리뷰 텍스트 */
.rightme-review-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 인증 방법 */
.rightme-review-verification {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    font-style: italic;
}

/* 리뷰 날짜 */
.rightme-review-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

/* 리뷰 이미지 슬라이더 */
.rightme-review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.rightme-review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.rightme-review-images img:hover {
    transform: scale(1.1); /* 호버 시 확대 효과 */
}

/* 더보기 텍스트 */
.rightme-review-more {
    font-size: 12px;
    color: #00796b;
    cursor: pointer;
    margin-top: 5px;
    text-decoration: underline;
}

.rightme-review-more:hover {
    color: #004d40;
}

/* 반응형 처리 */
@media (max-width: 1024px) {
    .rightme-review-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rightme-review-list {
        grid-template-columns: 1fr;
    }
}

/* 모바일 화면에서만 적용 */
@media (max-width: 767px) {
    .main-treatments-container .main-treatments {
        overflow: hidden;
        max-height: 160px; /* 3줄 정도 높이로 설정 */
        transition: max-height 0.3s ease; /* 부드러운 애니메이션 추가 */
    }

    .main-treatments-container.expanded .main-treatments {
        max-height: none; /* 확장되었을 때 모든 항목이 보이도록 */
    }

    .show-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #00796b;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 14px;
        cursor: pointer;
        margin: 10px auto;
        transition: background-color 0.3s ease;
    }

    .show-more-btn i {
        margin-left: 5px; /* 아이콘과 텍스트 사이 간격 */
    }

    .show-more-btn:hover {
        background-color: #004d40;
    }
}

/* PC 화면에서는 전체보기 버튼 숨기기 */
@media (min-width: 768px) {
    .show-more-btn {
        display: none;
    }
}

.rightme-review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* 미디어를 왼쪽 정렬 */
    align-items: center; /* 미디어가 수직으로도 가운데 정렬 */
    margin-bottom: 10px; /* 아래쪽에 여유 공간 추가 */
}

.rightme-review-media .review-image,
.rightme-review-media .review-video {
    width: 100px; /* 동일한 너비 설정 */
    height: 100px; /* 동일한 높이 설정 */
    border-radius: 8px; /* 미디어의 모서리를 부드럽게 */
    object-fit: cover; /* 미디어의 비율 유지하며 잘라내기 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 그림자 추가 */
}

.rightme-review-media .rightme-review-more {
    font-size: 14px;
    color: #00796b;
    cursor: pointer;
    text-align: center;
    margin-top: 5px;
    text-decoration: underline;
}

.rightme-review-media .rightme-review-more:hover {
    color: #004d40;
}

/* Rightme 리뷰 섹션 */
.rightme-reviews-section {
    margin-top: 40px;
    padding: 20px;    
}

/* 기본 설정 - 리뷰 아이템 스타일 */
.rightme-review-item {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.rightme-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-size: 16px;
    font-weight: bold;
}

.review-rating .stars {
    color: #f5c518; /* 별점 색상 */
    font-size: 16px;
}

.rightme-review-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.rightme-review-verification {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    font-style: italic;
}

.rightme-review-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.rightme-review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.rightme-review-media .review-image,
.rightme-review-media .review-video {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rightme-review-more {
    font-size: 14px;
    color: #00796b;
    cursor: pointer;
    text-align: center;
    margin-top: 5px;
    text-decoration: underline;
}

.rightme-review-more:hover {
    color: #004d40;
}

/* 반응형 설정 */
@media (max-width: 1024px) {
    .rightme-review-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rightme-review-list {
        grid-template-columns: 1fr;
    }
}

/* 다크 모드 스타일 */
@media (prefers-color-scheme: dark) {
    .rightme-review-item {
        background-color: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    }

    .rightme-review-verification {
        color: #bbbbbb;
    }

    .rightme-review-date {
        color: #bbbbbb;
    }

    .rightme-review-media .review-image,
    .rightme-review-media .review-video {
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    }

    .rightme-review-more {
        color: #80cbc4;
    }

    .rightme-review-more:hover {
        color: #4db6ac;
    }
}

/* 라이트 모드 스타일 */
@media (prefers-color-scheme: light) {
    .rightme-review-item {
        background-color: #ffffff;
        color: #333;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .rightme-review-verification {
        color: #555;
    }

    .rightme-review-date {
        color: #555;
    }

    .rightme-review-media .review-image,
    .rightme-review-media .review-video {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .rightme-review-more {
        color: #00796b;
    }

    .rightme-review-more:hover {
        color: #004d40;
    }
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    transition: color 0.3s ease;
}

.icon-button i {
    font-size: 28px;
}

.icon-button:hover {
    color: #00796b; /* 호버 시 아이콘 색상 변경 */
}

.icon-button.active i {
    color: red; /* 찜하기 활성화 시 아이콘 색상 */
}

/* Booking Now 전체 컨테이너 */
.booking-now-container {
    margin: 20px auto;
    padding: 20px 20px 30px;
    border-radius: 12px;
    background-color: var(--container-bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    transition: all 0.3s ease;
}

.booking-now-container h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-now-container h3 i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--primary-text);
}

.form-group label i {
    margin-right: 6px;
    font-size: 1.2rem;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: var(--input-bg);
    color: var(--primary-text);
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(100, 149, 237, 0.15);
    outline: none;
}

.direct-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.direct-book-btn i {
    margin-right: 6px;
    font-size: 1.2rem;
}

.direct-book-btn:hover {
    background: linear-gradient(45deg, #00f2fe, #4facfe);
}

/* 모바일 대응 추가 */
@media (max-width: 480px) {
    .booking-now-container {
        padding: 16px;
        margin: 15px auto;
        border-radius: 10px;
    }
    .booking-now-container h3 {
        font-size: 1.2rem;
    }
    .form-group label {
        font-size: 0.85rem;
    }
    .form-group input {
        padding: 8px 10px;
        font-size: 0.85rem;
        height: 38px;
    }
    .direct-book-btn {
        font-size: 0.95rem;
        padding: 10px;
    }
}


/* 다크모드 대응 */
:root {
    --container-bg: #ffffff;
    --primary-text: #333333;
    --border-color: #cccccc;
    --input-bg: #f9f9f9;
}

body.dark-mode {
    --container-bg: #1e1e1e;
    --primary-text: #f5f5f5;
    --border-color: #555555;
    --input-bg: #333333;
}


.sergerys-container {
    margin: 0 0;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--container-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
}

.sergerys-container h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-text);
    display: flex;
    align-items: center;
}

.sergerys-container h3 i {
    margin-right: 8px;
    color: #4CAF50;
}

.accordion-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.accordion-header {
    background: #f7f7f7;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.accordion-header:hover {
    background: #ededed;
}

.accordion-arrow {
    font-size: 14px;
    margin-left: 8px;
    flex-shrink: 0;
    position: absolute;
    right: 16px;  /* 화살표를 약간 안쪽으로 넣는다 */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(90deg);
}

.accordion-content {
    padding: 10px 15px 15px 15px;
    background: #fafafa;
}

.sergery-item {
    background: #ffffff;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.sergery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.sergery-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.sergery-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.sergery-price {
    font-size: 14px;
    color: #2E7D32;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: right;
}

.sergery-keywords {
    font-size: 13px;
    color: #777;
}