/*
 * SimFlex inSight V1
 * Blog archive and single article styles
 */

.simflex-insight {
  --navy:#071a33;
  --blue:#1476d4;
  --ink:#102033;
  --muted:#5e6d7d;
  --line:#dce4ec;
  --bg:#f5f8fb;
  background:#fff;
  color:var(--ink);
}

.simflex-insight .site-header {
  position:relative;
  background:var(--navy);
}

.insight-main {
  min-height:65vh;
}

.insight-heading {
  background:linear-gradient(135deg,#071a33,#123b68);
  color:#fff;
  padding:80px 0;
}

.insight-heading h1 {
  font-size:clamp(40px,5vw,64px);
  margin:12px 0 20px;
}

.insight-heading p {
  max-width:760px;
  line-height:1.8;
  color:#d5e4f2;
}

.insight-eyebrow {
  color:#7fc5ff!important;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
}

.insight-content {
  padding:75px 0 100px;
}

.insight-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
}

.insight-card {
  border:1px solid var(--line);
  background:#fff;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
}

.insight-card:hover {
  transform:translateY(-4px);
  box-shadow:0 15px 35px rgba(7,26,51,.10);
}

.insight-card > a {
  display:block;
  height:100%;
}

.insight-card img {
  display:block;
  width:100%;
  height:210px;
  object-fit:cover;
}

.insight-card-body {
  padding:25px;
}

.insight-card time,
.insight-article-meta {
  color:var(--muted);
  font-size:13px;
}

.insight-card h2 {
  font-size:22px;
  line-height:1.45;
  margin:12px 0;
  overflow-wrap:anywhere;
}

.insight-card p {
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
}

.insight-read-more {
  display:inline-block;
  color:var(--blue);
  font-size:14px;
  font-weight:700;
  margin-top:12px;
}

.insight-pagination {
  margin-top:55px;
  text-align:center;
}

.insight-pagination .nav-links {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
}

.insight-pagination .page-numbers {
  padding:10px 15px;
  border:1px solid var(--line);
}

.insight-pagination .current {
  background:var(--blue);
  color:#fff;
}

.insight-article-header {
  padding:65px 0 55px;
  background:var(--bg);
}

.insight-article-header .container {
  max-width:900px;
}

.insight-breadcrumb {
  font-size:13px;
  color:var(--muted);
  margin-bottom:25px;
}

.insight-article-category {
  color:var(--blue);
  font-size:14px;
  font-weight:700;
}

.insight-article-category a {
  color:var(--blue);
}

.insight-article-header h1 {
  font-size:clamp(30px,4vw,46px);
  line-height:1.3;
  margin:18px 0 24px;
  overflow-wrap:anywhere;
}

.insight-article-meta {
  display:flex;
  gap:20px;
}

.insight-article-layout {
  max-width:900px;
  padding-top:55px;
  padding-bottom:100px;
}

.insight-featured-image {
  margin:0 0 45px;
}

.insight-featured-image img {
  width:100%;
  height:auto;
  display:block;
}

.insight-article-content {
  font-size:17px;
  line-height:1.95;
  overflow-wrap:anywhere;
}

.insight-article-content h2 {
  font-size:30px;
  line-height:1.4;
  margin:55px 0 20px;
}

.insight-article-content h3 {
  font-size:23px;
  line-height:1.45;
  margin:35px 0 15px;
}

.insight-article-content p {
  margin:0 0 24px;
}

.insight-article-content img {
  max-width:100%;
  height:auto;
}

.insight-article-content figure {
  max-width:100%;
  margin:30px 0;
}

.insight-article-content figcaption {
  font-size:13px;
  color:var(--muted);
  text-align:center;
}

.insight-article-content a {
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:3px;
}

.insight-article-content pre {
  max-width:100%;
  overflow-x:auto;
  padding:22px;
  background:#102033;
  color:#eef5fc;
  font-size:14px;
  line-height:1.7;
  border-radius:8px;
}

.insight-article-content code {
  overflow-wrap:anywhere;
}

.insight-article-content .wp-block-table {
  overflow-x:auto;
}

.insight-article-content table {
  border-collapse:collapse;
  width:100%;
  min-width:480px;
  font-size:15px;
}

.insight-article-content th,
.insight-article-content td {
  border:1px solid var(--line);
  padding:12px;
  text-align:left;
}

.insight-article-content th {
  background:var(--bg);
}

.insight-article-content blockquote {
  border-left:4px solid var(--blue);
  padding:15px 25px;
  margin:30px 0;
  background:var(--bg);
}

.insight-article-footer {
  border-top:1px solid var(--line);
  margin-top:65px;
  padding-top:30px;
}

.insight-article-navigation {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:35px;
}

