* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Header */
header.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px; border-bottom: 1px solid #eee; flex-wrap: wrap;
}
.brand-block { line-height: 1.3; }
.brand-block .tagline { font-size: 12px; color: #888; }
.brand-block .brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
nav.main-nav { display: flex; gap: 40px; font-weight: 700; font-size: 15px; }
nav.main-nav a:hover, nav.main-nav a.active { color: #1a4fd6; }
.menu-icon { font-size: 24px; cursor: pointer; }

/* Hamburger fullscreen overlay */
/* Full menu (site-menu): revealed below header, hides other page sections, footer stays visible */
.site-menu { display: none; }
body.menu-open .site-menu { display: block; }
body.menu-open > *:not(header.site-header):not(.site-menu):not(footer.site-footer) { display: none !important; }

.site-menu-hero {
  background: #000; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 40px; padding: 80px 60px; min-height: 520px;
}
.menu-links a, .menu-links .menu-parent {
  display: block; color: #fff; font-weight: 800; font-size: 40px; line-height: 1.7;
  letter-spacing: -0.5px;
}
.menu-links a:hover { color: #4fa8ff; }
.menu-links .menu-group { margin: 2px 0; }
.menu-links .menu-sub {
  display: block; color: #888; font-weight: 700; font-size: 19px; line-height: 1.8; padding-left: 2px;
}
.menu-links .menu-sub:hover { color: #4fa8ff; }
.site-menu-hero img { max-width: 480px; width: 100%; margin-left: auto; }

@media (max-width: 900px) {
  .site-menu-mega { grid-template-columns: repeat(2, 1fr); padding: 24px 30px; }
  .site-menu-hero { grid-template-columns: 1fr; padding: 40px 30px; min-height: auto; }
  .menu-links a, .menu-links .menu-parent { font-size: 26px; }
  .menu-links .menu-sub { font-size: 14px; }
  .site-menu-hero img { max-width: 100%; margin: 20px 0 0; }
}

/* Trendpick sub-main feature cards */
.tp-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tp-feature-card {
  border: 1px solid #eee; padding: 34px 30px; background: #fff;
}
.tp-feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.tp-feature-card p { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 16px; min-height: 66px; }
.tp-feature-card ul { font-size: 12.5px; color: #777; line-height: 1.9; margin-bottom: 18px; }
.tp-feature-card .read-more { font-size: 12.5px; font-weight: 700; color: #1a4fd6; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 900px) {
  .tp-feature-grid { grid-template-columns: 1fr; }
}

/* Nav dropdown (ABOUT submenu) */
nav.main-nav .nav-item { position: relative; }
nav.main-nav .nav-item > a { display: inline-block; padding-bottom: 6px; }
nav.main-nav .nav-item .dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid #eee; box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  min-width: 150px; padding: 6px 0; z-index: 50;
}
nav.main-nav .nav-item:hover .dropdown { display: block; }
nav.main-nav .dropdown a { display: block; padding: 10px 18px; font-size: 14px; font-weight: 500; color: #222; white-space: nowrap; }
nav.main-nav .dropdown a:hover { background: #f5f7ff; color: #1a4fd6; }


/* Hero */
.hero {
  position: relative; height: 420px; background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 0; }
.hero-inner { position: relative; z-index: 1; padding: 0 60px; color: #fff; max-width: 700px; }
.hero-inner h1 { font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.hero-inner .sub { font-size: 17px; margin-bottom: 24px; line-height: 1.5; }
.hero-btns { display: flex; gap: 10px; }
.hero-btns a { padding: 12px 22px; font-weight: 700; border-radius: 2px; font-size: 14px; }
.hero-btns .btn-primary { background: #1a4fd6; color: #fff; }
.hero-btns .btn-outline { background: #fff; color: #222; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.hero-dots a { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.hero-dots a.active { background: #fff; }

/* Section title block (page header) */
.page-title { padding: 60px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.page-title h1 { font-size: 38px; font-weight: 800; }
.page-title p { color: #555; font-size: 15px; line-height: 1.6; }

/* Tabs (SOLUTION / RESEARCH / TRENDPICK style) */
.tabbar { display: flex; margin: 0 60px; border: 1px solid #ddd; }
.tabbar a { flex: 1; text-align: center; padding: 18px 0; font-weight: 700; border-right: 1px solid #ddd; }
.tabbar a:last-child { border-right: none; }
.tabbar a.active { background: #111; color: #fff; }
.subtabbar { display: flex; gap: 0; margin: 40px 60px 0; }
.subtabbar a { padding: 14px 26px; font-weight: 700; border: 1px solid #ddd; border-left: none; }
.subtabbar a:first-child { border-left: 1px solid #ddd; }
.subtabbar a.active { background: #111; color: #fff; }

section.content { max-width: 1300px; margin: 0 auto; padding: 60px; }
.section-title { text-align: left; margin-bottom: 40px; }
.section-title h2 { font-size: 26px; font-weight: 800; }

/* Card grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.dark-card { background: #12224e; color: #fff; padding: 30px; min-height: 260px; display: flex; align-items: flex-end; overflow: hidden; }

.sns-icon {
  width: 40px; height: 40px; background: #111; color: #fff; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.feature-icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature-item {
  padding: 20px 20px 20px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 12px;
}
.feature-item svg { width: 26px; height: 26px; flex-shrink: 0; }
.feature-item span { font-size: 14px; font-weight: 500; flex: 1; }
.feature-item em { font-style: normal; color: #999; }
.dark-card .tag { font-size: 13px; opacity: 0.7; margin-bottom: 8px; }
.dark-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; line-height: 1.4; }
.dark-card p { font-size: 13px; opacity: 0.85; margin-bottom: 20px; }
.dark-card .read-more { font-size: 13px; font-weight: 700; }

.report-card { border: 1px solid #eee; cursor: pointer; }
.report-card img { width: 100%; height: 180px; object-fit: cover; }
.report-card .body { padding: 14px; }
.report-card .cat-badge { display: inline-block; background: #111; color: #fff; font-size: 11px; padding: 3px 8px; margin-bottom: 8px; }
.report-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.report-card p { font-size: 13px; color: #777; }

/* Blue promo banner */
.promo-banner { background: #1a4fd6; color: #fff; padding: 40px 60px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.promo-banner h2 { font-size: 22px; margin-bottom: 14px; }
.promo-banner ul li { font-size: 13px; opacity: 0.9; margin-bottom: 6px; }
.promo-banner .btn-white { background: #fff; color: #1a4fd6; padding: 12px 22px; font-weight: 700; }

/* Footer */
footer.site-footer { background: #0a0a0a; color: #ccc; padding: 60px; }
footer.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.site-footer h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
footer.site-footer .tagline { font-size: 13px; color: #999; margin-bottom: 20px; }
footer.site-footer h4 { color: #fff; font-size: 13px; margin-bottom: 14px; }
footer.site-footer li { font-size: 13px; color: #999; margin-bottom: 8px; }
footer.site-footer .legal { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #777; flex-wrap: wrap; gap: 10px; }

/* Boards */
.board-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; }
.board-toolbar input[type=text] { padding: 10px 14px; border: 1px solid #ccc; width: 240px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a { padding: 6px 12px; border: 1px solid #ddd; }
.pagination a.active { background: #111; color: #fff; }
.empty-state { text-align: center; padding: 80px 0; color: #999; }
.empty-state .icon { font-size: 40px; margin-bottom: 16px; }

.form-box { max-width: 800px; }
.form-box .row { margin-bottom: 18px; }
.form-box label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.form-box input, .form-box textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccc; font-size: 14px; }
.form-box textarea { min-height: 140px; resize: vertical; }
.btn { display: inline-block; padding: 12px 24px; background: #111; color: #fff; border: none; cursor: pointer; font-weight: 700; }
.btn.primary { background: #1a4fd6; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.danger { background: #d9534f; }

/* Detail view */
.detail-box { max-width: 900px; }
.detail-box h2 { font-size: 24px; margin-bottom: 12px; }
.detail-box .meta { color: #888; font-size: 13px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.detail-box img.cover { width: 100%; border-radius: 4px; margin-bottom: 24px; }
.detail-box .body-content { line-height: 1.9; margin-bottom: 30px; white-space: pre-wrap; }
.detail-box .body-content img { max-width: 100%; border-radius: 6px; margin: 12px 0; }

@media (max-width: 900px) {
  header.site-header { padding: 16px 20px; }
  nav.main-nav { display: none; }
  .page-title, section.content, .promo-banner, footer.site-footer { padding-left: 20px; padding-right: 20px; }
  .tabbar, .subtabbar { margin-left: 20px; margin-right: 20px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
}
