/* 금융교육 페이지 스타일 */

/* 페이지 로드 시 재무설계만 표시 - JavaScript가 이를 덮어쓸 수 있도록 !important 사용 안 함 */
.curriculum-card {
    display: none;
}

.curriculum-card[data-category="재무설계"] {
    display: block;
}

/* 기타 스타일 */
.curriculum-section {
    padding: 80px 0;
}

.curriculum-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-btn:hover {
    border-color: #099F97;
    color: #099F97;
}

.category-btn.active {
    background: #099F97;
    border-color: #099F97;
    color: white;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.curriculum-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #099F97;
}

.curriculum-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffffff;
    color: #000000;
    border: 2px solid #099F97;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.curriculum-card h3 {
    margin: 1rem 0;
    color: #1B3559;
    font-size: 1.2rem;
}

.curriculum-card p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
}

/* 금융교육 철학 */
.education-philosophy {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #099F97;
}

.philosophy-highlight {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #1B3559;
    margin-bottom: 1.5rem;
}

.philosophy-highlight strong {
    font-weight: 700;
}

.philosophy-detail {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .education-philosophy {
        padding: 1.5rem;
    }
    
    .philosophy-highlight {
        font-size: 1rem;
    }
    
    .philosophy-detail {
        font-size: 0.95rem;
    }
}

/* 카테고리 버튼 글씨 진하게 */
.category-btn {
    font-weight: 700 !important;
}

/* 교육 철학 - 상단 배치 (검정색, 크게) */
.education-intro {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.education-philosophy-top {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.philosophy-highlight-big {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 2rem;
}

.philosophy-highlight-big strong {
    font-weight: 400;
    color: #000000;
    font-size: 1.44rem;
    display: block;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.philosophy-detail-big {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    margin: 0;
}

@media (max-width: 768px) {
    .education-philosophy-top {
        padding: 2rem;
    }
    
    .philosophy-highlight-big {
        font-size: 1.6rem;
    }
    
    .philosophy-highlight-big strong {
        font-size: 1.12rem;
    }
    
    .philosophy-detail-big {
        font-size: 1rem;
    }
}

/* 강사 이미지 크기 350px로 통일 */
.page-template-page-education .expert-photo {
    max-width: 350px !important;
}

@media (max-width: 968px) and (min-width: 601px) {
    .page-template-page-education .expert-photo {
        max-width: 300px !important;
    }
}

@media (max-width: 600px) {
    .page-template-page-education .expert-photo {
        max-width: 280px !important;
    }
}

/* 교육 커리큘럼 전체보기 테이블 */
.curriculum-overview {
    padding: 80px 0;
    background: white;
}

.curriculum-table {
    max-width: 1200px;
    margin: 3rem auto;
}

.curriculum-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem; /* 카테고리 사이 간격 */
}

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

/* 각 카테고리별 배경색 - 전체 row에 적용 */
.curriculum-row[data-category="재무설계"] {
    background: #e8f5f3 !important; /* 연한 민트 */
}

.curriculum-row[data-category="재무설계"] .curriculum-category-name {
    background: #e8f5f3 !important;
    color: #000000 !important;
}

.curriculum-row[data-category="금융상품"] {
    background: #e3f2fd !important; /* 연한 파랑 */
}

.curriculum-row[data-category="금융상품"] .curriculum-category-name {
    background: #e3f2fd !important;
    color: #000000 !important;
}

.curriculum-row[data-category="투자"] {
    background: #f3e5f5 !important; /* 연한 보라 */
}

.curriculum-row[data-category="투자"] .curriculum-category-name {
    background: #f3e5f5 !important;
    color: #000000 !important;
}

.curriculum-row[data-category="경제"] {
    background: #fff9e6 !important; /* 연한 노랑 */
}

.curriculum-row[data-category="경제"] .curriculum-category-name {
    background: #fff9e6 !important;
    color: #000000 !important;
}

.curriculum-row[data-category="부동산"] {
    background: #fff3e0 !important; /* 연한 오렌지 */
}

.curriculum-row[data-category="부동산"] .curriculum-category-name {
    background: #fff3e0 !important;
    color: #000000 !important;
}

.curriculum-row[data-category="은퇴"] {
    background: #fce4ec !important; /* 연한 핑크 */
}

.curriculum-row[data-category="은퇴"] .curriculum-category-name {
    background: #fce4ec !important;
    color: #000000 !important;
}

.curriculum-row[data-category="세금"] {
    background: #e8eaf6 !important; /* 연한 인디고 */
}

.curriculum-row[data-category="세금"] .curriculum-category-name {
    background: #e8eaf6 !important;
    color: #000000 !important;
}

.curriculum-row[data-category="금융사기"] {
    background: #ffebee !important; /* 연한 빨강 */
}

.curriculum-row[data-category="금융사기"] .curriculum-category-name {
    background: #ffebee !important;
    color: #000000 !important;
}

.curriculum-row[data-category="신용"] {
    background: #e0f2f1 !important; /* 연한 청록 */
}

.curriculum-row[data-category="신용"] .curriculum-category-name {
    background: #e0f2f1 !important;
    color: #000000 !important;
}

.curriculum-category-name {
    color: #000000 !important; /* 검정색 텍스트 강제 */
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #ddd;
}

.curriculum-list {
    padding: 1.2rem 2rem; /* 패딩 줄임 */
    background: transparent;
}

.curriculum-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.curriculum-list li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    line-height: 1.7;
    color: #333;
    font-size: 0.95rem;
    position: relative;
}

.curriculum-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #099F97;
    font-weight: bold;
}

@media (max-width: 768px) {
    .curriculum-row {
        grid-template-columns: 1fr;
        margin-bottom: 1.5rem;
    }
    
    .curriculum-category-name {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 1rem;
    }
    
    .curriculum-list {
        padding: 1rem 1.5rem;
    }
    
    .curriculum-list li {
        font-size: 0.9rem;
        padding: 0.2rem 0; /* 모바일 줄 간격 더 좁힘 */
        line-height: 1.3;
    }
}

/* ── 철학 아이콘 카드 (education) ── */
.education-philosophy-top .philosophy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}

.education-philosophy-top .philosophy-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8fffe;
    border: 1px solid #e0f5f4;
    border-left: 4px solid #099F97;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    transition: box-shadow 0.2s ease;
}

.education-philosophy-top .philosophy-card:hover {
    box-shadow: 0 4px 16px rgba(9,159,151,0.12);
}

.education-philosophy-top .philosophy-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.education-philosophy-top .philosophy-card-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1B3559;
    margin-bottom: 0.4rem;
}

.education-philosophy-top .philosophy-card-text p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .education-philosophy-top .philosophy-cards {
        grid-template-columns: 1fr;
    }
}

/* ── curriculum-list ul gap 강제 적용 ── */
.curriculum-list ul {
    gap: 0.4rem !important;
    row-gap: 0.4rem !important;
}
