/* 기본 컨테이너 */
.birth-year-info {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 
                0 8px 32px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.birth-year-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07), 
                0 12px 36px rgba(0, 0, 0, 0.07);
}

/* 헤더 영역 */
.birth-year-header {
    margin-bottom: 35px;
    position: relative;
}

.birth-year-header h3 {
    font-size: 32px;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.birth-year-header h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
}

.section-header {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    letter-spacing: -0.01em;
}

.birth-year-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.birth-year-meta-item {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.birth-year-meta-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.birth-year-meta-item.ganji {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #1e40af;
}

.birth-year-meta-item.zodiac {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #9a3412;
}

.birth-year-meta-item.age {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #334155;
}

/* 반응형 디자인 - 헤더 */
@media (max-width: 768px) {
    .birth-year-info {
        padding: 25px;
        margin: 15px;
        border-radius: 20px;
    }

    .birth-year-header h3 {
        font-size: 26px;
        padding-bottom: 15px;
    }

    .birth-year-meta {
        flex-direction: column;
        gap: 10px;
    }

    .birth-year-meta-item {
        width: 100%;
        text-align: center;
        font-size: 15px;
        padding: 8px 16px;
    }
}
/* 연금 정보 섹션 */
.pension-info {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.pension-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    opacity: 0.7;
}

.pension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.pension-status {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease;
}

.pension-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.pension-status:hover {
    transform: translateY(-1px);
}

.pension-status.receive {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.pension-status.early {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.pension-status.waiting {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
}

.pension-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.pension-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pension-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: currentColor;
    opacity: 0.1;
}

.pension-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pension-item.normal {
    color: #2563eb;
}

.pension-item.early {
    color: #d97706;
}

.pension-item.rate {
    color: #059669;
}

.pension-item-label {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.pension-item-value {
    font-size: 28px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pension-year-detail {
    font-size: 14px;
    color: #64748b;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.years-left {
    color: #475569;
    font-weight: 600;
}

.target-year {
    color: #2563eb;
    font-weight: 600;
}

.rate-value {
    color: #059669;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rate-value::after {
    content: '%';
    font-size: 0.6em;
    opacity: 0.8;
}
/* 삼재 정보 섹션 */
.samjae-info {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 35px;
    margin-top: 25px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.samjae-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #f43f5e, #fb7185);
    opacity: 0.7;
}

.samjae-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.samjae-status {
    margin-bottom: 25px;
}

.samjae-warning {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
    border: 1px solid rgba(153, 27, 27, 0.1);
}

.samjae-warning:hover {
    transform: translateY(-2px);
}

.samjae-warning svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.samjae-warning.boksamjae {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    color: #be123c;
    border-color: rgba(190, 18, 60, 0.1);
}

.samjae-upcoming {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.samjae-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
}

.samjae-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.samjae-item-label {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.year-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.year-item {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 6px 14px;
    border-radius: 100px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.year-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #1e293b;
}

/* 에러 메시지 */
.birth-year-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    padding: 20px 25px;
    border-radius: 16px;
    font-weight: 600;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border: 1px solid rgba(153, 27, 27, 0.1);
}

.birth-year-error::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(153, 27, 27, 0.2);
    border-radius: 50%;
    font-weight: 700;
}

/* 공통 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.birth-year-info > * {
    animation: fadeIn 0.3s ease-out forwards;
}

/* 반응형 디자인 - 추가 조정 */
@media (max-width: 768px) {
    .pension-info,
    .samjae-info {
        padding: 25px;
        border-radius: 16px;
    }

    .pension-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .pension-status {
        width: 100%;
        justify-content: center;
    }

    .pension-details,
    .samjae-upcoming {
        grid-template-columns: 1fr;
    }

    .pension-item-value {
        font-size: 24px;
    }

    .samjae-warning {
        padding: 14px 18px;
    }

    .year-list {
        justify-content: center;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .birth-year-info > *,
    .birth-year-meta-item,
    .pension-item,
    .samjae-item,
    .year-item {
        animation: none;
        transition: none;
    }
}
.education-info {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 35px;
    margin-top: 25px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.education-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #f43f5e, #fb7185);
    opacity: 0.7;
}

/* samjae-upcoming 내부의 grid 설정 */
.education-info .samjae-upcoming {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .education-info .samjae-upcoming {
        grid-template-columns: 1fr;
    }
}