/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 브랜드 메인 컬러 */
    --brand-main: #024ad0;
    --brand-sub: #f2f4f8;
    
    /* 폰트 컬러 */
    --font-black: #000000;
    --font-white: #FFFFFF;
    --font-gray: #757575;
    --font-main: #024ad0;

    
    /* 이미지 컬러 */
    --img-black: #17171B;
    --img-gray: #757575;
    --img-white: #f8f9fa;

     --brand-blue:#183b83;   /* ✅ 선택 색상 */
  --line:#e5e7eb;
  --shadow: 0 14px 22px rgba(0,0,0,.08); /* ✅ 90도(아래로 떨어지는) 연한 그림자 느낌 */
  --card:#f5f5f5;         /* ✅ 라운드 박스 컬러 */
  --badge:#c68a55;        /* ✅ 말머리 오렌지 */
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--font-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent ;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
    pointer-events: none;
}
.header:hover .mus{
    background-color: #fff !important;
    width: 100%;
}
.header .header-container,
.header .main-nav,
.header .logo,
.header .mobile-menu-toggle {
    pointer-events: auto;
}

.header.scrolled {
    background: var(--font-white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;  
    /* padding: 0 20px; */
    display: flex;
      justify-content: flex-start;
    align-items: center;
    height: 80px;
    background: transparent;
}
.logo {
    width: 200px;
}
.logo img{width: 100%;}
.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-main);
    text-decoration: none;
}
.logo a{ display:inline-block; }
.logo-img{  width:auto; display:block; }

.logo-img--dark{ display:none; }

/* ✅ 스크롤 전(기본): 흰 로고 */
.header:not(.scrolled) .logo-img--light{ display:block; }
.header:not(.scrolled) .logo-img--dark{ display:none; }

.header:hover .logo-img--light{display:none !important;}
.header:hover .logo-img--dark{display:block !important;}

/* ✅ 스크롤 후: 검정/파랑 로고 */
.header.scrolled .logo-img--light{ display:none; }
.header.scrolled .logo-img--dark{ display:block; }
.main-nav {
    display: flex;
}
.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
    gap: 40px;margin-left: 100px;
}

.nav-item {
    /* position: relative; */
}

.nav-item > a {
    color: var(--font-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

/* 스크롤 전: 흰색 텍스트 */
.header:not(.scrolled) .nav-item > a {
    color: var(--font-white);
}

/* 스크롤 후: 검정색 텍스트 (명확하게) */
.header.scrolled .nav-item > a {
    color: var(--font-black) !important;
    text-shadow: none;
}

.header:not(.scrolled) .logo a {
    color: var(--font-white);
}

/* 스크롤 후: 로고도 검정색 */
.header.scrolled .logo a {
    color: var(--brand-main) !important;
    text-shadow: none;
}

.nav-item > a:hover {
    color: var(--brand-main);
}
.header:hover .nav-item a{
    color: var(--font-black);
     
}
.header:not(.scrolled) .nav-item > a:hover {
    color: var(--font-black);
}

/* 스크롤 후 호버: 브랜드 컬러 유지 */
.header.scrolled .nav-item > a:hover {
    color: var(--brand-main) !important;
}

.nav-item.has-submenu:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--font-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    padding: 10px 0;
    list-style: none;
    border-radius: 5px;
        min-width: 646px;
    box-shadow: none;
}

.header:not(.scrolled) .submenu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.submenu::before{
content: "";
    position: absolute;
    left: 0%;
    transform: translateX(-50%);
    bottom: 0;
    box-shadow: -7px 18px 20px 3px rgb(240 240 240 / 2%);
    z-index: 1;
    width: 200vw;
    background: #fff;
    height: 100%;
}
.submenu li{
    display:inline-block;position: relative;
    padding: 0;
    z-index: 2;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--font-black);
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s;    padding: 17px 39px 11px 0px;
}

.submenu a:hover {
    color: var(--brand-main);
}
.submenu::after{
  content: "";
  position: absolute;
  left: 0%;
  transform: translateX(-50%);
  bottom: 0;
  width: 200vw;            /* 화면 전체 */
  height: 1px;
  z-index: 2;
  background: #e5e7eb;     /* 연한 회색 선 */
}
/* 스크롤 후 서브메뉴도 검정색 텍스트 유지 */
.header.scrolled .submenu a {
    color: var(--font-black) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--font-black);
    transition: all 0.3s;
}

