﻿:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --text: #13213c;
  --muted: #5a6786;
  --line: #dde4f4;
  --brand: #2563eb;
  --brand-strong: #1e40af;
  --accent: #f59e0b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 12px 30px rgba(10, 30, 80, 0.12);
  --container: min(1240px, 94vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 40%, #f4f7ff 100%);
  line-height: 1.5;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: #111827;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
}

.sr-only {
  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;
  backdrop-filter: blur(8px);
  background: rgba(244, 247, 255, 0.85);
  border-bottom: 1px solid rgba(179, 194, 226, 0.35);
}

.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f2f75;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  color: #23355f;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--brand);
}

.search input {
  width: 100%;
  border: 1px solid #cad7f1;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #243254;
}

.search input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--brand);
}

.hero {
  position: relative;
  isolation: isolate;
  height: clamp(320px, 38vw, 430px);
  overflow: hidden;
  background: linear-gradient(120deg, #2e426e 0%, #41598e 48%, #6b739a 100%);
}

.hero-blur-bg,
.hero-main-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blur-bg {
  z-index: 0;
}

.hero-main-image {
  z-index: 1;
}

.hero-overlay {
  z-index: 2;
}

.hero-blur-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  filter: blur(18px) brightness(0.64) saturate(0.9);
  opacity: 0.56;
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 16, 38, 0.83) 0%, rgba(11, 24, 54, 0.62) 34%, rgba(16, 31, 62, 0.26) 62%, rgba(22, 33, 59, 0.14) 100%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.2) 0%, rgba(9, 16, 34, 0.34) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  padding: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2vw + 1.2rem, 3rem);
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 8px 24px rgba(5, 10, 24, 0.5);
}

.hero p {
  margin: 14px 0 0;
}

.hero .hero-note {
  opacity: 0.9;
  font-size: 0.95rem;
}

