/* ============================================================
   카드깡 가이드 - style.css
   Light theme / Primary #2563EB (Blue)
============================================================ */

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  color: #0F172A;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* VARIABLES */
:root {
  --blue: #2563EB;
  --blue-l: #3B82F6;
  --blue-bg: #EFF6FF;
  --blue-dark: #1E40AF;
  --cyan: #0891B2;
  --cyan-bg: #E0F7FA;
  --amber: #D97706;
  --amber-bg: #FEF3C7;
  --t1: #0F172A;
  --t2: #475569;
  --t3: #94A3B8;
  --bg: #fff;
  --bg2: #F8FAFC;
  --bdr: #E2E8F0;
  --s1: 0 2px 8px rgba(15, 23, 42, .06);
  --s2: 0 4px 20px rgba(15, 23, 42, .09);
  --s3: 0 8px 36px rgba(37, 99, 235, .14);
  --r: 14px;
  --rl: 22px;
  --cw: 1160px;
  --py: 88px;
}

/* LAYOUT */
.wrap {
  max-width: var(--cw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--py) 0;
}

.sec-alt {
  background: var(--bg2);
}

.tc {
  text-align: center;
}

.sec-hd {
  margin-bottom: 3rem;
}

/* HEADINGS */
h2.sec-ttl {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--t1);
}

h2.sec-ttl em {
  color: var(--blue);
  font-style: normal;
}

.sec-sub {
  font-size: .93rem;
  color: var(--t3);
  margin-bottom: 2.8rem;
}

.sec-ttl-line {
  display: inline-block;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 4px;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 2px 12px rgba(37, 99, 235, .08);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-txt {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.4px;
}

.logo-bdg {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
}

.nav-menu {
  display: flex;
  gap: 14px;
}

.nav-menu a {
  font-size: .80rem;
  font-weight: 600;
  color: var(--t2);
  transition: color .18s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: #fff;
  font-size: .80rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background .18s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--t1);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--bdr);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  z-index: 99;
  padding: 8px 0;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 13px 24px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--t2);
  transition: background .15s, color .15s;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: var(--blue-bg);
  color: var(--blue);
}

/* ── HERO ── */
#sec1 {
  padding: 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #fff 55%, #E0F7FA 100%);
  min-height: 560px;
  display: flex;
  align-items: stretch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  align-items: center;
  gap: 48px;
}

.hero-content {
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, .18);
}

h1.hero-ttl {
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: var(--t1);
}

h1.hero-ttl .hl {
  color: var(--blue);
}

.hero-desc {
  font-size: .97rem;
  color: var(--t2);
  line-height: 1.85;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
  transition: all .2s;
}

.btn-p:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--blue);
  font-size: .92rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid var(--blue);
  transition: all .2s;
}

.btn-o:hover {
  background: var(--blue-bg);
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--bdr);
}

.stat-n {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}

.stat-l {
  font-size: .73rem;
  color: var(--t3);
  margin-top: 4px;
}

/* HERO IMAGE ZONE */
.hero-img-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  overflow: hidden;
  border-radius: 0 var(--rl) var(--rl) 0;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-img-zone:empty::after,
.hero-img-zone img[src=""]::after {
  content: '이미지 준비 중';
}

.hero-img-zone img[src=""] {
  display: none;
}

/* ── GRIDS ── */
.g2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ── GENERAL CARD ── */
.card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--s2);
  padding: 28px 24px;
  border: 1px solid var(--bdr);
  border-top: 3px solid var(--blue);
  transition: transform .22s, box-shadow .22s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--s3);
}

.card-ico {
  width: 52px;
  height: 52px;
  background: var(--blue-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--t1);
}

.card p {
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.78;
}

/* ── REGION CARD (종류별) ── */
.rc {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--s1);
  padding: 22px 20px;
  border: 1px solid var(--bdr);
  border-left: 4px solid var(--blue);
  transition: box-shadow .22s;
}

.rc:hover {
  box-shadow: var(--s2);
}

.rc h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rc p {
  font-size: .86rem;
  color: var(--t2);
  line-height: 1.78;
}

.tag {
  display: inline-block;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: .71rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 8px 3px 0 0;
}

.tag-n {
  background: var(--cyan-bg);
  color: var(--cyan);
}

.tag-a {
  background: var(--amber-bg);
  color: var(--amber);
}

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 8px;
}

.steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 6px;
}

.step-num {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .30);
}

.step h3 {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--t1);
}

.step p {
  font-size: .8rem;
  color: var(--t2);
  line-height: 1.65;
}

