/*
Theme Name: thessen academy Theme
Theme URI: https://thessenaca.kr
Description: A modern, highly optimized, and responsive custom theme for thessen academy (더쎈학원), built with brand colors, Pretendard typography, and subtle scroll animation styling.
Author: Antigravity IDE Agent
Author URI: https://github.com/GoogleDeepMind
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thessen-theme
*/

/* -------------------------------------------------------------
 * 1. Global Reset & Variables
 * ------------------------------------------------------------- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Refined Color Palette - Sleek Slate & Balanced Brand Colors */
    --color-primary: hsl(203, 90%, 40%);       /* 더쎈학원 블루 (수치 안정화) */
    --color-accent: hsl(36, 95%, 48%);         /* 더쎈학원 오렌지 (포인트 전용) */
    --color-navy: #0f172a;                     /* 프리미엄 딥 슬레이트 900 */
    --color-dark: #334155;                     /* 차분한 슬레이트 그레이 700 (본문용) */
    --color-light: #f8fafc;                    /* 초경량 백그라운드 슬레이트 50 */
    --color-white: #ffffff;
    --color-muted: #64748b;                    /* 슬레이트 500 */
    
    /* Gels and Gradients */
    --color-border: rgba(15, 23, 42, 0.05);
    --color-glass-bg: rgba(255, 255, 255, 0.75);
    --color-glass-border: rgba(255, 255, 255, 0.4);
    
    /* Sleek Transitions */
    --grad-primary: linear-gradient(135deg, #1e3a8a 0%, var(--color-primary) 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Fonts & Typography */
    --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Shadow & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Soft Elevation Shadows (Minimalist) */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 30px -10px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.01);
    --shadow-lg: 0 30px 60px -15px rgba(15, 23, 42, 0.06), 0 12px 25px -10px rgba(15, 23, 42, 0.03);

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    font-family: var(--font-base);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.75;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* -------------------------------------------------------------
 * 2. Background Dot Grid Patterns
 * ------------------------------------------------------------- */
.bg-grid {
    background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* -------------------------------------------------------------
 * 3. Layout & Typography Utilities
 * ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 140px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 90px 0;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2.25rem, 5vw, 2.75rem);
    margin-bottom: 20px;
    color: var(--color-navy);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--color-muted);
    font-weight: 500;
}

/* -------------------------------------------------------------
 * 4. Buttons & CTAs (Minimal & High-end)
 * ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    will-change: transform;
}

/* Primary Button: Sleek Navy-to-Blue Gradient */
.btn-primary {
    background: var(--grad-primary);
    color: var(--color-white);
    box-shadow: 0 10px 25px -10px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(30, 58, 138, 0.4);
}

/* Accent Button: Solid premium dark slate, highlight outline on hover */
.btn-accent {
    background: var(--grad-dark);
    color: var(--color-white);
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.25);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.35);
    background: var(--color-primary);
}

/* -------------------------------------------------------------
 * 5. Global Navigation Header
 * ------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-glass-border);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(15, 23, 42, 0.04);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: var(--transition-smooth);
}

.site-header.scrolled .header-container {
    height: 75px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo .logo-pin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--color-primary);
    position: relative;
    border: 3.5px solid var(--color-accent);
}

.site-logo .logo-text {
    font-size: 1.55rem;
    font-weight: 850;
    color: var(--color-navy);
    letter-spacing: -0.05em;
}

.site-logo .logo-text span {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    position: relative;
    padding: 6px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-navy);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 50px 0;
        gap: 30px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-160%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
        border-bottom: 2px solid var(--color-border);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .site-header.scrolled .nav-menu {
        top: 75px;
    }
}

/* -------------------------------------------------------------
 * 6. Page Components & Sections
 * ------------------------------------------------------------- */

/* [Hero Section] */
.hero-section {
    position: relative;
    padding: 220px 0 140px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(0, 115, 187, 0.02) 0%, rgba(255, 255, 255, 1) 80%);
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: var(--color-light);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.hero-slogan {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-navy);
    margin-bottom: 24px;
}

.hero-slogan span {
    color: var(--color-primary);
    background: linear-gradient(120deg, var(--color-primary) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-contact {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-contact .dashicons {
    color: var(--color-accent);
}

.hero-media {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-glass-border);
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .hero-contact {
        justify-content: center;
    }
}

/* [About Section] */
.about-section {
    background: var(--color-light);
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.about-media {
    flex: 1;
}

.about-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05) 0%, rgba(0, 115, 187, 0.05) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.about-content {
    flex: 1;
    max-width: 560px;
}

.about-est {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.about-headline {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    margin-bottom: 25px;
    line-height: 1.4;
    color: var(--color-navy);
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 40px;
    line-height: 1.85;
}

@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column-reverse;
        gap: 60px;
    }
    .about-content {
        max-width: 100%;
        text-align: center;
    }
}

/* [Why Section] */
.why-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 115, 187, 0.15);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: rgba(0, 115, 187, 0.05);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 30px;
    font-weight: 900;
}

.why-card h3 {
    font-size: 1.35rem;
    margin-bottom: 18px;
    color: var(--color-navy);
}

