@charset "utf-8";
/* ============================================================
   RAM KOREA — components.css
   버튼 / 카드 / 탭 / 슬라이더 / 폼 / 테이블 / 게시판 / 갤러리
   ============================================================ */

/* ---------- 1. 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--red-500); color: var(--white); }
.btn--primary:hover { background: var(--red-600); }

.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-900); }

.btn--line { border-color: var(--gray-200); background: var(--white); color: var(--navy-800); }
.btn--line:hover { border-color: var(--navy-800); background: var(--navy-800); color: var(--white); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy-800); border-color: var(--white); }

.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 17px; }
.btn--block { width: 100%; }

/* 텍스트 링크형 */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
}
.link-more svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.link-more:hover { color: var(--red-500); }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- 2. 카드 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__thumb { position: relative; aspect-ratio: 4 / 3; background: var(--gray-100); overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 30px; flex: 1; }
.card__title { font-size: 19px; }
.card__desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.card__meta { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--gray-600); }

/* 사업영역 카드 (아이콘형) */
.biz-card {
  position: relative;
  display: block;
  padding: 40px 32px 44px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.biz-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.biz-card:hover { background: var(--navy-800); border-color: var(--navy-800); transform: translateY(-6px); }
.biz-card:hover::before { transform: scaleX(1); }
.biz-card__num { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--gray-400); }
.biz-card__icon { width: 46px; height: 46px; margin: 18px 0 20px; color: var(--red-500); transition: color 0.35s var(--ease); }
.biz-card__title { font-size: 22px; transition: color 0.35s var(--ease); }
.biz-card__desc { margin-top: 12px; font-size: 15px; color: var(--text-muted); transition: color 0.35s var(--ease); }
.biz-card__arrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--navy-800);
  transition: color 0.35s var(--ease);
}
.biz-card__arrow svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.biz-card:hover .biz-card__title,
.biz-card:hover .biz-card__arrow { color: var(--white); }
.biz-card:hover .biz-card__desc { color: rgba(255, 255, 255, 0.62); }
.biz-card:hover .biz-card__icon { color: var(--red-400); }
.biz-card:hover .biz-card__arrow svg { transform: translateX(4px); }

