@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;
    align-items: center;
    padding: 0 22px;
    background: #fff;
}

.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: 0 16px;
    }

    .cd_title {
        font-size: 18px;
    }

    .bo_classdata .shop_filters .filter_btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ===== 수업자료실 보기 ===== */
.cd_view {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 100px;
    box-sizing: border-box;
}

.cd_view_breadcrumb {
    margin-bottom: 28px;
}

.cd_view_breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.cd_view_breadcrumb a:hover {
    color: #FC6A23;
}

.cd_view_layout {
    display: grid;
    grid-template-columns: 955px 280px;
    grid-template-areas:
        "player downloads"
        "main downloads";
    gap: 24px;
    align-items: start;
    width: 1259px; /* 955 + 24 + 280 */
    max-width: 100%;
    margin: 0 auto 56px;
}

.cd_view_player {
    grid-area: player;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

.cd_view_main {
    grid-area: main;
    width: 955px;
    max-width: 100%;
    min-width: 0;
}

.cd_view_downloads {
    grid-area: downloads;
    align-self: stretch;
}

.cd_view_player_frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.cd_view_player_frame iframe,
.cd_view_player_frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.cd_view_player_frame.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    color: #6B7280;
}

.cd_view_main > .cd_view_cards,
.cd_view_main > .cd_view_cta {
    margin-top: 20px;
}

.cd_view_main > .cd_view_cards:first-child,
.cd_view_main > .cd_view_cta:first-child {
    margin-top: 0;
}

.cd_view_downloads_inner {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cd_download_btn {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 56px;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    box-sizing: border-box;
}

.cd_download_label {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #b7b7b7;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    box-sizing: border-box;
}

.cd_download_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    flex-shrink: 0;
    background: #FC6A23;
    color: #fff;
    border-radius: 0 10px 10px 0;
    font-size: 18px;
    transition: background 0.2s;
}

.cd_download_btn:hover .cd_download_icon {
    background: #e85d18;
}

.cd_download_btn:hover .cd_download_label {
    color: #111;
}

.cd_download_btn.is-disabled {
    cursor: default;
    pointer-events: none;
}

.cd_download_btn.is-disabled .cd_download_label {
    color: #9CA3AF;
    background: #F9FAFB;
}

.cd_download_btn.is-disabled .cd_download_icon {
    background: #D1D5DB;
}

.cd_view_cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    min-height: 190px;
    height: 190px;
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 0 48px;
    border-radius: 8px;
    /* 상·하 분할 + 좌우: 0~47% 투명, 47~100% #FFD900 불투명 */
    background-color: #FFE63D;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 217, 0, 0) 0%,
            rgba(255, 217, 0, 0) 47%,
            #FFD900 100%
        ),
        linear-gradient(
            180deg,
            #FFE63D 0%,
            #FFE63D 68%,
            #FFD900 68%,
            #FFD900 100%
        );
    background-repeat: no-repeat;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: filter 0.2s;
    overflow: hidden;
}

.cd_view_cta_media {
    width:50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cd_view_cta_media img {
    display: block;
    width: auto;
    height: 85%;
    object-fit: contain;
    object-position: center bottom;
}

.cd_view_cta_body {
    width:50%;
    display: flex;
    flex-direction: column;
    justify-content:center;
    gap: 14px;
}

a.cd_view_cta:hover {
    filter: brightness(0.98);
}

.cd_view_cta.is-disabled {
    cursor: default;
}

.cd_view_cta_text {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.35;
    color: #111;
    text-align: left;
    word-break: keep-all;
}

.cd_view_cta_text strong {
    font-weight: 700;
}

.cd_view_cta_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    background: #FC6A23;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

a.cd_view_cta:hover .cd_view_cta_btn {
    color: #fff;
}

.cd_view_cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cd_info_card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #F7F7F8;
    border: 1px solid #ECECED;
    border-radius: 14px;
    padding: 22px 22px 24px;
    min-height: 120px;
    box-sizing: border-box;
}

.cd_info_card_icon {
    flex-shrink: 0;
    width: 66px;
    height: 66px;
}

.cd_info_icon_svg {
    display: block;
    width: 66px;
    height: 66px;
}

.cd_info_card_main {
    min-width: 0;
    flex: 1;
}

.cd_info_card_title {
    margin: 2px 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #FC6A23;
    line-height: 1.3;
}