.why-card p {
    color: var(--color-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* [Programs Section] */
.programs-section {
    background-image: linear-gradient(180deg, var(--color-light) 0%, var(--color-white) 100%);
}

.program-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.tab-btn {
    padding: 12px 32px;
    font-size: 1.05rem;
    font-weight: 800;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    color: var(--color-dark);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--grad-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.program-tab-content {
    display: none;
}

.program-tab-content.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .program-tab-content.active {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .program-tab-content.active {
        grid-template-columns: 1fr;
    }
}

.program-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 50px 35px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.program-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    position: relative;
}

.program-card-footer {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.program-vat {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 500;
}

.badge-recommend {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.program-level {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-navy);
}

.program-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.program-price span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-muted);
}

.program-info {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 35px;
    font-weight: 500;
}

.program-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.program-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-features li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 900;
}

.program-card .btn {
    width: 100%;
}

/* [Instructors Section] */
.instructors-section {
    background-color: var(--color-light);
}

.instructor-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.instructor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 23, 42, 0.08);
}

.instructor-img-wrapper {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, rgba(0, 115, 187, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

.instructor-content {
    padding: 40px 35px;
    flex-grow: 1;
}

.instructor-name {
    font-size: 1.45rem;
    margin-bottom: 8px;
    color: var(--color-navy);
}

.instructor-meta {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 20px;
}

.instructor-info {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.8;
}

.instructor-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-navy);
    font-weight: 700;
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    margin-top: 25px;
    line-height: 1.6;
}

/* -------------------------------------------------------------
 * 7. Interactive Sidebar Drawer Component
 * ------------------------------------------------------------- */
.sidebar-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100%;
    height: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.sidebar-drawer.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer-header {
    padding: 35px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h3 {
    font-size: 1.45rem;
    color: var(--color-navy);
}

.drawer-close {
    border: none;
    background: none;
    font-size: 2.25rem;
    cursor: pointer;
    color: var(--color-muted);
    transition: var(--transition-smooth);
    line-height: 1;
}

.drawer-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.drawer-body {
    padding: 40px 35px;
    overflow-y: auto;
    flex-grow: 1;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--color-navy);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    font-family: var(--font-base);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--color-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 115, 187, 0.12);
}

.form-response-msg {
    margin-top: 20px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.form-response-msg.success {
    background-color: rgba(74, 222, 128, 0.1);
    color: #15803d;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-response-msg.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* -------------------------------------------------------------
 * 8. Sub-Page Layout Templates
 * ------------------------------------------------------------- */
.page-hero {
    background: var(--grad-primary);
    padding: 160px 0 80px;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.page-hero h1 {
    color: var(--color-white);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 900;
}

.page-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .page-content-grid {
        grid-template-columns: 1fr;
    }
}

.program-detail-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-sm);
}

.program-detail-card h3 {
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 1.55rem;
}

.program-detail-card li {
    font-size: 1.05rem;
    line-height: 1.8;
}

.insights-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

@media (max-width: 992px) {
    .insights-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .insights-list {
        grid-template-columns: 1fr;
    }
}

.insight-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 115, 187, 0.15);
}

.insight-header {
    height: 180px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, rgba(0, 115, 187, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.insight-body {
    padding: 35px 30px;
}

.insight-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: rgba(0, 115, 187, 0.05);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 115, 187, 0.1);
}

.insight-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-navy);
}

.insight-excerpt {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* -------------------------------------------------------------
 * 9. Global Footer Section
 * ------------------------------------------------------------- */
.site-footer {
    background-color: #0f172a;
    color: rgba(255, 255, 255, 0.75);
    padding: 100px 0 40px;
    border-top: 6px solid var(--color-primary);
}

.site-footer h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 30px;
    position: relative;
}

.site-footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-col-contact {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-col-contact {
        grid-column: span 1;
    }
}

.footer-col-contact address {
    font-style: normal;
    line-height: 1.9;
    font-size: 1.05rem;
}

.footer-col-contact .logo-text {
    font-size: 1.65rem;
    font-weight: 850;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-col-contact .logo-text span {
    color: var(--color-primary);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 16px;
}

.footer-menu a {
    font-size: 1.05rem;
}

.footer-menu a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-hours p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

#kakao-map {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.02);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
}

/* -------------------------------------------------------------
 * 10. Scroll-Triggered Reveal Animations
 * ------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-fade {
    transform: translateY(0);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
 * 11. Floating Chatbot Widget Styling (High-End Glassmorphism)
 * ------------------------------------------------------------- */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-family: var(--font-base);
}

.chatbot-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-primary);
    border: none;
    color: var(--color-white);
    font-size: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.35);
    position: relative;
    transition: var(--transition-smooth);
    will-change: transform;
}

.chatbot-trigger:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.45);
}

.chatbot-trigger .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.4;
    animation: chatPulse 2.5s infinite;
    z-index: -1;
    top: 0;
    left: 0;
}

@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 520px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    transform-origin: bottom right;
}

.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: var(--grad-dark);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4ade80;
    position: relative;
    box-shadow: 0 0 10px #4ade80;
}

.chatbot-name h4 {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 800;
}

.chatbot-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.chatbot-close:hover {
    color: var(--color-white);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-all;
}

.chat-message.bot {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-message.user {
    background: var(--color-primary);
    color: var(--color-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 115, 187, 0.2);
}

.chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(15, 23, 42, 0.3);
}

.chat-chip {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

.chatbot-input-area {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chatbot-input-area input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-send-btn:hover {
    background: var(--color-accent);
}

.chatbot-send-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
