html, body{ width:100%; overflow-x: clip; }
html{ scroll-behavior: smooth; }
*{ box-sizing: border-box; }

:root{
  --home-bg: #161616;
  --home-bg-2: #222228;
  --home-panel: rgba(255,255,255,0.05);
  --home-panel-2: rgba(255,255,255,0.07);
  --home-border: rgba(255,255,255,0.12);
  --home-border-2: rgba(255,255,255,0.18);
  --home-text: rgba(255,255,255,0.92);
  --home-text-2: rgba(255,255,255,0.72);
  --home-text-3: rgba(255,255,255,0.55);
  --home-shadow: 0 18px 56px rgba(0,0,0,0.50);
  --home-shadow-soft: 0 14px 34px rgba(0,0,0,0.34);
  --home-accent: #FFD400;
  --home-accent-2: rgba(255,212,0,0.18);
  --home-radius-xl: 26px;
  --home-radius-lg: 20px;
  --home-radius-md: 16px;
}

body{
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--home-text);
  background: radial-gradient(900px 520px at 75% 35%, rgba(255,255,255,0.04), transparent 55%),
              var(--home-bg);
}

.has-page-hero .site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(0,0,0,0.986);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--home-border);
}

.has-page-hero .gnb-link{ color: #fff; }

.has-page-hero .icon-btn{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  color: #111;
}
.has-page-hero .icon-btn:hover{
  background: #FFD400;
  border-color: rgba(0,0,0,0.28);
}

/* ===== 히어로 ===== */
.page-hero{
  height: 380px;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: var(--header-h, 94px);
}

.page-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
}

.page-hero__title{
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(28px, 3.6vw, 54px);
  text-shadow: 0 14px 34px rgba(0,0,0,0.55);
}

