@charset "UTF-8";

/* ===================================================
   일엠연구소 홈페이지 — 통합 스타일시트
   Mobirise 독립 전환 버전
   =================================================== */

/* ── 폰트 ── */
@font-face {
  font-family: 'IBM_font';
  src: url('../fonts/IBM_Plex_Sans_KR/IBMPlexSansKR-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Gamja';
  src: url('../fonts/Gamja_Flower/GamjaFlower-Regular.ttf') format('truetype');
}

/* ── 리셋 / 기본 ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: 'IBM_font', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #232323;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.3; word-break: break-word; }

a { color: #6592e6; text-decoration: none; transition: color 0.3s; }
a:hover { color: #2260d2; text-decoration: none; }

b, strong { font-weight: 700; }

img, iframe { display: block; width: 100%; }

section { background-color: #ffffff; position: relative; word-wrap: break-word; }

/* ── 타이포그래피 스케일 ── */
.fs-h1  { font-size: 4.6rem; line-height: 1.1; }
.fs-h2  { font-size: 3rem;   line-height: 1.1; }
.fs-lg  { font-size: 1.6rem; line-height: 1.5; }
.fs-md  { font-size: 1.2rem; line-height: 1.5; }
.fs-sm  { font-size: 1.1rem; line-height: 1.5; }
.fs-xs  { font-size: 1.0rem; line-height: 1.5; }

@media (max-width: 768px) {
  .fs-h1 { font-size: calc(2.26rem + (4.6 - 2.26) * ((100vw - 20rem) / (48 - 20))); }
  .fs-h2 { font-size: calc(1.7rem  + (3   - 1.7)  * ((100vw - 20rem) / (48 - 20))); }
  .fs-lg { font-size: calc(1.21rem + (1.6 - 1.21) * ((100vw - 20rem) / (48 - 20))); }
  .fs-md { font-size: calc(1.07rem + (1.2 - 1.07) * ((100vw - 20rem) / (48 - 20))); }
  .fs-sm { font-size: calc(1.035rem + (1.1 - 1.035) * ((100vw - 20rem) / (48 - 20))); }
}

/* ── 색상 유틸 ── */
.text-black  { color: #232323 !important; }
.text-white  { color: #ffffff !important; }
.text-muted  { color: #bbbbbb !important; }
.text-primary-c { color: #6592e6 !important; }

.bg-dark  { background-color: #232323 !important; }
.bg-white { background-color: #ffffff !important; }

/* ── 레이아웃 유틸 ── */
.align-center { text-align: center; }
.align-left   { text-align: left; }
.align-right  { text-align: right; }

/* ============================================================
   네비게이션
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  min-height: 70px;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 16px;
  height: 70px;
}

.nav-logo img {
  width: 154px;
  height: 32px;
  display: block;
}

.nav-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggler span {
  display: block;
  width: 100%;
  height: 2px;
  background: #232323;
  transition: all 0.25s;
}
.nav-toggler.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggler.open span:nth-child(2) { opacity: 0; }
.nav-toggler.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0.667em 1em;
  color: #232323;
  font-size: 1.1rem;
  white-space: nowrap;
  gap: 4px;
}
.nav-menu > li > a:hover { color: #6592e6; }

.nav-menu > li > a.has-dropdown::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  min-width: 160px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
}
.nav-menu > li:hover .nav-dropdown { display: block; }

.nav-dropdown li a {
  display: block;
  padding: 0.55em 1.5em;
  color: #232323;
  font-size: 1rem;
  border-bottom: 1px solid #e6e6e6;
  transition: background 0.2s;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover { background: #6592e6; color: #ffffff; }

.nav-menu > li > a.active,
.nav-dropdown li a.active { color: #6592e6; font-weight: 600; }

@media (max-width: 991px) {
  .site-nav .container { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .nav-toggler { display: flex; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 16px;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 0.5em 0; border-bottom: 1px solid #f0f0f0; }
  .nav-menu > li > a.has-dropdown::after { float: right; margin-top: 8px; }

  .nav-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: #f9f9f9;
    padding-left: 1rem;
  }
  .nav-menu > li.open .nav-dropdown { display: block; }
  .nav-dropdown li a { border-bottom: none; padding: 0.4em 1em; }
}

/* ============================================================
   헤더 여백 (고정 nav 높이 보상)
   ============================================================ */
body { padding-top: 70px; }

/* ============================================================
   메인 히어로 섹션
   ============================================================ */
.hero-section {
  width: 100%;
  height: 70vh;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.hero-logo {
  position: absolute;
  width: 25%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 767px) {
  .hero-section { height: 40vh; }
  .hero-logo { width: 50%; }
}

/* ── 메인 소개 카드 2열 ── */
.index-intro {
  padding: 4rem 0;
  width: 80%;
  margin: 0 auto;
}
.index-intro .row { display: flex; flex-wrap: wrap; }
.index-intro .col-half {
  flex: 1 1 300px;
  padding: 2rem;
  text-align: center;           /* ★ 가운데 정렬 */
}
@media (min-width: 992px) {
  .index-intro .col-half:first-child {
    border-right: 2px solid #232323;
  }
}
@media (max-width: 991px) {
  .index-intro .col-half:first-child {
    border-bottom: 2px solid #232323;
  }
  .index-intro { width: 95%; }
}

/* ============================================================
   페이지 헤더 배너 (서브 페이지 공통)
   ============================================================ */
.page-header {
  text-align: center;
  padding: 5rem 1rem 2rem;
  background: #ffffff;
}
.page-header .page-logo {
  width: 50%;
  margin: 0 auto 1rem;
}
@media (max-width: 768px) { .page-header .page-logo { width: 80%; } }

/* ============================================================
   섹션 공통 패딩
   ============================================================ */
.section-padded { padding: 5rem 0; }
.section-padded-sm { padding: 3rem 0; }

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .section-title { font-size: 2rem; } }

/* ============================================================
   타임라인 (연혁, 연구실적, 논문)
   ============================================================ */
.timeline-wrap { max-width: 900px; margin: 0 auto; }

.timeline-row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 0;
}
.timeline-row::after {
  content: '';
  position: absolute;
  background: #6592e6;
  width: 2px;
  top: 90px;
  height: calc(100% - 20px);
  left: 50%;
}
@media (max-width: 767px) {
  .timeline-row::after { left: 15px; top: 50px; height: calc(100% + 30px); }
}

.timeline-dot {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #6592e6;
  background: #fff;
  top: 70px;
  left: 50%;
  margin-left: -9px;
  z-index: 1;
}
@media (max-width: 767px) { .timeline-dot { left: 15px; top: 30px; } }

.timeline-date,
.timeline-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 2rem;
}
@media (max-width: 767px) {
  .timeline-date, .timeline-content {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
  }
}

.timeline-date { text-align: right; }
@media (max-width: 767px) { .timeline-date { text-align: left; } }

.timeline-date .date-text { font-size: 1.4rem; font-weight: 700; color: #232323; }
.timeline-content h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.timeline-content p  { font-size: 1rem; color: #555; }

.paper-link { color: #232323; display: block; }
.paper-link:hover { color: #6592e6; }

/* ============================================================
   인증서 영역
   ============================================================ */
.cert-section {
  margin: 3rem auto;
  border: 4.5px double #6592e6;
  max-width: 900px;
}
.cert-row { display: flex; justify-content: space-around; flex-wrap: wrap; }
.cert-item { flex: 0 0 33.333%; max-width: 33.333%; }
.cert-item img { margin: 0 auto; padding: 1rem; width: 80%; }
@media (max-width: 576px) {
  .cert-item { flex: 0 0 100%; max-width: 100%; }
}

/* ============================================================
   조직도
   ============================================================ */
.org-section {
  padding: 6rem 0 4rem;
  width: 80%;
  margin: 0 auto;
  position: relative;
}
.org-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
}
.org-title { text-align: center; font-size: 3rem; font-weight: 700; margin-bottom: 2rem; }
.org-img { margin: 0 auto; width: 70%; }
@media (max-width: 991px) {
  .org-title { font-size: 2rem; }
  .org-img   { width: 90%; }
  .org-section { width: 95%; }
}

/* ============================================================
   지도 (찾아오시는 길)
   ============================================================ */
.map-section { padding: 5rem 0; }
.google-map { height: 40rem; position: relative; }
.google-map iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   아코디언 (공지사항, 자료실)
   ============================================================ */
.accordion-wrap { max-width: 800px; margin: 0 auto; }

.acc-item { margin-bottom: 0.75rem; }
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.1rem;
  font-weight: 600;
  color: #232323;
}
.acc-header .acc-arrow { font-size: 1.2rem; color: #6592e6; transition: transform 0.3s; }
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-body { display: none; padding: 1rem 0; font-size: 1rem; color: #444; }
.acc-item.open .acc-body { display: block; }

/* ============================================================
   준비중 안내 (page9, page10)
   ============================================================ */
.coming-soon {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 4rem 1rem;
}
.coming-soon .hi-logo { width: 40%; max-width: 320px; margin: 0 auto 2rem; }
.coming-soon h4 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.coming-soon p  { font-size: 1rem; color: #555; margin-bottom: 2rem; }

.sub-form { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.sub-form input[type="email"] {
  padding: 0.6rem 1.2rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 1rem;
  min-width: 240px;
}
.sub-form button {
  padding: 0.6rem 1.5rem;
  background: #6592e6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.sub-form button:hover { background: #2260d2; }

/* ============================================================
   푸터
   ============================================================ */
.site-footer {
  background: #232323;
  color: #bbbbbb;
  padding: 5rem 0;
  width: 100%;                  /* ★ 배경 전체 너비 */
}
.site-footer h5 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer ul li a { color: #bbbbbb; font-size: 1rem; }
.site-footer ul li a:hover { color: #ffffff; }

.footer-brand { font-size: 1.2rem; color: #ffffff; font-weight: 700; }
.footer-logo { width: 154px; height: 32px; display: block; }

/* 푸터 그리드 — 가운데 정렬 */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;      /* ★ 가로 가운데 */
  gap: 3rem;
  max-width: 1100px;            /* ★ 최대 너비 제한 */
  margin: 0 auto;               /* ★ 그리드 자체를 가운데 */
  padding: 0 2rem;
  text-align: center;           /* ★ 텍스트 가운데 */
}
.footer-col { flex: 0 0 auto; min-width: 140px; }

/* 푸터 로고 가운데 */
.footer-col .footer-logo { margin: 1rem auto 0; }

@media (max-width: 767px) {
  .footer-grid { gap: 2rem; padding: 0 1rem; }
  .footer-col { flex: 0 0 45%; }
}
@media (max-width: 480px) {
  .footer-col { flex: 0 0 100%; }
}

/* ============================================================
   버튼
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: #6592e6; color: #fff; border-color: #6592e6; }
.btn-primary:hover { background: #2260d2; border-color: #2260d2; color: #fff; }
.btn-outline { background: transparent; color: #6592e6; border-color: #6592e6; }
.btn-outline:hover { background: #6592e6; color: #fff; }

/* ============================================================
   스크롤 맨 위로 버튼
   ============================================================ */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px; height: 44px;
  background: rgba(101,146,230,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background 0.2s;
}
#scrollTop:hover { background: #2260d2; }
#scrollTop.visible { display: flex; }