.header:not(.scrolled) .mobile-menu-toggle span {
    background: var(--font-white);
}

.header.scrolled .mobile-menu-toggle span {
    background: var(--font-black);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Slider */
.main-slider {
    margin-top: 0;
    position: relative;
    height:100vh;
    overflow: hidden;
    z-index: 1;
}

.main-slider .slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.main-slider .slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

.main-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.main-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.main-slider .slide-video {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.main-slider .slide-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.main-slider .slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* 비디오가 없거나 로드되지 않을 때 배경 이미지 표시 */
.main-slider .slide-video video.no-video {
    display: none;
}

.main-slider .slide-video .slide-background.show-background {
    z-index: 1;
}

.main-slider .slide-content {
    position: absolute;
    top: 30%; /* 좌측 상단 영역에 배치 */
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    text-align: left;
    color: var(--font-white);
    z-index: 2;
    max-width: 1400px;
}

.main-slider .slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}
.pc_slid{

}
.m_slid{
    display: none;
}
.slide-description {
    font-size: 20px;
    font-weight: 400;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.slider-prev,
.slider-next {
    background:transparent;
    border: 1px solid #fff;
    color: var(--font-white);
    font-size: 38px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    justify-content: center;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--font-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.indicator.active {
    background: var(--font-white);
}

/* Product Categories */
.product-categories {
    padding: 80px 0;
    background: var(--brand-sub);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-item {
    background: #e8e8e8;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--font-black);
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.category-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-item:hover {
    background: var(--brand-main);
    color: var(--font-white);
    transform: translateY(-5px);
}

.category-item:hover .category-image img {
    transform: scale(1.1);
}

/* New Products */
.new-products {
    padding: 80px 0;
    background: var(--font-white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: left;
    color: var(--font-black);
}

.products-slider {
    position: relative;
    overflow: hidden;
}

.products-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 30px;
}

.product-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
    text-decoration: none;
    color: var(--font-black);
    display: flex;
    flex-direction: column;
    background: var(--font-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-main);
    color: var(--font-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--font-black);
}

.product-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.product-link {
    color: var(--brand-main);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.products-prev,
.products-next {
    width: 45px;
    height: 45px;
    border: 2px solid var(--brand-main);
    background: var(--font-white);
    color: var(--brand-main);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.products-prev:hover,
.products-next:hover {
    background: var(--brand-main);
    color: var(--font-white);
}
.mobile-menu-toggle.active{
    gap: 9px;
}
@media (max-width: 768px) {
    .product-item {
        flex: 0 0 100%;
    }
        .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 32px;
    }
    .product-thumbnail {
        height: 200px;
    }
    .header-container{
        background-color: #fff;
    }
    .header:not(.scrolled) .mobile-menu-toggle span{
            background: var(--font-black);
    }
.header:not(.scrolled) .logo-img--light{ display:none !important; }
.header:not(.scrolled) .logo-img--dark{ display:block !important; }
    .nav-menu{
        margin-left: 0;
    }
    .header:not(.scrolled) .nav-item > a,
    .header:not(.scrolled) .nav-item > a:hover{
        color: var(--font-black);
        text-shadow:unset;
    }
}

/* 뉴스 */
.news{
    background: var(--brand-sub);

}
.yt{
    width: 100%;

}
.yt-embed{position:relative;width:100%;padding-top:56.25%;border-radius:16px;overflow:hidden;}
  .yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;}

/* 뉴스게시판 */
:root {
  --ir-width: 400px;
  --ir-height: 250px;
  --ir-gap: 25px;
  --ir-count: 5; /* 한 세트당 게시물 개수 */
}

.ir-section {   
     background: var(--brand-sub); width: 100%; overflow: hidden; padding: 80px 0; 
    margin-bottom: 80px;}

.ir-track {
  display: flex;
  gap: var(--ir-gap);
  width: max-content;
  /* 왼쪽으로 끊김 없이 흐르는 애니메이션 */
  animation: ir-loop 30s linear infinite;
}

/* 마우스 올리면 게시글을 읽기 편하게 멈춤 */
.ir-track:hover { animation-play-state: paused; }

.ir-item {
  position: relative;
  display: block;
  width: var(--ir-width);
  height: var(--ir-height);
  background-color: #fff; /* 이미지 로드 전 기본 배경 */
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  height: 340px; /* 뉴스 배너: 시안처럼 너비에 가까운 비율로 짧게 */
  text-decoration: none;
  color: inherit;
}
.ir-item:link,
.ir-item:visited,
.ir-item:hover,
.ir-item:active {
  text-decoration: none;
  color: inherit;
}

/* [파랑색 배경 레이어] ::before (호버 시 파랑색으로 채워짐) */
.ir-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--brand-main); /* 파랑색 */
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* [썸네일 이미지 레이어] ::after (썸네일 있을 때만, 호버 시 25% 투명도로 오버레이) */
.ir-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: var(--ir-bg-image, none); /* 썸네일 없으면 이미지 없음 → 파랑색만 */
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease-in-out, opacity 0.5s;
  z-index: 2; /* 파랑색 위에 얹힘 */
  opacity: 0;
}

/* [호버 효과] 파랑색이 깔리고 썸네일은 25% 투명도로 오버레이 */
.ir-item:hover::before {
  opacity: 1;
}

.ir-item:hover::after {
  opacity: 0.25; /* 그림이 25% 투명도로 오버레이 */
  transform: scale(1.1); /* 1.1 비율 확대 */
}

/* [텍스트 콘텐츠] */
.ir-content {
  position: relative;
  z-index: 3; /* 가장 상단 */
  height: 100%;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 상단 정렬: 카테고리/날짜 + 제목을 위에서부터 */
  color: #111;
}
.conting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 14px;
}

.ir-cate {
  font-weight: 700;
  color: var(--brand-main);
  margin: 0;
  letter-spacing: 0.4px;
  font-size: 13px;
  background-color: #e3f0ff; /* 하늘색 박스 */
  padding: 5px 12px;
  border-radius: 6px;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.ir-subject {
  font-size: 22px;
  font-weight: 700; /* 내용 굵기 */
  line-height: 1.4;
  margin: 0;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ir-date { font-size: 14px; color: #777; }
.ir-item:hover .ir-cate {
  background-color: rgba(255, 255, 255, 0.22); /* 호버 시 파랑 배경 위에서 가독성 유지 */
  color: #fff;
}
.ir-item:hover .ir-subject,
.ir-item:hover .ir-date {
  color: #fff;
}
/* 무한 루프 핵심 애니메이션 계산 */
@keyframes ir-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc((var(--ir-width) + var(--ir-gap)) * var(--ir-count) * -1)); }
}
/* //뉴스게시판 */


  
/* News Section */
.news-section {
    background: var(--brand-sub);
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--img-black);
}

