/**
 * 집수리교육 Main Stylesheet
 * Color Scheme:
 * - Deep Blue: #21406a (Trust/Professional)
 * - Emerald Green: #39b54a (Growth/Energy)
 * - Bright Orange: #ff7b42 (Accent)
 * - Light Beige: #faf7f1 (Support)
 * - Charcoal Grey: #242424 (Base/Text)
 */

:root {
    --color-primary: #21406a;
    --color-secondary: #39b54a;
    --color-accent: #ff7b42;
    --color-light: #faf7f1;
    --color-dark: #242424;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-neon-blue: #00d4ff;
    --color-neon-purple: #b14aed;
    --color-neon-green: #00ff88;

    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

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

a:hover {
    color: var(--color-accent);
}

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

ul {
    list-style: none;
}

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

/* ==========================================
   HEADER STYLES
   ========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-dark);
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

.main-nav a:hover::after {
    width: 100%;
}

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

.user-welcome {
    font-size: 14px;
    color: var(--color-gray);
}

.btn-login,
.btn-register,
.btn-mypage,
.btn-logout {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-login,
.btn-mypage {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-login:hover,
.btn-mypage:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-register {
    background: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.btn-register:hover {
    background: #e56935;
    border-color: #e56935;
}

.btn-logout {
    background: var(--color-gray-light);
    color: var(--color-gray);
}

.btn-logout:hover {
    background: var(--color-gray);
    color: var(--color-white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition-fast);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.site-main {
    padding-top: 70px;
    min-height: calc(100vh - 300px);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3255 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(255, 123, 66, 0.4);
}

.btn-primary:hover {
    background: #e56935;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 123, 66, 0.5);
    color: var(--color-white);
}

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

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

/* ==========================================
   SECTION STYLES
   ========================================== */

.section {
    padding: 100px 20px;
}

.section-dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-light {
    background: var(--color-light);
}

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

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark);
}

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

.section-title p {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.8);
}

/* ==========================================
   CURRICULUM CARDS
   ========================================== */

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.curriculum-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.curriculum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-secondary);
}

.curriculum-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.curriculum-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-white);
}

.curriculum-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.curriculum-card .duration {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.curriculum-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7;
}

.curriculum-card .price {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--color-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-white);
}

.feature-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: var(--color-gray);
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */

.reviews-slider {
    max-width: 900px;
    margin: 0 auto;
}

.review-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 0 15px;
}

.review-card .rating {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
}

.review-card .content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.review-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-card .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-gray-light);
}

.review-card .author-info h4 {
    font-size: 15px;
    font-weight: 600;
}

.review-card .author-info span {
    font-size: 13px;
    color: var(--color-gray);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, #e56935 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--color-white);
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-accent);
}

.cta-section .btn-primary:hover {
    background: var(--color-light);
    color: var(--color-accent);
}

/* ==========================================
   FOOTER STYLES
   ========================================== */

.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding-top: 60px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

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

.footer-nav h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-white);
}

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

.footer-nav a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.company-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}

.copyright p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ==========================================
   FORM STYLES
   ========================================== */

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(33, 64, 106, 0.1);
}

.form-control::placeholder {
    color: var(--color-gray);
}

.form-error {
    font-size: 13px;
    color: #dc3545;
    margin-top: 6px;
}

.form-success {
    font-size: 13px;
    color: var(--color-secondary);
    margin-top: 6px;
}

/* ==========================================
   AUTH PAGE STYLES
   ========================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-box {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 50px;
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-dark);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 16px;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--color-gray-light);
}

.auth-links a {
    font-size: 14px;
    color: var(--color-gray);
}

.auth-links a:hover {
    color: var(--color-primary);
}

/* ==========================================
   MYPAGE STYLES
   ========================================== */

.mypage-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.mypage-header {
    text-align: center;
    margin-bottom: 40px;
}

.mypage-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.mypage-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.mypage-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-gray-light);
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 120px;
    font-weight: 500;
    color: var(--color-gray);
}

.info-value {
    flex: 1;
    color: var(--color-dark);
}

.info-readonly {
    color: var(--color-gray);
    font-style: italic;
}

.withdraw-link {
    float: right;
    font-size: 12px;
    color: #999;
    opacity: 0.5;
    margin-top: 30px;
}

.withdraw-link:hover {
    opacity: 0.8;
    color: #666;
}

/* ==========================================
   PAGE CONTENT STYLES
   ========================================== */

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3255 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: var(--color-white);
}

.page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-content {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--color-dark);
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--color-dark);
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--color-dark);
}

.page-content ul,
.page-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    list-style: disc;
}

.page-content ol li {
    list-style: decimal;
}

/* ==========================================
   SITEMAP STYLES
   ========================================== */

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.sitemap-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
    color: var(--color-primary);
}

.sitemap-section ul {
    padding-left: 0;
}

.sitemap-section li {
    list-style: none;
    margin-bottom: 12px;
}

.sitemap-section a {
    color: var(--color-dark);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sitemap-section a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
}

.sitemap-section a:hover {
    color: var(--color-accent);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-main {
        padding-top: 60px;
    }

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

    .section {
        padding: 60px 20px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .auth-box {
        padding: 40px 25px;
    }

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

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
