/* HB Mini Theme: Corporate (Enterprise B2B Master Theme) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --hb-color-primary: #1e3a8a;
  --hb-color-primary-hover: #1d4ed8;
  --hb-color-secondary: #0f766e;
  --hb-color-accent: #2563eb;
  --hb-color-background: #f8fafc;
  --hb-color-surface: #ffffff;
  --hb-color-surface-alt: #f1f5f9;
  --hb-color-text: #0f172a;
  --hb-color-text-muted: #64748b;
  --hb-color-border: #e2e8f0;
  --hb-font-sans: 'Pretendard', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --hb-font-base-size: 16px;
  --hb-line-height-base: 1.65;
  --hb-layout-container-max-width: 1240px;
  --hb-layout-header-height: 78px;
  --hb-layout-border-radius: 12px;
  --hb-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --hb-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--hb-font-sans);
  font-size: var(--hb-font-base-size);
  line-height: var(--hb-line-height-base);
  color: var(--hb-color-text);
  background-color: var(--hb-color-background);
  -webkit-font-smoothing: antialiased;
}

.hb-container {
  max-width: var(--hb-layout-container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Header & Navigation */
.hb-site-header {
  height: var(--hb-layout-header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hb-color-border);
  position: sticky;
  top: 45px;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.hb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.hb-brand a {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hb-color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hb-brand a::before {
  content: "HB";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hb-nav-desktop ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.hb-nav-desktop a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.hb-nav-desktop a:hover {
  color: var(--hb-color-accent);
}

/* Member Status Bar Buttons */
.hb-member-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hb-btn-login,
.hb-btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hb-btn-login {
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.hb-btn-login:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.hb-btn-join {
  color: #ffffff;
  background: var(--hb-color-accent);
  border: 1px solid var(--hb-color-accent);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.hb-btn-join:hover {
  background: var(--hb-color-primary);
}

/* Hero Banner Carousel */
.hb-banner-carousel {
  background: radial-gradient(circle at 85% 20%, #1d4ed8 0%, #1e3a8a 48%, #0f172a 100%);
  color: #ffffff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hb-banner-slide {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hb-banner-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hb-banner-link {
  color: #ffffff;
  text-decoration: none;
}

.hb-banner-slide h3 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: #ffffff;
}

.hb-banner-subtitle {
  font-size: 16.5px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 28px;
  max-width: 640px;
}

.hb-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hb-btn-hero-primary,
.hb-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hb-btn-hero-primary {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hb-btn-hero-primary:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

.hb-btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hb-btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hb-banner-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hb-kpi-card {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hb-kpi-num {
  font-size: 20px;
  font-weight: 800;
  color: #60a5fa;
}

.hb-kpi-label {
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 500;
}

/* Sub Visual & Breadcrumb */
.hb-sub-visual {
  background: linear-gradient(135deg, var(--hb-color-primary), #0f172a);
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
}

.hb-subvisual-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
}

.hb-subvisual-desc {
  font-size: 16px;
  color: #cbd5e1;
  margin: 0 0 16px;
}

.hb-breadcrumb-list {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  gap: 8px;
  font-size: 13px;
}

.hb-breadcrumb a {
  color: #93c5fd;
  text-decoration: none;
}

/* Section Headings & Cards */
.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hb-color-text);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: var(--hb-color-accent);
}

.hb-content-primary,
.hb-content-secondary {
  background: var(--hb-color-surface);
  border: 1px solid var(--hb-color-border);
  border-radius: var(--hb-layout-border-radius);
  padding: 28px;
  box-shadow: var(--hb-shadow-sm);
}

/* Multi-Skin Board Extraction (.hb-board-extraction) */
.hb-board-extraction {
  width: 100%;
}

.hb-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-badge-pinned,
.hb-badge-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.hb-badge-pinned {
  background: #dbeafe;
  color: #1d4ed8;
}

.hb-badge-cat {
  background: #f1f5f9;
  color: #475569;
}

/* Skin 1: list */
.hb-skin-list .hb-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.hb-skin-list .hb-post-item:first-child {
  border-top: 1px solid var(--hb-color-border);
}

.hb-skin-list .hb-post-item:hover {
  background-color: #f8fafc;
}

.hb-list-main {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.hb-post-link {
  color: var(--hb-color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.hb-post-link:hover {
  color: var(--hb-color-accent);
}

.hb-post-meta {
  font-size: 12.5px;
  color: var(--hb-color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Skin 2: card */
.hb-skin-card .hb-post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.hb-skin-card .hb-post-item {
  background: #f8fafc;
  border: 1px solid var(--hb-color-border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hb-skin-card .hb-post-item:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: var(--hb-shadow-md);
}

.hb-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hb-card-date {
  font-size: 12px;
  color: var(--hb-color-text-muted);
}

.hb-skin-card .hb-post-link {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hb-post-excerpt {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 14px;
}

.hb-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.hb-card-more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hb-color-accent);
}

/* Skin 3: webzine */
.hb-skin-webzine .hb-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hb-skin-webzine .hb-post-item {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--hb-color-border);
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hb-skin-webzine .hb-post-item:hover {
  border-color: #93c5fd;
  box-shadow: var(--hb-shadow-sm);
}

.hb-webzine-datebox {
  width: 68px;
  min-height: 68px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-wz-day {
  font-size: 22px;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.1;
}

.hb-wz-ym {
  font-size: 11px;
  color: #3b82f6;
  font-weight: 600;
}

.hb-webzine-body {
  flex: 1;
  min-width: 0;
}

.hb-webzine-top {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

/* Skin 4: faq */
.hb-skin-faq .hb-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hb-faq-details {
  border: 1px solid var(--hb-color-border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.hb-faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.hb-faq-summary::-webkit-details-marker {
  display: none;
}

.hb-faq-q-badge,
.hb-faq-a-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.hb-faq-q-badge {
  background: #2563eb;
  color: #ffffff;
}

.hb-faq-a-badge {
  background: #0f766e;
  color: #ffffff;
  margin-top: 2px;
}

.hb-faq-summary .hb-post-link {
  flex: 1;
}

.hb-faq-answer {
  padding: 14px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hb-faq-answer p {
  margin: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.hb-board-empty {
  padding: 36px 20px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: var(--hb-color-text-muted);
}

/* Inquiry Form (hb-plugin-inquiry) */
.hb-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hb-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hb-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hb-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.hb-req {
  color: #dc2626;
}

.hb-form-group input,
.hb-form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--hb-color-text);
  background: #f8fafc;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.hb-form-group input:focus,
.hb-form-group textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--hb-color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hb-form-consent {
  font-size: 12.5px;
  color: #475569;
}

.hb-form-consent label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hb-btn-submit {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hb-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

/* History Timeline Plugin (hb-plugin-history) */
.hb-history-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 16px;
  border-left: 2px solid #dbeafe;
  margin-left: 6px;
}

.hb-timeline-item {
  position: relative;
  padding-left: 14px;
}

.hb-timeline-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px #dbeafe;
}

.hb-year {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.hb-timeline-content strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 2px;
}

.hb-desc {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
}

/* Catalog & PDF Archive Plugin (hb-plugin-catalog) */
.hb-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hb-catalog-card {
  border: 1px solid var(--hb-color-border);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hb-catalog-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: var(--hb-shadow-sm);
}

.hb-catalog-thumb {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hb-catalog-thumb.hb-thumb-academic {
  background: linear-gradient(135deg, #881337, #4c0519);
}

.hb-catalog-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
  border-radius: 4px;
}

.hb-catalog-format {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.hb-catalog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hb-catalog-body h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #0f172a;
}

.hb-catalog-body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}

.hb-catalog-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--hb-color-accent);
  text-decoration: none;
}

/* Footer */
.hb-site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 36px;
  margin-top: 64px;
  border-top: 1px solid #1e293b;
}

.hb-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.hb-footer-info p {
  margin: 5px 0;
  font-size: 13.5px;
}

.hb-footer-info strong {
  color: #f8fafc;
}

.footer-hosting {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hb-banner-slide,
  .hb-grid-split {
    grid-template-columns: 1fr !important;
  }
  .hb-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }
  .hb-site-header {
    height: auto;
  }
  .hb-form-row-2 {
    grid-template-columns: 1fr;
  }
}