.news-video video {
    width: 100%;
    height: auto;
    display: block;
}

.news-slider {
    position: relative;
}

.news-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-item {
    flex: 0 0 calc(50% - 10px);
    background: var(--font-white);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #17171B;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--brand-sub);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.news-item.no-image .news-image {
    display: none;
}

.news-item:hover .news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand-main);
    opacity: 0.25;
    z-index: 1;
}

.news-item:hover .news-image img {
    opacity: 0.75;
}

.news-item.no-image:hover {
    background: var(--brand-main);
    color: var(--font-white);
}

.news-item.no-image:hover .news-content-box {
    color: var(--font-white);
}

.news-content-box {
    padding: 20px;
    flex: 1;
}

.news-category {
    display: inline-block;
    padding: 5px 10px;
    background: var(--brand-sub);
    color: var(--brand-main);
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-date {
    font-size: 14px;
    color: var(--font-gray);
}

.news-slider-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.news-prev,
.news-next {
    background: var(--font-white);
    border: 1px solid var(--font-gray);
    color: var(--font-black);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.news-prev:hover,
.news-next:hover {
    background: var(--brand-main);
    color: var(--font-white);
    border-color: var(--brand-main);
}

/* Support Center */
.support-center {
    position: relative;
    height: 480px;
    overflow: hidden;
    border-radius: 40px ;
    /* background: var(--brand-sub); */
    background-color: #fff;
    z-index: 3;
}

.support-center-bg {
    position: absolute;
    top: 0;
 left: 50%;
    width: 90%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius:20px;
     background-image: url('/img/build.jpg'); /* 여기에 게시판 썸네일 연동 */
    overflow: hidden;transform: translate(-50%);
}

.support-center-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 어두운 알파 오버레이 레이어 제거 */
    display: none;
}

.support-center-content {
 position: relative;
    z-index: 1;
    padding: 80px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.support-center-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--font-white);
    margin-bottom: 30px;
    text-shadow: none;
    letter-spacing: 2px;
}

