/********************************************************
 * (1) 기본 reset & global styles
 ********************************************************/
html, body {
  margin: 0;
  padding: 0;
  width: 100%;

  overflow-x: hidden;
  font-family: system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body {
  display: flex;
  flex-direction: column;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}

/********************************************************
 * (2) 전체 레이아웃: header + main + footer
 ********************************************************/
main {
  flex: 1;
}

/********************************************************
 * (3) 공통 Section 스타일
 ********************************************************/
section:not(.hero-slider):not(.top-menu-bar):not(.hero-section) {
  /* 기본 좌우 패딩, 가운데 정렬 */
  padding: 0 1rem;  
  max-width: 1200px; 
  margin: 0 auto;
}
section:not(.hero-slider) > h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

/************************************************************
 * 2) Hero Two-Col (왼쪽 텍스트 / 오른쪽 슬라이더)
 ************************************************************/
/* 전체 컨테이너: 가로 1200px, 왼쪽 600 + 오른쪽 600 */
.hero-two-col {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  /* 필요시 높이: min-height: 400px; */
}

/* 왼쪽(텍스트) 600px */
.hero-left {
  width: 600px;
  background: #fafafa;  /* 예시 배경 */
  display: flex;
}
.hero-left-inner {
  margin: auto;  /* 수직, 수평 중앙정렬 */
  max-width: 90%;
}
.hero-left-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #333;
}
.hero-left-inner h2 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1rem;
}
.hero-left-inner p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* 오른쪽(슬라이더) 600px */
.hero-right {
  position: relative;
  width: 600px;
  height: 400px;  /* 원하는 높이 */
  overflow: hidden;
  background: #ccc; /* 기본 배경(슬라이드가 없으면 보임) */
}

/* (A) slides wrapper */
.slider-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: max-content; /* 가로 길이를 slides * 600px 로 넘침 */
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

