/* ===== 커리큘럼 — 로드맵 카드 ===== */
.rdm-section {     
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.rdm-subtitle {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin: 6px 0 50px;
    letter-spacing: -0.3px;
}

/* 스텝 연결 트랙 — 카드와 동일한 4컬럼 그리드 */
.rdm-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    margin-bottom: 40px;
    margin-top: 10px;
}
/* 기본 가이드 라인 */
.rdm-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% / 8);
    right: calc(100% / 8);
    height: 1px;
    background: #ddd;
    transform: translateY(-50%);
    z-index: 0;
}

/* 도트 래퍼 */
.rdm-dot-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 세그먼트 — 절대 위치로 각 컬럼 사이 배치 */
.rdm-seg {
    position: absolute;
    top: 50%;
    height: 1.5px;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 1;
}
.rdm-seg:nth-child(5) { left: calc(100%/8);         width: calc(100%/4); }
.rdm-seg:nth-child(6) { left: calc(100%/8 + 100%/4); width: calc(100%/4); }
.rdm-seg:nth-child(7) { left: calc(100%/8 + 100%/2); width: calc(100%/4); }
.rdm-seg::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: #dde8dd;
}
.rdm-seg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #40823a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.rdm-seg.active::after {
    transform: scaleX(1);
}

/* 도트 */
.rdm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s ease, transform 0.3s ease;
}
.rdm-dot.active {
    background: #40823a;
    transform: scale(1.3);
}

/* 카드 그리드 */
.rdm-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.rdm-card {
    background: #fff;
    border: 1.5px solid #e8ede8;
    border-radius: 10px;
    padding: 24px 22px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rdm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    /* background: #d0e8d0; */
    background: #d0e8d0;
    transition: background 0.3s ease;
}
.rdm-card:hover,
.rdm-card.auto-active {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 28px rgba(64,130,58,0.16);
    border-color: #40823a;
    z-index: 2;
}
.rdm-card:hover::before,
.rdm-card.auto-active::before { background: #40823a; }

/* 배경 고스트 아이콘 (SVG 라인)
   ▼ 선 굵기: SVG의 stroke-width 값을 바꾸세요
      main.html 각 <svg stroke-width="0.8"> → 숫자만 변경
      0.5 = 매우 가늘게 / 1.0 = 보통 / 1.5 = 굵게 */
.rdm-ghost-icon {
    position: absolute;
    top: 27px;
    right: 14px;
    width: 40px;
    height: 40px;
    /* color: #b8d8b8; */
    color: #d3d3d3;
    pointer-events: none;
    user-select: none;
    transition: color 0.3s, transform 0.3s;
}
.rdm-card:hover .rdm-ghost-icon,
.rdm-card.auto-active .rdm-ghost-icon {
    color: #8aba8a;
    transform: scale(1.12) rotate(-6deg);
}

/* STEP 태그 */
.rdm-step-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: #b9b9b9;
    /* background: #e8f5e8; */
    /* border-radius: 20px; */
    padding: 3px 0;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
}
/* 카드 제목 */
.rdm-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

/* 카드 리스트 */
.rdm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rdm-list li {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    padding: 7px 0 7px 22px;
    border-bottom: 1px dashed #eee;
    position: relative;
    letter-spacing: -0.2px;
}
.rdm-list li:last-child { border-bottom: none; }

/* ▼ 리스트 아이콘 설정 — 아래 값만 바꾸면 됩니다
     아이콘 문자: ✓ ✔ ● ▶ → ★ 등 교체 가능 */
.rdm-list li::before {
    content: '✓';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #bbb;
    color: #fff;
    font-size: 10.2pt;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s ease;
}
.rdm-card:hover .rdm-list li::before,
.rdm-card.auto-active .rdm-list li::before {
    background: #40823a;
}

/* 리스트 영역이 버튼 위 공간을 채우도록 */
.rdm-list { flex: 1; }

/* 바로가기 버튼 */
.rdm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding: 10px 0;
    border: 1.5px solid #bbb;
    border-radius: 8px;
    color: #bbb !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.3s ease;
}
.rdm-btn span {
    transition: transform 0.25s ease;
}
.rdm-card:hover .rdm-btn,
.rdm-card.auto-active .rdm-btn {
    border-color: #40823a;
    color: #40823a !important;
}
.rdm-card:hover .rdm-btn:hover,
.rdm-card.auto-active .rdm-btn:hover {
    background: #40823a;
    color: #fff !important;
}
.rdm-card:hover .rdm-btn:hover span,
.rdm-card.auto-active .rdm-btn:hover span {
    transform: translateX(4px);
}