.support-tabs {
    display: flex;
    gap: 10px;
}

.support-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--font-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.support-tab.active {
    background: var(--brand-main);
    color: var(--font-white);
}

.support-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--brand-main);
    color: var(--font-white);
    padding: 50px 0 30px;
    margin-top: -80px;
    padding-top: 100px;
    position: relative;
    z-index: 1;
    border-radius: 0;
}
.footer .container{
    width: 90%;
    max-width: 1400px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* 푸터 행 레이아웃 (이미지 시안 기준) */
.footer-row{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-row--top{ margin-bottom: 24px; }
.footer-row--bottom{ align-items: flex-end; margin-top: 14px; }
.footer-amr{
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-social .social-icon svg{ width: auto; height: 42px; display: block; }
@media (max-width: 768px){
    .footer-row--bottom{ flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-amr{ gap: 18px; }
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-nav {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 30px;
    /* flex-wrap: wrap; */
}

.footer-nav div{
    width: 49%;
}
.footer-nav .footer-amr{
    display: flex;
    justify-content: flex-start;
}
.footer-nav-link {
    color: var(--font-white);
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.3s;
    opacity: 0.9;
    min-width: 103px;
}

.footer-nav-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo  img{
    width: 100%;
}
.footer-brand-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-company-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--font-white);
    margin: 0;
    letter-spacing: 1px;
}

.footer-slogan {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;justify-content: flex-end;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--font-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon span {
    font-size: 14px;
    font-weight: 500;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 28px;
}
@media (max-width: 768px){
    .footer-copyright{ margin: 0; }
}



.slide-video{
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide-background{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.slide-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
   height: 100vh;

  object-fit: cover;   /* 핵심: 꽉 채우기 */
  z-index: 1;
}





.product-section { padding: 100px 0; overflow: hidden; }

        /* 1. 무한 루프 슬라이더 구조 */
.slider-container {
    display: flex;
   width: 100%;
    overflow: hidden;
}

.slide-track {
    display: flex;
    /* 카드들을 왼쪽으로 계속 밀어주는 애니메이션 */
    animation: loop-slide 20s linear infinite; /* 무한 반복 */
    gap: 30px;
 width: 3970px; /* (370 * 10) + (30 * 9) */
}

/* 마우스 올리면 슬라이드 일시 정지 */
.slide-track:hover { animation-play-state: paused; }
/* 핵심: 마지막 복제본이 1번 자리로 돌아갈 때 눈에 띄지 않게 처리 */
  @keyframes loop-slide {
 from {
    transform: translateX(0);
  }
  to {
    /* 핵심: 10개 중 9개를 왼쪽으로 밀어냅니다. (9/10 = 90%)
       9번째 슬라이드가 지나가고 10번째(복제본)가 화면에 가득 찼을 때 
       0으로 돌아가면 1번 슬라이드와 완벽히 겹칩니다. */
 transform: translateX(calc(-50% - 15px));
  }
}
/* 2. 카드 디자인 */
.product-card {
    flex: 0 0 350px; /* 카드 너비 고정 */
    width: 10%;
    height: 480px;
    background-image: var(--card-bg, url('/img/part01.jpg'));
    background-size: cover;
    background-position: center;
    transition: background-color 0.3s ease-out, transform 0.3s ease-out;
    border-radius: 20px;
    padding: 40px;
    position: relative;transition: opacity 0.5s ease-in-out;
    overflow: hidden; /* 동그라미가 밖으로 안 나가게 함 */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.05); */
    display: flex;
    flex-direction: column;background-repeat: repeat-x; /* 가로 무한 반복 */
    cursor: pointer;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--card-bg-hover, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.7s ease;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
    transform: scale(1.08);
}



.card-title { font-size: 22px; 
    margin-bottom: 15px; z-index: 2; 
    color: #131313; 
    position: relative; }
.card-desc { font-size: 15px; 
    color: #131313; 
    z-index: 2; 
    position: relative; line-height: 1.6; 
}
.product-card:hover .card-desc {
    color: #fff;
}
.product-card:hover .card-title {
    color: #fff;
}
/* 3. 마우스 추적 동그라미 스타일 */
.hover-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(0, 85, 170, 0.1);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease-out, opacity 0.3s;
    opacity: 0;
    z-index: 1;
} 
.product-card:hover .hover-circle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 이미지 영역 및 호버 효과 */
.image-box {
    /* background-color: #fff; */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.image-box img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .image-box img {
    transform: scale(1.08);
}

/* 텍스트 영역 */
.content-box {
    padding: 0 10px; /* 좌우 여백 추가 */
}

.product-number {
    display: block;
    color: #0055aa;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-desc {
    font-size: 15px;
    color: #666;
    height: 72px; /* 3줄 제한 효과 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.view-more {
    display: inline-block;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.product-card:hover{
    /* background-color: #0055aa; */
transition: background-color 0.6s ease; /* 배경색 전환 속도 */
transition: opacity 0.6s ease; /* 스르륵 물드는 시간 */
}
.product-card:hover .view-more {
    border-bottom-color: #333;
}

/* 마우스 호버 시 동그라미 효과 CSS */
.hover-circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 85, 170, 0.1); /* 투명한 파란색 */
    pointer-events: none; /* 마우스 이벤트가 동그라미를 통과하도록 */
    transform: translate(-50%, -50%) scale(0); /* 중앙 정렬 및 초기 크기 0 */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* 부드러운 애니메이션 */
    opacity: 0;
    z-index: 10; /* 다른 요소 위에 표시 */
}
.product-card:hover .hover-circle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* 호버 시 나타나고 커지도록 */
}

/* 카드 일러스트 */
.product-card.tr01{
    --card-bg: url('/img/part01.jpg');
    --card-bg-hover: url('/img/part01_b.jpg');
}

.product-card.tr01:hover{
    background-size: cover;
}

.product-card.tr02{
    --card-bg: url('/img/part02.jpg');
    --card-bg-hover: url('/img/part03_b.jpg');
}

.product-card.tr02:hover{
    background-size: cover;
}
.hover-circle{
    display: none;
}
.product-card.tr03{
    --card-bg: url('/img/part03.jpg');
    --card-bg-hover: url('/img/part02_b.jpg');
}

.product-card.tr03:hover{
    background-size: cover;
}

.product-card.tr04{
    --card-bg: url('/img/part04.jpg');
    --card-bg-hover: url('/img/part04_b.jpg');
}

.product-card.tr04:hover{
    background-size: cover;
}


.product-card.tr05{
    --card-bg: url('/img/part05.jpg');
    --card-bg-hover: url('/img/part05_b.jpg');
}

.product-card.tr05:hover{
    background-size: cover;
}



@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 5 - 30px * 5)); } 
    /* (카드너비 * 카드개수) + (간격 * 카드개수) 만큼 이동 */
}