.cd_info_card_body {
    font-size: 17px;
    line-height: 1.5;
    color: #000;
    word-break: keep-all;
}

.cd_info_list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.cd_info_list li {
    position: relative;
    padding-left: 14px;
}

.cd_info_list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
}

.cd_info_list li + li {
    margin-top: 6px;
}

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

.cd_info_labeled_row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 6px;
    align-items: start;
}

.cd_info_labeled_row + .cd_info_labeled_row {
    margin-top: 6px;
}

.cd_info_label {
    white-space: nowrap;
}

.cd_info_label::before {
    content: '•';
    margin-right: 6px;
}

.cd_info_label::after {
    content: ' :';
}

.cd_info_values {
    min-width: 0;
    word-break: keep-all;
}

/* 수업 활용 팁 */
.cd_tips {
    margin-top: 40px;
}

.cd_tips_head {
    margin-bottom: 18px;
}

.cd_tips_title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.cd_tips_write {
    margin-bottom: 28px;
}

.cd_tips_write_box {
    position: relative;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 18px 20px 44px;
    box-sizing: border-box;
}

.cd_tips_write_box textarea {
    display: block;
    width: 100%;
    min-height: 88px;
    padding: 0;
    border: 0;
    background: transparent;
    resize: none;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
}

.cd_tips_guest {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cd_tips_submit,
.cd_tips_write_box .btn_submit.cd_tips_submit {
    position: absolute;
    right: 18px;
    bottom: 14px;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #111 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.cd_tips_submit:hover,
.cd_tips_write_box .btn_submit.cd_tips_submit:hover {
    color: #FC6A23 !important;
    background: transparent !important;
}

.cd_tips_write_guest .cd_tips_write_box textarea {
    cursor: pointer;
    color: #9CA3AF;
}

.cd_tips_write_guest .cd_tips_submit {
    color: #9CA3AF !important;
    cursor: pointer;
}

.cd_tips_list {
    display: flex;
    flex-direction: column;
}

.cd_tip_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid #E5E7EB;
}

.cd_tip_avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #F3F4F6;
}

.cd_tip_avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd_tip_main {
    min-width: 0;
    flex: 1;
}

.cd_tip_meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cd_tip_name {
    font-size: 15px;
    color: #111;
}

.cd_tip_dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D1D5DB;
}

.cd_tip_time {
    font-size: 13px;
    color: #9CA3AF;
}

.cd_tip_inline_form {
    margin-top: 4px;
}

.cd_tip_inline_form #fviewcomment {
    margin: 0;
}

.cd_tip_content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    word-break: keep-all;
}

.cd_tip_secret {
    display: inline-block;
    margin-right: 6px;
    color: #FC6A23;
    font-size: 12px;
    font-weight: 700;
}

.cd_tip_actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.cd_tip_actions a {
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
}

.cd_tip_reply_btn {
    color: #FC6A23 !important;
    font-weight: 600;
}

.cd_tips_empty {
    padding: 40px 0;
    text-align: center;
    color: #9CA3AF;
    border-top: 1px solid #E5E7EB;
}

.cd_tips_pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 1280px) {
    .cd_view_layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        width: 100%;
    }

    .cd_view_main {
        width: auto;
    }
}

@media (max-width: 1024px) {
    .cd_view {
        width: 100%;
        padding: 0 20px 80px;
    }

    .cd_view_layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "player"
            "downloads"
            "main";
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        gap: 20px;
    }

    .cd_view_main {
        width: 100%;
    }

    .cd_view_downloads_inner {
        position: static;
        flex-direction: row;
    }

    .cd_download_btn {
        flex: 1;
    }

    .cd_view_cards {
        grid-template-columns: 1fr;
    }

    .cd_view_cta {
        gap: 28px;
        height: 170px;
        min-height: 170px;
        padding: 0 28px;
    }

    .cd_view_cta_media {
        flex: 0 0 320px;
        width: 320px;
    }

    .cd_view_cta_text {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cd_view_cta_media {
        flex: 0 0 38%;
        width: 38%;
    }

    .cd_view_cta_media img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 640px) {
    .cd_view_downloads_inner {
        flex-direction: column;
    }

    .cd_info_card {
        gap: 12px;
        padding: 18px;
    }

    .cd_info_card_icon,
    .cd_info_icon_svg {
        width: 52px;
        height: 52px;
    }

    .cd_info_card_title {
        font-size: 16px;
    }
}
