:root {
  --bizcore-primary: #0a4ff5;
  --bizcore-primary-dark: #0b1d49;
  --bizcore-accent: #14c3a2;
  --bizcore-text: #172033;
  --bizcore-muted: #62708a;
  --bizcore-border: #d7dfeb;
  --bizcore-bg: #f4f7fb;
  --bizcore-white: #ffffff;
  --bizcore-shadow: 0 16px 40px rgba(22, 34, 51, 0.08);
  --bizcore-radius: 22px;
  --bizcore-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--bizcore-text);
  background: var(--bizcore-bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p, ul, ol {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 40px), var(--bizcore-max));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-branding__logo img {
  max-height: 54px;
  width: auto;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.site-description {
  margin: 4px 0 0;
  color: var(--bizcore-muted);
  font-size: 0.92rem;
}

/* 사이트 제목/설명 시각적으로 숨김 (SEO 유지) */
.site-header .site-title,
.site-header .site-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.primary-nav li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--bizcore-primary-dark);
}

.primary-nav li.current-menu-item a,
.primary-nav li a:hover {
  background: rgba(10, 79, 245, 0.08);
  color: var(--bizcore-primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--bizcore-primary-dark);
}

.site-main {
  min-height: 60vh;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1d49 0%, #15388e 60%, #0a4ff5 100%);
  color: var(--bizcore-white);
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 29, 73, 0.92), rgba(10, 79, 245, 0.72));
}

.hero__content,
.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 110px 0 90px;
}

.hero__eyebrow,
.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bizcore-accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title,
.page-hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.08;
  max-width: 860px;
}

.hero__subtitle,
.page-hero p {
  max-width: 760px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button--primary {
  background: var(--bizcore-white);
  color: var(--bizcore-primary-dark);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--bizcore-shadow);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--bizcore-white);
}

.section {
  padding: 84px 0;
}

.section--light {
  background: var(--bizcore-bg);
}

.section--white {
  background: var(--bizcore-white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading__title {
  margin: 16px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.18;
}

.section-heading__description {
  color: var(--bizcore-muted);
  font-size: 1rem;
}

.overview-grid,
.support-grid,
.cta-band__inner,
.site-footer__grid {
  display: grid;
  gap: 28px;
}

.overview-grid,
.support-grid {
  grid-template-columns: 1fr 1.1fr;
}

.overview-card-stack,
.card-grid,
.news-grid,
.stat-grid,
.process-grid {
  display: grid;
  gap: 22px;
}

.overview-card-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid,
.news-grid,
.stat-grid,
.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.card,
.stat-card,
.process-card,
.contact-card {
  background: var(--bizcore-white);
  border: 1px solid var(--bizcore-border);
  border-radius: var(--bizcore-radius);
  box-shadow: var(--bizcore-shadow);
}

.info-card,
.stat-card,
.process-card,
.contact-card {
  padding: 26px;
}

.info-card--compact h3,
.card__title {
  margin: 0 0 10px;
}

.card {
  overflow: hidden;
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 24px;
}

.card__subtitle,
.entry-meta,
.timeline__date span,
.text-link,
.site-footer p,
.site-footer li,
.contact-card p,
.contact-card li {
  color: var(--bizcore-muted);
}

.card__list {
  padding-left: 18px;
  margin: 14px 0 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 79, 245, 0.1);
  color: var(--bizcore-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.text-link {
  font-weight: 700;
  color: var(--bizcore-primary);
}

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

.stat-card strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  color: var(--bizcore-primary-dark);
  margin-bottom: 6px;
}

.stat-card--light {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.process-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(10, 79, 245, 0.1);
  color: var(--bizcore-primary);
  font-weight: 800;
  margin-bottom: 18px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 90px;
  width: 2px;
  background: var(--bizcore-border);
}

.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  position: relative;
}

.timeline__date {
  text-align: right;
  padding-top: 10px;
}

.timeline__date strong {
  display: block;
  font-size: 1.3rem;
  color: var(--bizcore-primary-dark);
}

.timeline__content {
  position: relative;
  padding: 24px;
  background: var(--bizcore-white);
  border: 1px solid var(--bizcore-border);
  border-radius: var(--bizcore-radius);
  box-shadow: var(--bizcore-shadow);
}

.timeline__content::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bizcore-primary);
  box-shadow: 0 0 0 6px rgba(10, 79, 245, 0.12);
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.contact-card li + li {
  margin-top: 10px;
}

.contact-card--accent {
  background: linear-gradient(135deg, #0b1d49, #0a4ff5);
  color: var(--bizcore-white);
}

.contact-card--accent .entry-content,
.contact-card--accent p,
.contact-card--accent li,
.contact-card--accent a {
  color: rgba(255, 255, 255, 0.9);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bizcore-white);
  border: 1px solid var(--bizcore-border);
  border-radius: 20px;
  padding: 0 22px;
  box-shadow: var(--bizcore-shadow);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
}

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

.faq-item .entry-content {
  padding-bottom: 20px;
}