/* 반응형 모바일 */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-nav ul { overflow-x: auto; white-space: nowrap; padding-bottom: 10px; } /* 스크롤 가능하게 */
    .category-nav ul::-webkit-scrollbar { display: none; } /* 스크롤바 숨김 */
    .pc_slid,
    .main-slider .slide-title,
    .main-slider .slide-background{
    display: none;
}

.m_slid{
    display: block;
}

}

@media (max-width: 640px) {
    .product-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 32px; }
    
}


/* 제품소개 */
.yuju-container {
  display: flex;
  padding: 80px 0;width: 100%;
  background-color: #fff;
}

.yuju-item {
  position: relative;
  width: 33.33%;
  height: 700px;
  padding: 40px;
  box-sizing: border-box;
  background-color: #f8f9fa; /* 기본 배경색 */
  display: flex;
  flex-direction: column;
 justify-content: flex-end;
  cursor: pointer;
  z-index: 1;
    overflow: hidden; /* 1.1배 커질 때 밖으로 안 나가게 필수! */
    z-index: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  
  /* [핵심] 0.5초 동안 모든 변화가 부드럽게(transition) */
  transition: background-color 0.5s ease-in-out, transform 0.3s ease;
}




/* 각 아이템별 기본 배경 (평상시) */
.yuju-item.po01 { background-image: url('/img/po01.jpg'); }
.yuju-item.po02 { background-image: url('/img/po02.jpg'); }
.yuju-item.po03 { background-image: url('/img/po03.jpg'); }
/* 1. 기본 아이템 설정 */


/* 2. [::after] 배경 이미지 레이어 (가장 아래) */
.yuju-item::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* 평소엔 숨김 */
    transform: scale(1); /* 기본 크기 */
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1; /* 1층 */
}

/* 아이템별 이미지 매칭 */
.yuju-item.po01::after { background-image: url('/img/po01.jpg'); }
.yuju-item.po02::after { background-image: url('/img/po02.jpg'); }
.yuju-item.po03::after { background-image: url('/img/po03.jpg'); }

