﻿/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --navy: #1a2e45;
  --blue: #29abe2;
  --gold: #29abe2;
  --slate: #7a8c8d;
  --light: #f5f7fa;
  --gray: #626262;
  --border: #e5e5e5;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--blue);
}
.nav-wrap {
  max-width: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(0rem, calc((100vw - 1212px) / 2)); height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; margin-left: -12px; }
nav ul { display: flex; gap: 5.5rem; }
nav > ul > li { position: relative; }
nav a {
  color: #333; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.03em; padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
nav a:hover, nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ===== ?쒕∼?ㅼ슫 ===== */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ''; }
.dropdown {
  display: none; flex-direction: column; gap: 0;
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 6px; min-width: 150px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14); border: 1px solid var(--border);
  overflow: hidden; z-index: 1100;
}
.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown { display: flex; flex-direction: column; }
.dropdown li { width: 100%; }
.dropdown a {
  display: block; padding: 0.35rem 1.2rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  color: #444; white-space: nowrap;
}
.dropdown a:hover { background: var(--light); color: var(--blue); }

.nav-lang { color: #999; font-size: 0.8rem; cursor: pointer; }
.nav-lang:hover { color: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-wrap > div { display: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #333; transition: var(--transition); }

/* ===== HERO SLIDESHOW ===== */
#hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 770;
  min-height: calc(100vh - 73px);
  overflow: hidden;
  margin-top: 73px;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.slide-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 0.6rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.6); cursor: pointer; transition: var(--transition);
}
.dot.active { background: var(--blue); transform: scale(1.3); }
.hero-stats {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4rem; z-index: 3;
}
.stat { text-align: center; }
.stat-num { color: #fff; font-size: 1.8rem; font-weight: 700; }
.stat-label { color: rgba(255,255,255,0.55); font-size: 0.75rem; letter-spacing: 0.1em; }

/* ===== SECTIONS COMMON ===== */
section { padding: 6rem max(0rem, calc((100vw - 1212px) / 2)); }
.section-inner { max-width: none; margin: 0; }
.section-header { text-align: left; margin-bottom: 4rem; }
.section-tag { display: none; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--navy); margin-bottom: 0; display: inline-block; padding-bottom: 0.4rem; border-bottom: 3px solid var(--border); }
.section-divider { display: none; }
.section-desc { color: var(--gray); font-size: 1rem; margin: 0.8rem 0 0; }

/* ===== ABOUT ===== */
#about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap {
  background: var(--navy);
  border-radius: 8px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 420px;
}
.about-img-placeholder { color: rgba(255,255,255,0.15); font-size: 0.85rem; letter-spacing: 0.1em; }
.about-main-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.about-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.88) 0%, rgba(10,20,40,0.5) 60%, transparent 100%);
  padding: 2.5rem 2rem 2rem;
}
.about-overlay-title {
  color: #fff; font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.75rem; line-height: 1.4;
}
.about-overlay-text {
  color: rgba(255,255,255,0.88); font-size: 0.88rem; line-height: 1.7;
}
.about-img-deco {
  position: absolute; bottom: -30px; right: -30px;
  width: 180px; height: 180px;
  border: 2px solid rgba(200,164,90,0.3); border-radius: 50%;
}
.about-text h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; line-height: 1.3; }
.about-text p { color: var(--gray); margin-bottom: 1rem; font-size: 0.95rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.value-item { padding: 1.2rem; border: 1px solid var(--border); border-radius: 6px; }
.value-item h4 { color: var(--navy); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.value-item p { color: var(--gray); font-size: 0.82rem; margin: 0; }
.value-icon { color: var(--gold); font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ===== TEAM ===== */
#team { background: var(--light); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); row-gap: 2rem; column-gap: 4rem; }
.team-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: var(--transition);
}
.team-section-label {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.1em; margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--border);
  display: inline-block;
}
/* ?ъ쭊 ?곸뿭 */
img.team-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top;
  display: block;
}
.team-photo {
  background: linear-gradient(135deg, #e8edf5, #d0d8ea);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 0.8rem; letter-spacing: 0.1em;
}
/* ?대쫫/吏곹븿 + ?좉? 踰꾪듉 */
.team-info { padding: 1rem 1.2rem; }
.team-summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.team-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.team-title { color: #999; font-size: 0.8rem; font-weight: 500; margin-top: 0.15rem; }
.team-toggle {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--blue); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 300; flex-shrink: 0;
  transition: var(--transition); user-select: none;
}
.team-card.open .team-toggle { background: var(--blue); color: #fff; transform: rotate(45deg); }
/* ?쎈젰 ?쇱튂湲?*/
.team-career-wrap {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 0;
}
.team-card.open .team-career-wrap { max-height: 600px; padding: 0.75rem 0 0.25rem; }
.team-dept { color: var(--gray); font-size: 0.76rem; margin-bottom: 0.5rem; }
.team-career { border-top: 1px solid var(--border); padding-top: 0.6rem; }
.team-career li { color: var(--gray); font-size: 0.78rem; padding: 0.2rem 0; padding-left: 0.8rem; position: relative; line-height: 1.5; }
.team-career li::before { content: '\2022'; position: absolute; left: 0; color: var(--blue); }
.team-career li.career-label { color: var(--navy); font-weight: 700; font-size: 0.75rem; padding-left: 0; margin-top: 0.6rem; letter-spacing: 0.03em; }
.team-career li.career-label::before { content: none; }

/* ===== NEWS ===== */
#news { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.news-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.news-card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.news-thumb {
  background: linear-gradient(135deg, #e8edf5, #d0d8ea);
  height: 180px; display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 0.8rem;
}
.news-body { padding: 1.5rem; }
.news-source { color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.news-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.4; }
.news-date { color: var(--gray); font-size: 0.78rem; }
.news-more { text-align: center; margin-top: 3rem; }

/* ===== PORTFOLIO ===== */
#portfolio { background: var(--light); }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.fund-card {
  background: var(--white); border-radius: 8px; padding: 1.8rem;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: var(--transition);
}
.fund-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.fund-card--closed { border-left-color: var(--border); opacity: 0.7; }
.fund-card--closed .fund-size { color: var(--gray); }
.fund-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.fund-size { color: var(--navy); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.fund-detail { color: var(--gray); font-size: 0.82rem; }
.fund-tag { display: block; background: none; color: var(--gray); font-size: 0.82rem; padding: 0; margin-top: 0.5rem; font-weight: 400; }
.fund-tag::before { content: '주요출자자  '; font-weight: 700; color: var(--navy); }
.fund-irr { font-size: 0.82rem; color: var(--gray); margin-top: 0.4rem; }
.fund-irr span { font-weight: 700; color: var(--navy); }
.portfolio-subtitle { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--navy); margin-bottom: 2rem; text-align: center; }
.portfolio-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.portfolio-item {
  background: #eef4fb; border-radius: 14px; padding: 1.5rem 1rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  box-shadow: 0 2px 8px rgba(41,171,226,0.08); transition: var(--transition);
  text-align: center;
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(41,171,226,0.15); }
.portfolio-logo {
  width: 130px; height: 130px; background: #ffffff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.portfolio-name { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.portfolio-sector { font-size: 0.72rem; color: var(--gray); }

/* ===== CONTACT ===== */
#contact { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; justify-content: space-between; }
.contact-info h3 { color: var(--navy); font-size: 1.2rem; font-weight: 700; margin-bottom: 0; padding-bottom: 0.75rem; display: inline-block; border-bottom: 2px solid var(--border); }
.contact-item { display: flex; gap: 1.5rem; margin-bottom: 0; align-items: flex-start; }
.contact-icon-wrap { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-top: 0.6rem; flex-shrink: 0; }
.contact-detail h4 { color: var(--navy); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.25rem; text-transform: uppercase; }
.contact-detail p { color: var(--gray); font-size: 0.92rem; line-height: 1.6; }
.contact-map-box {
  background: #fff; border-radius: 8px;
  border: 1px solid var(--border);
  padding: 1rem; box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  max-width: 100%; overflow: hidden;
}
.contact-map-title { color: var(--navy); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.contact-map-addr { color: var(--navy); font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; font-weight: 500; }
.contact-map-sub { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.2rem; }
.contact-map-sub div { color: var(--gray); font-size: 0.88rem; }
.contact-map-sub span { color: var(--blue); font-weight: 600; margin-right: 0.5rem; }
.contact-map-link {
  display: inline-block; color: var(--blue); font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--blue); padding: 0.5rem 1.2rem; border-radius: 4px;
  transition: var(--transition);
}
.contact-map-link:hover { background: var(--blue); color: #fff; }

/* ===== HISTORY (about ?뱀뀡 ?대?) ===== */
.history-wrap { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }

/* ===== IR ===== */
.ir-wrap { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.ir-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ir-table thead tr { background: var(--navy); color: #fff; }
.ir-table th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.03em; }
.ir-table th:first-child, .ir-table td:first-child { width: 60px; text-align: center; }
.ir-table th:last-child, .ir-table td:last-child { width: 80px; text-align: center; }
.ir-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: #444; }
.ir-table tbody tr:hover { background: var(--light); }
.ir-table td:nth-child(3) { color: var(--slate); font-size: 0.82rem; white-space: nowrap; }
.ir-download {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--light); color: var(--navy);
  transition: var(--transition);
}
.ir-download:hover { background: var(--blue); color: #fff; }
.ir-download svg { width: 16px; height: 16px; }
.history-timeline { max-width: 800px; margin: 0 auto; }
.history-year-group {
  display: flex; gap: 3rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.history-year-group:last-child { border-bottom: none; }
.history-year {
  font-size: 1.5rem; font-weight: 800; color: var(--blue);
  min-width: 60px; line-height: 1.8;
}
.history-events { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.history-item { display: flex; gap: 1.2rem; align-items: baseline; }
.history-month {
  font-size: 0.8rem; font-weight: 700; color: var(--slate);
  min-width: 24px; letter-spacing: 0.05em;
}
.history-text { font-size: 0.92rem; color: #444; line-height: 1.6; }

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1.5rem max(0rem, calc((100vw - 1212px) / 2));
}
.footer-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: #999; font-size: 0.78rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #999; font-size: 0.78rem; transition: var(--transition); }
.footer-links a:hover { color: var(--blue); }

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-map-box { padding: 1rem; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  /* ?ㅻ뜑쨌?ㅻ퉬 */
  .nav-wrap { padding: 0 1.2rem; }
  footer { padding: 1.5rem 1.2rem; }
  nav { display: none; }
  .hamburger { display: flex; }
  .nav-wrap > div { display: flex; }
  nav.open {
    display: block; position: absolute;
    top: 70px; left: 0; right: 0; background: rgba(255,255,255,0.98);
    border-top: 1px solid #e5e5e5; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1rem 0;
  }
  nav.open > ul { display: flex; flex-direction: column; gap: 0; }
  nav.open > ul > li > a { display: block; padding: 0.9rem 2rem; color: #333; font-size: 1rem; border-bottom: none; }
  nav.open > ul > li > a:hover { background: var(--light); color: var(--blue); }
  nav.open .dropdown { display: none; position: static; transform: none; box-shadow: none; border: none; background: var(--light); border-radius: 0; min-width: unset; }
  nav.open .has-dropdown.open .dropdown { display: flex; }
  nav.open .dropdown a { padding: 0.6rem 3rem; font-size: 0.85rem; color: #555; }

  /* ?덉뼱濡?*/
  #hero { height: 280px; min-height: 200px; aspect-ratio: unset; margin-top: 70px; }
  .slides { position: absolute; inset: 0; }
  .slide { position: absolute; inset: 0; }
  .slide img { object-fit: contain; background: #000; }
  .slide-dots { bottom: 0.5rem; }

  /* 怨듯넻 ?뱀뀡 */
  section { padding: 3.5rem 1.2rem; }
  .section-title { font-size: 1.7rem; }

  /* ?뚯궗?뚭컻 */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-wrap { height: 220px; }

  /* ?뚯궗?쎈젰 */
  .history-year-group { flex-direction: column; gap: 0.5rem; padding: 1.2rem 0; }
  .history-year { font-size: 1.2rem; min-width: auto; }
  .history-item { gap: 0.8rem; }

  /* ?몃젰?뚭컻 */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  img.team-photo { width: 100%; max-width: 180px; }

  /* ??쑣룻룷?명뤃由ъ삤 */
  .tabs { flex-wrap: wrap; gap: 0.5rem; }
  .fund-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .portfolio-logo { width: 90px; height: 90px; }
  .portfolio-name { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

  /* 臾몄쓽?섍린 */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-map-box { padding: 1.5rem; }
}

/* ===== ?앹뾽 ===== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.popup-overlay.hidden { display: none; }
.popup-box {
  background: #fff; width: 700px; max-width: 95vw;
  border: 1px solid #ccc; font-size: 0.88rem; line-height: 1.8;
  color: #222;
}
.popup-body { padding: 2.5rem 2.5rem 1.5rem; text-align: center; }
.popup-body p { margin-bottom: 1.2rem; }
.popup-lead { font-size: 0.92rem; }
.popup-highlight {
  display: inline-block; background: #c00; color: #fff;
  padding: 0.15rem 0.4rem; font-weight: 700; line-height: 1.9;
}
.popup-logo { margin-top: 1.5rem; font-size: 1.6rem; letter-spacing: -0.02em; }
.popup-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; border-top: 1px solid #ddd; background: #f5f5f5;
  font-size: 0.82rem;
}
.popup-skip { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.popup-close {
  background: #444; color: #fff; border: none; padding: 0.4rem 1rem;
  font-size: 0.82rem; cursor: pointer; letter-spacing: 0.05em;
}
.popup-close:hover { background: #222; }

@media (max-width: 768px) {
  .popup-box { width: 92vw; max-width: 92vw; }
  .popup-body { padding: 1.2rem 1.2rem 1rem; }
  .popup-body p { margin-bottom: 0.7rem; font-size: 0.82rem; }
  .popup-lead { font-size: 0.82rem; }
  .popup-logo { font-size: 1.2rem; margin-top: 0.8rem; }
  .popup-footer { padding: 0.6rem 1rem; }
}
