/* ═══════════════════════════════════════════════════
   SEO Subpages — Shared Stylesheet
   7개 키워드별 독립 정적 HTML 페이지 공통 스타일
   wenvidia.com
   ═══════════════════════════════════════════════════ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* ─── Design System ─── */
:root {
  --blue: #192E7A;
  --blue-light: rgba(25, 46, 122, 0.1);
  --green: #03C75A;
  --white: #FFFFFF;
  --gray-bg: #F5F5F7;
  --gray-border: #ECECEC;
  --text-dark: #1a1a2e;
  --text-body: #555555;
  --text-muted: #888888;
  --max-width: 1200px;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(25, 46, 122, 0.08);
  --shadow-lg: 0 16px 48px rgba(25, 46, 122, 0.12);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Base ─── */
body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0f1f5c;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}


/* ═══════════ HEADER ═══════════ */
.seo-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(245, 245, 247, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.seo-header:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.seo-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.seo-logo:hover {
  color: inherit;
}

.seo-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gray-border);
}

.seo-logo-text {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.seo-logo-badge {
  color: var(--blue);
  font-size: 10px;
  border: 1px solid rgba(25, 46, 122, 0.2);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}

.seo-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.seo-nav a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}

.seo-nav a:hover {
  color: var(--blue);
  background: rgba(25, 46, 122, 0.04);
}

/* ─── Subpage Header Dropdown ─── */
.seo-dropdown-wrap { position: relative; }
.seo-dropdown-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; color: var(--text-body);
  padding: 6px 10px; font-weight: 500; border-radius: 6px;
  transition: all 0.2s; display: flex; align-items: center; gap: 4px;
}
.seo-dropdown-btn:hover { color: var(--blue); background: rgba(25, 46, 122, 0.04); }
.seo-dropdown-arrow { font-size: 10px; transition: transform 0.2s; }
.seo-dropdown-arrow.open { transform: rotate(180deg); }

.seo-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 12px; box-shadow: 0 16px 48px rgba(25,46,122,0.12);
  padding: 12px 0; min-width: 240px; z-index: 1001;
  display: none;
}
.seo-dropdown.open { display: block; animation: seoDropIn 0.15s ease; }
@keyframes seoDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.seo-dropdown-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--text-muted);
  padding: 6px 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.seo-dropdown-item {
  display: block; font-size: 14px; color: var(--text-body);
  padding: 8px 20px; text-decoration: none; transition: all 0.15s; font-weight: 500;
}
.seo-dropdown-item:hover { background: rgba(25, 46, 122, 0.04); color: var(--blue); }
.seo-dropdown-item.active { color: var(--blue); font-weight: 700; }
.seo-dropdown-divider { height: 1px; background: var(--gray-border); margin: 6px 16px; }

.seo-cta-btn {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}

.seo-cta-btn:hover {
  background: #0f1f5c;
  color: var(--white) !important;
}


/* ═══════════ HERO ═══════════ */
.seo-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.seo-hero .hero-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.seo-hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin: 0 auto;
}

.seo-hero .hero-description {
  font-size: 18px;
  color: var(--text-body);
  max-width: 700px;
  margin: 20px auto 0;
  line-height: 1.8;
}

.seo-hero .hero-cta {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 12px;
  margin-top: 32px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(3, 199, 90, 0.3);
}

.seo-hero .hero-cta:hover {
  background: #02b050;
  box-shadow: 0 6px 24px rgba(3, 199, 90, 0.4);
  transform: translateY(-2px);
  color: var(--white) !important;
}


/* ═══════════ CONTENT ═══════════ */
.seo-content {
  padding: 0;
}

.seo-content .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* 짝수 섹션 배경색 교대 — JS로 .seo-content-block 클래스 사용 */
.seo-content-block {
  padding: 64px 0;
}

.seo-content-block:nth-child(even) {
  background: var(--gray-bg);
}

.seo-content-block:nth-child(odd) {
  background: var(--white);
}

.seo-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.4;
}

.seo-content h2:first-child {
  margin-top: 0;
}

/* container 안에서 H2 간격 (블록 분리 안 쓸 때 폴백) */
.seo-content .container > h2:not(:first-child) {
  margin-top: 56px;
}

.seo-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 36px;
  margin-bottom: 12px;
  line-height: 1.4;
  padding-left: 16px;
  border-left: 3px solid var(--green);
}

.seo-content p {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.seo-content p a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-content p a:hover {
  color: #0f1f5c;
}

.seo-content ul,
.seo-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.seo-content li {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 8px;
}

.seo-content strong {
  color: var(--text-dark);
  font-weight: 700;
}

.highlight-box {
  background: rgba(25, 46, 122, 0.03);
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(25, 46, 122, 0.1);
  margin: 28px 0;
}

.highlight-box p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 0;
}

.highlight-box p:not(:last-child) {
  margin-bottom: 12px;
}


