/* ==========================================================================
   TLB PRODUCT COMMON - V6 Refined Round 10 (Cleaned & Author Fix)
   ========================================================================== */

/* SUITE Font Import (For Main Header) */
@import url('https://cdn.jsdelivr.net/gh/sunn-us/SUITE/fonts/static/woff2/SUITE.css');

/* Section Wrapper */
.tlb_common_section {
    width: 100%;
    padding: 80px 0;
    background-color: #050505;
    font-family: 'SUIT', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    color: #ffffff;
    position: relative;
}

.tlb_common_container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 60px;
    /* Limits content width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* 1. Header */
.tlb_header_group {
    text-align: center;
    margin-bottom: 20px;
}

.tlb_header_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 1px solid rgba(150, 45, 227, 0.3);
    border-radius: 50px;
    background: rgba(150, 45, 227, 0.1);
    color: #b355ff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tlb_header_title {
    font-family: 'SUITE', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* 2. Media Section (Images & Video) */
.tlb_detail_media_wrapper {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.tlb_detail_media_wrapper p {
    text-align: center;
    margin: 0;
}

.tlb_detail_media_wrapper img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 2. Visual Area */
.tlb_visual_area_center {
    width: 600px;
    max-width: 100%;
    margin-bottom: 30px;
}

.tlb_book_img_center {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

/* 3. Text Info Group */
.tlb_text_group_center {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tlb_brand_logo_large {
    height: 80px;
    width: auto;
    margin-bottom: 4px;
    opacity: 0.9;
    display: block;
}

.tlb_title_row {
    margin-top: 0;
    margin-bottom: 20px;
}

.tlb_product_title_main {
    font-family: 'SUIT', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    display: block;
    margin-bottom: 4px;
}

.tlb_product_subtitle_main {
    font-family: 'SUIT', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    display: block;
}

.tlb_divider_line {
    width: 100%;
    max-width: 100%;
    height: 1px;
    background-color: #333;
    margin: 20px auto 15px auto;
    /* Explicit auto margins for centering */
}

.tlb_desc_text {
    text-align: left;
    width: 100%;
    margin-top: 5px;
    /* 15px (divider bottom) + 5px = 20px Top Gap */
    /* Next Divider has 20px Top Margin = 20px Bottom Gap */
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
}

.tlb_desc_text p {
    margin: 0 0 20px 0;
}

.tlb_desc_text p:last-child {
    margin-bottom: 0;
}

.tlb_solve_logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
    opacity: 0.95;
    display: block;
}

.tlb_type_text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.tlb_stat_big_num {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 12px;
}

.tlb_q_detail_row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 2px;
    width: 100%;
}

.tlb_chip_gradient {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #962de3, #5e33fa);
    white-space: nowrap;
}

.tlb_q_detail_text {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.tlb_page_num {
    font-size: 72px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

/* 5. STATS GRID (Restored) */
.tlb_stats_grid_wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.tlb_stat_card_unit {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 180px;
    position: relative;
    box-sizing: border-box;
}

.tlb_stat_header {
    font-size: 14px;
    color: #888;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tlb_stat_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
}

/* 5. TOC Enhanced */
.tlb_toc_clean_wrapper {
    width: 100%;
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 40px;
    padding-bottom: 40px;
}

.tlb_toc_head_title {
    font-family: 'SUITE', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

/* Author Section Title Modifier */
.tlb_toc_head_title.author_mode {
    align-self: flex-start;
    margin-bottom: 8px;
    /* Reduced margin */
}

.tlb_toc_list_clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tlb_toc_item_clean {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #222;
}

.tlb_toc_idx_clean {
    color: #555;
    font-size: 28px;
    font-weight: 900;
    width: 60px;
    margin-right: 20px;
    line-height: 1;
}

.tlb_toc_content_col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tlb_toc_main_title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.tlb_toc_sub_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tlb_toc_sub_item {
    font-size: 15px;
    color: #bbb;
    position: relative;
    padding-left: 14px;
    line-height: 1.4;
}

.tlb_toc_sub_item::before {
    content: '-';
    position: absolute;
    left: 0;
    top: 0;
    color: #666;
}

.tlb_toc_desc_text {
    font-size: 15px;
    color: #777;
    line-height: 1.5;
    margin-top: 4px;
}

/* 6. Author Section */
.tlb_author_box {
    width: 100%;
    position: relative;
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid #2d2d2d;
    margin-top: 0;
    /* NO GAP */
    box-sizing: border-box;
    /* Ensure padding doesn't affect total width calculation destructively */
}

.tlb_author_bg_logo {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 240px !important;
    max-width: none !important;
    height: auto !important;
    opacity: 0.05 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: block !important;
}

.tlb_author_content_wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 1;
}

.tlb_author_img_crop {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #333;
}

.tlb_author_photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlb_author_text_col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tlb_author_label {
    font-size: 13px;
    color: #962de3;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.tlb_author_name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.tlb_author_desc {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .tlb_common_container {
        padding: 0 20px;
        /* Restore mobile padding */
    }

    /* Header Reductions (Mobile) */
    .tlb_header_badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .tlb_header_title {
        font-size: 40px;
        /* Reduced from 48px (approx 15%) */
    }

    .tlb_product_title_main,
    .tlb_product_subtitle_main {
        font-size: 30px;
        /* Reduced from 36px (approx 15%) */
    }

    .tlb_visual_area_center {
        width: 100%;
    }

    .tlb_desc_text {
        font-size: 17px;
    }

    .tlb_stats_grid_wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tlb_stat_card_unit {
        min-height: auto;
        padding: 30px;
    }

    .tlb_toc_idx_clean {
        font-size: 24px;
        width: 45px;
        margin-right: 15px;
    }

    /* Author Section Mobile */
    .tlb_author_box {
        width: 100%;
        /* Full width on mobile */
        padding: 30px;
    }

    .tlb_author_content_wrapper {
        flex-direction: column;
        align-items: center;
        /* Image centered */
        text-align: left;
        /* Text left aligned */
        gap: 24px;
    }

    .tlb_author_text_col {
        width: 100%;
        text-align: left;
    }

    .tlb_author_desc {
        font-size: 14px;
        /* Reduced from 16px */
    }

    .tlb_author_text_col .tlb_toc_sub_item {
        font-size: 13px;
        /* Reduced from 15px */
    }

    .tlb_author_bg_logo {
        width: 180px;
        opacity: 0.08;
    }
}

/* 7. Product Info Notice (Legal) - Div Layout */
.tlb_legal_container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 60px;
    border-top: 2px solid #fff;
    display: flex;
    flex-direction: column;
}

.tlb_legal_row {
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: stretch;
}

.tlb_legal_label {
    width: 25%;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    font-weight: 600;
    color: #eee;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.tlb_legal_value {
    width: 75%;
    padding: 12px 15px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tlb_legal_row {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px;
        padding-top: 10px;
    }

    .tlb_legal_label {
        width: 100%;
        background: transparent;
        padding: 5px 0;
        color: #aaa;
        font-size: 12px;
        margin-bottom: 2px;
        align-items: flex-end;
        /* Align bottom like a label */
    }

    .tlb_legal_value {
        width: 100%;
        padding: 0;
        font-size: 14px;
        display: block;
    }
}

/* 8. Unified Section & Sample Box (Reconstructed) */
.tlb_unified_section {
    width: 100%;
    padding: 60px 0;
    position: relative;
    background-color: #111;
    /* Fallback */
    overflow: hidden;
    color: #fff;
    font-family: 'SUIT', sans-serif;
}

.tlb_unified_content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Concept Background (Optional visual element) */
.tlb_concept_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
    background: radial-gradient(circle at center, var(--core-color, #4A86E8), transparent 70%);
}

.tlb_unified_header {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tlb_header_prefix {
    color: #ccc;
    font-weight: 400;
}

.tlb_header_main {
    color: #fff;
}

.tlb_concept_badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--core-color, #4A86E8);
    color: #fff;
    font-size: 0.8em;
    vertical-align: middle;
    margin-right: 6px;
    transform: translateY(-2px);
}

.tlb_unified_desc {
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 40px;
    margin-top: 10px;
}

.tlb_unified_desc strong {
    color: #fff;
    font-weight: 600;
}

/* Nested Sample Box */
.tlb_nested_sample {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tlb_nested_sample:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tlb_nested_info {
    text-align: left;
}

.tlb_nested_title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tlb_nested_icon {
    font-size: 20px;
}

.tlb_nested_sub {
    font-size: 14px;
    color: #999;
}

.tlb_sample_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    background-color: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tlb_sample_btn:hover {
    background-color: #f0f0f0;
}

/* Mobile Responsive for Unified Section */
@media (max-width: 600px) {
    .tlb_unified_section {
        padding: 50px 0;
    }

    .tlb_unified_header {
        font-size: 24px;
    }

    .tlb_nested_sample {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }

    .tlb_nested_info {
        text-align: center;
    }

    .tlb_nested_title {
        justify-content: center;
    }

    .tlb_sample_btn {
        width: 100%;
    }
}

/* 9. Lecture Section Refined */
.tlb_lecture_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Ensures left alignment */
    margin-top: 60px;
}

.tlb_lecture_intro {
    font-size: 16px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 40px;
    margin-top: 10px;
    /* Increased spacing from header */
    max-width: 100%;
    text-align: left;
    word-break: keep-all;
    /* Optimization for Korean text wrapping */
}

.tlb_lecture_list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tlb_lecture_item {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    /* Dark card bg */
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    padding: 20px 25px;
    transition: transform 0.2s, border-color 0.2s;
}

/* 10. Review Assurance Section */
.tlb_review_section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
    font-family: 'SUIT', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    min-height: 600px;
    box-sizing: border-box;
    text-align: center;
}

.tlb_review_bg_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://tlb-assets.pages.dev/images/review_assurance/img_review_bg.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 1.0;
    z-index: 1;
}

