/* Font Import (Pretendard) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

:root {
    /* Premium Colors */
    --primary-color: #0d47a1;
    /* Deeper Blue */
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --secondary-color: #26c6da;
    /* Cyan accent */
    --accent-color: #ff6f00;
    /* Amber for CTAs */

    --text-color: #212121;
    /* Almost Black */
    --text-light: #616161;
    /* Dark Grey */
    --text-lighter: #9e9e9e;
    /* Light Grey */

    --bg-color: #ffffff;
    --bg-light: #f5f7fa;
    /* Very light cool grey */
    --bg-surface: #ffffff;

    --border-color: #eeeeee;
    --white: #ffffff;

    /* Spacing & Layout */
    --container-width: 1240px;
    --header-height: 90px;
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard", sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-light);
    /* Overall background is slightly grey now */
    overflow-x: hidden;
    letter-spacing: -0.015em;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.section-title h2 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 300;
}

/* Button Upgrades */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* --- Header & Nav --- */
header {
    background: transparent;
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.3s ease;
}

header.scrolled,
header:not(.home-header) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: 70px;
    /* Shrink on scroll */
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Logo left, Button right */
    position: relative;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 20;
    margin-right: 0;
}

/* Nav centers the ul */
header nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    margin: 0;
}

.header-actions {
    position: relative;
    z-index: 20;
    margin-left: 0;
}

/* Hamburger hidden by default on desktop */
.hamburger {
    display: none;
}

/* Desktop Navigation - Right Aligned */
.nav-menu {
    display: flex;
    gap: 60px;
    /* Increased gap for spacious look */
    align-items: center;
    /* margin-left removed from here, applied to parent nav */
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-color);
    transition: var(--transition);
    padding: 8px 0;
}

header.home-header:not(.scrolled) .nav-link,
header.home-header:not(.scrolled) .logo {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: var(--primary-light);
}

.mobile-only {
    display: none;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smooth cubic bezier */
}

.animate-up {
    transform: translateY(60px);
}

.animate-left {
    transform: translateX(-60px);
}

.animate-right {
    transform: translateX(60px);
}

.animate-zoom {
    transform: scale(0.95);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --- Homepage Specifics --- */

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-btns {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #000;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Quick Menu */
.quick-menu {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quick-item {
    padding: 40px 20px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quick-item:last-child {
    border-right: none;
}

.quick-item:hover {
    background: var(--primary-color);
}

.quick-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.quick-item h3 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 600;
    transition: var(--transition);
}

.quick-item:hover i,
.quick-item:hover h3 {
    color: var(--white);
}

/* Departments */
.py-100 {
    padding: 120px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.dept-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
    /* Distinct accent */
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.15);
    /* Blue-ish shadow */
    border-top-color: var(--secondary-color);
    /* Color shift on hover */
}

/* Icon Wrapper */
.dept-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(13, 71, 161, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 40px 0 0 40px;
    /* Aligned left with info padding */
    transition: all 0.4s ease;
    position: relative;
    z-index: 5;
}

.dept-card:hover .dept-icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.dept-info {
    padding: 35px 40px 45px;
    /* Increased padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--white);
    z-index: 2;
}

.dept-info h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 800;
    display: block;
    /* Stacked layout */
    letter-spacing: -0.02em;
}

.dept-info p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
    word-break: keep-all;
}

.more-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
    background: rgba(13, 71, 161, 0.05);
    /* Subtle pill button */
    padding: 10px 20px;
    border-radius: 30px;
    width: fit-content;
}

