/* =============================================
   kobcax_style.css — 한국해양진흥공사 AX/DX
   ============================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #002f6c;
  --navy-dark:  #001f4a;
  --blue:       #005bac;
  --sky:        #00a0e9;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --gray-light: #e8ecf2;
  --gray:       #8a9ab5;
  --text:       #1a2a40;
  --text-light: #5a6a80;

  --font-ko: 'Noto Sans KR', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 47, 108, 0.10);
  --shadow-hover: 0 8px 32px rgba(0, 47, 108, 0.18);
  --transition: 0.25s ease;

  --max-width:   1160px;
  --z-header:    100;
  --z-dropdown:  200;
  --z-fab:       99;
}

html { scroll-behavior: smooth; }

/* --- Focus (키보드 접근성) ------------------------------- */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 3px;
}

body {
  font-family: var(--font-ko);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

/* --- Section Titles -------------------------------------- */
.section-title {
  font-family: var(--font-ko);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}


.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* --- Buttons -------------------------------------------- */
.btn-more {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 6px 16px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-more:hover { background: var(--blue); color: var(--white); }


.btn-cta {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-ko);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 48px;
  border-radius: 30px;
  transition: background var(--transition), transform var(--transition), color var(--transition);
}
.btn-cta:hover { background: var(--sky); color: var(--white); transform: translateY(-2px); }

.btn-intro {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-ko);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 10px 28px;
  border-radius: 24px;
  transition: background var(--transition), color var(--transition);
}
.btn-intro:hover { background: var(--blue); color: var(--white); }


/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
  background: var(--white);
}
.header.scrolled .header__util a,
.header.scrolled .nav__list a { color: var(--text); }
.header.scrolled .logo-white { display: none; }
.header.scrolled .logo-colored { display: block; }
.header.scrolled .nav__helm span { background: var(--navy); }

.header__inner {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.header.scrolled .header__inner {
  border-bottom-color: var(--gray-light);
}

.header__util {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 24px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.header.scrolled .header__util {
  border-bottom-color: var(--gray-light);
}

.header__util a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.header__util a:hover { color: var(--sky); }

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.header__logo {
  flex-shrink: 0;
  height: 36px;
  display: block;
}
.header__logo img { height: 36px; width: auto; }

.logo-white  { display: block; }
.logo-colored { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item > a {
  display: block;
  padding: 8px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav__item > a:hover { color: var(--sky); }

/* 드롭다운 */
.nav__item.has-sub { position: relative; }
.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: max-content;
  padding: 8px 0;
  padding-top: 16px;
  z-index: var(--z-dropdown);
}
.nav__item.has-sub:hover .nav__sub { display: block; }
.nav__sub li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.95rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav__sub li a:hover { background: var(--off-white); color: var(--blue); }

/* 햄버거 */
.nav__helm {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__helm span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__helm.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__helm.active span:nth-child(2) { opacity: 0; }
.nav__helm.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 85vh;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.35) saturate(1.44) brightness(0.92);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 31, 74, 0.56) 0%,
    rgba(0, 91, 172, 0.36) 60%,
    rgba(0, 160, 233, 0.14) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}


.hero__title {
  font-family: var(--font-ko);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}


/* =============================================
   사업소개
   ============================================= */
.intro {
  padding: 100px 0;
  background: var(--white);
}

.intro__layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.intro__img-wrap {
  flex: 0 0 45%;
  overflow: hidden;
}

.intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro__inner {
  flex: 1;
  max-width: 600px;
}

.intro__text {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 2;
}

/* =============================================
   AI BP + 공지사항 2단
   ============================================= */
.two-col-section {
  padding: 80px 0;
  background: var(--off-white);
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
}

/* AI BP 카드 2x2 */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card__img {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__img img { transform: scale(1.05); }

.card__title {
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* 공지사항 목록 */
.notice-list { border-top: 2px solid var(--navy); }

.notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 6px;
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition);
  gap: 16px;
}
.notice-item:hover { background: rgba(0,91,172,0.04); }

.notice-item a {
  font-size: 0.88rem;
  color: var(--text);
  transition: color var(--transition);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-item a:hover { color: var(--blue); }

.notice-date {
  font-size: 0.76rem;
  color: var(--gray);
  font-family: var(--font-en);
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================
   리포트/뉴스레터
   ============================================= */
.report-section {
  padding: 80px 0;
  background: var(--white);
}

.report-edu-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.report-card {
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--text);
}
.report-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.report-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-light);
}
.report-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.report-card:hover .report-card__img img { transform: scale(1.04); }

.report-card__info {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  font-family: var(--font-en);
}

.report-card__info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--transition);
}
.report-card:hover .report-card__info h4 { color: var(--blue); }

.report-date {
  font-size: 0.76rem;
  color: var(--gray);
  font-family: var(--font-en);
  margin-top: 4px;
}

/* =============================================
   AI 교육 배너
   ============================================= */
.edu-banner {
  display: block;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.edu-banner:hover { opacity: 0.93; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.edu-banner img { width: 100%; height: auto; }

/* =============================================
   CTA 섹션
   ============================================= */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--blue) 100%);
}

.cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 52px 0 32px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer__logo { height: 30px; width: auto; }

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.60);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__links a.strong { color: rgba(255,255,255,0.85); font-weight: 500; }

.footer__info p {
  font-size: 0.78rem;
  line-height: 2;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer__bottom {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.30);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

/* =============================================
   스크롤 상단 버튼
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background var(--transition), transform var(--transition);
  z-index: var(--z-fab);
}
.scroll-top:hover { background: var(--blue); transform: translateY(-4px); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .two-col-grid { gap: 32px; }
  .report-edu-grid { grid-template-columns: 1fr; gap: 48px; }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 0;
    box-shadow: var(--shadow);
    z-index: var(--z-dropdown);
  }
  .nav__list.open { display: flex; }
  .nav__item > a { color: var(--text); }
  .nav__sub {
    position: static;
    box-shadow: none;
    border-left: 3px solid var(--blue);
    margin-left: 20px;
    padding: 4px 0;
  }
  .nav__item.has-sub:hover .nav__sub { display: block; }
  .nav__helm { display: flex; }

  .hero { height: 90vh; }

  .two-col-grid { grid-template-columns: 1fr; gap: 48px; }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .report-grid { grid-template-columns: 1fr; }
  .report-edu-grid { grid-template-columns: 1fr; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  .intro__layout { flex-direction: column; gap: 32px; }
  .intro__img-wrap { flex: none; width: 100%; max-height: 260px; }
  .intro__text { font-size: 0.92rem; }
  .hero__title br,
  .intro__text br { display: none; }

  .footer__top { flex-direction: column; align-items: flex-start; }

  .cta-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .card-grid-2 { grid-template-columns: 1fr; }

  .hero__title { font-size: 1.5rem; }
  .section-title { font-size: 1.35rem; }

  .scroll-top { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 1.1rem; }
}
