/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Color Variables */
:root {
    --primary-red: #D32F2F;
    --hover-red: #B71C1C;
    --dark-bg: #1a1a1a;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --gold: #C5A059;
}

/* Top Bar */
.top-bar {
    background-color: #000;
    color: #ccc;
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-group span {
    margin-right: 20px;
}

.contact-group i {
    color: var(--primary-red);
    margin-right: 5px;
}

.social-icons-top a {
    color: #ccc;
    margin-left: 15px;
    font-size: 0.9rem;
}

.social-icons-top a:hover {
    color: var(--white);
}

/* Main Header */
header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky; /* Sticky header for better UX */
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #000;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--primary-red);
}

.header-actions a {
    display: inline-block;
    padding: 10px 20px;
    margin-left: 10px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--hover-red);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Navigation */
.main-nav {
    background-color: var(--primary-red);
    position: relative;
    z-index: 9999; /* Increased z-index to ensure it stays on top */
}

.main-nav .container {
    display: flex;
    justify-content: center; /* Desktop: Center align */
    align-items: center;
}

.main-nav ul {
    display: flex;
    justify-content: center;
}

.main-nav a {
    display: block;
    color: var(--white);
    padding: 15px 20px;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Toggle (Hidden by default) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
}

/* 
   HERO SLIDER SECTION 
*/
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh; /* Reduced height from 90vh to 70vh */
    min-height: 500px;
    overflow: hidden; /* Ensure slides don't overflow */
    display: flex;
    align-items: flex-end; /* Moved to bottom */
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-bottom: 60px; /* Adjusted padding */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* Slider Controls (Arrows) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}


/* Specific class for About Page Header (Static Hero) */
.masthead-about {
    position: relative;
    width: 100%;
    height: 50vh; /* Slightly shorter for sub-pages */
    min-height: 350px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

/* Masthead for Private Lessons */
.masthead-private {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    background-image: url('assets/img/bg-piano.jpg'); /* Default background */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

/* Masthead for Contact Page */
.masthead-contact {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    background-image: url('assets/img/KakaoTalk_Photo_2026-02-01-21-43-05 004.jpeg'); /* Requested Image */
    background-repeat: no-repeat;
    background-position: center 75%; /* Adjusted to show face (top) */
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

.masthead-private::before, .masthead-group::before, .masthead-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
    z-index: 1;
}

/* Masthead for Group Lessons */
.masthead-group {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    background-image: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color set inline or via class */
    z-index: 2; /* Above slides */
}

.hero-content {
    position: relative;
    z-index: 3; /* Above overlay */
    max-width: 800px;
    padding: 20px;
}

.hero-content h2, .masthead-about h2, .masthead-private h2, .masthead-group h2, .masthead-contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; /* Larger font */
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    color: var(--white);
}

.hero-subtext {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.hero-detail {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #f1f1f1;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.btn-red-large {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    margin: 0 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: inline-block; /* Ensure block for mobile */
    margin-bottom: 10px; /* Spacing for mobile stacking */
}

.btn-red-large:hover {
    background-color: var(--hover-red);
}

.btn-outline-large {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    margin: 0 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: inline-block; /* Ensure block for mobile */
}

.btn-outline-large:hover {
    background-color: var(--white);
    color: #000;
}

/* Welcome Section */
.welcome-section {
    padding: 150px 0 80px; /* Increased top padding from 80px to 150px */
    text-align: center;
}

.welcome-text h2 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
}

.divider {
    width: 100px;
    height: 3px;
    background-color: var(--primary-red);
    margin: 0 auto 30px;
    border: none;
}

.welcome-text p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Programs Section */
.programs-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #000;
    position: relative;
    padding-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

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

/* FEATURE SECTION STYLES */
.private-features {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    background: transparent;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    min-width: 300px;
}

.feature-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.feature-row:hover .feature-image img {
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 2px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-red);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #111;
}

.feature-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* List Styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #555;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-red);
    font-size: 0.9rem;
}

.check-list li i {
    color: #2e7d32; /* Green for checkmarks */
}

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

.program-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.program-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.program-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Video Section Styles (Global) */
.video-section {
    padding: 100px 0;
    background-color: var(--white);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.video-item:hover {
    transform: translateY(-5px);
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-info {
    padding: 25px;
}
.video-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}
.video-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 
   FULL BIO SECTION (Cinematic Style)
*/
.full-bio-section {
    position: relative;
    background-size: cover;
    background-position: center right; /* Focus on the person on the right */
    background-attachment: scroll; /* Scroll is usually better for mobile text */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Overlay Gradient to make text readable on the left */
.full-bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%; /* Cover left side */
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0)); /* Fade to clear */
    z-index: 1;
}

.full-bio-container {
    width: 100%;
    padding: 100px 50px; /* Reduced left padding to move text further left */
    position: relative;
    z-index: 2; /* Above gradient */
    color: var(--white);
    display: flex;
    justify-content: flex-start; /* Align content to the left */
}