.more-link:hover {
    gap: 8px;
    /* Maintain gap */
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Staff Preview */
.staff-preview {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    /* Inner padding like a card */
    display: flex;
    align-items: center;
    gap: 60px;
}

.staff-img-container {
    flex: 0 0 45%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.staff-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.staff-info h4 {
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.staff-info h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.history-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-light);
}

.history-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.banner h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* --- Sub-page Layout (The "Paper" look) --- */
.sub-banner {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
    /* Margin-top handled by 'header:not(.home-header) + .sub-banner' if needed, but header is fixed */
    margin-top: 0;
    /* Header is fixed, layout starts at top */
    padding-top: var(--header-height);
    /* Push content down */
}

.sub-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.sub-banner .container {
    position: relative;
    z-index: 1;
}

.sub-banner h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.sub-banner p {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-wrapper {
    background: var(--bg-light);
    /* Off-white background for the page */
    padding: 80px 0;
}

.content-card {
    /* NEW: Card container for sub-page content */
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 60px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    /* Darker, cleaner grey/black */
    color: #b0b0b0;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

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

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links li,
.footer-contact li,
.footer-info li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact li {
    color: #b0b0b0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #808080;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .staff-preview {
        flex-direction: column;
        text-align: start;
        gap: 30px;
    }

    .staff-img-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        height: 70px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: var(--shadow-sm);
    }

    header.home-header:not(.scrolled) .logo {
        color: var(--primary-color) !important;
        text-shadow: none;
    }

    header nav {
        position: static;
        transform: none;
        width: auto;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: var(--white);
        padding: 40px;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        top: 0;
        opacity: 1;
        visibility: visible;
    }

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

    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-dark) !important;
        text-shadow: none !important;
    }

    .mobile-only {
        display: block;
    }

    .header-actions {
        display: none;
        /* Hide reservation button on mobile */
    }

    .hamburger {
        display: flex;
        /* Show hamburger on mobile */
        flex-direction: row;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        z-index: 101;
        padding: 10px;
    }

    .hamburger-bars {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .hamburger-bars .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: 0.3s ease;
    }

    .hamburger-toggle-text {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-color);
        transition: 0.3s ease;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Removed white color override - now always primary blue */
}

/* Mobile menu is white bg */

@media (max-width: 768px) {
    .quick-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-item {
        padding: 30px 15px;
    }

    .quick-item:nth-child(2) {
        border-right: none;
    }

    .quick-item:nth-child(1),
    .quick-item:nth-child(2) {
        border-bottom: 1px solid var(--border-color);
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .content-card {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        line-height: 1.4;
        margin-bottom: 15px;
        word-break: keep-all;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.9;
        word-break: keep-all;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 25px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .interior-grid {
        grid-template-columns: 1fr !important;
    }
}


/* --- New Section Styles -- */

/* 1. Why Choose Us (Icon Boxes) */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 71, 161, 0.05);
    /* Primary very light */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--primary-color);
    color: var(--white);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* 2. Hospital Interior (Grid) */
.interior-section {
    position: relative;
    overflow: hidden;
}

.interior-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.interior-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.interior-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    height: 100%;
}

.interior-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.interior-item:hover img {
    transform: scale(1.05);
}

/* 3. Community / Notice (2 Column) */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.community-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.community-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.more-btn-sm {
    font-size: 0.9rem;
    color: var(--text-light);
}

.notice-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-title {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.notice-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Review Card Redesign */
.review-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 71, 161, 0.1);
}

/* Quote Icon Background */
.review-card::before {
    content: '\f10d';
    /* FontAwesome Quote Left */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.06;
    z-index: 0;
}

.review-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    z-index: 1;
}

.review-card p {
    font-size: 1rem;
    color: #444;
    font-weight: 400;
    line-height: 1.7;
    z-index: 1;
    flex-grow: 1;
    /* Push footer down */
}

.review-author {
    margin-top: auto;
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: 50px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Naver Booking Button */
.btn-naver {
    background-color: #03c75a;
    color: white;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-naver:hover {
    background-color: #02b351;
    /* Darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(3, 199, 90, 0.3);
}

/* Issuance Page Table */
.issuance-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.issuance-table th {
    background: var(--bg-light);
    color: var(--primary-dark);
    font-weight: 700;
    border-top: 2px solid var(--primary-color);
}

.issuance-table td {
    color: var(--text-color);
    font-size: 0.95rem;
}

.issuance-table tr:hover {
    background: rgba(13, 71, 161, 0.02);
}

@media (max-width: 768px) {

    .issuance-table th,
    .issuance-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}


/* Infinity Review Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding: 10px;
    /* Space for shadow */
}

/* Pause on hover for readability */
.slider-track:hover {
    animation-play-state: paused;
}

.slider-track .review-card {
    width: 400px;
    flex-shrink: 0;
    /* Reset previous grid-specific styles if any, or ensure these override */
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by half the track width (assuming 2 sets of identical items) */
        /* Calculation: (400px width + 30px gap) * 5 items = 2150px approx */
        /* Exact calculation depends on item count. 
           With 5 items * 2 sets = 10 items. 
           We move -50% of the track. */
        transform: translateX(calc(-1 * (400px + 30px) * 5));
    }
}

/* Mobile Adjustments for Slider */
@media (max-width: 768px) {
    .slider-track .review-card {
        width: 300px;
        padding: 25px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-1 * (300px + 30px) * 5));
        }
    }
}

