﻿@charset "utf-8";

/* 진로교육사례 목록 */
.bo_classdata {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 10px 100px;
    box-sizing: border-box;
}

.bo_classdata .shop_control_bar {
    margin-bottom: 10px;
}

.bo_classdata .shop_filters .filter_btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.cd_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd_card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #E7e7e7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd_card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.08);
}

.cd_card_link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cd_thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F3F4F6;
}

.cd_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cd_thumb.is-empty {
    background: linear-gradient(160deg, #FDE68A 0%, #FBBF24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd_thumb_placeholder {
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #78350F;
    text-align: center;
    line-height: 1.4;
    word-break: keep-all;
}

.cd_thumb_meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent 70%);
}

.cd_file_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cd_file_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    padding: 0 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.85);
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.cd_duration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    padding: 0 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.77);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.cd_body {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 16px 22px;
    background: #fff;
}

.cd_date {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #595959;
    line-height: 1.2;
}

.cd_title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    word-break: keep-all;
}

.cd_card:hover .cd_title {
    color: #FC6A23;
}

.cd_empty {
    padding: 80px 20px;
    text-align: center;
    color: #6B7280;
    background: #fff;
    border: 1px dashed #D1D5DB;
    border-radius: 12px;
    font-size: 15px;
}

.cd_pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

@media (max-width: 1024px) {
    .bo_classdata {
        width: 100%;
        padding: 0 16px 80px;
    }

    .cd_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .bo_classdata {
        padding: 0 16px 60px;
    }

    .cd_grid {
        gap: 16px;
    }

    .cd_body {
        min-height: 72px;
        padding: 14px 16px;
    }

    .cd_title {
        font-size: 18px;
    }

    .bo_classdata .shop_filters .filter_btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 진로교육 사례 상세 */
.ex_view {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px 100px;
    box-sizing: border-box;
}

.ex_view_breadcrumb {
    margin-bottom: 28px;
}

.ex_view_breadcrumb a {
    color: #666;
    text-decoration: none;
}

.ex_view_breadcrumb a:hover {
    color: #FC6A23;
}

.ex_view_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.ex_view_title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    word-break: keep-all;
}

.ex_view_meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ex_view_date {
    font-size: 15px;
    font-weight: 500;
    color: #9CA3AF;
    white-space: nowrap;
}

.ex_view_list_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.2s, color 0.2s;
}

.ex_view_list_btn:hover {
    border-color: #FC6A23;
    color: #FC6A23;
}

.ex_view_content {
    width: 100%;
    min-height: 160px;
    margin-bottom: 48px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.75;
    color: #1F2937;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-x: hidden;
}

.ex_view_content p {
    margin: 0 0 1em;
}

.ex_view_content a {
    color: #111;
    text-decoration: underline;
}

.ex_view_content img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto 24px;
    border-radius: 16px;
}

.ex_view_nav {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #F3F4F6;
}

.ex_view_nav_item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.ex_view_nav_item + .ex_view_nav_item {
    border-top: 1px solid #fff;
}

.ex_view_nav_item:hover {
    background: #EBECEE;
}

.ex_view_nav_label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    white-space: nowrap;
}

.ex_view_nav_label i {
    font-size: 12px;
}

.ex_view_nav_subject {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.ex_view_nav_date {
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .ex_view {
        padding: 28px 16px 72px;
    }

    .ex_view_title {
        font-size: 26px;
    }

    .ex_view_content {
        font-size: 16px;
    }

    .ex_view_content img {
        border-radius: 12px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .ex_view_head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .ex_view_title {
        font-size: 22px;
    }

    .ex_view_meta {
        width: 100%;
        justify-content: space-between;
    }

    .ex_view_nav_item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 16px;
    }

    .ex_view_nav_date {
        grid-column: 2;
    }
}