.hero-subtitle,
.hero-content > p {
  font-size: clamp(1rem, 1vw + 0.55rem, 1.25rem);
  opacity: 0.95;
  max-width: 620px;
  text-shadow: 0 4px 16px rgba(5, 10, 24, 0.42);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-search {
  margin: 26px auto 0;
  width: min(760px, 92%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-search input {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.93);
  color: #1d2d52;
}

.hero-search input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #16306c;
}

.btn-secondary:hover {
  background: #fff;
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.hero-guide-link {
  display: inline-block;
  margin-top: 16px;
  color: #fef7e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section {
  padding: 52px 0;
}

.quick-links {
  padding: 28px 0 8px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.centered {
  justify-content: center;
}

.section-title {
  margin: 0;
  font-size: clamp(1.2rem, 1vw + 1rem, 1.8rem);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: #29406f;
}

.card-grid {
  display: grid;
  gap: 14px;
}

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

.tool-card,
.guide-card,
.category-card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: clip;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card-link {
  display: block;
}

.tool-card:hover,
.guide-card-link:hover,
.category-card:hover,
.feature-card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: #b5c6ee;
  box-shadow: 0 20px 40px rgba(10, 30, 80, 0.2);
}

.thumb {
  display: block;
  position: relative;
  height: 132px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-a {
  background-image: linear-gradient(120deg, #0ea5e9, #1d4ed8);
}

.thumb-b {
  background-image: linear-gradient(120deg, #fb7185, #f59e0b);
}

.thumb-c,
.thumb-f {
  background-image: linear-gradient(120deg, #1e3a8a, #0ea5e9);
}

.thumb-d {
  background-image: linear-gradient(120deg, #14b8a6, #2563eb);
}

.thumb-e {
  background-image: linear-gradient(120deg, #f59e0b, #f97316);
}

.card-content {
  padding: 14px;
}

.card-content h3 {
  margin: 0;
  font-size: 1.03rem;
}

.card-content p {
  margin: 8px 0 0;
  color: #4f5f80;
  font-size: 0.94rem;
}

@media (min-width: 1025px) {
  .guides-page .header-inner {
    grid-template-columns: auto 1fr;
  }

  .guides-page .main-nav {
    justify-content: flex-end;
  }

  .guide-detail-page .header-inner {
    grid-template-columns: auto 1fr;
  }

  .guide-detail-page .main-nav {
    justify-content: flex-end;
  }

  .guide-detail-page .site-header .container,
  .guide-detail-page #main.section > .container,
  .guide-detail-page .site-footer .container,
  .guides-page .site-header .container,
  .guides-page .guides-hero .container,
  .guides-page #main .container,
  .guides-page .site-footer .container,
  .site-header .container,
  .hero .container,
  .ad-slot .container,
  .popular-tools .container,
  .all-tools .container,
  .guides .container,
  .why .container {
    width: min(1480px, 96vw);
  }

  .hero-main-image img {
    object-position: 38% center;
  }

  .hero-overlay {
    background:
      linear-gradient(270deg, rgba(123, 137, 183, 0.32) 0%, rgba(123, 137, 183, 0.14) 18%, rgba(123, 137, 183, 0) 34%),
      linear-gradient(90deg, rgba(8, 16, 38, 0.83) 0%, rgba(11, 24, 54, 0.62) 34%, rgba(16, 31, 62, 0.26) 62%, rgba(22, 33, 59, 0.14) 100%),
      linear-gradient(180deg, rgba(8, 14, 28, 0.2) 0%, rgba(9, 16, 34, 0.34) 100%);
  }

  .card-grid {
    gap: 18px;
  }

  .thumb {
    height: 168px;
  }

  .card-content h3 {
    font-size: 1.08rem;
  }

  .card-content p {
    font-size: 0.98rem;
  }

  .guide-detail-page .guide-hero {
    height: clamp(320px, 38vw, 430px);
    aspect-ratio: auto;
  }
}

.guide-summary {
  white-space: pre-line;
}

.guide-summary-2 {
  margin-top: 4px;
}

.guide-card-cta {
  margin: 10px 0 0;
  color: #2253c6;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.guide-card-link:hover .guide-card-cta {
  color: #1d4ed8;
  transform: translateX(2px);
}

.tool-card:hover .text-link,
.guide-card-link:hover .text-link {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 18px;
}

.guide-filter-btn {
  border: 1px solid #cdd8ef;
  border-radius: 999px;
  background: #ffffff;
  color: #2f4573;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.guide-filter-btn.is-active {
  background: #2459d6;
  border-color: #2459d6;
  color: #ffffff;
}

.guide-catalog-sections {
  display: grid;
  gap: 28px;
}

.guide-catalog-section .section-header {
  margin-bottom: 12px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.text-link {
  color: #2253c6;
  font-weight: 700;
}

.ad-slot {
  padding: 4px 0;
}

.ad-box {
  border: 1px dashed #aab6d4;
  border-radius: 10px;
  min-height: 88px;
  display: grid;
  place-items: center;
  background: #fdfefe;
  color: #6d7899;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.category-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

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

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

.category-card {
  padding: 16px;
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.category-card h3 {
  margin: 0;
}

.cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.cat-icon::before {
  content: "\25CF";
}

.cat-icon--life {
  background: linear-gradient(135deg, #2f80ed, #56ccf2);
}

.cat-icon--life::before {
  content: "\2302";
}

.cat-icon--edu {
  background: linear-gradient(135deg, #3f51b5, #7986cb);
}

.cat-icon--edu::before {
  content: "\270E";
}

.cat-icon--work {
  background: linear-gradient(135deg, #f2994a, #f2c94c);
}

.cat-icon--work::before {
  content: "\2699";
}

.cat-icon--create {
  background: linear-gradient(135deg, #9b51e0, #56ccf2);
}

.cat-icon--create::before {
  content: "\2726";
}

.category-card ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.category-card li a {
  color: #3d537f;
}

.feature-card {
  padding: 18px;
  text-align: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #f59e0b);
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  margin: 6px 0 0;
  color: #556485;
}

.meta {
  color: #6c7897;
  font-size: 0.88rem;
}

.site-footer {
  margin-top: 42px;
  background: linear-gradient(180deg, #1e2f59 0%, #182544 100%);
  color: #dce5ff;
  padding: 38px 0;
}

.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.footer-links a {
  color: #e7edff;
}

.copyright {
  margin: 0;
  font-size: 0.86rem;
  color: #b8c4e6;
}

.guide-article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 34px);
}

.guide-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.guide-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-hero-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(14px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.04) 0%, rgba(14, 24, 44, 0.45) 100%);
}

.guide-kicker {
  margin: 0 0 8px;
  color: #d9e5ff;
  font-weight: 700;
  font-size: 0.92rem;
}

.guide-article h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 1.1vw + 1.2rem, 2rem);
}

.guide-lead {
  margin: 10px 0 0;
  color: #4b5f8a;
}

.guide-cta-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-block {
  margin-top: 28px;
}

.guide-block h2 {
  margin: 0;
  font-size: 1.22rem;
}

.guide-block p {
  margin: 10px 0 0;
  color: #4a5b84;
}

.guide-list {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #2a3b60;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2vw, 26px);
}

.contact-header h1 {
  margin: 0;
  font-size: clamp(1.45rem, 1.1vw + 1.2rem, 2rem);
}

.contact-header p {
  margin: 10px 0 0;
  color: #4e5f87;
}

.form-grid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

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

.field label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #253d6d;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c8d5f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #1c2d55;
  font: inherit;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  border-color: var(--brand);
}

.check-row {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: start;
  color: #32466f;
  font-size: 0.93rem;
}

.submit-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.info-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #2f436d;
  display: grid;
  gap: 7px;
}

.info-note {
  margin: 12px 0 0;
  color: #5c6b8e;
  font-size: 0.92rem;
}

.policy-article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 32px);
}

.policy-header h1 {
  margin: 0;
  font-size: clamp(1.45rem, 1.1vw + 1.2rem, 2rem);
}

.policy-meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.policy-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid #d7e1f7;
  color: #2b467d;
  font-size: 0.86rem;
  font-weight: 700;
}

.policy-intro {
  margin: 14px 0 0;
  color: #4f6188;
}

.policy-section {
  margin-top: 26px;
}

.policy-section h2 {
  margin: 0;
  font-size: 1.18rem;
}

.policy-section p,
.policy-section li {
  color: #2c4069;
}

.policy-section p {
  margin: 10px 0 0;
}

.policy-section ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.tools-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(220px, 32vw, 420px);
  overflow: hidden;
  background: linear-gradient(120deg, #5679c9 0%, #6f7ecb 42%, #a384ac 75%, #d5a07d 100%);
}

.tools-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.tools-hero-content {
  min-height: inherit;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: clamp(20px, 3vw, 36px) 0;
  color: #ffffff;
}

.tools-hero-content h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw + 1rem, 2.8rem);
}

.tools-hero-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.tools-hero-file {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  background: rgba(8, 20, 44, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  width: fit-content;
}

.guides-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.guides-page .site-header,
.guides-page .guides-hero,
.guides-page .site-footer {
  flex: 0 0 auto;
}

.guides-page .guides-hero {
  position: relative;
  min-height: clamp(380px, 46vh, 520px);
}

.guides-page .guides-hero img {
  filter: brightness(0.74) saturate(0.92);
}

.guides-page .guides-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 38, 0.46) 0%, rgba(11, 24, 54, 0.28) 40%, rgba(18, 32, 62, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 14, 32, 0.12) 0%, rgba(8, 16, 36, 0.3) 100%);
  pointer-events: none;
}

.guides-page .guides-hero .tools-hero-content {
  position: relative;
  z-index: 1;
}

.guides-page .guides-hero .tools-hero-content h1,
.guides-page .guides-hero .tools-hero-content p {
  text-shadow: 0 4px 14px rgba(5, 10, 24, 0.4);
}

.guides-page #main.section {
  flex: 1 1 auto;
  min-height: 0;
  padding: 52px 0;
}

.guides-page .site-footer {
  margin-top: 0;
  padding: 12px 0;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .search {
    max-width: 420px;
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .guides-page .guides-hero {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .hero {
    height: 360px;
  }

  .tools-hero {
    min-height: 240px;
  }

  .hero h1 {
    white-space: pre-line;
    word-break: keep-all;
  }

  .hero-content {
    max-width: none;
    padding: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .card-grid-3,
  .feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .guide-cta-row {
    flex-direction: column;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    aspect-ratio: 4 / 3;
  }
}