/* Ensure natural text wrapping for Korean */
.why-card p {
    word-break: keep-all;
    word-wrap: break-word;
    /* Fallback */
    padding: 0 10px;
    /* Slight padding */
}

/* --- New Staff Banner Design --- */
.staff-banner {
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: var(--white);
    /* min-height: 500px; */
}

/* Mobile responsive for banner */
@media (max-width: 768px) {
    .staff-banner {
        flex-direction: column-reverse;
        /* Image on top on mobile? No, text top, image bottom? */
        flex-direction: column;
        text-align: center;
    }
}

.staff-content {
    flex: 1;
    padding: 60px;
    z-index: 2;
}

@media (max-width: 768px) {
    .staff-content {
        padding: 40px 20px;
    }
}

.staff-photo {
    flex: 0 0 45%;
    position: relative;
    height: 100%;
    min-height: 500px;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Enhancements */
.role-badge {
    display: inline-block;
    color: #ffd700;
    /* Gold */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 5px;
}

.staff-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.2;
}

.staff-content h2 span {
    font-size: 1.8rem;
    font-weight: 400;
    margin-left: 10px;
    opacity: 0.9;
}

.philosophy {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
    font-family: 'Times New Roman', serif;
    /* Or keep pretendard but lighter */
}

/* White list overrides */
.history-list.white-text li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.history-list.white-text li::before {
    background: #ffd700;
    /* Gold bullets */
}

.signature-text {
    font-family: cursive;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 30px;
    display: block;
    text-align: right;
}

@media (max-width: 768px) {
    .signature-text {
        text-align: center;
    }

    .staff-photo {
        min-height: 300px;
        width: 100%;
    }
}

/* --- Clean Profile Design (Light Theme) --- */
.staff-profile-container {
    display: flex;
    background: #f8f9fa;
    /* Very light gray */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .staff-profile-container {
        flex-direction: column;
    }
}

.profile-image-col {
    flex: 0 0 40%;
    position: relative;
    min-height: 400px;
}

.profile-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-content-col {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .profile-content-col {
        padding: 40px 25px;
    }
}

