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

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    min-width: 140px;
}

.btn-primary {
    background-color: #e63946;
    color: white;
    border: 2px solid #e63946;
}

.btn-primary:hover {
    background-color: white;
    color: #e63946;
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background-color: #333;
    color: white;
}

.btn-kakao {
    background-color: #fee500;
    color: #3c1e1e;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    white-space: nowrap;
    min-width: 180px;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-login {
    color: #e63946;
    border: 1px solid #e63946;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 25px;
}

.language-switcher .language-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    white-space: nowrap;
}

.language-switcher form {
    display: flex;
    gap: 6px;
}

.language-switcher button {
    border: 1px solid #d0d5ff;
    background: white;
    color: transparent;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.language-switcher button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.language-switcher button.active {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.language-switcher button:hover:not(.active) {
    background: #eef2ff;
}

/* Hero */
.hero {
    height: 90vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    line-height: 1.3;
    font-weight: 700;
}

/* About */
.about-section {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-image img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1d3557;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Programs */
.programs-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1d3557;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.program-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}


.program-card-media {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    background: #f8f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.program-card-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.program-card:hover .program-card-media img {
    transform: scale(1.05);
}

.program-card.full-width {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
}

.program-card.full-width .program-card-media {
    max-width: 400px;
    margin: 0 auto 20px;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1d3557;
}

.program-card ul {
    margin-bottom: 30px;
    flex: 1;
}

.program-card li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.program-card li::before {
    content: "•";
    color: #e63946;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.program-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.program-card.full-width .btn {
    align-self: center;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1d3557;
}

.text-center {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.testimonials-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}


.testimonial-thumb {
    border: none;
    padding: 0;
    background: #fff;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.8s ease, box-shadow 0.8s ease;
    display: block;
    height: 100px;
    width: auto;
}

.testimonial-thumb img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

.testimonial-thumb:hover,
.testimonial-thumb:focus {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-thumb.active {
    transform: scale(1.15);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.testimonial-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.testimonial-lightbox.open {
    pointer-events: auto;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.lightbox-content {
    position: relative;
    background: #fff;
    padding: 1rem;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    max-width: min(1200px, 96vw);
    width: min(1200px, 96vw);
    max-height: calc(100vh - 120px);
    overflow: auto;
    animation: zoomIn 0.6s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 180px);
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
.site-footer {
    padding: 80px 0 40px;
    background-color: #1d3557;
    color: white;
    text-align: center;
}

.footer-content h2 {
    margin-bottom: 40px;
}

.social-links {
    margin-bottom: 40px;
}

.footer-links {
    margin-bottom: 20px;
    color: #a8dadc;
}

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

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image img {
        width: 100%;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-gallery {
        column-count: 1;
    }

    .hero h1 {
        font-size: 2rem;
    }
}