/* Gradient overlay */
.tlb_review_bg_layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.tlb_review_content_container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 180px;
}

/* RE MOVED MODEL WRAPPER STYLES */

.tlb_review_text_group {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
}

.tlb_review_sub_header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    font-family: 'SUIT', sans-serif;
}

.tlb_review_main_header {
    font-size: 12vw;
    font-weight: 300;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    width: 100%;
    font-family: 'SUITE', sans-serif !important;
}

/* Responsive Font Sizing Desktop */
@media (min-width: 1200px) {
    .tlb_review_main_header {
        font-size: 4.5vw;
        /* Aggressive reduction to 4.5vw */
        white-space: nowrap;
    }
}

.tlb_highlight_bold {
    font-weight: 700;
    font-family: 'SUITE', sans-serif !important;
}

/* Mobile Break Control */
.tlb_mo_only {
    display: none;
}

.tlb_review_desc_body {
    margin-top: 30px;
    margin-bottom: 30px;
}

.tlb_review_desc_body p {
    font-size: 20px;
    color: #d0d0d0;
    margin: 4px 0;
    line-height: 1.5;
    letter-spacing: -0.5px;
    font-family: 'SUIT', sans-serif;
}

/* Animation Keyframes */
@keyframes tlbFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animation - Default Hidden */
.tlb_review_sub_header,
.tlb_review_main_header,
.tlb_review_desc_body,
.tlb_review_logo,
.tlb_review_footer_note {
    opacity: 0;
    /* Initially hidden */
}