/* ── WARNING CARD ── */
.warn-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--s1);
  padding: 24px 22px;
  border: 1px solid var(--bdr);
  border-left: 4px solid var(--amber);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.warn-ico {
  width: 42px;
  height: 42px;
  background: var(--amber-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warn-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--t1);
}

.warn-card p {
  font-size: .87rem;
  color: var(--t2);
  line-height: 1.75;
}

/* ── INFO BOX ── */
.ibox {
  background: var(--blue-bg);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 22px;
  margin: 20px 0;
}

.ibox strong {
  font-size: .92rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 5px;
}

.ibox p {
  font-size: .87rem;
  color: var(--t2);
  line-height: 1.75;
}

/* ── REGION INFO BOX ── */
.ri-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.ri-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--bdr);
  font-size: .9rem;
  color: var(--t2);
}

.ri-list li:last-child {
  border-bottom: none;
}

.ri-list li strong {
  color: var(--t1);
  font-weight: 700;
  min-width: 80px;
  flex-shrink: 0;
}

.ri-text h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 10px;
  margin-top: 24px;
}

.ri-text h3:first-child {
  margin-top: 0;
}

.ri-text p {
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ── FAQ ACCORDION ── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--t1);
  text-align: left;
  transition: background .18s;
}

.faq-q:hover {
  background: var(--bg2);
}

.faq-q.open {
  background: var(--blue-bg);
  color: var(--blue);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform .25s;
}

.faq-q.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.8;
  border-top: 1px solid var(--bdr);
  padding-top: 14px;
}

.faq-a.show {
  display: block;
}

/* ── SEO TEXT SECTIONS ── */
.seo-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.seo-wrap h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--t1);
  margin: 2.2rem 0 .8rem;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}

.seo-wrap h3:first-child {
  margin-top: 0;
}

.seo-wrap p {
  font-size: .93rem;
  color: var(--t2);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.seo-wrap ul {
  margin: .5rem 0 1.2rem 0;
}

.seo-wrap ul li {
  font-size: .91rem;
  color: var(--t2);
  line-height: 1.8;
  padding: 4px 0 4px 18px;
  position: relative;
}

.seo-wrap ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

/* ── DISTRICT BLOCK (종류별 백과) ── */
.district-block {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--s1);
  padding: 28px;
  border: 1px solid var(--bdr);
  margin-bottom: 20px;
  border-top: 3px solid var(--blue);
}

.district-block h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  border-left: none;
}

.district-block p {
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.85;
  margin-bottom: 10px;
}

.district-block .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ── TIP BOX ── */
.tip-box {
  background: var(--cyan-bg);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.tip-box strong {
  font-size: .9rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
  margin-bottom: 5px;
}

.tip-box p {
  font-size: .86rem;
  color: var(--t2);
  line-height: 1.75;
}

/* ── CHECK LIST ── */
.check-list li {
  font-size: .9rem;
  color: var(--t2);
  line-height: 1.8;
  padding: 5px 0 5px 26px;
  position: relative;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7.5' cy='7.5' r='7.5' fill='%232563EB'/%3E%3Cpath d='M4.5 7.5l2 2 4-4' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* ── FOOTER ── */
.site-footer {
  background: #000000;
  color: #94A3B8;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-txt {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: block;
}

.footer-brand .logo-bdg {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: .83rem;
  color: #64748B;
  line-height: 1.75;
}

.footer-col h4 {
  font-size: .88rem;
  font-weight: 800;
  color: #E2E8F0;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: .82rem;
  color: #64748B;
  transition: color .18s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: .78rem;
  color: #475569;
  line-height: 1.65;
}

.footer-disclaimer {
  font-size: .78rem;
  color: #334155;
  line-height: 1.65;
  max-width: 640px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 28px;
  }

  h1.hero-ttl {
    font-size: 2.2rem;
  }

  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps::before {
    display: none;
  }

  .ri-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  #sec1 {
    min-height: auto;
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }

  .hero-content {
    padding: 48px 0 32px;
    text-align: center;
  }

  h1.hero-ttl {
    font-size: 2rem;
    letter-spacing: -.5px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-badge {
    margin: 0 auto 16px;
  }

  .hero-img-zone {
    display: block;
    border-radius: 0;
    min-height: auto;
    overflow: visible;
  }

  .hero-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: none;
  }

  .g3,
  .g2 {
    grid-template-columns: 1fr;
  }

  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  :root {
    --py: 56px;
  }

  h2.sec-ttl {
    font-size: 1.65rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .warn-card {
    flex-direction: column;
    gap: 10px;
  }
}
.hero-update{font-size:13px;color:#64748B;margin:-6px 0 22px}
