/* Suho Neurosurgery Design System */
:root {
    /* Colors */
    --primary-color: #bd9865;
    /* Gold/Beige */
    --primary-dark: #8c6b3d;
    /* Darker Gold */
    --secondary-color: #f2eae0;
    /* Light Cream */
    --accent-color: #8c6b3d;
    /* Matching Accent */
    --text-dark: #3e3328;
    /* Warm Dark Brown */
    --text-medium: #6b5c4d;
    /* Warm Medium Brown */
    --text-light: #9e8f80;
    --white: #ffffff;
    --border-color: #e6dcd3;
    --success-color: #28a745;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-40 {
    gap: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .mobile-hidden {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 40px;
    font-size: 16px;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--text-dark);
    border-color: white;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}

.logo-main {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: -0.2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/수호신경외과사진.jpg') no-repeat center center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Common */
section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-title span {
    color: var(--primary-color);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
}

/* Staff Layout */
.staff-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.staff-img {
    width: 350px;
    object-fit: cover;
}

.staff-info {
    padding: 40px;
    flex: 1;
}

.staff-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.staff-position {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 20px;
    display: block;
}

.staff-history li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    color: var(--text-medium);
}

.staff-history li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Spine Center Tab Layout */
.spine-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.spine-header {
    text-align: center;
    margin-bottom: 60px;
}

.spine-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.spine-tab-btn {
    padding: 15px 40px;
    border-radius: 30px;
    background: white;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s;
}

.spine-tab-btn:hover,
.spine-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(189, 152, 101, 0.3);
}

.spine-content-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    min-height: 500px;
    /* Ensure height */
}

.spine-text-area {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spine-img-area {
    flex: 1;
    background-color: #eee;
    position: relative;
}

.spine-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spine-num {
    font-size: 80px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.2;
}

.spine-title-group {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    top: -40px;
    /* Overlap with number */
}

.spine-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.spine-subtitle {
    font-size: 16px;
    color: var(--text-medium);
    font-weight: 500;
}

.spine-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 40px;
    border-top: 2px solid var(--border-color);
    padding-top: 30px;
}

.spine-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.spine-feature-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-dark);
    font-weight: 500;
}

/* Tab Content Visibility */
.spine-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.spine-tab-content.active {
    display: flex;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {

    .spine-content-wrapper,
    .spine-tab-content.active {
        flex-direction: column;
    }

    .spine-img-area {
        height: 300px;
        order: -1;
        /* Image on top on mobile */
    }

    .spine-text-area {
        padding: 40px 20px;
    }

    .spine-title-group {
        top: -30px;
    }

    .spine-num {
        font-size: 60px;
    }
}

.staff-section-v2 {
    background: white;
    padding: 100px 0;
}

.staff-header {
    margin-bottom: 60px;
}

.staff-header-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.staff-header-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.staff-header-title span {
    color: var(--primary-color);
}

.staff-profile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically or align-start depending on image */
    margin-bottom: 80px;
    border-bottom: 1px solid #eee;
    padding-bottom: 60px;
    position: relative;
}

.staff-profile-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.staff-text-col {
    flex: 1;
    padding-right: 50px;
    z-index: 2;
}

.staff-img-col {
    flex: 0 0 450px;
    /* Fixed width for image container */
    position: relative;
    z-index: 1;
}

.staff-name-large {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.staff-role {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.staff-specialty {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-weight: 500;
}

.staff-eng-name {
    font-size: 80px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    /* Very subtle watermark effect */
    position: absolute;
    top: -40px;
    left: 0;
    z-index: -1;
    white-space: nowrap;
    line-height: 1;
}

.staff-history-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--text-dark);
    display: inline-block;
    padding-bottom: 5px;
}

.staff-history-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns for history if items are many */
    gap: 15px 40px;
}

.staff-history-list li {
    font-size: 15px;
    color: var(--text-medium);
    position: relative;
    padding-left: 12px;
}

.staff-history-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.staff-full-img {
    width: 100%;
    /* border-radius: 20px; Optional: Reference looks cutout or clean. Let's keep it clean. */
    /* If cutout request, we need transparent pngs. Assuming JPGs are rectangular. */
    border-radius: 0 50px 0 50px;
    /* Stylish radius */
    box-shadow: 20px 20px 0 var(--secondary-color);
    /* Decorative shadow/offset */
}