.subnav{
  background: rgba(37, 37, 37, 0.55);
  border-bottom: 1px solid var(--home-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.subnav__inner{
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 14px 16px;

  display: flex;
  justify-content: center;
  gap: 0;
}

.subnav__link{
  flex: 1;
  min-width: 140px;

  position: relative;
  text-align: center;
  padding: 18px 10px 16px;

  text-decoration: none;
  color: var(--home-text-2);
  font-weight: 850;
  letter-spacing: .02em;
  white-space: nowrap;

  transition: color .14s ease, transform .14s ease;
}

.subnav__link:hover{
  color: var(--home-text);
}

.subnav__link::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5px;

  width: 0;
  height: 3px;
  background: var(--home-accent);
  border-radius: 999px;

  transition: width .16s ease;
}

.subnav__link:hover::after{ width: 70%; }
.subnav__link.is-active{ color: #fff; }
.subnav__link.is-active::after{ width: 70%; }

.subnav__link:focus-visible{
  outline: 2px solid var(--home-accent);
  outline-offset: 6px;
  border-radius: 10px;
}

.subpage{
  background: transparent;
  padding: 90px 0 140px;
}


.subpage__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  text-align: center;
}

.subpage__inner::before{
  content: none;
}


.subpage__title{
  position: relative;
  margin: 0;
  font-size: clamp(45px, 2.6vw, 45px);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 14px 34px rgba(0,0,0,0.55);
}


.subpage__rule{
  position: relative;
  border: 0;
  height: 2px;
  margin: 22px auto 30px;
  max-width: 860px;
  background: var(--home-accent); 
  border-radius: 999px;
}

.subpage__rule::before,
.subpage__rule::after{ content: none; }


.subpage__inner p{
  position: relative;
  margin: 0 auto;
  max-width: 860px;
  color: rgba(255,255,255,0.78);
  line-height: 2.05;
  font-size: 17px;
  letter-spacing: 0.1px;
  text-align: center;
  word-break: keep-all;
  white-space: pre-line; 
}

.subpage__inner a{
  color: #fff;
  text-decoration-color: rgba(255,212,0,0.55);
}
.subpage__inner a:hover{
  text-decoration-color: var(--home-accent);
}

@media (max-width: 900px){
  .page-hero{
    height: 270px;
    padding-top: var(--header-h, 78px);
  }

  .subnav__inner{
    justify-content: center;
    flex-wrap: nowrap;          
    overflow-x: hidden;        
    -webkit-overflow-scrolling: auto;
    gap: 0;
    padding: 10px 12px;
  }
  .subnav__link{
    flex: 1 1 0;               
    min-width: 0;              
    padding: 12px 6px 10px;

    font-size: clamp(13.5px, 3.0vw, 13.5px);
    line-height: 1.15;
    letter-spacing: 0.01em;
    white-space: normal;
    word-break: keep-all;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    box-orient: vertical;      
    -webkit-line-clamp: 2;
    line-clamp: 2;              
    overflow: hidden;
  }
.subpage{ padding: 44px 0 90px; }
  .subpage__inner{
    padding: 0 16px;
  }

  .subpage__title{
    font-size: clamp(32px, 8.2vw, 32px);
  }

    .subpage__inner p{
    font-size: 16px;
    line-height: 2.0;
  }
}
@media (max-width: 900px){
  .mobile-menu{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
  }
  .mobile-menu[hidden]{ display: none !important; }
  .mobile-menu__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
    opacity: 0;
    transition: opacity .28s ease;
  }
  .mobile-menu__panel{
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 72vw);
    background: rgba(0,0,0,0.94);
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
    transform: translateX(100%);
    transition: transform .28s ease;
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu.is-open .mobile-menu__backdrop{ opacity: 1; }
  .mobile-menu.is-open .mobile-menu__panel{
    box-sizing: border-box; transform: translateX(0); }

  .mobile-menu.is-closing .mobile-menu__backdrop{ opacity: 0; }
  .mobile-menu.is-closing .mobile-menu__panel{
    box-sizing: border-box; transform: translateX(100%); }
  body.menu-open .site-header{
    z-index: 10001 !important;
  }
  body.menu-open .menu-toggle{
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    z-index: 10002 !important;
  }
  #mobileMenu .mobile-menu__panel{
    box-sizing: border-box;
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%) !important;
  }
  #mobileMenu.is-open .mobile-menu__panel{
    box-sizing: border-box;
    transform: translateX(0) !important;
  }
  #mobileMenu.is-closing .mobile-menu__panel{
    box-sizing: border-box;
    transform: translateX(100%) !important;
  }
  @media (prefers-reduced-motion: reduce){
    .mobile-menu__backdrop,
    .mobile-menu__panel{
    box-sizing: border-box; transition: none !important; }
  }
}
@media (max-width: 900px){
  body.menu-open .site-header{ z-index: 10001 !important; }
  body.menu-open .menu-toggle{
    z-index: 10002 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
  }
  .menu-toggle{
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle__bar{
    position: absolute;
    left: 50%;
    width: 30px;
    height: 3px;
    background: var(--home-accent);
    border-radius: 999px;
    transform: translateX(-50%);
    transform-origin: 50% 50%;
    transition: transform .22s ease, opacity .18s ease;
    will-change: transform, opacity;
  }
  .menu-toggle__bar:nth-child(1){ transform: translateX(-50%) translateY(-9px); }
  .menu-toggle__bar:nth-child(2){ transform: translateX(-50%) translateY(0); }
  .menu-toggle__bar:nth-child(3){ transform: translateX(-50%) translateY(9px); }

  .menu-toggle.is-active .menu-toggle__bar:nth-child(1){
    transform: translateX(-50%) rotate(45deg);
  }
  .menu-toggle.is-active .menu-toggle__bar:nth-child(2){
    opacity: 0;
  }
  .menu-toggle.is-active .menu-toggle__bar:nth-child(3){
    transform: translateX(-50%) rotate(-45deg);
  }
}

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(0,0,0,0.986);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--home-border);
}
.gnb-link{ color: #fff; }
.icon-btn{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  color: #111;
}
.icon-btn:hover{
  background: var(--home-accent);
  border-color: rgba(0,0,0,0.28);
}
.site-footer{
  background: rgba(0,0,0,0.986);
  border-top: 1px solid var(--home-border);
}

#productPager,
#casePager,
#projectPager,
.product-pager,
.case-pager,
.project-pager{
  margin-top: 100px !important;
}

#newsPager,
.news-pager{
  margin-top: 100px !important;
}
.news-grid{
  min-height: 120px;
}

.page-news #newsGrid,
.page-news .news-posts,
.page-news .news-list{
  text-align: left;
}



.page-news #newsGrid,
.page-news .news-posts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 54px;         
  row-gap: 44px;            
  margin-top: 42px;
}

@media (max-width: 900px){
  .page-news #newsGrid,
  .page-news .news-posts{
    grid-template-columns: 1fr;
    row-gap: 34px;
    column-gap: 0;
  }
}


.news-post{
  margin: 0;
}

.news-post__link{
  display: block;
  color: inherit;
  text-decoration: none;
}


.news-post__media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;       
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
}

.news-post__media::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}


.news-post__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform .35s ease;
  will-change: transform;
}