/* (B) slide */
.slide {
  width: 600px;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0; 
  position: relative;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

/* 도트 인디케이터 */
.dots {
  position: absolute;
  bottom: 15px; 
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.dot {
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active {
  background: #fff;
}

/* 반응형(992px 이하) - 세로 배치 */
@media (max-width: 992px) {
  .hero-two-col {
    width: 100%;
    flex-direction: column;
  }
  .hero-left, .hero-right {
    width: 100%;
    height: auto;
  }
  .hero-right {
    height: 300px; /* or auto */
  }
  .slide {
    width: 100%; /* 슬라이드 폭이 부모에 맞춰짐 */
  }
}
/********************************************************
 * 게시판 미리보기 & 고객센터
 ********************************************************/
/* 큰 화면: 3열, 태블릿 이하: 1열 */
.board-list-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
}
.board-list-wrap,          /* <ul class="board-list-wrap"> … */
.board-list-wrap li {      /* <li> … */
  list-style: none;        /* 기본 ● 마커 없애기 */
  margin: 0;               /* 필요하면 여백도 초기화 */
  padding: 0;
}
/* 최신 브라우저에서 확실히 없애고 싶다면 추가로: */
.board-list-wrap li::marker {  /* ::marker = 불릿 기호 */
  content: none;
}
@media (max-width: 992px) {
  .board-list-wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 576px) {
  .board-list-wrap {
    grid-template-columns: 1fr;
  }
}
/* 연락처(고객센터) */
.contact2 {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact2-inner {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  padding: 0;
}
.contact2-inner h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #ee5917;
}
.phone2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.time2 {
  font-size: 0.95rem;
  color: #666;
}

/********************************************************
 * (6) 커스텀 섹션 (custom-section2)
 ********************************************************/
.custom-section2 {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  padding: 1.5rem;
  margin-top: 2rem;
}

/* Nanum Myeongjo 폰트 */
@import url('https://fonts.googleapis.com/earlyaccess/nanummyeongjo.css');

/**********************************************
 * Color & Typography Variables
 **********************************************/
:root {
  --pri:        #d10000;  
  --pri-dark:   #e18b46;  
  --txt:        #4f4f4f;  
  --txt-hover:  #3b3b3b;  
  --bg:         #ffffff;
  --bg-soft:    #f6f6f6;
  --border:     #d10000;
  --border-light: #ffc693;
  --bg-hover:   #fdfdfd;
}

/**********************************************
 * Header Scope
 **********************************************/
.header-scope * {
  box-sizing: border-box;
  margin: 0; padding: 0;
}
.header-scope {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Nanum Myeongjo', "Helvetica Neue", Arial, sans-serif;
  position: relative; 
}
/* 헤더 하단 라인 (빨간) */
.header-scope::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: #ff0000;
  z-index: 5;
}
.header-scope .site-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background-color: var(--bg);
}
.header-scope .site-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--txt);
}
.header-scope .site-header h1 a {
  color: inherit;
  text-decoration: none;
}
/* Navigation */
.header-scope .site-header nav { position: relative; }
.header-scope .site-header nav ul {
  display: inline-flex;
  list-style: none;
  gap: 6rem;
}
.header-scope .site-header nav li { position: relative; }
.header-scope .site-header nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s, transform 0.25s ease, letter-spacing 0.25s ease;
}
/* 밑줄 */
.header-scope .site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0; height: 2px;
  background: var(--pri);
  transition: width 0.25s ease;
}
.header-scope .site-header nav a:hover {
  color: #d10000;
  transform: translateY(-2px);
  letter-spacing: 0.4px;
}
.header-scope .site-header nav a:hover::after {
  width: 100%;
  height: 3px;
}
/* dropdown */
.header-scope .site-header nav li ul {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--bg);
  border-radius: 4px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  z-index: 999;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.header-scope .site-header nav li ul li a {
  display: block;
  color: var(--txt);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.header-scope .site-header nav li ul li a:hover {
  background: var(--bg-soft);
  color: var(--txt-hover);
}
.header-scope .site-header nav li:hover > ul {
  display: block;
}
/* Hamburger (Mobile) */
.header-scope .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.25s ease;
}
.header-scope .menu-toggle:hover {
  color: var(--txt-hover);
  transform: scale(1.1);
}
/* 반응형 헤더 */
@media (max-width: 992px) {
  .header-scope .site-header {
    height: 120px;
    padding: 1rem 1.5rem;
  }
  .header-scope .site-header h1 {
    font-size: 1.6rem;
  }
  .header-scope .menu-toggle {
    display: block;
    font-size: 3.2rem;
    margin-left: auto;
  }
  .header-scope .site-header nav {
    position: absolute;
    top: 85px; left: 0; right: 0;
    z-index: 999;
  }
  .header-scope .site-header nav ul {
    display: none;
    flex-direction: column;
    background: var(--bg);
    padding: 0.5rem 0;
    width: 100%;
  }
  .header-scope .site-header nav ul.show {
    display: flex;
  }
  .header-scope .site-header nav li ul {
    margin-left: 1rem;
    position: static;
    transform: none;
    box-shadow: none;
  }
  .header-scope .site-header nav li.active > ul {
    display: block;
  }
  .header-scope .site-header nav li:hover > ul {
    display: none;
  }
  .header-scope .site-header nav li a {
    display: block;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    color: var(--txt);
  }
  .header-scope .site-header nav li a:hover {
    background: var(--bg-soft);
    color: var(--txt-hover);
    transform: none;
    letter-spacing: 0.4px;
  }
}

/**********************************************
 * Footer Scope
 **********************************************/
