@charset "utf-8";

/* ==========================================================================
   1. [중요] 그누보드 기본 레이아웃 강제 재설정 (1200px 중앙 정렬)
   ========================================================================== */
#wrapper {
    width: 100%;
    margin: 0 auto;
}

#container_wr {
    width: 100%;
    margin: 0 auto;
}

#container {
    position: relative;
    width: 100%;
    max-width: 1200px !important; /* [핵심] 본문 너비를 1200px로 제한 */
    margin: 0 auto !important;    /* [핵심] 중앙 정렬 */
    padding: 0 15px;              /* 모바일 등에서 내용이 붙지 않도록 여백 */
    float: none !important;       /* 쏠림 방지 */
    background: #fff;
    box-sizing: border-box;
}

/* ==========================================================================
   2. 전역 변수 및 기본 설정
   ========================================================================== */
:root {
    --primary: #0059ab;
    --text: #333;
    --gray: #6c757d;
    --container-width: 1200px;
    --card-border: #e2e8f0;
}

body {
    font-family: 'Pretendard', 'Malgun Gothic', dotum, sans-serif;
    color: var(--text);
    background: #fff;
    margin: 0;
}

/* ==========================================================================
   3. 메인 디자인 (슬라이드, 아이콘)
   ========================================================================== */

/* 슬라이드 배너 */
.main-slider { width: 100%; margin: 0; padding: 0; }
/* 슬라이드는 전체 화면을 쓰고 싶다면 여기서 max-width를 해제해야 하지만, 
   현재 구조상 #container 안에 들어가므로 1200px에 맞춰집니다. 
   만약 슬라이드만 배경을 꽉 채우고 싶다면 구조 변경이 필요하지만, 
   헤더폭에 맞추는 것이 현재 요청사항이므로 그대로 둡니다. */
.carousel-item { height: 500px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { bottom: 30%; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--container-width); padding: 0 15px; text-align: left; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
.carousel-caption h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -2px; }
.carousel-caption p { font-size: 1.5rem; font-weight: 300; }

/* 제품 버튼 (6개 아이콘) */
.product-buttons { background: #fff; padding: 60px 0; margin-top: -80px; position: relative; z-index: 10; }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; max-width: var(--container-width); margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.15); overflow: hidden; border: 1px solid var(--card-border); }
.product-btn { text-align: center; padding: 50px 20px; border-right: 1px solid var(--card-border); transition: all 0.3s; cursor: pointer; background: #fff; text-decoration: none; color: var(--text); display: block; }
.product-btn:last-child { border-right: none; }
.product-btn:hover { background: #f8fafc; transform: translateY(-5px); }
.product-btn i { font-size: 4rem; color: var(--primary); display: block; margin-bottom: 20px; transition: all 0.3s; }
.product-btn:hover i { transform: scale(1.1); }
.product-btn span { font-size: 1.2rem; font-weight: 700; display: block; }

/* ==========================================================================
   5. 메인 상품 섹션 (Swiper 롤링 슬라이드)
   ========================================================================== */
.new-product-section {
    max-width: var(--container-width);
    margin: 60px auto 40px;
    padding: 0 15px;
    position: relative; /* 화살표 위치 기준 */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 16px;
    color: #888;
    margin: 0;
}

/* Swiper 컨테이너 */
.new-product-swiper {
    padding-bottom: 50px !important; /* 하단 점(Pagination) 공간 확보 */
    padding-left: 5px;  /* 그림자 잘림 방지 */
    padding-right: 5px; /* 그림자 잘림 방지 */
}

.np-card {
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    /* 슬라이드 높이 맞춤 */
    height: auto; 
}

.np-card:hover {
    border-color: #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.np-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 정사각형 이미지 박스 (75% 크기) */
.np-img-box {
    position: relative;
    width: 75%;
    padding-bottom: 75%; 
    margin: 0 auto; 
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.np-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.np-card:hover .np-img-box img {
    transform: scale(1.08);
}

.np-text-box {
    padding-top: 20px;
    text-align: center;
}

.np-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Swiper 네비게이션 버튼 커스텀 */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important; /* 화살표 색상 */
    background: rgba(255,255,255,0.8);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Swiper 페이지네이션(점) 커스텀 */
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}


/* ==========================================================================
   4. 게시판 섹션
   ========================================================================== */
.board-section {
    max-width: var(--container-width);
    margin: 60px auto;
    padding: 0 15px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.board-card {
    background: #fff;
    border: 1px solid #e5e5e5; 
    border-radius: 0;
    padding: 20px 25px;
    height: 100%;
    overflow: hidden;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333; 
}

.board-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.05em;
}

.board-header h3 i { font-size: 18px; color: var(--primary); }
.board-header a { font-size: 13px; color: #888; text-decoration: none; }
.board-header a:hover { color: #333; }

.board-body .lat_title, .board-body .lt_more { display: none !important; }

.board-body { padding: 0; }
.latest_wr { list-style: none; padding: 0; margin: 0; }
.latest_wr li { padding: 11px 0; border-bottom: 1px solid #f1f1f1; position: relative; display: block; }
.latest_wr li:last-child { border-bottom: none; }
.latest_wr a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: #333; font-size: 15px; letter-spacing: -0.05em; line-height: 1.4; }
.latest_wr a:hover { color: #000; text-decoration: underline; }
.lt-subject { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 15px; font-weight: 400; }
.lt-subject img { margin-left: 5px; vertical-align: middle; }
.lt-date { color: #999; font-size: 13px; font-family: 'Tahoma', sans-serif; white-space: nowrap; }

/* ==========================================================================
   6. 반응형 미디어 쿼리
   ========================================================================== */
@media (max-width: 1250px) {
    .product-grid { width: 95%; margin: 0 auto; }
}

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-btn { border-right: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
    .product-btn:nth-child(3n) { border-right: none; }
    #wrapper { min-width: 100% !important; }
}

@media (max-width: 992px) {
    .board-grid { grid-template-columns: 1fr; gap: 30px; }
    .carousel-caption h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .carousel-item { height: 350px; }
    .carousel-caption { bottom: 20%; text-align: center; }
    .product-buttons { margin-top: -50px; padding: 40px 0; }
    .product-grid { width: 100%; border-radius: 0; border: none; }
    .product-btn { padding: 20px 5px; }
    .product-btn i { font-size: 2.5rem; margin-bottom: 10px; }
    .product-btn span { font-size: 0.9rem; }
    
    .np-img-box { width: 85%; padding-bottom: 85%; }
    
    .board-section { margin: 40px auto; }
}

@media (max-width: 576px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-btn:nth-child(3n) { border-right: 1px solid var(--card-border); }
    .product-btn:nth-child(2n) { border-right: none; }
}