/* hover zoom */
.news-post__link:hover .news-post__media img{
  transform: scale(1.06);
}


.news-post__title{
  margin: 12px 0 6px;       
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--home-accent, #FFD400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.news-post__excerpt{
  margin: 0;                
  padding-top: 0;         
  color: rgba(255,255,255,0.78);
  text-align: left;
  line-height: 1.55 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.news-post__link:hover .news-post__media{
  border-color: rgba(255,212,0,0.28);
}

.news-post__link:hover .news-post__media::after{
  border-color: rgba(255,212,0,0.95);
  box-shadow: 0 0 16px rgba(255,212,0,0.22);
}

.news-post__media:hover{
  border-color: rgba(255,212,0,0.28);
}

.news-post__media:hover::after{
  border-color: rgba(255,212,0,0.95);
  box-shadow: 0 0 16px rgba(255,212,0,0.22);
}

.page-news .news-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 54px;
  row-gap: 44px;
  margin-top: 42px;
}
@media (max-width: 900px){
  .page-news .news-list{
    grid-template-columns: 1fr;
    row-gap: 34px;
    column-gap: 0;
  }
}

.page-news .news-card__media{
  border-radius: 18px;
  overflow: hidden;
}
.page-news .news-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform .35s ease;
  will-change: transform;
}

/* hover zoom (card variation) */
.page-news .news-card:hover .news-card__media img,
.page-news .news-card__link:hover .news-card__media img{
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce){
  .news-post__media img,
  .page-news .news-card__media img{ transition: none !important; }
}

.page-news .news-card__excerpt{
  margin: 0;
  padding-top: 0;
  line-height: 1.55 !important;
  text-align: left;
}



/* ===== NEWS 검색창 (case-search 스타일 기반) ===== */
.news-search{
  margin: 22px auto 34px !important;
  width: min(860px, 94vw);
}

.news-search__bar{
  display: flex;
  align-items: center;
  gap: 10px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 7px 12px;

  box-shadow: var(--home-shadow-soft, 0 14px 34px rgba(0,0,0,0.34));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.news-search__input{
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--home-text, rgba(255,255,255,0.92));
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
  border-radius: 999px;
  transition: background .14s ease;
}

.news-search__btn{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent !important;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--home-accent, #FFD400);
  border-radius: 0;
  transition: transform .12s ease, color .12s ease;
}
.news-search__btn:hover{
  transform: translateY(-1px);
}
.news-search__btn:focus-visible{
  outline: 2px solid var(--home-accent, #FFD400);
  outline-offset: 3px;
}
.news-search__btn svg{
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-search__input:focus{ background: rgba(255,255,255,0.03); }
.news-search__input::placeholder{ color: rgba(255,255,255,0.45); }

.news-search__input::-webkit-search-cancel-button,
.news-search__input::-webkit-search-decoration,
.news-search__input::-webkit-search-results-button,
.news-search__input::-webkit-search-results-decoration{
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.news-search__input::-ms-clear,
.news-search__input::-ms-reveal{
  display: none;
  width: 0;
  height: 0;
}







@media (max-width: 600px){
  .news-search{ margin: 16px auto 22px !important; }
  .news-search__bar{ padding: 8px 10px; gap: 8px; }
  .news-search__input{ padding: 7px 12px; font-size: 14px; }
  
}
/* ===== 모바일 제목 크기 오버라이드 ===== */
@media (max-width: 420px){
  .subpage__title{
    font-size: clamp(24px, 9vw, 34px);
  }
}

/* ===== 하제목(서브타이틀) 제거 (NEWS 페이지) ===== */
/* 히어로 제목(page-hero__title)만 남기고, 본문 상단의 하제목/구분선/설명 문구를 숨깁니다. */
.page-news .subpage__title,
.page-news .subpage__rule,
.page-news .subpage__inner > p{
  display: none !important;
}

/* 하제목 제거로 생기는 상단 여백을 줄임 */
.page-news .subpage{
  padding-top: 48px;
}
@media (max-width: 900px){
  .page-news .subpage{
    padding-top: 34px;
  }
}


/* ===== NEWS 검색창 정렬 보정 (모바일 중앙 정렬) ===== */
.news-search{
  width: 100%;
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

@media (max-width: 600px){
  .news-search{
    width: 100%;
    max-width: 100%;
  }
}
/* ===== 모바일 히어로 조절 코드 (추가) ===== */
@media (max-width: 900px){
  .page-hero{
    height: 270px;
  }
  .page-hero__title{
    font-size: clamp(37px, 8vw, 37px);
  }
}
