@charset "UTF-8";
/*
  콘텐츠 페이지(Contents::index) - Figma "[콘텐츠]"(1076:1253) / "[Mo_main] 메인페이지"(1184:2254 - 콘텐츠 탭/카드 리스트) 반영
  - 헤더/푸터는 application/views/common/inc/header_rn_v.php, footer_rn_v.php 공용 사용 (brand/index, main/indexRn 과 동일 패턴)
  - 모바일 브레이크포인트 : 768px 이하
  - 실제 강의 썸네일 리소스는 아직 없어 .imgPlaceholder 로 자리만 잡아두었다 (brand.css 컨벤션과 동일).
  - 상단 탭(전체/공정실습/장비학습/온라인 강의/시뮬레이션)은 contents.js 에서 클릭 시 해당 목록만 노출하도록 처리.
*/

.ctnPage {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.imgPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.imgPlaceholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isGradient {
  background: linear-gradient(90deg, #3b80ff, #8c6cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===================== ctnTitleArea ===================== */
.ctnTitleArea {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ctnTitle {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.96px;
  color: #000;
}
.ctnTitle p + p {
  margin-top: 10px;
}
.ctnDesc {
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.54px;
  color: #0d0d0d;
}

/* ===================== ctnTabs ===================== */
.ctnTabs {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ctnTabs::-webkit-scrollbar {
  display: none;
}
.ctnTab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 30px;
  border: 1px solid #dfe2e7;
  background-color: #f9f9fa;
  color: #1d2025;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.48px;
  white-space: nowrap;
  cursor: pointer;
}
.ctnTab.isActive {
  border-color: #0a0a0a;
  background-color: #0a0a0a;
  color: #fff;
}

/* ===================== ctnLists ===================== */
.ctnLists {
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.ctnGroup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ctnGroup[hidden] {
  display: none;
}
.ctnGroupTitle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctnGroupName {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.84px;
  color: #040404;
}
.ctnGroupDesc {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.45px;
  color: #333842;
}

.ctnCardGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  width: 100%;
}
.ctnCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc((100% - 56px) / 3);
}
.ctnCardThumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 177px;
}
.ctnCardTxt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ctnCardName {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.48px;
  color: #040404;
}
.ctnCardDesc {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.39px;
  color: #1d2025;
}

/* ========================================================================
   모바일 (768px 이하)
   ======================================================================== */
@media (max-width: 768px) {
  .ctnPage {
    padding: 40px 0 80px;
    gap: 28px;
  }

  .ctnTitleArea {
    gap: 14px;
    padding: 0 30px;
  }
  .ctnTitle {
    font-size: 30px;
    letter-spacing: -0.9px;
  }
  .ctnTitle p + p {
    margin-top: 12px;
  }
  .ctnDesc {
    font-size: 16px;
    letter-spacing: -0.48px;
  }

  .ctnTabs {
    padding: 0 0 0 30px;
  }
  .ctnTab {
    height: 36px;
    font-size: 14px;
    letter-spacing: -0.42px;
  }

  .ctnLists {
    gap: 42px;
  }
  .ctnGroup {
    gap: 16px;
    padding: 0 30px;
  }
  .ctnGroupTitle {
    border-bottom: 1px solid #99a2b2;
    padding-bottom: 12px;
  }
  .ctnGroupName {
    font-size: 24px;
    letter-spacing: -0.72px;
  }
  .ctnGroupDesc {
    font-size: 14px;
    letter-spacing: -0.42px;
  }

  .ctnCardGrid {
    flex-direction: column;
    gap: 28px;
  }
  .ctnCard {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .ctnCardThumb {
    flex: 1 0 0;
    min-width: 0;
  }
  .ctnCardTxt {
    flex: 1 0 0;
    min-width: 0;
    gap: 4px;
  }
  .ctnCardName {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.45px;
  }
  .ctnCardDesc {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.39px;
  }
}
