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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-color);
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Navigation Bar */
.nav-bar {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 18px 30px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.05);
    border-bottom-color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.section {
    margin-bottom: 80px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    scroll-margin-top: 80px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: var(--shadow-sm);
}

.icon-wrapper i {
    font-size: 28px;
    color: var(--white);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.content-box {
    padding: 10px 0;
}

/* Intro Section Styles */
.intro-section .intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-light);
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.highlight-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.highlight-box .sub-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.info-card {
    background-color: #f8f9fa;
    border-left: 5px solid var(--info-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-item p {
    margin: 0;
    line-height: 1.8;
    flex: 1;
    padding-top: 6px;
}

.quick-link-box {
    background-color: #e8f4f8;
    border: 2px solid var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.quick-link-box i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.external-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.external-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Application Section */
.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-dark);
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.step-section {
    margin-bottom: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.step-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
}

.badge {
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.step-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.step-content {
    padding: 30px;
}

.instruction-list {
    list-style: none;
    counter-reset: instruction-counter;
    padding-left: 0;
}

.instruction-list li {
    counter-increment: instruction-counter;
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.instruction-list li::before {
    content: counter(instruction-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.instruction-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.instruction-list a:hover {
    text-decoration: underline;
}

.alert-box {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert-box i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-box.info {
    background-color: #e8f4f8;
    border-left: 4px solid var(--info-color);
    color: #0c5460;
}

.alert-box.warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    color: #856404;
}

.alert-box.info i {
    color: var(--info-color);
}

.alert-box.warning i {
    color: var(--warning-color);
}

.alert-box p {
    margin: 0;
    line-height: 1.8;
}

.notice-box {
    background-color: #f8f9fa;
    border: 2px dashed var(--border-color);
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.notice-box p {
    margin: 0;
    color: var(--text-dark);
}

.simple-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.simple-list li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.simple-list li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

/* Monthly Rent Section */
.comparison-section {
    margin-bottom: 30px;
}

.comparison-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.comparison-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.comparison-card p {
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background-color: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h4 i {
    color: var(--secondary-color);
}

.faq-item p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.rate-table {
    margin-top: 15px;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white);
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.rate-row:last-child {
    margin-bottom: 0;
}

.rate-condition {
    font-weight: 500;
    color: var(--text-dark);
}

.rate-value {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.document-list {
    list-style: none;
    counter-reset: doc-counter;
    padding-left: 0;
    margin-top: 15px;
}

.document-list li {
    counter-increment: doc-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.document-list li::before {
    content: counter(doc-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.document-list li strong {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.sub-info {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 0;
}

.highlight-notice {
    margin-top: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid var(--warning-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-notice i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.highlight-notice strong {
    color: #856404;
    font-size: 1rem;
}

.step-intro {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.deadline-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    background-color: #fff5f5;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

/* Reference Section */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.reference-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.reference-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.reference-icon i {
    font-size: 28px;
    color: var(--white);
}

.reference-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-detail p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.info-detail p:last-child {
    margin-bottom: 0;
}

.info-detail strong {
    color: var(--primary-color);
    font-weight: 600;
}

.sub-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.help-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.help-box i {
    font-size: 48px;
    margin-bottom: 15px;
}

.help-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.help-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin-bottom: 8px;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .section {
        padding: 25px 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .icon-wrapper {
        margin-bottom: 15px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .process-steps {
        gap: 15px;
    }

    .step-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison-grid,
    .reference-grid {
        grid-template-columns: 1fr;
    }

    .rate-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 140px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .highlight-box,
    .info-card,
    .step-content {
        padding: 20px;
    }
}