.insight-back-link {
  display:inline-block;
  background:var(--navy);
  color:#fff;
  padding:13px 22px;
  font-size:14px;
  font-weight:700;
}

@media(max-width:900px) {
  .insight-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px) {
  .insight-grid {
    grid-template-columns:1fr;
  }

  .insight-heading {
    padding:55px 0;
  }

  .insight-content {
    padding:45px 0 65px;
  }

  .insight-article-header {
    padding:40px 0;
  }

  .insight-article-layout {
    padding-top:35px;
    padding-bottom:65px;
  }

  .insight-article-content {
    font-size:16px;
  }

  .insight-article-content h2 {
    font-size:25px;
  }

  .insight-article-content h3 {
    font-size:20px;
  }

  .insight-card img {
    height:200px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .insight-card {
    transition:none;
  }

  .insight-card:hover {
    transform:none;
  }
}

/* ==================================================
   SimFlex inSight Category Filter V1
   ================================================== */

.insight-category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
}

.insight-category-filter .insight-filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d9e3ef;
  border-radius: 999px;
  background: #f3f7fc;
  color: #193654;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color .2s,
    border-color .2s,
    color .2s;
}

.insight-category-filter .insight-filter-link:hover,
.insight-category-filter .insight-filter-link:focus-visible {
  background: #e2efff;
  border-color: #1476d4;
  color: #075aaf;
}

.insight-category-filter .insight-filter-link.is-active {
  background: #1476d4;
  border-color: #1476d4;
  color: #fff;
  font-weight: 700;
}

.insight-category-filter .insight-filter-link:focus-visible {
  outline: 3px solid rgba(20,118,212,.35);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .insight-category-filter {
    gap: 8px;
    margin-bottom: 24px;
  }

  .insight-category-filter .insight-filter-link {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .insight-category-filter .insight-filter-link {
    transition: none;
  }
}

/* SEO-06: inSight typography alignment */
.insight-article-content {
    font-family: Arial, "Noto Sans KR", sans-serif;
}

.insight-article-content p,
.insight-article-content li,
.insight-article-content blockquote,
.insight-article-content table {
    font-family: inherit;
}

/* SEO-06: Unified inSight typography */
.insight-article-content,
.insight-article-content p,
.insight-article-content li,
.insight-article-content h2,
.insight-article-content h3 {
    font-family: Arial, "Noto Sans KR", sans-serif;
}


/* SEO-06: Article header and navigation V2 */
body.simflex-article .insight-article-header {
  background: #10243a;
  padding: 65px 0 55px;
}

body.simflex-article .insight-article-header h1 {
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
}

body.simflex-article .insight-breadcrumb,
body.simflex-article .insight-breadcrumb a {
  color: #c6d7e8;
}

body.simflex-article .insight-article-category,
body.simflex-article .insight-article-category a {
  color: #9ed0ff;
}

body.simflex-article .insight-article-meta,
body.simflex-article .insight-article-meta time {
  color: #c6d7e8;
}

body.simflex-article .insight-article-footer {
  background: transparent;
  border-top: 1px solid #dce5ee;
  margin-top: 65px;
  padding: 30px 0 0;
}

body.simflex-article .insight-article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

body.simflex-article .insight-nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 105px;
  padding: 20px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #f3f7fb;
  color: #10243a;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

body.simflex-article .insight-nav-card:hover {
  background: #e7f1fa;
  border-color: #83b7e3;
}

body.simflex-article .insight-nav-card:focus-visible,
body.simflex-article .insight-back-link:focus-visible {
  outline: 3px solid #1476d4;
  outline-offset: 3px;
}

body.simflex-article .insight-nav-direction {
  font-size: 17px;
  font-weight: 800;
}

body.simflex-article .insight-nav-title {
  font-size: 13px;
  line-height: 1.5;
  color: #52657a;
}

body.simflex-article .insight-nav-next {
  text-align: right;
}

body.simflex-article .insight-back-wrap {
  display: flex;
  justify-content: center;
}

body.simflex-article .insight-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 10px;
  background: #10243a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

body.simflex-article .insight-back-link:hover {
  background: #174b77;
}

body.simflex-article .insight-back-icon {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 600px) {
  body.simflex-article .insight-article-header {
    padding: 40px 0;
  }

  body.simflex-article .insight-article-navigation {
    grid-template-columns: 1fr;
  }

  body.simflex-article .insight-nav-empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.simflex-article .insight-nav-card {
    transition: none;
  }
}

/* SEO-06: Article heading size 80% */
body.simflex-article .insight-article-header h1 {
  font-size: clamp(24px, 3.2vw, 37px);
}

/* SEO-06: Fix article header overlapping content */
body.simflex-article .insight-article-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
}
