@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* Global Variables */
:root {
    /* Branding - Sky Forest Blue */
    --primary-color: #8FAAC8;
    --primary-hover: #7A95B3;
    --secondary-color: #F0F7FF;
    /* Very light blue background */
    --accent-color: #555555;

    /* Typography */
    --font-heading: 'Pretendard', sans-serif;
    --font-body: 'Pretendard', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --header-height: 90px;
    --border-radius: 0px;
    /* Rectangular Design */

    /* Colors */
    --text-color: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --border-light: #e1e1e1;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    word-break: keep-all;
    /* Prevent awkward word breaks in Korean */
    text-wrap: pretty;
    /* Prevent single word orphans on new line */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.center {
    text-align: center;
}

/* Typography Helpers */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-subtitle.left {
    display: block;
    /* Ensure block for alignment context */
    text-align: left;
}

.section-subtitle.left::after {
    left: 0;
    transform: none;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.3;
}

.section-desc {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
}

.desktop-nav a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.nav-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    /* Square buttons */
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: var(--primary-hover);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    color: var(--text-color);
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-btn.full-width {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
    /* Dark bg for image contrast */
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    /* Darken overlay built-in via linear-gradient in HTML, but backup here */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide .hero-content {
    /* Override hero-content for carousel */
    width: 60%;
    background: transparent;
    clip-path: none;
    filter: none;
    color: white;
    padding-left: 0;
    padding-top: 0;
    align-items: flex-start;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-slide .hero-subtitle {
    background: transparent;
    color: white;
    border: none;
    backdrop-filter: none;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-slide .hero-title {
    color: white;
    font-size: 3.5rem;
}

.carousel-slide .hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 0;
    /* Square nav buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 1.5rem;
    /* Make arrow slightly larger since box is gone */
}

.carousel-nav button:hover {
    background: transparent;
    color: white;
    transform: translateY(-50%) scale(1.2);
    /* Scale up arrow on hover */
}

.prev-btn {
    left: 3rem;
}

.next-btn {
    right: 3rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 0;
    /* Square dots */
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .carousel-slide .hero-content {
        width: 90%;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    .carousel-slide .hero-title {
        font-size: 2.5rem;
    }

    .prev-btn,
    .next-btn {
        display: none;
        /* Hide arrows on mobile, keep dots */
    }
}

/* Feature Sections (ZigZag) */
.feature-section {
    padding: 100px 0;
    background-color: white;
    overflow: hidden;
}

.feature-section.alt-bg {
    background-color: var(--bg-gray);
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-layout.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-subtitle {
    display: block;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    color: var(--text-color);
}

.feature-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    word-break: keep-all;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-list li {
    font-size: 1.05rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-image .img-wrapper {
    width: 100%;
    border-radius: 0;
    /* Square images */
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.feature-image .img-wrapper:hover {
    transform: translateY(-5px);
}

.feature-image .img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlapping Sub-image implementation for visual flair */
.feature-image .sub-img {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 45%;
    border: 4px solid white;
    z-index: 2;
}

@media (max-width: 1024px) {

    .feature-layout,
    .feature-layout.reverse {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .feature-image .sub-img {
        display: none;
        /* Hide complex layout on mobile for cleaner look */
    }
}

/* Tour Section - Carousel */
.tour-slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 3rem;
}

.tour-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.tour-item {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.tour-item.active {
    opacity: 1;
    transform: scale(1);
}

.tour-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    background-color: #eee;
}

.tour-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.tour-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Tour Nav Buttons */
.tour-nav button {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-size: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-nav button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.tour-prev {
    left: 10px;
}

.tour-next {
    right: 10px;
}

/* Tour Dots (Custom Style) */
.tour-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.tour-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.tour-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .tour-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .tour-item h3 {
        font-size: 1.35rem;
    }

    .tour-desc {
        font-size: 1rem;
    }
}

/* Why Us / Services Section */
.services-section {
    padding: 100px 0;
    background-color: white;
    position: relative;
    /* z-index context */
    z-index: 2;
    /* overlap header if needed or standard stacing */
}

/* Card Style - 365implant Vibe */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0;
    /* Square service images */
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Director Section (Redesigned) */
.director-section-new {
    padding: 100px 0;
    background-color: white;
}

.sub-header-text {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.main-header-text {
    font-size: 2.5rem;
    font-weight: 400;
    /* Thin look for '하늘숲치과' */
    color: #333;
    margin-bottom: 3rem;
}

.main-header-text .highlight {
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.director-intro-text {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.director-intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.intro-sign {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.intro-sign .sign-name {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Revised Director Profile Layout */
.profile-container {
    max-width: 900px;
    /* Reduced specific width for better focus */
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-content-new {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 1. Name/Header Section */
.doctor-header-group {
    /* Flush left alignment, name above everything */
    text-align: left;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    width: 100%;
}

.doctor-name {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.name-highlight {
    font-weight: 800;
    color: var(--primary-color);
}

.doctor-specialties {
    font-size: 1.05rem;
    color: #666;
    font-weight: 500;
}

/* 2. Main Area (Photo + Bio) */
.doctor-main-area {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .doctor-main-area {
        flex-direction: row;
        align-items: stretch;
        /* Stretch to match height */
        gap: 3rem;
    }
}

/* Photo Area */
.profile-img-area {
    width: 100%;
    max-width: 350px;
    /* Limit width */
    margin: 0 auto;
    border: none;
    padding: 0;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
    /* Ensure image fills the height */
    background: #f0f0f0;
}

@media (min-width: 768px) {
    .profile-img-area {
        flex: 0 0 350px;
        /* Fixed width on desktop */
        margin: 0;
        /* Left align relative to flex container */
    }
}

.profile-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover ensures it fills the height without distortion */
    display: block;
}

/* Bio Info Area */
.profile-info-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically if bio is shorter */
}

/* If user wants explicit height match, object-fit covers on image side, 
   but bio text length determines height of the row usually. 
   If image is taller, bio centers. If bio is taller, image covers. */

.info-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.info-list {
    list-style: none;
}

.info-list li {
    font-size: 0.95rem;

    color: #555;
    margin-bottom: 0.4rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1rem;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}




.profile-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
    width: 100%;
    align-items: center;
    /* Center items on all screens */
    /* padding-left removed */
}

@media (min-width: 768px) {
    .profile-content {
        flex-direction: row;
        align-items: center;
        /* Vertical Center */
        justify-content: center;
    }
}

.profile-img-area {
    flex: 0 0 320px;
    /* Fixed width for photo */
    border: 1px solid #eee;
    padding: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-img-area img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-info-area {
    flex: 0 1 auto;
    /* Don't force grow, keep it compact next to image */
    max-width: 500px;
    /* Prevent it from getting too wide */
    padding-top: 0;
    margin-left: 0;
    /* Removed top padding for center alignment */
}

/* New Doctor Header Styles */
.doctor-header-group {
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1.5rem;
}

.doctor-name {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.name-highlight {
    font-weight: 800;
    color: var(--primary-color);
}

.doctor-specialties {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.info-group {
    margin-bottom: 0;
    /* Removed margin since only one group */
}

.info-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.8rem;
}

.info-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #999;
}

/* Clean up old director styles if they exist or just overwrite/ignore */
.dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    background-color: var(--primary-color);
}

/* Clinical Subjects */
.subjects-section {
    padding: 120px 0;
    /* Generous spacing */
    background-color: #f8f9fa;
    /* Light gray background for contrast */
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }
}

@media (max-width: 576px) {
    .subjects-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.subject-card {
    background: white;
    padding: 2rem;
    /* Restore padding for card look */
    border-radius: 0;
    text-align: left;
    /* Left align text */
    border: 1px solid #eee;
    /* Add subtle border */
    transition: transform 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-5px);
    /* border-color: var(--primary-color); */
    /* box-shadow: var(--shadow-md); */
}

.subject-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subject-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.subject-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Tour Section */
.tour-section {
    padding: 100px 0;
    background-color: var(--bg-gray);
    /* Gray background */
}

/* Using existing classes from overwrite above for grid */

/* Location */
.location-section {
    padding: 100px 0;
    background-color: white;
    /* White background */
}

/* Tech Summary Grid (Why Us) */
.tech-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-item {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 0;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.tech-img-wrapper {
    width: 100%;
    height: 200px;
    margin: 1.5rem 0 0;
    border-radius: 0;
    overflow: hidden;
    background: #f9f9f9;
    padding: 0;
    border: none;
}

.tech-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* Square icon images */
}

/* Restoring Location Content */
/* Restoring Location Content */
.location-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Mobile first gap */
}

.tech-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #333;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .location-content {
        flex-direction: row;
    }
}

.map-placeholder {
    flex: 1.5;
    min-height: 400px;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    /* Ensure rounded corners clip the map */
    /* Removed flex centering as iframe fills 100% */
}

.contact-info {
    flex: 1;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.info-item {
    margin-bottom: 2.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.info-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    /* Darker footer like 365 usually */
    color: white;
    padding: 4rem 0;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding-top: 2rem;
}


/* VS Comparison Layout */
.comparison-wrapper {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: white;
    border: 1px solid #eee;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.comp-col {
    flex: 1;
    text-align: center;
}

.comp-col h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.comp-col.left h3 {
    color: #888;
}

.comp-col.right h3 {
    color: var(--primary-color);
    /* Brand Color */
}

.comp-img-placeholder {
    width: 220px;
    /* Increased size */
    height: 220px;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.comp-img-placeholder.active {
    border-color: var(--primary-color);
    /* Brand Color Border */
}

.vs-badge {
    font-size: 3.5rem;
    /* Larger VS */
    font-weight: 900;
    color: var(--primary-color);
    /* Brand Color */
    margin: 0 3rem;
    font-family: 'Pretendard', sans-serif;
    font-style: italic;
}

.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Connected look */
    border-top: 1px solid #eee;
}

.comp-row {
    display: flex;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-cell {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    color: #666;
}

.comp-cell.left {
    color: #999;
}

.comp-cell.right {
    color: #333;
    font-weight: 700;
}

.comp-criteria {
    flex: 0 0 120px;
    text-align: center;
    background: var(--primary-color);
    /* Brand Color Background */
    color: white;
    font-weight: 700;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    border-radius: 4px;
}

/* Brand Logo Styles */

.logo-container-center {
    margin: 1rem 0;
    text-align: center;
}

.logo-container-left {
    margin: 1rem 0;
    text-align: left;
}

.section-header-logo {
    display: inline-block;
    height: 120px;
    width: auto;
    mix-blend-mode: multiply;
}

/* Responsive adjustments for Logo */
@media (max-width: 768px) {
    .section-header-logo {
        height: 70px;
    }
}

/* Clinical Subject Images */
.subject-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 0;
    background-color: #f9f9f9;
}

.subject-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subject-card:hover .subject-img img {
    transform: scale(1.1);
}

/* Highlight Text Effect */
.text-highlight {
    background: linear-gradient(to top, #ffe680 40%, transparent 40%);
    display: inline;
    padding: 0 2px;
}

/* Scroll Animation */
.comp-col {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease-out;
}

.animate-active .comp-col.left {
    transform: scale(0.95);
    opacity: 0.7;
}

.animate-active .comp-col.right {
    transform: scale(1.05);
    z-index: 10;
}

@media (max-width: 768px) {

    /* 1. Global Section Padding Reduction */
    .feature-section,
    .subjects-section,
    .director-section-new,
    .location-section,
    .tour-section,
    .services-section {
        padding: 60px 0;
    }

    /* 2. Director Section Fixes */
    .profile-container {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-img-area {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* 3. Hero Section Fixes */
    .hero-title {
        font-size: 2.2rem;
    }

    .prev-btn,
    .next-btn {
        display: flex !important;
        top: auto;
        bottom: 2rem;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 1rem;
    }

    .next-btn {
        right: 1rem;
    }

    /* VS Comparison Section - FORCED ROW LAYOUT (Shrunk) */
    .comparison-wrapper {
        padding: 1.5rem 0.5rem !important;
        /* Narrow padding */
        margin-top: 2rem;
    }

    .comparison-header {
        flex-direction: row !important;
        /* Force side-by-side */
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .comp-col img {
        /* This selector might effectively be unused if div bg images are used, but keeping for safety */
        width: 70px;
        height: 70px;
    }

    .comp-col h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        word-break: keep-all;
    }

    .comp-img-placeholder {
        /* Responsive scaling */
        width: 18vw;
        height: 18vw;
        max-width: 80px;
        max-height: 80px;
        min-width: 60px;
        min-height: 60px;
        margin: 0 auto;
        border-width: 3px;
        flex-shrink: 0;
    }

    .vs-badge {
        margin: 0 0.5rem;
        font-size: 1.2rem;
        white-space: nowrap;
    }

    /* Force Table Rows to Side-by-Side */
    .comp-row {
        flex-direction: row !important;
        /* CRITICAL: Force row */
        gap: 0 !important;
        align-items: center;
        padding: 1rem 0;
        text-align: center;
    }

    /* Center Badge (Criteria) */
    .comp-criteria {
        width: auto !important;
        flex: 0 0 65px !important;
        /* Fixed width */
        order: 0 !important;
        /* Ensure it's in the middle */
        margin-bottom: 0 !important;
        font-size: 0.8rem;
        padding: 0.4rem 0;
        margin: 0 0.2rem;
        white-space: nowrap;
    }

    /* Text Cells */
    .comp-cell {
        font-size: 0.85rem;
        padding: 0 0.2rem;
        word-break: keep-all;
        line-height: 1.35;
    }

    /* Image width forcing removed from here to prevent magnification on tablets */
}

@media (max-width: 480px) {

    /* Additional tweaks for very small screens */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle,
    .hero-desc {
        font-size: 1rem;
    }

    .comp-img-placeholder {
        border-width: 2px;
        /* Thinner border on tiny screens */
    }

    .comp-cell {
        font-size: 0.8rem;
        /* Slightly smaller text */
    }

    /* Restore forced full width for images ONLY on very small screens */
    .feature-image .img-wrapper,
    .tour-img-wrapper,
    .service-img-wrapper {
        width: 100%;
    }
}