/* 반응형 */
@media (max-width: 900px) {
    .rdm-cards { grid-template-columns: repeat(2, 1fr); }
    .rdm-track { display: none; }
    .rdm-ghost-icon {
        top: 14px;
    }
}
@media (max-width: 768px) {
    .rdm-section {
        padding: 0 18px;
        box-sizing: border-box;
    }
}
@media (max-width: 520px) {
    .rdm-cards { grid-template-columns: 1fr; }
}
/* ===================================== */

/* ===== 교재 라인업 (book_1) ===== */

/* 섹션 래퍼 */
.book_1Wrap {
    width: 100%;
    margin: 0 auto;
    padding: 10px 80px 30px;
    box-sizing: border-box;
    position: relative;
    overflow-x: clip;
}


/* 양끝 그라데이션 페이드 오버레이 */
.book_1Wrap::before,
.book_1Wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0px;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}
.book_1Wrap::before {
    left: 0;
    background: linear-gradient(to right, #F3F5F8 10%, transparent 100%);
}
.book_1Wrap::after {
    right: 0;
    background: linear-gradient(to left, #F3F5F8 10%, transparent 100%);
}

/* 교재 전용 커스텀 화살표 — book_1Wrap 양 끝 기준 */
.book_1Wrap .bx-wrapper {
    position: static; /* book_1Wrap을 기준으로 삼기 위해 static */
    overflow: visible !important;
}
.book_1Wrap .bx-viewport {
    overflow: hidden !important;
}
.book_1Wrap .bx-controls-direction {
    position: static;
}
.book_1Wrap .bx-controls-direction a {
    position: absolute;
    top: calc(8px + 171px);  /* li padding(8px) + 이미지높이 절반(171px) */
    transform: translateY(-50%);
    width: 38px;
    height: 58px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(3px);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    text-indent: 0;
    font-size: 0;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    z-index: 10;
    cursor: pointer;
    margin: -40px 5px;
}
.book_1Wrap .bx-controls-direction a:hover {
    background: #fff;
    border-color: #40823a;
    box-shadow: 0 4px 14px rgba(64,130,58,0.18);
}
.book_1Wrap .bx-prev {
    left: 0 !important;
}
.book_1Wrap .bx-next {
    right: 0 !important;
}
.book_1Wrap .bx-prev::after,
.book_1Wrap .bx-next::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 1.5px solid #444;
    border-right: 1.5px solid #444;
    transition: border-color 0.2s;
}
.book_1Wrap .bx-prev::after {
    transform: rotate(-135deg) translateX(2px);
}
.book_1Wrap .bx-next::after {
    transform: rotate(45deg) translateX(-2px);
}
.book_1Wrap .bx-controls-direction a:hover::after {
    border-color: #40823a;
}

/* 슬라이더 아이템 간격 */
.book_1 li {
    box-sizing: border-box;
    padding: 8px 8px 16px !important;
}

/* 카드 */
.book_1 li a {
    display: block;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
    position: relative;
    border-radius: 12px;
}
.book_1 li a:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.book_1 .nb-img-in {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    /* object-fit: contain; */
    transition: transform 0.4s ease;
}
.book_1 li a:hover .nb-img-in {
    transform: scale(1.05);
}

/* 제목 — 최대 2줄 말줄임 */
.book_1 .book_tit {
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    padding: 14px 2px 8px !important;
    line-height: 1.55;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: clip !important;
    word-break: keep-all;
    height: 44px;
    display: none !important;
}

/* 정가 — 취소선 (할인 있는 경우만 출력) */
.book_1 .sale-price {
    font-size: 12px !important;
    color: #ababab;
    text-decoration: line-through;
    padding: 0 0 2px !important;
    display: block;
    letter-spacing: -0.2px;
    font-weight: 400;
    display: none !important;
}

/* 판매가 */
.book_1 .book_price {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #e03535 !important;
    padding: 0 14px 18px !important;
    display: block;
    letter-spacing: -0.5px;
    display: none !important;
}

/* ==================================== */

/* ===== 퀵 메뉴 ===== */
.qmenu-section {
    padding: 70px 0 75px !important;
}


/* 래퍼 */
.qmenu-wrap {
    display: flex;
    max-width: 1060px;
    margin: 0 auto;
    gap: 12px;
}

/* 아이템 — 개별 카드 */
.qmenu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 16px 36px;
    text-decoration: none;
    gap: 8px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dfdfdf;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.qmenu-item:hover {
    border-color: #6bb164;
    box-shadow: 0 4px 20px rgba(64,130,58,0.15);
}
.qmenu-item:hover .qmenu-icon svg {
    transform: scale(1.15);
    transition: transform 0.25s ease;
}
.qmenu-icon svg {
    transition: transform 0.25s ease;
}

/* 아이콘 — 둥근 사각형, 항상 초록 틴트 */
.qmenu-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qmenu-icon svg {
    display: block;
}

/* ── 아이콘 개별 사이즈 (여기서 조정) ── */
.qicon-1 { width: 60px; height: 60px; } /* 수강신청   */
.qicon-2 { width: 60px; height: 60px; } /* 교재구매   */
.qicon-3 { width: 60px; height: 60px; } /* 나의 강의실 */
.qicon-4 { width: 60px; height: 60px; } /* 열린 Class */
.qicon-5 { width: 60px; height: 58px; } /* 고객센터   */
.qmenu-icon .material-symbols-outlined {
    font-size: 65px;
    /* color: #3a7a34; */
    color: #7f7f7f;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

/* 텍스트 */
.qmenu-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.qmenu-text strong {
    font-size: 18px;
    font-weight: 700;
    color: #434343;
    letter-spacing: -0.4px;
    padding: 5px 0 7px 0;
    position: relative;
    display: inline-block;
    margin-bottom: 2px;
}
.qmenu-text strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #40823a;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.qmenu-item:hover .qmenu-text strong::after {
    width: 100%;
}
.qmenu-text span {
    font-size: 13px;
    color: #858585;
    line-height: 1.3;
    letter-spacing: -0.1px;
    font-weight: 500;
}

.qmenu-arrow { display: none; }

/* 강의 바로가기 섹션 모바일 overflow 수정 */
@media (max-width: 768px) {
    .class-section-inner {
        overflow: visible;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .qmenu-item.qmenu-cs {
        display: none;
    }

    .qmenu-wrap {
        flex-wrap: wrap;
        gap: 10px;
        border-radius: 0;
        margin: 0 16px;
        justify-content: center;
    }
    /* 5개 → 2열 배치 (2-2-1), 마지막 1개는 가운데 정렬 */
    .qmenu-item {
        flex: 1 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 22px 12px 18px;
        gap: 6px;
    }
    .qmenu-icon { width: 60px; height: 60px; border-radius: 13px; }
    .qmenu-icon svg { width: 60px; height: 60px; }
    .qmenu-text strong { font-size: 15px; }
    .qmenu-text span { font-size: 12px; }
}
/* ==================================== */

/* ===== 이용정보 3단 게시판 ===== */
.info-board {
    display: flex;
    gap: 0;
    width: 100%;
}

/* 칼럼 */
.info-col {
    flex: 1;
    min-width: 0;
    padding: 0 50px;
    border-right: 1px solid #e8e8e8;
}
.info-col:first-child { padding-left: 0; }
.info-col:last-child  { padding-right: 0; border-right: none; }

/* 칼럼 헤더 */
.info-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid #222;
    margin-bottom: 2px;
}
.info-col-tit {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}
.info-col-more {
    font-size: 25px;
    font-weight: 400;
    color: #aaa;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}
.info-col-more:hover { color: #40823a; }

/* 리스트 아이템 */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 10px 9px 20px;
    border-bottom: 1px solid #ddd;
    background: url(/files/images/main_notice_icon.jpg) no-repeat 4px 21px;
    height: 46px;
    line-height: 45px;
    padding-left: 17px;
}
.info-list li:last-child { border-bottom: 1px solid #ddd; }


.last-bottom-line {
    border-bottom: 1px solid #ddd !important;
}
.info-list li a {
    flex: 1;
    font-size: 16px;
    color: #737373;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    transition: color 0.2s;
    font-weight: 500;
    height: 26px;
    line-height: 26px;
}
.info-list li a:hover { color: #111; }

.info-date {
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

/* 반응형 */
@media (max-width: 768px) {
    .info-board  { flex-direction: column; gap: 32px; }
    .info-col    { padding: 0 !important; border-right: none !important; border-bottom: 1px solid #e8e8e8; padding-bottom: 28px !important; }
    .info-col:last-child { border-bottom: none; padding-bottom: 0 !important; }
}
/* ==================================== */
