/* AIT 헤더: 스크롤(active) 시에도 흰색으로 바뀌지 않고 bg-aite-ink/90 유지 */
body.aite-site #header,
body.aite-site #header.active {
  background-color: rgba(10, 13, 12, 0.9) !important; /* aite-ink/90 */
  color: #e9eeea !important;
  box-shadow: none;
}
body.aite-site #header.active #logo {
  background-image: none !important;
}

/* AIT content layout — Gnuboard header offset */
.aite-page {
  min-height: 60vh;
}
body.aite-site .aite-page {
  padding-top: 5rem; /* h-20 */
}
@media (min-width: 1024px) {
  body.aite-site .aite-page {
    padding-top: 88px;
  }
}

/*
 * 모바일: 상단 리드(타이틀) 텍스트 상단 여백 축소
 * - 영상·배너가 있는 첫 섹션 타이틀 컨테이너만 대상
 * - lg(1024+)는 Tailwind py-* 그대로 유지
 */
@media (max-width: 1023.98px) {
  .aite-page > section:first-of-type > .container.text-center,
  .aite-page > section:first-of-type .aite-about-hero__inner,
  .aite-page > .aite-about-hero > .aite-about-hero__inner {
    padding-top: 1.75rem !important;
    padding-bottom: 1rem !important;
  }
  .aite-page > section:first-of-type > .container.text-center h1.mt-4,
  .aite-page > section:first-of-type > .container.text-center h1.mt-5,
  .aite-page > section:first-of-type > .container.text-center h2.mt-4,
  .aite-page > section:first-of-type > .container.text-center h2.mt-5,
  .aite-page > section:first-of-type .aite-about-hero__inner h1.mt-4,
  .aite-page > section:first-of-type .aite-about-hero__inner h1.mt-5,
  .aite-page > section:first-of-type .aite-about-hero__inner h2.mt-4,
  .aite-page > .aite-about-hero > .aite-about-hero__inner h1.mt-4,
  .aite-page > .aite-about-hero > .aite-about-hero__inner h1.mt-5,
  .aite-page > .aite-about-hero > .aite-about-hero__inner h2.mt-4 {
    margin-top: 0 !important;
  }
}
body.aite-site .aite-page main.pt-16,
body.aite-site .aite-page main.pt-20,
body.aite-site .aite-page main[class*="lg:pt-"],
body.aite-site .aite-page main[class*="pt-"] {
  padding-top: 0 !important;
}

/* 메인 페이지: head 고정 헤더와 겹치지 않도록 */
body.aite-site .aite-main {
  min-height: 60vh;
}

/* AIT 헤더 드롭다운 (시안 aite-nav-dd) */
body.aite-site #header .aite-nav-dd {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
body.aite-site #header .group:hover > .aite-nav-dd,
body.aite-site #header .group:focus-within > .aite-nav-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* AIT 모바일 패널 — 뷰포트 높이 + 아코디언 */
body.aite-site #aite-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
body.aite-site #aite-mobile-menu.is-open {
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
}
@media (min-width: 1024px) {
  body.aite-site #aite-mobile-menu.is-open {
    max-height: none;
  }
}
body.aite-site #aite-mobile-menu .aite-mnav-sub {
  display: none;
}
body.aite-site #aite-mobile-menu .aite-mnav-group.is-open .aite-mnav-sub {
  display: flex;
  flex-direction: column;
}
body.aite-site #aite-mobile-menu .aite-mnav-group.is-open .aite-mnav-chevron {
  transform: rotate(180deg);
}
body.aite-site #aite-mobile-menu .aite-mnav-chevron {
  transition: transform 0.2s ease;
}

/* Google Translate 기본 UI 숨김 (커스텀 KO|EN 사용) */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
body > .skiptranslate {
  display: none !important;
}
body {
  top: 0 !important;
}
.goog-te-gadget {
  display: none !important;
}

/* AIT Footer — default.css #ft(text-align:center, min-width:1200px) 덮어쓰기 */
body.aite-site #ft {
  min-width: 0 !important;
  width: 100%;
  margin: 0;
  text-align: left !important;
  background: #070908 !important;
}
body.aite-site #ft .container,
body.aite-site #ft p,
body.aite-site #ft ul,
body.aite-site #ft li,
body.aite-site #ft h3 {
  text-align: left !important;
}