.profile-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.profile-header h2 {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-header h2 span {
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-left: 10px;
}

.profile-quote {
    font-size: 1.25rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.career-section h4 {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 20px;
    font-weight: 700;
}

.career-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.career-list li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.career-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    transition: gap 0.3s;
}

.profile-link:hover {
    gap: 15px;
    color: var(--primary-dark);
}

/* --- About Page Redesign --- */
.about-section {
    margin-bottom: 100px;
}

.section-badge {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.about-title {
    font-size: 2.2rem;
    color: #111;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    word-break: keep-all;
}

.signature-box {
    margin-top: 30px;
    text-align: right;
}

.signature-text-dark {
    font-family: cursive;
    font-size: 2rem;
    color: #333;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Philosophy Cards */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.philosophy-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.1);
    border-color: var(--primary-color);
}

.phil-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(13, 71, 161, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.philosophy-card:hover .phil-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.philosophy-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.philosophy-card p {
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
    font-size: 1.05rem;
}

/* --- Staff Slider Styles --- */
.staff-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    /* Hide overflow */
    border-radius: 20px;
}

.staff-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.staff-profile-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Ensure inner container resets margin */
.staff-profile-slide .staff-profile-container {
    margin: 0;
    width: 100%;
    box-shadow: none;
    /* Shadow handled by parent container if needed */
    border-radius: 0;
    /* Let parent clip */
    height: 100%;
    /* Equal height */
}

/* Nav Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
    /* Pill shape */
}

@media (max-width: 768px) {
    .about-title {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 20px;
        word-break: keep-all;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .profile-header h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .profile-header h2 span {
        font-size: 1.2rem;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    .profile-quote {
        font-size: 1.1rem;
        padding-left: 15px;
        margin-bottom: 30px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }
}

/* --- Staff Page Layout Overrides --- */
.staff-profile-container.alternate {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .staff-profile-container.alternate {
        flex-direction: column;
    }
}

.staff-list .about-section {
    margin-bottom: 60px;
}

.staff-list .about-section:last-child {
    margin-bottom: 0;
}

/* --- Interactive Departments Page --- */
.dept-interactive-container {
    display: flex;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    min-height: 500px;
    margin-bottom: 80px;
}

.dept-tabs {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dept-tab-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border: none;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.dept-tab-btn i {
    font-size: 1.4rem;
    color: var(--primary-color);
    opacity: 0.6;
    transition: all 0.3s;
}

.dept-tab-btn span {
    font-weight: 600;
    font-size: 1rem;
}

.dept-tab-btn:hover {
    background: rgba(13, 71, 161, 0.05);
    transform: translateX(10px);
}

.dept-tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2);
}

.dept-tab-btn.active i {
    color: var(--white);
    opacity: 1;
}

.dept-tab-content-wrapper {
    flex: 1;
    position: relative;
    padding: 20px;
}

.dept-panel {
    display: none;
    animation: fadeInSlide 0.5s ease forwards;
}

.dept-panel.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.logo-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.panel-header h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.panel-header p {
    font-size: 1.1rem;
    color: #888;
}

.panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.treatment-info h4,
.treatment-features h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.treatment-info h4::before,
.treatment-features h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 2px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 1.05rem;
}

.check-list li i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pills span {
    padding: 8px 18px;
    background: rgba(13, 71, 161, 0.05);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .dept-interactive-container {
        flex-direction: column;
        padding: 20px;
    }

    .panel-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .panel-header h3 {
        font-size: 1.5rem;
    }

    .panel-header p {
        font-size: 0.95rem;
    }

    .dept-tabs {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .dept-tab-btn {
        flex: 0 0 auto;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .panel-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* --- View More Button for Departments --- */
.btn-more-depts {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-more-depts:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2);
}

.btn-more-depts i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-more-depts:hover i {
    transform: translateX(5px);
}

/* --- Issuance Page Redesign --- */
.issuance-process {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-md);
}

.process-step {
    flex: 1;
    text-align: center;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    margin-bottom: -20px;
}

.step-text h4 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.step-text p {
    font-size: 0.9rem;
    color: #888;
}

.process-arrow {
    padding: 0 20px;
    color: #ddd;
}

.doc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.doc-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid #eee;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.doc-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: rgba(13, 71, 161, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.doc-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.doc-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.doc-card .badg {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f4f8;
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doc-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.doc-card ul li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.doc-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.issuance-table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 950px;
    margin: 40px auto 0;
    border: 1px solid #ddd;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.premium-table th {
    background: #f8fafd;
    padding: 18px 10px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
    border-right: 1px solid #eee;
    font-size: 0.95rem;
}

.premium-table th:last-child {
    border-right: none;
}

.premium-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    font-size: 0.95rem;
    color: #444;
    vertical-align: middle;
}

.premium-table td:last-child {
    border-right: none;
}

.premium-table tr:nth-child(even) {
    background: #fafafa;
}

.premium-table .cat {
    width: 18%;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.premium-table .item {
    width: 37%;
    text-align: left;
    padding-left: 20px;
}

.premium-table .price {
    width: 25%;
    font-weight: 700;
    color: #d32f2f;
    text-align: center;
}

.premium-table .note {
    width: 20%;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

@media (max-width: 768px) {
    .issuance-process {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }

    .process-arrow {
        transform: rotate(90deg);
        padding: 5px 0;
    }

    .doc-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Premium Table Mobile Optimization */
    .premium-table th,
    .premium-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .premium-table .cat {
        width: 18%;
        font-size: 0.8rem;
        padding: 12px 2px;
    }

    .premium-table .item {
        width: 44%;
        padding-left: 8px;
        font-size: 0.85rem;
        text-align: left;
    }

    .premium-table .price {
        width: 38%;
        font-size: 0.8rem;
        word-break: break-all;
    }

    .premium-table .note {
        display: none;
    }
}