.bio-content-left {
    max-width: 600px; /* Restrict width so it doesn't cover the face */
}

.bio-content-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.bio-content-left .bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd; /* Slightly softer white for body text */
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 100px 0; /* More padding for immersive feel */
    text-align: center;
}

.section-title.white-text {
    color: var(--white);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item .quote {
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Playfair Display', serif;
}

.testimonial-item .author {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-red);
}

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 950px; /* Restored from 1100px */
    max-width: 95%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    animation: fadeIn 0.4s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-body {
    display: flex;
    width: 100%;
}

.modal-image {
    flex: 1; /* Equal ratio with image */
    background-color: #eee;
    min-height: 500px; /* Restored from 550px */
}

.modal-form {
    flex: 1; /* Equal ratio with image */
    padding: 30px 50px; /* Reduced top/bottom from 50px to 30px */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-form h2 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

.modal-form p {
    margin-bottom: 20px;
    color: #555;
}

.modal-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    z-index: 10;
}

.close-btn:hover {
    color: #000;
}

.dont-show {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
}

.dont-show input {
    width: auto;
    margin-right: 5px;
    margin-bottom: 0;
}

/* Suzuki Section Styles */
.suzuki-highlight {
    text-align: center;
    margin-bottom: 80px;
    padding: 80px 40px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 2px solid #ffebeb;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(211, 47, 47, 0.1);
}

.suzuki-title-the {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #555;
    display: block;
    line-height: 0.5;
}

.suzuki-title-main {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    color: var(--primary-red);
    margin: 0;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.2;
}

.suzuki-title-method {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.2rem;
    color: #888;
    letter-spacing: 8px;
    text-transform: uppercase;
    display: block;
    margin-top: -10px;
}

.suzuki-quote {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-slider, .masthead-about, .masthead-private, .masthead-group, .masthead-contact {
        height: 50vh; /* Smaller hero on mobile */
        min-height: 300px;
    }
    
    .hero-content h2, .masthead-about h2, .masthead-private h2, .masthead-group h2, .masthead-contact h2 {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }
    
    /* Adjust control buttons for mobile */
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    /* Top Bar & Header */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-group span {
        display: block;
        margin: 5px 0;
    }
    
    .social-icons-top {
        margin-top: 10px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        margin-top: 15px;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block; /* Show hamburger button on mobile */
        position: absolute; /* Position it properly */
        right: 15px;
        top: 0;
    }

    .main-nav .container {
        flex-direction: column;
        align-items: flex-start; /* Align menu items to left */
    }

    .main-nav ul {
        display: none; /* Hide menu by default */
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
        background-color: var(--primary-red);
    }

    .main-nav ul.active {
        display: flex; /* Show menu when active */
    }

    .main-nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Feature Rows on Mobile */
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .feature-content, .feature-image {
        min-width: 100%; /* Override fixed min-width */
        width: 100%;
    }

    .private-features {
        gap: 50px;
    }

    .feature-content h3 {
        font-size: 1.8rem;
    }

    /* Welcome Section */
    .welcome-section {
        padding: 80px 0 50px;
    }
    
    .welcome-text h2 {
        font-size: 1.8rem;
    }

    /* Suzuki Section Mobile */
    .suzuki-highlight {
        padding: 40px 20px;
    }

    .suzuki-title-the {
        font-size: 2rem;
    }

    .suzuki-title-main {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .suzuki-title-method {
        font-size: 0.9rem;
        letter-spacing: 4px;
        margin-top: 0;
    }

    .suzuki-quote {
        font-size: 1.4rem;
    }

    /* Bio Section Responsive */
    .full-bio-section {
        background-position: center; /* Center image on mobile */
        min-height: auto;
        padding: 50px 0;
    }
    .full-bio-section::before {
        width: 100%; /* Full darken overlay on mobile */
        background: rgba(0,0,0,0.6);
    }
    .full-bio-container {
        padding: 30px;
    }
    .bio-content-left {
        max-width: 100%;
        text-align: center;
    }
    
    .bio-content-left h2 {
        font-size: 2.2rem;
    }

    /* Modal Mobile */
    .modal-content {
        flex-direction: column;
        width: 90%;
        margin: auto;
        height: 80vh; /* Fixed height for 1:1 split */
        max-height: 600px;
        overflow: hidden;
    }
    
    .modal-body {
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .modal-image {
        display: block; /* Show image */
        height: 50%; /* Top 50% */
        width: 100%;
        min-height: 0;
        flex: initial; /* Reset flex grow */
    }

    .modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 0%;
    }

    .modal-form {
        height: 50%; /* Bottom 50% */
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: initial;
    }

    /* Hide text on mobile only */
    .modal-form h2,
    .modal-form p {
        display: none;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- New Gallery Grid Styles (Added safely) --- */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 10px;
    width: 100%;
}

.collage-grid img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes them perfect squares */
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.collage-grid img:hover {
    transform: scale(1.03);
}