/* Activate Animation when class is added via JS */
.tlb_animate_active .tlb_review_sub_header,
.tlb_animate_active .tlb_review_main_header,
.tlb_animate_active .tlb_review_desc_body,
.tlb_animate_active .tlb_review_logo,
.tlb_animate_active .tlb_review_footer_note {
    animation: tlbFadeInUp 1.0s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

/* Standard Delays (Triggered after activation) */
.tlb_animate_active .tlb_review_sub_header {
    animation-delay: 0.2s;
}

.tlb_animate_active .tlb_review_main_header {
    animation-delay: 0.4s;
}

.tlb_animate_active .tlb_review_desc_body {
    animation-delay: 0.6s;
}

.tlb_animate_active .tlb_review_logo {
    animation-delay: 0.8s;
}

.tlb_animate_active .tlb_review_footer_note {
    animation-delay: 1.0s;
}


.tlb_review_logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 80px auto;
    opacity: 0.9;
}

.tlb_review_footer_note {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
    font-family: 'SUIT', sans-serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tlb_review_section {
        padding: 40px 0;
        min-height: 100vw;
        max-height: 600px;
    }

    .tlb_review_bg_layer {
        background-position: center top;
    }

    .tlb_review_content_container {
        margin-top: 100px;
        /* Reduced margin */
    }

    .tlb_mo_only {
        display: block;
        /* Activate mobile line break */
    }

    .tlb_review_sub_header {
        font-size: 13px;
    }

    .tlb_review_main_header {
        font-size: 12vw;
        /* Reduced by ~15% from 14vw */
        margin-bottom: 20px;
        line-height: 1.1;
        font-weight: 300;
    }

    .tlb_review_desc_body {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .tlb_review_desc_body p {
        font-size: 13px;
        margin: 2px 0;
    }

    .tlb_review_logo {
        width: 90px;
        margin-bottom: 40px;
    }

    .tlb_review_footer_note {
        font-size: 10px;
        white-space: nowrap;
        letter-spacing: -1.0px;
        transform-origin: center top;
        transform: scale(0.95);
        width: 100%;
        overflow: visible;
    }
}


.tlb_lecture_item:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.tlb_lec_idx {
    font-size: 16px;
    font-weight: 700;
    color: #888;
    margin-right: 20px;
    min-width: 50px;
    /* Increased for '제1강' */
    white-space: nowrap;
}

.tlb_lec_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tlb_lec_title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.tlb_lec_desc {
    font-size: 14px;
    color: #999;
    text-align: left;
}

.tlb_lec_time_badge {
    background-color: rgba(150, 45, 227, 0.1);
    border: 1px solid rgba(150, 45, 227, 0.3);
    color: #b355ff;
    /* Brand Purple */
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    margin-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .tlb_lecture_item {
        position: relative;
        /* For absolute positioning of badge */
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tlb_lec_time_badge {
        position: absolute;
        top: 20px;
        /* Match container padding */
        right: 25px;
        /* Match container padding */
        margin: 0;
        background: transparent;
        border: none;
        color: #b355ff;
        /* Keep purple text */
        padding: 0;
        font-size: 14px;
    }

    .tlb_lec_idx {
        margin-bottom: 4px;
    }
}