/* Main Styles */
:root {
    --primary-color: #524648;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", helvetica, "Apple SD Gothic Neo", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    border-radius: var(--border-radius);
}

.skip-link:focus {
    top: 6px;
}

/* Header 스타일은 includes/header-styles.css에서 관리 */

/* Main Content */
main {
    margin-top: 0; /* Remove margin for hero section to be full screen */
}

/* Page Content (for other pages) */
.page-content {
    margin-top: 70px;
}

/* Section Common Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 0;
    position: relative;
}

.hero-swiper {
    height: 600px;
}

.swiper-slide {
    position: relative;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.53);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-text {
    text-align: center;
    color: var(--white);
}

.slide-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Removed - using home.css styles */

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--white);
}

/* Greeting Section */
.greeting-section {
    background-color: var(--secondary-color);
}

.greeting-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.greeting-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Doctor Section */
.doctor-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

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

.doctor-image img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.doctor-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.doctor-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.doctor-credentials h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 15px 0;
}

.doctor-credentials ul {
    margin-bottom: 20px;
}

.doctor-credentials li {
    padding: 8px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.doctor-credentials li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Facilities Section */
.facilities-section {
    background-color: var(--secondary-color);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.facility-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.facility-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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

.facility-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item ul {
    text-align: left;
    max-width: 200px;
    margin: 0 auto;
}

.service-item li {
    padding: 5px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
}

.service-item li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.service-features {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.service-features h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.service-features ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 25px;
}

.service-features li:before {
    content: "★";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Hours Section */
.hours-section {
    background-color: var(--secondary-color);
}

.hours-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hours-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hours-table table {
    width: 100%;
}

.hours-table th,
.hours-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.hours-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.hours-table .lunch-break {
    background: rgba(82, 70, 72, 0.1);
    font-weight: 600;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-item strong {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Location Section */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.address-info {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
}

.address-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.address-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.address-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.map-container {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.naver-map {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #03C75A;
    border-radius: 4px;
    background: rgba(3, 199, 90, 0.1);
    font-size: 1.2rem;
}

.footer-title-link:hover {
    border-color: #00B050;
    background: rgba(3, 199, 90, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(3, 199, 90, 0.3);
}

.footer-hours h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-hours p {
    margin-bottom: 8px;
    opacity: 0.9;
}

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

/* Footer Search Area */
.area_search {
    margin-bottom: 30px;
    text-align: center;
}

.area_search .keyword {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.area_search a:hover .keyword {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer Guide Area */
.guide_area {
    display: inline-block;
    margin-left: 10px;
    position: relative;
}

.link_guide {
    display: inline-block;
    vertical-align: middle;
}

.nicon_help {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: var(--white);
    cursor: pointer;
}

.nicon_help:hover {
    background: rgba(255, 255, 255, 0.5);
}

.layer_guide {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--text-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    min-width: 300px;
    margin-bottom: 10px;
    z-index: 10;
}

.txt_guide p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.txt_guide .point_text {
    color: var(--primary-color);
    font-weight: 600;
}

.txt_guide .summary_text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn_close:hover {
    background: var(--border-color);
}

/* Footer Info Area */
.area_info {
    margin-top: 30px;
}

.list_info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list_info li {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.list_info li:after {
    content: "|";
    margin-left: 20px;
    opacity: 0.5;
}

.list_info li:last-child:after {
    display: none;
}

/* Responsive Design */
@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .slide-text h2 {
        font-size: 4rem;
    }
    
    .slide-text p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-swiper {
        height: 400px;
    }
    
    .slide-text h2 {
        font-size: 2rem;
    }
    
    .slide-text p {
        font-size: 1.1rem;
    }
    
    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hours-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-item {
        font-size: 0.85rem;
    }
    
    .service-features ul {
        grid-template-columns: 1fr;
    }
    
    body {
        touch-action: pan-y pinch-zoom;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-swiper {
        height: 300px;
    }
    
    .slide-text h2 {
        font-size: 1.5rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 모바일 스와이프 네비게이션 인디케이터 */
.swipe-indicator {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(82, 70, 72, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    z-index: 9999;
    opacity: 0;
    animation: swipeIndicator 0.5s ease-out forwards;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.swipe-indicator.next {
    right: 30px;
    animation: swipeIndicatorRight 0.5s ease-out forwards;
}

.swipe-indicator.prev {
    left: 30px;
    animation: swipeIndicatorLeft 0.5s ease-out forwards;
}

@keyframes swipeIndicatorRight {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
}

@keyframes swipeIndicatorLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
}

/* 모바일 스와이프 힌트 */
.mobile-swipe-hint {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mobile-swipe-hint:hover {
    opacity: 1;
}

.swipe-hint-content {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: swipeHintPulse 3s ease-in-out infinite;
}

.swipe-hint-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

@keyframes swipeHintPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .mobile-swipe-hint {
        display: block;
    }
    
    /* 3초 후 힌트 자동 숨김 */
    .mobile-swipe-hint.auto-hide {
        animation: fadeOutHint 1s ease-out 3s forwards;
    }
}

@keyframes fadeOutHint {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
        pointer-events: none;
    }
}