@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary: #015232;
    --primary-dark: #013821;
    --primary-light: #027a48;
    --accent: #ffc107;
    --accent-dark: #ff9800;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Header */
.site-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    height: 42px;
    width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0.5rem;
    margin-left: auto;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.header-clock {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.btn-consult {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-consult svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Navigation */
.main-nav {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.nav-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--border-medium);
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    display: block;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px 100px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--text-primary);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stat-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.stat-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.info-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.info-box p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Partners Grid */
.partners-section {
    padding: 1rem 0;
    background: var(--bg-tertiary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.partner-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.partner-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.partner-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bg-secondary);
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-body {
    padding: 0.8rem 1.5rem 0.3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-features {
    list-style: none;
    margin: 0 0 0.8rem 0;
    flex: 1;
}

.partner-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.partner-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.partner-meta {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
}

.meta-label {
    display: inline;
}

.meta-icon {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.btn {
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(1, 82, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 82, 50, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(238, 90, 82, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 90, 82, 0.4);
}

/* Partner Detail Page */
.detail-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    padding: 2rem 0;
}

.detail-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
}

.detail-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.detail-stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.detail-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.detail-banner {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.detail-banner img {
    max-width: 400px;
    margin:auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.detail-content {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.detail-section {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.detail-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.detail-section li {
    padding: 0.75rem;
    padding-left: 2rem;
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

.detail-section li::before {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.detail-actions {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    border-top: 2px solid var(--border-light);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.detail-actions-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.detail-actions .btn {
    flex: 1;
    padding: 1.25rem;
    font-size: 1.05rem;
}

/* Features Section */
.features-section {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 60px;
    margin: 0 auto;
    /* filter: brightness(0) invert(1) opacity(0.9); */
}

.footer-info {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-timer {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.footer-stats .stats-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
}

.footer-stats .stats-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-stats .stat-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-nav {
    margin-bottom: 2.2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .header-top {
        padding: 1rem;
        gap: 1rem;
    }
    
    .site-logo img {
        height: 32px;
    }
    
    .header-clock {
        display: none;
    }
    
    .header-right {
        gap: 0;
    }
    
    .btn-consult {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-container {
        position: fixed;
        top: 68px;
        right: 0;
        height: calc(100vh - 68px);
        width: 80%;
        max-width: 300px;
        background: var(--bg-primary);
        flex-direction: column;
        z-index: 1001;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        padding-top: 0;
    }
    
    .nav-item {
        flex: none;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1.25rem 1.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .partner-meta {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .partner-body {
        padding: 0.6rem 1rem 0.2rem 1rem;
    }
    
    .partner-features li {
        padding: 0.3rem 0;
        padding-left: 0.8rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .partner-features li::before {
        content: '•';
        left: 0;
        font-size: 1.2rem;
        line-height: 1;
    }
    
    .meta-item {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .meta-label {
        display: none;
    }
    
    .btn {
        padding: 0.625rem;
        font-size: 0.8rem;
    }
    
    .detail-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-actions-container {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-container {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-nav {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .footer-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-stats .stats-item {
        justify-content: center;
    }
        white-space: nowrap;
    }
    
    .footer-info p {
        font-size: 0.85rem;
    }
    
    .footer-timer {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .partner-actions {
        grid-template-columns: 1fr;
    }
}