@media (max-width: 900px) {
    .staff-profile-container {
        flex-direction: column;
        text-align: left;
    }

    .staff-text-col {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .staff-img-col {
        flex: auto;
        width: 100%;
        max-width: 400px;
    }

    .staff-history-list {
        grid-template-columns: 1fr;
    }

    .staff-name-large {
        font-size: 36px;
    }

    .staff-eng-name {
        font-size: 50px;
        top: -20px;
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 60px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.copyright {
    border-top: 1px solid #34495e;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* Cooperation Section Styles */
.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cooperation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.coop-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coop-card {
    background: white;
    padding: 25px;
    /* Slightly reduced padding for tighter look */
    border-radius: 8px;
    /* Reduced from 16px for modern look */
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    /* Slightly more compact */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother transition */
    position: relative;
    overflow: hidden;
}

.coop-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Softer, larger shadow */
    transform: translateY(-5px);
}

/* Subtle modern effect on hover */
.coop-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.coop-card:hover::after {
    opacity: 0.3;
}

.coop-card img {
    max-width: 80%;
    /* Ensure logos have breathing room */
    max-height: 45px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    /* Start with grayscale for modern feel */
    opacity: 0.7;
    transition: all 0.3s;
}

.coop-card:hover img {
    filter: grayscale(0%);
    /* Color on hover */
    opacity: 1;
}

.coop-name {
    text-align: center;
    font-size: 15px;
    color: var(--text-dark);
    /* Darker for better readability */
    font-weight: 600;
    /* Bolder text for modern typography */
    letter-spacing: -0.02em;
    /* Tight typography */
}

/* Info Banner (New Card Layout) */
.info-card-section {
    padding-bottom: 100px;
    margin-top: -60px;
    /* Overlap with previous section slightly if needed, or just standard */
    margin-top: 60px;
}

.info-header-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: left;
}

.info-card-wrapper {
    display: flex;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    /* Reference box is sharp or slight radius. Let's go sharp/minimal */
}

.info-hours-panel {
    width: 400px;
    background-color: #bd9865;
    /* Primary styling color */
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.info-hours-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 20px;
}

.info-time-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 16px;
}

.info-time-label {
    font-weight: 700;
    width: 80px;
}

.info-time-value {
    flex: 1;
    text-align: right;
    font-weight: 400;
}

.info-time-sub {
    display: block;
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.8;
}

.info-phone-box {
    background-color: var(--text-dark);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.info-phone-num {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.info-phone-label {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 5px;
    display: block;
}

.info-map-panel {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.info-map-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.info-address-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.info-addr-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .info-card-wrapper {
        flex-direction: column;
    }

    .info-hours-panel {
        width: 100%;
        padding: 40px 20px;
    }

    .info-map-panel {
        height: 300px;
    }
}

/* Treatment Detail Page Styles */
.treatment-detail-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.t-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
}

.t-detail-title .subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 10px;
}

.t-detail-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.t-detail-desc {
    margin-bottom: 15px;
    font-weight: 500;
}

.t-detail-sub {
    color: var(--text-medium);
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
}

.highlight {
    color: var(--primary-dark);
    font-weight: 700;
    background: rgba(189, 152, 101, 0.1);
    padding: 0 4px;
}

/* Spine & Joint Center (Treatment) Section - Restoring Missing Styles */
.treatment-section {
    background-color: var(--text-dark);
    color: white;
    padding: 100px 0;
}

.treatment-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: white;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.treatment-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.treatment-item-link .treatment-item {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    height: 100%;
}

.treatment-item-link:last-child .treatment-item {
    border-right: none;
}

.treatment-item {
    text-align: center;
    padding: 0 20px;
    position: relative;
    border-right: none;
}

.treatment-num {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 25px;
}

.treatment-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.treatment-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 300;
}

/* Dark Button Fix */
.btn-dark-mode {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-dark-mode:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 900px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }

    .treatment-item-link:nth-child(2) .treatment-item {
        border-right: none;
    }

    .treatment-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 30px;
    }

    .treatment-item-link:nth-last-child(-n+2) .treatment-item {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .treatment-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .treatment-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .treatment-item-link:last-child .treatment-item {
        border-bottom: none;
    }
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    background-color: white;
    overflow: hidden;
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px);
}

.floating-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific Banner Colors */
.floating-btn[title="유튜브 채널"] {
    background-color: white;
    /* Base */
}

.floating-btn[title="유튜브 채널"] img {
    background-color: #ff0000;
    /* Red background for the image itself as requested */
    border-radius: 50%;
    /* Ensure it stays circular if the image is square */
    padding: 12px;
}

/* Image Slider */
.slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    /* Add top margin */
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 400px;
    /* Adjust height as needed */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}