@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;
}

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: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 0;
    /* Square nav buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-nav button:hover {
    background: white;
    color: var(--primary-color);
}

.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-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .tour-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.tour-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square 1:1 Ratio */
    border-radius: 0;
    /* Square tour images */
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--light-gray);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tour-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-item:hover .tour-img-wrapper {
    transform: translateY(-5px);
}

.tour-item:hover .tour-img-wrapper img {
    transform: scale(1.05);
}

/* 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;
}

.profile-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
}

/* Watermark Background */
/* Watermark Background */
.yonsei-watermark {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 250px;
    /* Adjusted size */
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.yonsei-watermark img {
    width: 100%;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    padding-left: 300px;
    /* Explicit shift right */
}

@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: 1;
    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: white;
    /* White background */
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.subject-card {
    background: white;
    /* Can be refined if section is white, maybe border? */
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    border: 1px solid var(--border-light);
    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: 80px;
    /* Small icon-like size */
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 0;
    overflow: hidden;
    background: #f9f9f9;
    padding: 10px;
    /* Padding inside circle */
    border: 1px solid #eee;
}

.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;
}

@media (max-width: 768px) {
    .comparison-header {
        flex-direction: column;
        gap: 1rem;
    }

    .comp-col img {
        width: 80px;
        height: 80px;
    }

    .vs-badge {
        margin: 1rem 0;
        font-size: 2rem;
    }

    .comp-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1.5rem 0;
    }

    .comp-criteria {
        width: 100%;
        order: -1;
        margin-bottom: 0.5rem;
    }
}