/* ---------- 3. 탭 메뉴 (서브페이지 2depth) ---------- */
.tabs { border-bottom: 1px solid var(--line); background: var(--white); }
.tabs__list { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.tabs__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--navy-800);
  transform: scaleX(0);
  transition: transform 0.28s var(--ease);
}
.tabs__link:hover { color: var(--navy-800); }
.tabs__link[aria-current="page"] { color: var(--navy-800); font-weight: 700; }
.tabs__link[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 680px) {
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__link { min-height: 50px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
}

/* 필터 버튼 (실적 목록) */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter__btn {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.filter__btn:hover { border-color: var(--navy-800); color: var(--navy-800); }
.filter__btn[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* ---------- 4. 배지 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.badge--ongoing { background: rgba(179, 38, 46, 0.09); color: var(--red-500); }
.badge--done { background: var(--gray-100); color: var(--gray-600); }
.badge--new { background: var(--red-500); color: var(--white); }

/* ---------- 5. 슬라이더 ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.slider__slide { flex: 0 0 calc((100% - 48px) / 3); }
.slider__nav { display: flex; gap: 8px; }
.slider__btn {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  transition: all 0.2s var(--ease);
}
.slider__btn:hover:not(:disabled) { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.slider__btn:disabled { opacity: 0.35; cursor: default; }
.slider__btn svg { width: 16px; height: 16px; }
.slider__dots { display: none; gap: 7px; justify-content: center; margin-top: 24px; }
.slider__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); transition: all 0.25s var(--ease); }
.slider__dot[aria-current="true"] { width: 24px; border-radius: 100px; background: var(--red-500); }

@media (max-width: 1024px) { .slider__slide { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 680px) {
  .slider__slide { flex-basis: 100%; }
  .slider__nav { display: none; }
  .slider__dots { display: flex; }
}

/* ---------- 6. 폼 ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.form__field { display: flex; flex-direction: column; gap: 9px; }
.form__label { font-size: 15px; font-weight: 700; }
.form__label .req { color: var(--red-500); margin-left: 3px; }
.form__hint { font-size: 13px; color: var(--text-muted); }

.form__control {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  background: var(--white);
  font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form__control::placeholder { color: var(--gray-400); }
.form__control:hover { border-color: var(--gray-400); }
.form__control:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(28, 36, 48, 0.08); outline: none; }
textarea.form__control { min-height: 190px; resize: vertical; line-height: 1.75; }
select.form__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235c6472' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 44px;
}

.form__agree {
  display: flex;
  gap: 12px;
  padding: 22px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.form__agree input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red-500); }
.form__agree label { font-size: 15px; line-height: 1.7; }
.form__agree a { text-decoration: underline; font-weight: 600; }

.form__policy-box {
  max-height: 150px;
  padding: 18px;
  margin-bottom: 14px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.form__actions { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.form__error { font-size: 14px; color: var(--red-500); font-weight: 600; }
.form__control[aria-invalid="true"] { border-color: var(--red-500); }

@media (max-width: 680px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- 7. 정보 테이블 ---------- */
.table-info { border-top: 2px solid var(--navy-800); font-size: 15px; }
.table-info th,
.table-info td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-info th { width: 180px; background: var(--gray-50); font-weight: 700; color: var(--navy-800); }

.table-list { font-size: 15px; border-top: 2px solid var(--navy-800); }
.table-list th, .table-list td { padding: 18px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.table-list th { font-size: 14px; color: var(--text-muted); font-weight: 600; background: var(--gray-50); }
.table-list td.is-title { text-align: left; }
.table-list td.is-title a { font-weight: 600; transition: color 0.18s var(--ease); }
.table-list td.is-title a:hover { color: var(--red-500); text-decoration: underline; }
.table-list tbody tr { transition: background 0.18s var(--ease); }
.table-list tbody tr:hover { background: var(--gray-50); }

@media (max-width: 680px) {
  .table-info th, .table-info td { display: block; width: auto; }
  .table-info th { border-bottom: 0; padding-bottom: 8px; }
  .table-list .is-hide-m { display: none; }
  .table-list th, .table-list td { padding: 14px 8px; font-size: 14px; }
}

/* ---------- 8. 게시판 / 페이지네이션 ---------- */
.board-empty { padding: 80px 20px; text-align: center; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination button, .pagination a {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0 8px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.18s var(--ease);
}
.pagination button:hover, .pagination a:hover { border-color: var(--navy-800); color: var(--navy-800); }
.pagination [aria-current="page"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); font-weight: 700; }

/* ---------- 9. 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- 10. 박스 / 인용 ---------- */
.quote {
  padding: 28px 32px;
  border-left: 3px solid var(--red-500);
  background: var(--gray-50);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.7;
}
.note-box {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-50);
  font-size: 15px;
  color: var(--text-muted);
}
.divider { height: 1px; background: var(--line); border: 0; margin: clamp(40px, 5vw, 64px) 0; }

/* 어두운 카드 위 자리표시자 가독성 */
.work-card .placeholder,
.section--dark .placeholder,
.page-hero .placeholder,
.cta .placeholder {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ---------- 11. 본문 텍스트 블록 (약관·소개문) ---------- */
.prose { font-size: 16px; line-height: 1.9; color: var(--gray-800); }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 21px;
  color: var(--navy-800);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 26px; font-size: 17px; }
.prose ul { padding-left: 2px; }
.prose ul li { position: relative; padding-left: 16px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red-500);
}
.prose ol { padding-left: 20px; list-style: decimal; }
.prose ol li { padding-left: 4px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--navy-800); }

/* ---------- 12. 게시판 상세 / 이전·다음 ---------- */
.board-view { border-top: 2px solid var(--navy-800); }
.board-view__head { padding: 30px 8px; border-bottom: 1px solid var(--line); background: var(--gray-50); }
.board-view__head .t-caption { margin-top: 10px; }
.board-view__body { padding: 40px 8px 56px; border-bottom: 1px solid var(--line); }

.detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 44px;
}
.detail-nav__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.detail-nav__item.is-next { text-align: right; }
.detail-nav__item span { font-size: 12px; color: var(--text-muted); }
.detail-nav__item strong {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-nav__item:not(.is-disabled):hover { border-color: var(--navy-800); background: var(--gray-50); }
.detail-nav__item.is-disabled { color: var(--gray-400); }
.detail-nav__item.is-disabled strong { font-weight: 400; }

@media (max-width: 680px) {
  .detail-nav { grid-template-columns: 1fr; }
  .detail-nav__item.is-next { text-align: left; }
  .detail-nav .btn { order: 3; }
}
