/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 헤더 스타일 */
header {
    background-color: #1E4D7B;
    box-shadow: 0 2px 10px rgba(30, 77, 123, 0.12);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #5EC6E8;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #5EC6E8;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* 페이지 히어로 섹션 */
.page-hero {
    background: linear-gradient(120deg, #1E4D7B 60%, #5EC6E8 100%);
    padding: 120px 0 60px 0;
    text-align: center;
    color: #fff;
}

.page-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* 변경사항 배너 */
.changes-banner {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px auto 0 auto;
    max-width: 900px;
    backdrop-filter: blur(10px);
}

.changes-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #FFD700;
}

.changes-banner h3 i {
    margin-right: 10px;
}

.changes-banner ul {
    list-style: none;
    text-align: left;
}

.changes-banner li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-left: 10px;
}

.badge-new {
    display: inline-block;
    background-color: #FF6B6B;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

/* 연말정산 흐름도 섹션 */
.tax-flow-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

/* 플로우 스텝 */
.flow-step {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 0 auto 20px auto;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(30, 77, 123, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(180deg, #5EC6E8 0%, #1E4D7B 100%);
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 77, 123, 0.18);
}

.flow-step.major-step {
    border: 2px solid #5EC6E8;
}

.flow-step.final-step {
    background: linear-gradient(135deg, #1E4D7B 0%, #2C6BA0 100%);
    color: #fff;
}

.flow-step.final-step .formula,
.flow-step.final-step .final-note {
    color: #fff;
}

.flow-step.highlight-2025 {
    background: linear-gradient(135deg, #fff 0%, #FFF9E6 100%);
    border: 2px solid #FFD700;
}

.step-number {
    display: inline-block;
    background-color: #5EC6E8;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.flow-step.final-step .step-number {
    background-color: #FFD700;
    color: #1E4D7B;
}

.step-content h3 {
    font-size: 1.8rem;
    color: #1E4D7B;
    margin-bottom: 12px;
    font-weight: 700;
}

.flow-step.final-step h3 {
    color: #FFD700;
}

.formula {
    font-size: 1.2rem;
    color: #555;
    background-color: #F8F9FA;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    border-left: 4px solid #5EC6E8;
}

.flow-step.final-step .formula {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #FFD700;
}

.tax-rates-preview {
    background-color: #E8F4F8;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 1rem;
    color: #1E4D7B;
    text-align: center;
    margin-bottom: 15px;
}

.final-note {
    background-color: rgba(255, 215, 0, 0.2);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 하위 항목 */
.sub-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.sub-item {
    background-color: #F8F9FA;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sub-item:hover {
    background-color: #5EC6E8;
    color: #fff;
    border-color: #1E4D7B;
    transform: translateY(-3px);
}

.sub-item i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #1E4D7B;
}

.sub-item:hover i {
    color: #fff;
}

.sub-item.highlight-2025 {
    background-color: #FFF9E6;
    border-color: #FFD700;
}

/* 정보 버튼 */
.info-btn {
    background-color: #5EC6E8;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info-btn:hover {
    background-color: #1E4D7B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 77, 123, 0.3);
}

.flow-step.final-step .info-btn {
    background-color: #FFD700;
    color: #1E4D7B;
}

.flow-step.final-step .info-btn:hover {
    background-color: #fff;
}

/* 플로우 화살표 */
.flow-arrow {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.flow-arrow i {
    font-size: 2.5rem;
    color: #5EC6E8;
    animation: bounce 2s infinite;
}

.flow-arrow span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* 간소화 서비스 안내 */
.simplification-service {
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(135deg, #1E4D7B 0%, #5EC6E8 100%);
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(30, 77, 123, 0.2);
}

.service-card i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.7;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #999;
    float: right;
    font-size: 2.5rem;
    font-weight: 300;
    padding: 20px 30px 0 0;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #1E4D7B;
}

#modalBody {
    padding: 30px 40px 40px 40px;
    clear: both;
}

#modalBody h2 {
    color: #1E4D7B;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #5EC6E8;
}

#modalBody h3 {
    color: #1E4D7B;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

#modalBody h4 {
    color: #2C6BA0;
    font-size: 1.2rem;
    margin: 20px 0 12px 0;
}

#modalBody p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

#modalBody ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

#modalBody li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

#modalBody table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#modalBody th {
    background-color: #1E4D7B;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

#modalBody td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

#modalBody tr:hover {
    background-color: #F8F9FA;
}

.highlight-box {
    background-color: #FFF9E6;
    border-left: 4px solid #FFD700;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.example-box {
    background-color: #E8F4F8;
    border-left: 4px solid #5EC6E8;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
}

.primary-btn {
    background-color: #5EC6E8;
    color: #fff;
    box-shadow: 0 4px 15px rgba(94, 198, 232, 0.3);
}

.primary-btn:hover {
    background-color: #1E4D7B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 77, 123, 0.4);
}

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

.secondary-btn:hover {
    background-color: #1E4D7B;
    color: #fff;
}

/* 하단 링크 섹션 */
.bottom-links {
    padding: 50px 0;
    text-align: center;
    background-color: #fff;
}

.bottom-links .container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 푸터 */
footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    color: #5EC6E8;
    margin-bottom: 10px;
}

.footer-contact h3 {
    color: #5EC6E8;
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #5EC6E8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #888;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1E4D7B;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .page-hero h2 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .changes-banner h3 {
        font-size: 1.2rem;
    }
    
    .changes-banner li {
        font-size: 1rem;
    }
    
    .flow-step {
        padding: 20px;
    }
    
    .step-content h3 {
        font-size: 1.5rem;
    }
    
    .formula {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .sub-items {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% 10px;
        max-width: 95%;
    }
    
    #modalBody {
        padding: 20px;
    }
    
    #modalBody h2 {
        font-size: 1.5rem;
    }
    
    .bottom-links .container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .page-hero {
        padding: 100px 20px 40px 20px;
    }
    
    .page-hero h2 {
        font-size: 1.6rem;
    }
    
    .changes-banner {
        padding: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    #modalBody table {
        font-size: 0.9rem;
    }
    
    #modalBody th,
    #modalBody td {
        padding: 10px;
    }
}