/* 3. [::before] 회색 덮개 레이어 (중간) */
.yuju-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #4e4e4e; /* 진한 회색 */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2; /* 2층 (이미지보다 위) */
}

/* 4. 호버 시 액션 */
.yuju-item:hover::after {
    opacity: 1;
    transform: scale(1.1); /* 이미지가 1.1배로 커짐 */
}

.yuju-item:hover::before {
    opacity: 0.6; /* 회색 배경이 유지됨 (0.6 정도로 주면 사진과 섞여서 고급스러움) */
}

/* 5. 텍스트 설정 (가장 위) */
.yuju-num, .yuju-title, .yuju-desc {
    position: relative;
    z-index: 3; /* 3층 (회색 레이어보다 위) */
    color: #333;
    opacity: 0; /* 마우스 오버 전에는 글자 숨김(검정 글자 포함) */
    transition: color 0.5s ease, opacity 0.4s ease;
}

/* 설명문구: 마우스 오버 전에는 숨김, 오버 시 표기 */
.yuju-desc {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.5s ease, margin-top 0.4s ease, color 0.5s ease;
}

.yuju-item:hover .yuju-desc {
    opacity: 1;
    max-height: 200px;
    margin-top: 14px;
}

.yuju-item:hover .yuju-num,
.yuju-item:hover .yuju-title,
.yuju-item:hover .yuju-desc {
    color: #fff; /* 배경이 어두워지니 글자는 흰색으로 */
    opacity: 1; /* 마우스 오버 시 글자 표시 */
}
/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--font-white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--brand-sub);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--brand-sub);
        margin-left: 20px;
    }
    
    .nav-item.has-submenu.active .submenu {
        display: block;
    }
    
    .main-slider {
        height: 400px;
        margin-top: 0;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-description {
        display: none;
        font-size: 16px;
    }
    .slide-bg-video{
        height: auto;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .submenu li{display: block;}
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        grid-template-columns: 1fr;
    }
    
    .news-slider-wrapper {
        flex-direction: column;
    }
    
    .news-item {
        flex: 0 0 100%;
    }
    
    .support-center {
        height: 300px;
    }
    
    .support-center-title {
        font-size: 36px;
    }
    
    .support-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
    }
    
    .footer-right {
        align-items: flex-start;
        position: static;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-card{
        height: 325px;
    }
    .yuju-container{
        flex-direction: column;
    }
    .yuju-item{
    height: 255px;width: 100%;
    }

    .footer-nav-link{
        min-width: 60px;
    }
    .footer-nav div{
        width: 100%;
    }
    .footer-social{
        width: 100%;
        align-items: center;    justify-content: flex-end;
    }
    .support-center-content{
        width: 100%;padding: 27px;
    }
    .support-center-bg{
            height: 250px;
    }
    .logo-img .logo-img--light{
    display: none !important;
}
.logo-img .logo-img--dark{
    display: block !important; 
}
.yuju-num, .yuju-title, .yuju-desc{
    display: none;
}
.yuju-item.po03{
      background-image: url(/img/main_m2.jpeg);
        background-size:auto 100% ;
}
.yuju-item.po02{
      background-image: url(/img/main_m1.jpeg);
        background-size:auto 100% ;
}
.yuju-item::before,
.yuju-item.po03::after,
.yuju-item.po02::after,
.yuju-item.po01::after{
    display: none;
}
.header-container{
    width: 100%;
}
.yuju-item{
       height: 650px;  
}

}


@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-description {
        font-size: 14px;
    }
}


/* ===== 언어 전환 버튼 (ENG / KOR) ===== */
.lang-switch{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:46px; height:32px; padding:0 12px; margin-left:auto;
  border-radius:16px; background:var(--brand-main); color:#fff !important;
  font-size:13px; font-weight:700; letter-spacing:.5px;
  text-decoration:none; white-space:nowrap; transition:opacity .2s;
}
.lang-switch:hover{ opacity:.85; }
@media (max-width:1024px){
  .lang-switch{ margin-left:auto; margin-right:12px; height:30px; }
}

/* ===== 푸터 회사 정보 ===== */
.footer-info{
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
}
.footer-info p{ margin: 0; }
@media (max-width: 768px){
  .footer-info{ font-size: 13px; line-height: 1.8; }
}