.cta-band {
  background: linear-gradient(135deg, #0b1d49, #0a4ff5);
  color: var(--bizcore-white);
}

.cta-band__inner {
  grid-template-columns: 1.4fr auto;
  align-items: center;
}

.entry-content--narrow {
  max-width: 800px;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-featured-image {
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: var(--bizcore-radius);
}

.pagination-wrap,
.search-form {
  margin-top: 24px;
}

.search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-field {
  min-width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--bizcore-border);
  border-radius: 14px;
}

.site-footer {
  background: #08142f;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 64px;
}

.site-footer__grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer h3,
.site-footer__title {
  color: var(--bizcore-white);
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer__bottom {
  padding: 24px 0 36px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 1100px) {
  .card-grid,
  .news-grid,
  .stat-grid,
  .process-grid,
  .overview-card-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .support-grid,
  .site-footer__grid,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 86px;
    background: var(--bizcore-white);
    border: 1px solid var(--bizcore-border);
    border-radius: 22px;
    box-shadow: var(--bizcore-shadow);
    padding: 14px;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav li a {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .page-hero .container {
    min-height: auto;
  }

  .timeline::before {
    left: 23px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: 48px;
  }

  .timeline__date {
    text-align: left;
    padding-top: 0;
  }

  .timeline__content::before {
    left: -33px;
    top: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--bizcore-max));
  }

  .hero__content,
  .page-hero .container,
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .card-grid,
  .news-grid,
  .stat-grid,
  .process-grid,
  .overview-card-stack {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* LightCraft integration */
.lightcraft-canvas {
  min-height: 40vh;
}

body.has-lightcraft-builder .site-main {
  min-height: auto;
}

body.has-lightcraft-builder .site-header {
  position: sticky;
}

.lcb-theme-notice {
  padding: 28px;
  border-radius: var(--bizcore-radius);
  background: #fff9e6;
  border: 1px solid #f1d48b;
  box-shadow: var(--bizcore-shadow);
}

.lcb-theme-notice h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.lcb-theme-notice p {
  margin: 0;
  color: var(--bizcore-text);
}

.entry-content--narrow {
  max-width: 820px;
}

.entry-header--single .entry-meta {
  color: rgba(255,255,255,0.88);
}

@media (max-width: 980px) {
  body.has-lightcraft-builder .site-header__inner {
    min-height: 74px;
  }
}

.site-footer--builder {
  background: transparent;
  color: inherit;
  padding-top: 0;
}

.site-footer--builder .lcs-page > .lcs-node:last-child {
  margin-bottom: 0;
}

.site-footer--builder a {
  color: inherit;
}

/* LightCraft editor v5.7 compat */
body.lcb-editor-open .site-header,
body.lcb-editor-open .site-main,
body.lcb-editor-open .site-footer {
  transition: none !important;
  box-sizing: border-box !important;
}
body.lcb-editor-open .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: calc(100vw - 340px) !important;
  max-width: calc(100vw - 340px) !important;
}
body.lcb-editor-open {
  overflow-x: hidden !important;
}

/* =====================================================================
   FIX: Prevent theme layout rules from overriding LightCraft Builder
   alignment / position / text-align settings inside the canvas & footer.
   ===================================================================== */

/*
 * 1) Reset theme's .container centering inside builder regions so that
 *    the builder's own container nodes control width & alignment.
 */
.lightcraft-canvas .container,
.site-footer--builder .container {
  width: 100%;
  max-width: none;
  margin-left: unset;
  margin-right: unset;
}

/*
 * 2) Builder layout nodes: set neutral flex defaults so the builder's
 *    inline styles (justify-content, align-items, text-align, margin,
 *    position …) always take effect without fighting the theme.
 */
.lightcraft-canvas .lcs-section,
.lightcraft-canvas .lcs-container,
.lightcraft-canvas .lcs-columns,
.lightcraft-canvas .lcs-column,
.lightcraft-canvas .lcs-row,
.site-footer--builder .lcs-section,
.site-footer--builder .lcs-container,
.site-footer--builder .lcs-columns,
.site-footer--builder .lcs-column,
.site-footer--builder .lcs-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  margin-left: unset;
  margin-right: unset;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* Columns wrapper should be horizontal */
.lightcraft-canvas .lcs-columns,
.site-footer--builder .lcs-columns {
  flex-direction: row;
}

/*
 * 3) Generic node reset — avoid theme's centered text / auto-margins
 *    leaking into arbitrary builder nodes.
 */
.lightcraft-canvas .lcs-node,
.site-footer--builder .lcs-node {
  text-align: inherit;
  margin-left: unset;
  margin-right: unset;
  max-width: none;
  box-sizing: border-box;
}

/*
 * 4) Allow builder-applied inline styles for positioning to always win.
 *    We use attribute selectors to raise specificity just enough so that
 *    the inline style values are not overridden by theme utility classes.
 */
.lightcraft-canvas [style*="text-align"],
.lightcraft-canvas [style*="justify-content"],
.lightcraft-canvas [style*="align-items"],
.lightcraft-canvas [style*="align-self"],
.lightcraft-canvas [style*="margin-left"],
.lightcraft-canvas [style*="margin-right"],
.lightcraft-canvas [style*="position"],
.lightcraft-canvas [style*="float"],
.site-footer--builder [style*="text-align"],
.site-footer--builder [style*="justify-content"],
.site-footer--builder [style*="align-items"],
.site-footer--builder [style*="align-self"],
.site-footer--builder [style*="margin-left"],
.site-footer--builder [style*="margin-right"],
.site-footer--builder [style*="position"],
.site-footer--builder [style*="float"] {
  /* Intentionally empty — the selector itself raises specificity so the
     element's own inline style wins over lower-specificity theme rules. */
}

/*
 * 5) Prevent theme's img max-width / display:block from breaking
 *    builder image alignment (e.g. centered or right-aligned images).
 */
.lightcraft-canvas .lcs-node img,
.site-footer--builder .lcs-node img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/*
 * 6) Button inside builder should not inherit theme's centered layout.
 */
.lightcraft-canvas .lcs-node .button,
.lightcraft-canvas .lcs-node [class*="lcb-btn"],
.site-footer--builder .lcs-node .button,
.site-footer--builder .lcs-node [class*="lcb-btn"] {
  margin-left: unset;
  margin-right: unset;
}
