/* ========================================
   GB Academy - Course Sub Pages Stylesheet
   교육과정 서브페이지 전용 스타일
   ======================================== */

/* ========================================
   Page Hero (Sub)
   ======================================== */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.82) 0%, rgba(26,26,26,0.55) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.page-hero .hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-hero-title .accent {
    color: var(--primary);
    font-family: var(--font-display);
    font-style: italic;
}

.page-hero-desc {
    font-size: clamp(15px, 1.6vw, 17px);
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    font-size: 10px;
}

.breadcrumb .current {
    color: var(--primary);
}

/* ========================================
   Course Detail Content
   ======================================== */
.course-detail {
    padding: 80px 0;
    background: var(--white);
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 768px) {
    .course-detail-grid {
        grid-template-columns: 1fr 360px;
    }
}

/* Main Content */
.course-main h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.course-main h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-main h3 i {
    color: var(--primary);
    font-size: 18px;
}

.course-main p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 16px;
}

.course-main strong {
    color: var(--dark);
}

/* Course Intro Box */
.course-intro-box {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    border-left: 4px solid var(--primary);
}

.course-intro-box p {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 0;
}

/* Curriculum Table */
.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 32px;
    font-size: 14px;
}

.curriculum-table thead th {
    background: var(--dark);
    color: var(--white);
    padding: 14px 20px;
    font-weight: 600;
    text-align: left;
}

.curriculum-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.curriculum-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.curriculum-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.curriculum-table tbody tr:hover {
    background: var(--bg-warm);
}

.curriculum-table tbody td {
    padding: 14px 20px;
    color: var(--gray-700);
    line-height: 1.6;
}

.curriculum-table tbody td:first-child {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.curriculum-table .step-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

/* Key Points */
.key-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0 32px;
}

@media (min-width: 640px) {
    .key-points {
        grid-template-columns: 1fr 1fr;
    }
}

.key-point {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.key-point:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.key-point-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.key-point h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.key-point p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Certificate Info */
.cert-info {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
    color: var(--white);
}

.cert-info h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 14px;
}

.cert-info h3 i {
    color: var(--primary);
}

.cert-list {
    display: grid;
    gap: 12px;
}

.cert-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.cert-list-item i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* Gallery in course page */
.course-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0 32px;
}

@media (min-width: 640px) {
    .course-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.course-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-gallery-item:hover img {
    transform: scale(1.06);
}

/* ========================================
   Sidebar
   ======================================== */
.course-sidebar {
    position: sticky;
    top: 100px;
}

/* Quick Info Card */
.sidebar-card {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-info-list {
    display: grid;
    gap: 14px;
}

.sidebar-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-info-item .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.sidebar-info-item .info-label {
    font-size: 12px;
    color: var(--gray-500);
}

.sidebar-info-item .info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* CTA Box */
.sidebar-cta {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    color: var(--white);
    margin-bottom: 24px;
}

.sidebar-cta h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
    border: none;
    padding: 0;
}

.sidebar-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.sidebar-cta .btn {
    background: var(--dark);
    color: var(--white);
    width: 100%;
    justify-content: center;
}

.sidebar-cta .btn:hover {
    background: var(--white);
    color: var(--dark);
}

.sidebar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-top: 16px;
}

.sidebar-phone i {
    font-size: 16px;
}

/* Other Courses */
.other-courses h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.other-course-list {
    display: grid;
    gap: 8px;
}

.other-course-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 14px;
    color: var(--gray-700);
}

.other-course-link:hover {
    background: var(--primary);
    color: var(--white);
    padding-left: 20px;
}

.other-course-link i {
    color: var(--primary);
    font-size: 16px;
    transition: var(--transition);
}

.other-course-link:hover i {
    color: var(--white);
}

.other-course-link.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.other-course-link.active i {
    color: var(--white);
}

/* ========================================
   FAQ Section (Course page)
   ======================================== */
.course-faq {
    padding: 80px 0;
    background: var(--bg-cream);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ========================================
   Related CTA
   ======================================== */
.related-cta {
    padding: 80px 0;
    background: var(--dark);
    text-align: center;
}

.related-cta h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.related-cta h2 .accent {
    color: var(--primary);
}

.related-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
}

.related-cta .btn-primary {
    background: var(--primary);
}

.related-cta .btn-primary:hover {
    background: var(--primary-dark);
}

/* ========================================
   Sub Page Header Override
   ======================================== */
.header.sub-header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.header.sub-header .logo-main {
    color: var(--dark);
}

.header.sub-header .logo-sub {
    color: var(--primary);
}

.header.sub-header .nav-link {
    color: var(--gray-700);
}

.header.sub-header .nav-link:hover,
.header.sub-header .nav-link.active {
    color: var(--primary-dark);
}

.header.sub-header .header-phone {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.header.sub-header .header-phone:hover {
    background: var(--primary);
    color: var(--white);
}

.header.sub-header .menu-toggle span {
    background: var(--dark);
}