/* ═══════════ INLINE ARTICLE CTA ═══════════ */
.seo-inline-article {
  margin: 48px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.seo-inline-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.seo-inline-article a {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.seo-inline-article img {
  width: 220px;
  min-height: 140px;
  object-fit: cover;
  flex-shrink: 0;
}

.seo-inline-article-info {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.seo-inline-article-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.seo-inline-article-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0 0 12px;
}

.seo-inline-article-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.seo-inline-article-meta .arrow {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-left: 8px;
  transition: background 0.2s;
}

.seo-inline-article:hover .seo-inline-article-meta .arrow {
  background: #02b050;
}

@media (max-width: 768px) {
  .seo-inline-article a {
    flex-direction: column;
  }

  .seo-inline-article img {
    width: 100%;
    height: 180px;
  }

  .seo-inline-article-info {
    padding: 20px 24px;
  }

  .seo-inline-article-info h4 {
    font-size: 16px;
  }
}


/* ═══════════ AUTHOR (E-E-A-T) ═══════════ */
.seo-author {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.seo-author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  object-fit: cover;
  flex-shrink: 0;
}

.seo-author-info {
  flex: 1;
}

.seo-author-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.seo-author-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.seo-author-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.seo-author-stat {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}


/* ═══════════ ARTICLE CARDS ═══════════ */
.seo-articles {
  padding: 60px 0;
  background: var(--gray-bg);
}

.seo-articles h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.seo-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.seo-article-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.seo-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.seo-article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.seo-article-card-body {
  padding: 20px;
}

.seo-article-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-article-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-article-card .hearts {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}


/* ═══════════ FAQ ACCORDION ═══════════ */
.seo-faq {
  padding: 60px 0;
}

.seo-faq h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.seo-faq-item {
  border-bottom: 1px solid var(--gray-border);
  padding: 24px 0;
}

.seo-faq-item:first-of-type {
  border-top: 1px solid var(--gray-border);
}

.seo-faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.5;
  user-select: none;
}

.seo-faq-item h3::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.seo-faq-item.open h3::after {
  content: "\2212"; /* − */
}

.seo-faq-answer {
  display: none;
  padding-top: 12px;
}

.seo-faq-answer p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
}

.seo-faq-item.open .seo-faq-answer {
  display: block;
}


/* ═══════════ CTA SECTION ═══════════ */
.seo-cta-section {
  background: var(--blue);
  padding: 60px 0;
  text-align: center;
  margin-top: 40px;
}

.seo-cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.seo-cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 12px;
  line-height: 1.6;
}

.seo-cta-section .cta-button {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  font-size: 20px;
  font-weight: 700;
  padding: 18px 48px;
  border-radius: 12px;
  margin-top: 28px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(3, 199, 90, 0.3);
}

.seo-cta-section .cta-button:hover {
  background: #02b050;
  box-shadow: 0 6px 24px rgba(3, 199, 90, 0.4);
  transform: translateY(-2px);
  color: var(--white) !important;
}


/* ═══════════ FOOTER ═══════════ */
.seo-footer {
  padding: 60px 0;
  background: var(--gray-bg);
}

.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.seo-footer-links a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s;
}

.seo-footer-links a:hover {
  color: var(--blue);
}

.seo-footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.seo-footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.seo-footer-bottom a:hover {
  color: var(--blue);
}

.seo-footer-bottom p {
  margin-top: 8px;
}


/* ═══════════ RESPONSIVE — TABLET ═══════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  .seo-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ═══════════ RESPONSIVE — MOBILE ═══════════ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .seo-header-inner {
    padding: 0 20px;
  }

  /* Header — hide nav on mobile */
  .seo-nav {
    display: none;
  }

  .seo-logo-badge {
    display: none;
  }

  /* Hero */
  .seo-hero {
    padding: 100px 0 48px;
  }

  .seo-hero h1 {
    font-size: 28px;
    letter-spacing: -0.3px;
  }

  .seo-hero .hero-description {
    font-size: 16px;
  }

  .seo-hero .hero-cta {
    font-size: 16px;
    padding: 14px 32px;
  }

  /* Content */
  .seo-content {
    padding: 40px 20px;
  }

  .seo-content h2 {
    font-size: 22px;
    margin-top: 36px;
  }

  .seo-content h3 {
    font-size: 19px;
  }

  .seo-content p {
    font-size: 15px;
  }

  .seo-content li {
    font-size: 15px;
  }

  .highlight-box {
    padding: 20px;
  }

  /* Author */
  .seo-author {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .seo-author-stats {
    justify-content: center;
  }

  /* Article cards */
  .seo-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .seo-article-card img {
    height: 200px;
  }

  /* FAQ */
  .seo-faq-item h3 {
    font-size: 16px;
  }

  .seo-faq-answer p {
    font-size: 15px;
  }

  /* CTA section */
  .seo-cta-section {
    padding: 48px 0;
  }

  .seo-cta-section h2 {
    font-size: 24px;
  }

  .seo-cta-section p {
    font-size: 16px;
  }

  .seo-cta-section .cta-button {
    font-size: 17px;
    padding: 16px 36px;
  }

  /* Footer */
  .seo-footer {
    padding: 40px 0;
  }

  .seo-footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
