/* 체크박스 스타일 초기화 */
.input_wrap input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
}

.checkbox_area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox_label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox_label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ==================== 자기주도 프로그램 ==================== */

/* 상단 배너 */
.self_banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 50%, #fff0f0 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.self_banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(196, 24, 22, 0.05);
    border-radius: 50%;
}

.self_banner::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(196, 24, 22, 0.03);
    border-radius: 50%;
}

.self_banner .banner_title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.self_banner .banner_title span {
    position: relative;
}

.self_banner .banner_title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 35%;
    background-color: var(--main-color);
    opacity: 0.12;
    z-index: -1;
    border-radius: 2px;
}

.self_banner .banner_sub {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 2단 레이아웃 */
.self_content_wrap {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    align-items: flex-start;
}

/* 좌측 카드 영역 */
.self_left {
/*     width: 38%; */
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex-shrink: 0;
}

.self_card {
    border-radius: 10px;
    padding: 1.8rem;
    position: relative;
}

.self_card.type_info {
    background-color: #f8f8fa;
    border: 1px solid #e8e8ec;
}

.self_card.type_program {
    background: linear-gradient(135deg, rgb(255, 251, 251) 0%, rgb(255, 242, 244) 100%);
    border: 1px solid rgba(196, 24, 22, 0.15);
}

.self_card .card_icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.self_card.type_info .card_icon {
    background-color: #eeeef2;
}

.self_card.type_program .card_icon {
    background-color: rgba(196, 24, 22, 0.08);
}

.self_card .card_icon img {
    width: 25px;
    height: 25px;
}

.self_card .card_title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 0.8rem;
}

.self_card .card_desc {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.self_card .card_desc li {
    position: relative;
    padding-left: 0.9rem;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.self_card .card_desc li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--main-color);
    opacity: 0.6;
}

.self_card .card_sub_title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.self_card .card_text {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.self_card .btn_apply {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.5rem 2rem;
/*     border: 1px solid #ddd; */
    border-radius: 30px;
/*     background: linear-gradient(45deg, #f08ae6, #f45c78); */
	background-color: var(--main-color);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

/* .self_card .btn_apply:hover {
	border-color: var(--main-color);
    color: var(--main-color);
} */

/* 우측 테이블 영역 */
.self_right {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 100%;
    z-index: 0;
}

.self_right::before{
	content: '';
    background: url(../../image/contents/sub/self_banner.png);
    background-position: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: -1;
}

.self_program_table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.self_program_table thead th {
    background-color: var(--main-color);
    color: #fff;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
}

.self_program_table thead th:first-child {
    width: 28%;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.self_program_table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #444;
    line-height: 1.6;
    background-color: var(--white);
}

.self_program_table tbody tr:last-child td {
    border-bottom: none;
}

.self_program_table tbody tr:hover {
    background-color: #fafafa;
}

.self_program_table tbody td:first-child {
    font-weight: 600;
    color: #333;
    text-align: center;
    background-color: #fafafa;
    border-right: 1px solid #eee;
    font-size: 1.05rem;
}

/* 신청 페이지 테이블 (체크박스 컬럼 추가) */
.self_program_table.apply_table thead th:first-child {
    width: 50px;
}

.self_program_table.apply_table tbody td:first-child {
    font-weight: 400;
    background-color: transparent;
    border-right: 1px solid #eee;
    vertical-align: middle;
}

.self_program_table.apply_table tbody td:first-child input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--main-color);
}

.self_program_table.apply_table tbody td:nth-child(2) {
    font-weight: 600;
    color: #333;
    text-align: center;
    background-color: #fafafa;
    border-right: 1px solid #eee;
    cursor: pointer;
}

.self_program_table.apply_table tbody tr:hover {
    background-color: #fff7f7;
}

/* CKEditor 콘텐츠 스타일 (p, br 등 HTML 태그 직접 출력) */
.self_td_content p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.02rem;
}

.self_td_content p + p {
    margin-top: 0.2rem;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
    .self_content_wrap {
        /* flex-direction: column; */
        grid-template-columns: 1fr;
    }
    
    .self_right::before{
    	display: none;
    }

    .self_left {
        width: 100%;
    }

    .self_right {
        width: 100%;
    }

    .self_banner {
        padding: 2rem 1.5rem;
    }

    .self_banner .banner_title {
        font-size: 1.8rem;
    }

    .self_program_table thead th:first-child {
        width: 35%;
    }
}