.footer-scope {
  width: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Nanum Myeongjo', "Helvetica Neue", Arial, sans-serif;
  border-top: 1px solid var(--border);
}
.footer-scope .site-footer {
  max-width: clamp(320px, 90%, 1200px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  padding: 0 1rem;
}
.footer-scope .site-footer p {
  margin: 0;
}
.footer-scope .site-footer a {
  color: var(--txt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.footer-scope .site-footer a:hover {
  color: var(--txt-hover);
  border-bottom: 1px solid var(--txt-hover);
}

/********************************************************
 * (12) Hero Section - 가로분할 (왼쪽 텍스트 / 오른쪽 이미지)
 ********************************************************/
.hero-section {
  width: 1300px; /* 전체 1200px 고정 */
  margin: 0 auto !important;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 !important;
}

.hero-section .hero-text-col {
  width: 600px;
  background: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #4f4f4f;
}
.hero-text-col h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-text-col h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #666;
}
.hero-text-col p {
  line-height: 1.6;
  color: #555;
}
.hero-section .hero-image-col {
  width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
  background:
    #1a73e8
    url('/make_test/uploads/img/hero_default.jpg')
    center center / cover
    no-repeat;
}

@media (max-width: 992px) {
  .hero-section {
    width: 100% !important;
    flex-direction: column;
  }
  .hero-section .hero-text-col,
  .hero-section .hero-image-col {
    width: 100%;
    min-height: 300px;
  }
}
/* ===========================================
   CSS Variables 정의 (전역)
   =========================================== */
:root {
  /* 메인 색상 (Primary) */
  --color-primary: #d10000;

  /* 텍스트 색상 */
  --text-main: #333;
  --text-sub:  #444;

  /* 배경 색상 */
  --bg-white: #ffffff;
  --bg-light: #f3f4f6;

  /* 그림자 색상 (주 그림자, 호버 시 그림자) */
  --shadow-main: rgba(0,0,0,0.05);
  --shadow-hover: rgba(0,0,0,0.06);

  /* 기타 공통 속성 */
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

/* -------------------------------------------
 * (13) Page Layout: container, sidebar, page-content
 ------------------------------------------- */

/* 1) 컨테이너 */
.page-container {
  max-width: clamp(320px, 95%, 1200px);
  margin: 2rem auto;
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  gap: 1.5rem;
  box-shadow: 0 8px 20px var(--shadow-main);
  position: relative;
  overflow: hidden;
}

/* 2) 사이드바 */
.sidebar {
  flex: 0 0 240px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
  border-radius: var(--border-radius);
  padding: 1.5rem;
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}
.sidebar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-hover);
}
.sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.5rem;
}
.sidebar ul {
  list-style: none;
  margin: 0; 
  padding: 0;
}
.sidebar li {
  margin-bottom: 0.5rem;
}
.sidebar li a {
  display: block;
  text-decoration: none;
  color: var(--text-sub);
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.02);
  transition:
    background var(--transition-speed),
    transform var(--transition-speed),
    box-shadow var(--transition-speed);
  font-weight: 500;
}
.sidebar li a:hover {
  background: rgba(0,0,0,0.05);
  box-shadow: 0 0 8px rgba(0,0,0,0.04);
  transform: translateX(4px);
}

