/* ============================================================
   강좌 게시판 섹션 (board-course-section / bcs-)
   main_skin.php > board-1 / 공통 재사용 가능
   ============================================================ */

/* ── 섹션 컨테이너 ─────────────────────────────────────────── */
.board-course-section {
    width:280px;
    height: 360px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px 20px 18px;
    box-sizing: border-box;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.03);
}

/* ── 섹션 헤더 ─────────────────────────────────────────────── */
.bcs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap1: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.bcs-header-left, .bcs-header-right {
    flex: 1; /* 양쪽 끝 영역이 동일한 너비를 가짐 */
}
.bcs-header-center {
    flex: 9;
    text-align: center;
}
.bcs-header-right {
    text-align: right;
    margin-bottom:2px;
}
.bcs-header-left1  { display: flex; align-items: center; gap: 10px; }
.bcs-header-right1 { display: flex; align-items: center; gap: 8px;  }

.bcs-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
}

/* 더보기 링크 (+) */
.bcs-more-link {
    font-size: 16px;
    font-weight: 600;
    color: #017a36;          /* 텍스트 강조 그린 */
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}
.bcs-more-link:hover { color: #03c75a; }

/* 구분선 */
.bcs-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

.bcs-page-nav {
  display: flex;
  justify-content:center;
  gap:3px;
  margin-top1:3px;
}

/* ── 페이지 번호 버튼 (원형) ───────────────────────────────── */
.bcs-page-numbers {
    display: flex;
    gap: 6px;
}

/* 페이지 번호: 옅은 블루톤 */
.bcs-page-btn {
    width: 24px;
    height: 24px;
    border-radius: 40px;
    background: #f0f7ff; /* 옅은 블루 */
    color: #60a5fa;      /* 블루 텍스트 */
    font-size: 12px;
    border: solid 0.5px #c4dcf3;
    cursor: pointer;
    transition: all 0.2s;
}

.bcs-page-btn.active {
    background1: #3b82f6; /* 활성화 시 진한 블루 */
    color: #003678;
    border:0.5px solid #1487da70;
}

/* 이전/다음 화살표 버튼 */
.bcs-nav-arrow {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 0 5px;
    display: flex;
    align-items: center;
}

/* 항목이 없거나 이동 불가 시 옅은 색 처리 */
.bcs-nav-arrow.disabled {
    color: #adb2bb;
    cursor: default;
    pointer-events: none;
}

/* ── 슬라이더 래퍼 / 트랙 ─────────────────────────────────── */
.bcs-slider-wrapper {
    overflow: hidden;
    width: 100%;
}
.bcs-slider-track {
    display: flex;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* 슬라이드 한 장 (페이지) */
.bcs-page-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0px;
}

/* ── 2×2 그리드 ────────────────────────────────────────────── */
.bcs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* ── 강좌 아이템 ───────────────────────────────────────────── */
.bcs-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding1: 4px;
    transition: background .2s;
}
.bcs-item1:hover {
    background: #e8f9ef;            /* 연한 그린 hover */
}

/* 정사각 이미지 래퍼 */
.bcs-img-wrap {
    width: 100%;
    height: 85px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}
.bcs-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.bcs-item:hover .bcs-img-wrap img {
    transform: scale(1.1);
}

/* 강좌 타이틀 */
.bcs-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    word-break: keep-all;
    padding: 0 0px 4px;
    text-align: center;

    /* 가로폭 고정 및 말줄임표 설정 */
    display: block;          /* 블록 요소로 지정 */
    width: 110px;             /* 부모(.bcs-item) 너비에 맞춤 */
    white-space: nowrap;     /* 글자가 길어도 줄바꿈 하지 않음 */
    overflow: hidden;        /* 넘치는 글자는 숨김 */
    text-overflow: ellipsis; /* 숨겨진 글자 끝에 ... 표시 */
    box-sizing: border-box;  /* 패딩이 너비에 영향을 주지 않도록 설정 */
}

/* 빈 자리 (마지막 페이지 짝수 정렬용) */
.bcs-item-empty {
    pointer-events: none;
    visibility: hidden;
}

/* ── 반응형 : 모바일 (≤ 640px) ───────────────────────────── */
@media (max-width: 640px) {
    .board-course-section {
        padding: 16px 14px 20px;
        border-radius: 10px;
    }
    .bcs-title {
        font-size: 18px;
    }
    .bcs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .bcs-item-title {
        font-size: 12px;
    }
    .bcs-page-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* ── 아주 좁은 화면 (≤ 360px) : 1열 ─────────────────────── */
@media (max-width: 360px) {
    .bcs-grid {
        grid-template-columns: 1fr;
    }
}
