/* ========================================
   기본 스타일
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI',
        'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

/* ========================================
   메인 히어로 섹션
   ======================================== */
.main-content {
    position: relative;
    height: 750px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('/gnuboard5/img/top-banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
}

.main-content.about-hero {
    background: url('/gnuboard5/img/top-banner.png');
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
}

.main-content.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
    z-index: 1;
}

.main-content.about-hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content.centered {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-top-text {
    margin-bottom: 20px;
}

.hero-top-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title.simple {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 12px;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   서브 메뉴
   ======================================== */
.sub-menu-section {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    max-width: calc(100% - 40px);
    z-index: 100;
}

.sub-menu {
    background: #A6756A;
    backdrop-filter: blur(10px);
    padding: 0 300px;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.sub-menu-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.sub-menu-item:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
}

.sub-menu-item a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    padding: 15px 15px;
    transition: all 0.3s ease;
}

.sub-menu-item:hover a,
.sub-menu-item.active a {
    color: white;
    font-weight: 600;
}

.sub-menu-item.active a {
    color: #ffffff;
}

/* ========================================
   콘텐츠 섹션 공통
   ======================================== */
.content-section {
    padding: 20px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 150px;
}

.content-wrapper.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.image-content a {
    display: block;
}

.image-content img {
    width: 100%;
    border-radius: 0 70px;
}

.section-subtitle {
    font-size: 20px;
    color: #A6756A;
    letter-spacing: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-title {
    font-size: 44px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 30px;
    line-height: 1.4;
}

.section-description {
    font-size: 20px;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 80px;
}

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

.principle-list li {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.principle-list li::before {
    content: '•';
    position: absolute;
    left: 0;
}

/* ========================================
   워터마크 섹션
   ======================================== */
.watermark-section {
    padding-top: 50px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.watermark-slider {
    width: 100%;
    overflow: hidden;
}

.watermark-track {
    display: flex;
    gap: 100px;
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.watermark-text {
    font-size: 120px;
    font-family: Impact, 'Arial Narrow Bold', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: transparent;
    -webkit-text-stroke: 0.7px #a6756a89;
    margin: 0;
    font-weight: 500;
    letter-spacing: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

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

/* ========================================
   의료시스템 섹션 (탭 기능)
   ======================================== */
.detail-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #A6756A00;
    border: 1px solid #000;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 100px;
    transition: all 0.3s ease;
}

.detail-btn:hover {
    background: #85594F;
    color: #fff;
    transform: translateY(-2px);
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.thumbnail-list a {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    transition: all 0.3s ease;
}

.thumbnail-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: none;
}

.medical-tab-list .medical-tab-item {
    opacity: 0.5;
    border: 3px solid transparent;
    cursor: pointer;
}

.medical-tab-list .medical-tab-item.active {
    opacity: 1;
    border: 3px solid #A6756A;
    transform: scale(1.05);
}

.medical-tab-list .medical-tab-item:hover {
    opacity: 0.8;
}

.medical-tab-title,
.medical-tab-description,
.main-model-image {
    transition: opacity 0.3s ease;
}

/* ========================================
   이미지 배너 섹션
   ======================================== */
.banner-section {
    margin-top: 80px;
    background-color: #F0DDD8;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.banner-text {
    flex: 1;
    z-index: 2;
}

.banner-text h2 {
    font-size: 28px;
    font-weight: 300;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 80px;
}

.banner-text h2 .highlight {
    color: #000000;
    font-weight: 600;
}

.banner-text p {
    font-size: 36px;
    font-weight: 600;
    color: #A6756A;
    line-height: 1.5;
    margin-bottom: 10px;
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.banner-image img {
    height: 100%;
    object-fit: cover;
}

/* ========================================
   인테리어 슬라이더 섹션
   ======================================== */
.interior-slider-section {
    padding: 80px 20px 100px;
}

.slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.slider-track {
    position: relative;
    overflow: hidden;
}

.slider-item {
    display: none;
}

.slider-item.active {
    display: block;
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #f8f9fa;
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #A6756A;
}

/* ========================================
   지도 섹션
   ======================================== */
.map-section {
    padding: 80px 20px;
    background: #A6756A;
}

.map-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.map-image {
    flex: 1;
}

#googleMap {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

/* 카카오 약식지도: 지도만 노출하고 하단 정보 패널(로드뷰/길찾기 바, 주소·전화·지하철·정류장·버스) 숨김 */
#googleMap .root_daum_roughmap,
#googleMap .root_daum_roughmap_landing {
    height: 450px;
    overflow: hidden;
}
#googleMap .root_daum_roughmap .wrap_map {
    height: 450px !important;
}
#googleMap .root_daum_roughmap .wrap_controllers,
#googleMap .root_daum_roughmap .cont {
    display: none !important;
}

.map-info {
    flex: 1;
    color: white;
}

.map-info h3 {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
}

.map-info .address {
    font-size: 18px;
    line-height: 1.8;
}

.map-info .phone {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 100px;
}

.business-hours {
    margin-top: 30px;
}

.hours-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.hours-detail {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 10px;
}

.hours-detail-text {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
}

/* ========================================
   태블릿 반응형 (최대 1200px)
   ======================================== */
@media (max-width: 1200px) {
    .sub-menu {
        padding: 0 100px;
    }

    .hero-title {
        font-size: 48px;
    }

    .main-content {
        height: 600px;
    }

    .content-wrapper {
        gap: 50px;
        margin-top: 100px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
        letter-spacing: 6px;
    }

    .section-description {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .watermark-text {
        font-size: 80px;
    }

    .hero-title.simple {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .slider-item img {
        height: 500px;
    }

    .prev-btn {
        left: 20px;
    }

    .next-btn {
        right: 20px;
    }

    .banner-section {
        height: 500px;
    }

    .banner-text h2 {
        font-size: 24px;
        margin-bottom: 50px;
    }

    .banner-text p {
        font-size: 30px;
    }
}

/* ========================================
   모바일 반응형 (최대 768px)
   ======================================== */
@media (max-width: 768px) {
    .main-content {
        height: 400px;
    }

    .hero-content {
        padding: 0 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .sub-menu-section {
        width: calc(100% - 20px);
        bottom: -30px;
    }

    .sub-menu {
        padding: 0 20px;
        height: 60px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sub-menu::-webkit-scrollbar {
        display: none;
    }

    .sub-menu-item {
        flex: 0 0 auto;
        min-width: fit-content;
    }

    .sub-menu-item a {
        font-size: 14px;
        padding: 15px 12px;
        white-space: nowrap;
    }

    .sub-menu-item:not(:last-child)::after {
        font-size: 14px;
    }

    .content-section {
        padding: 40px 20px 40px;
    }

    .hero-top-logo {
        width: 120px;
    }

    .hero-title.simple {
        font-size: 18px;
        letter-spacing: 4px;
    }

    .main-content.about-hero {
        height: 400px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 28px;
        margin-top: 50px;
        padding: 0 20px;
    }

    .content-wrapper.reverse {
        flex-direction: column;
    }

    .text-content {
        width: 100%;
    }

    .image-content {
        width: 100%;
    }

    .image-content img {
        border-radius: 0 40px;
    }

    .section-subtitle {
        font-size: 12px;
        letter-spacing: 4px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .section-description {
        font-size: 15px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .principle-list li {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 18px;
        line-height: 1.6;
    }

    .detail-btn {
        padding: 10px 24px;
        font-size: 13px;
        margin-bottom: 40px;
    }

    .watermark-section {
        padding: 30px 0;
    }

    .watermark-track {
        gap: 50px;
    }

    .watermark-text {
        font-size: 40px;
        letter-spacing: 8px;
    }

    .thumbnail-list {
        gap: 8px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .thumbnail-list a {
        width: calc(25% - 6px);
        height: 70px;
        border-radius: 12px;
    }

    .banner-section {
        height: auto;
        min-height: 500px;
        padding: 40px 0;
        margin-top: 50px;
    }

    .banner-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }

    .banner-text {
        width: 100%;
        text-align: center;
    }

    .banner-text h2 {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 30px;
    }

    .banner-text p {
        font-size: 22px;
        line-height: 1.6;
    }

    .banner-image {
        width: 100%;
        justify-content: center;
    }

    .banner-image img {
        width: 80%;
        max-width: 300px;
        height: auto;
    }

    .interior-slider-section {
        padding: 50px 15px 60px;
    }

    .slider-item img {
        height: 280px;
        border-radius: 10px;
    }

    .prev-btn,
    .next-btn {
        width: 36px;
        height: 36px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .slider-indicators {
        margin-top: 15px;
        gap: 8px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .map-section {
        padding: 50px 20px;
    }

    .map-container {
        flex-direction: column;
        gap: 30px;
    }

    .map-image {
        width: 100%;
    }

    #googleMap {
        height: 300px;
        border-radius: 8px;
    }

    .map-info {
        width: 100%;
    }

    .map-info h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .map-info .address,
    .map-info .phone {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .business-hours {
        margin-top: 20px;
    }

    .hours-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .hours-detail {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .hours-detail-text {
        font-size: 14px;
    }
}

/* ========================================
   작은 모바일 반응형 (최대 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .sub-menu {
        padding: 0 10px;
    }

    .main-content.about-hero {
        height: 350px;
    }

    .hero-top-logo {
        width: 100px;
    }

    .hero-title.simple {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .content-wrapper {
        margin-top: 40px;
        gap: 22px;
        padding: 0 15px;
    }

    .content-section {
        padding: 30px 15px;
    }

    .section-subtitle {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .section-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .principle-list li {
        font-size: 13px;
        margin-bottom: 8px;
        padding-left: 16px;
    }

    .detail-btn {
        padding: 8px 20px;
        font-size: 12px;
        margin-bottom: 30px;
    }

    .watermark-section {
        padding: 25px 0;
    }

    .watermark-text {
        font-size: 32px;
        letter-spacing: 5px;
    }

    .thumbnail-list a {
        width: calc(25% - 6px);
        height: 60px;
        border-radius: 10px;
    }

    .banner-section {
        min-height: 450px;
        padding: 35px 0;
    }

    .banner-container {
        padding: 0 15px;
        gap: 25px;
    }

    .banner-text h2 {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .banner-text p {
        font-size: 20px;
    }

    .banner-image img {
        width: 90%;
        max-width: 250px;
    }

    .interior-slider-section {
        padding: 40px 10px 50px;
    }

    .slider-item img {
        height: 240px;
    }

    .prev-btn,
    .next-btn {
        width: 32px;
        height: 32px;
    }

    .prev-btn img,
    .next-btn img {
        width: 16px;
        height: 16px;
    }

    .map-section {
        padding: 40px 15px;
    }

    #googleMap {
        height: 250px;
    }

    .map-info h3 {
        font-size: 22px;
    }

    .map-info .address,
    .map-info .phone {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .hours-detail {
        font-size: 18px;
    }

    .hours-detail-text {
        font-size: 13px;
    }
}