/* 3) 페이지 컨텐츠 */
.page-content {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 1px 3px var(--shadow-main);
  position: relative;
  overflow: hidden;
}
.page-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* 반응형 - 태블릿 이하 */
@media (max-width: 992px) {
  html {
    font-size: 180%;
  }
  .page-container {
    flex-direction: column;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .page-content {
    width: 100%;
    border-radius: 0;
    padding: 1rem;
    font-size: 0.95rem;
    box-shadow: none;
  }
}


/********************************************************
 * (14) Top Menu Bar ― 최종 고정 높이 50 px
 ********************************************************/
section.top-menu-bar {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
.top-menu-bar {
  width: 100%;
  height: 50px;
  background: #ffa75e;
  display: flex;
  overflow: hidden;
}
.top-menu-bar .menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  height: 100%;
}
.top-menu-bar .menu-inner ul {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-menu-bar .menu-inner li {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-menu-bar .menu-inner li a {
  width: 100%;
  height: 100%;
  line-height: 50px;
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
}
.top-menu-bar .menu-inner li a:hover {
  background: rgba(0,0,0,0.15);
}

/********************************************************
 * 탭 UI (board-list-tabs)
 ********************************************************/
.tab-buttons li {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.tab-buttons li.active {
  position: relative;         
  background: #fff;
  border-bottom: 2px solid #fff;
  font-weight: bold;
  color: #ee5917;
  margin-bottom: -2px !important; 
  z-index: 1;
}
.tab-contents {
  border: 1px solid #ddd;
  background: #fff;
  padding: 1rem;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}
.tab-pane ul {
  list-style: none;
  padding: 0; margin: 0;
}
.tab-pane li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f3f3f3;
}
.tab-pane li a {
  color: #333;
  text-decoration: none;
}
.tab-pane li a:hover {
  text-decoration: underline;
}
.tab-pane li small {
  color: #999;
}
/* 강제 margin/padding 제거 */
.board-list-tabs-wrap, 
.board-list-tabs,
.board-list-tabs-wrap section, 
.board-list-tabs-wrap .tab-contents, 
.board-list-tabs-wrap .tab-buttons,
.board-list-tabs-wrap li,
.board-list-tabs-wrap h2,
.board-list-tabs-wrap p {
  margin: 0 !important;
  padding: 1 !important;
}
.board-list-tabs-wrap {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 1200px !important;
  display: flex !important;
  justify-content: flex-start !important;
}
.board-list-tabs {
  width: 400px;
  margin: 3rem 0; 
}

/********************************************************
 * Hero Contact Section (하단 오버레이 + 버튼 2개)
 ********************************************************/
section.hero-contact-section {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
.hero-contact-section {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  padding: 40px 0;
}
.hero-contact-section::before {
  content: "";
  display: block;
  background: rgba(0,0,0,0.4);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hero-contact-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hc-left {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 200px;
  grid-template-rows: 130px 130px;
  gap: 0;
  margin-left: 0px;
}
.hc-btn {
  width: 100%;
  height: 100%;
  margin: 0;
  box-shadow: 3px 3px 8px rgba(0,0,0,.3);
  transition: transform .25s;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-btn:hover {
  transform: scale(1.05);
}
.hc-btn-company {
  grid-column: 1;
  grid-row: 1;
  background: #005baa;
}
.hc-btn-location {
  grid-column: 2;
  grid-row: 2;
  background: #333;
}
.hc-right {
  flex: 1;
  text-align: right;
}
.hc-right h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.hc-desc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.hc-phone {
  font-size: 30px;
  line-height: 1.2;
}
.hc-phone small {
  font-size: 14px;
  color: #ccc;
}

/********************************************************
 * (2) Flex 컨테이너: 왼쪽 탭 + 오른쪽 이미지
 ********************************************************/
.board-tabs-with-image-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 !important;
}
.board-tabs-with-image {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.board-list-tabs-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
}
.board-list-tabs {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.board-preview-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
}
.board-preview-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 992px) {
  .board-tabs-with-image {
    flex-direction: column;
  }
  .board-preview-image {
    width: 100%;
    margin-top: 0;
  }
  .board-preview-image img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* 탭 버튼 불릿 제거 */
.tab-buttons {
  list-style: none;  /* 불릿 없음 */
  margin: 0;         /* 기본 여백 제거 */
  padding: 0;
}

.tab-buttons li {
  list-style: none;  /* 혹시나 해서 추가 */
  margin: 0;
  padding: 0;
}
/* (예) 게시판 미리보기 탭에 얇은 회색 라인 + 약간의 아래 여백 */
.board-list-tabs .tab-buttons li {
  border-bottom: 1px solid #ddd;  /* 얇은 회색 선 */
  margin-bottom: 0.5rem;         /* 아래쪽 여백 (조절 가능) */
  padding-bottom: 0.4rem;        /* 패딩으로 간격 부여 (조절 가능) */
}