/* CSS Variables */
:root {
    --bg-dark: #FFF0F5;
    /* Lavender Blush - Light Pink Background */
    --bg-card: #FFFFFF;
    --primary: #FF9EAA;
    /* Soft Pink */
    --secondary: #E6E6FA;
    /* Lavender */
    --accent: #FFFACD;
    /* Lemon Chiffon */
    --text-main: #333333;
    /* Darker Grey for better contrast */
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 192, 203, 0.5);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    background-color: var(--primary);
    color: #4A4A4A;
    /* Dark Grey text on Pink button */
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #FFB6C1;
    /* Lighter Pink hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 158, 170, 0.4);
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    /* Solid white/pink for high contrast */
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 240, 245, 0.7), rgba(255, 240, 245, 0.4));
    z-index: -1;
}

/* Ensure Hero Text is Legible */
.hero-content h1 {
    color: #333;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    /* White halo for readability */
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    color: #555;
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 600px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
}

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

.instructor-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.card-image {
    height: 350px;
    width: 100%;
    background-color: #333;
}

.img-placeholder {
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.role {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

.specialty {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.desc {
    font-size: 0.95rem;
    color: #888;
}

/* Timetable */
.dark-section {
    background-color: #F8E4E9;
    /* Soft Pinkish dark section */
}

.timetable-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
}

.timetable-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.day-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.day-btn.active,
.day-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    min-height: 200px;
    /* Prevent layout collapse */
}

.class-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #FFD1DC;
    /* Distinct Pink Border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Subtle Shadow */
    margin-bottom: 10px;
}

.class-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 158, 170, 0.15);
    border-color: var(--primary);
    background: #FFFBFD;
}

.class-time {
    font-weight: 700;
    font-size: 1.2rem;
    width: 100px;
    color: #FF8BA0;
    /* Deep Pink for time */
}

.class-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.class-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.class-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
}

.status-open {
    background: rgba(168, 188, 161, 0.2);
    color: #A8BCA1;
    cursor: pointer;
    transition: all 0.2s;
}

.status-open:hover {
    transform: scale(1.05);
    background: #A8BCA1;
    /* Slightly darker green */
    color: white;
}

.status-full {
    background: rgba(255, 100, 100, 0.1);
    color: #ff6b6b;
}

/* Contact */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 30px;
    align-items: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid #FFD1DC;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
}

.contact-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    color: #333333;
    /* Dark text */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder {
    color: #999999;
    /* Clearly visible grey placeholder */
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFF0F5;
    /* Slight pink tint on focus */
    box-shadow: 0 0 0 3px rgba(255, 158, 170, 0.2);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border: 1px solid #FFD1DC;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2rem;
}

.modal-content p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

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

    .contact-box {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed */
    }
}