/* 컨테이너 가로폭 확장 (와이드 브라우저에 맞춤 고퀄리티 너비 설정) */
.academy-intro-container {
    max-width: 1280px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* 서브페이지 배너 스타일 */
.sub-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}
.sub-banner h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.sub-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* 탭 네비게이션 스타일 */
.course-tab-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 45px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-top: 50px;
}
.tab-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 탭 본문 보이기/숨기기 처리 */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.section-title-box {
    margin-bottom: 35px;
    padding-bottom: 10px;
}
.section-title-box h3 {
    font-size: 1.75rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-title-box p {
    color: #64748b;
    font-size: 1.05rem;
    margin: 4px 0;
}

/* 행 라인 카드 레이아웃 기본 구조 정의 */
.course-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 70px;
}
.course-row-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 30px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.course-row-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* 뱃지 기본 레이아웃 정의 */
.card-badge {
    width: 100px;
    padding: 8px 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 6px;
    margin-right: 30px;
    flex-shrink: 0;
}

/* ==========================================================================
   [디자인 업그레이드] 카테고리 뱃지 색상 및 좌측 세로 고유 색띠 매칭 처리
   ========================================================================== */

/* 1. 그린 계열 (영상편집 등) */
.course-row-card:has(.green) {
    border-left: 5px solid #10b981;
}
.card-badge.green { background: #ecfdf5; color: #10b981; }
.course-row-card:has(.green):hover { border-color: #10b981; }

/* 2. 블루 계열 (AI융합, 코딩웹개발) */
.course-row-card:has(.blue) {
    border-left: 5px solid #2563eb;
}
.card-badge.blue { background: #eff6ff; color: #2563eb; }
.course-row-card:has(.blue):hover { border-color: #2563eb; }

/* 3. 오렌지 계열 (세무회계) */
.course-row-card:has(.orange) {
    border-left: 5px solid #ea580c;
}
.card-badge.orange { background: #fff7ed; color: #ea580c; }
.course-row-card:has(.orange):hover { border-color: #ea580c; }

/* 4. 레드 계열 (시각디자인, 콘텐츠) */
.course-row-card:has(.red) {
    border-left: 5px solid #f43f5e;
}
.card-badge.red { background: #fff1f2; color: #f43f5e; }
.course-row-card:has(.red):hover { border-color: #f43f5e; }

/* 5. 보라 계열 (출판편집 등) */
.course-row-card:has(.purple) {
    border-left: 5px solid #7c3aed;
}
.card-badge.purple { background: #f5f3ff; color: #7c3aed; }
.course-row-card:has(.purple):hover { border-color: #7c3aed; }

/* 6. 그레이 계열 (기초사무, 기본컴퓨터) */
.course-row-card:has(.gray) {
    border-left: 5px solid #64748b;
}
.card-badge.gray { background: #f1f5f9; color: #475569; }
.course-row-card:has(.gray):hover { border-color: #94a3b8; }


/* 카드 본문 텍스트 비율 */
.card-info {
    flex-grow: 1;
    padding-right: 30px;
}
.card-info h4 {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
}
.card-desc {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* 카드 시수 시간 영역 */
.card-meta {
    width: 140px;
    flex-shrink: 0;
    text-align: left;
}
.time-badge {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    background: #f1f5f9;
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-block;
}
.time-badge.color-primary {
    color: #2563eb;
    background: #eff6ff;
}

/* 상세보기 우측 액션 라인 */
.card-action {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
}
.btn-detail {
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-detail:hover {
    color: #1d4ed8;
}

/* 부드러운 전환 애니메이션 효과 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 태블릿 및 모바일 브라우저 반응형 스타일 */
@media (max-width: 992px) {
    .course-row-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 20px;
    }
    .card-badge {
        margin-right: 0;
        margin-bottom: 2px;
    }
    .card-meta {
        width: 100%;
        text-align: left;
    }
    .card-action {
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
}