:root {
  --accent: #2A3048;
  --accent-soft: #E9ECF4;
  --ink: #000000;
  --apt-ink: #13130A;
  --apt-yellow: #FEEB8F;
  --font-heading: 'Noto Serif KR', serif;
  --font-body: 'PretendardVariable', 'Pretendard', -apple-system, sans-serif;
  --font-nav: 'Barlow Condensed', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: #22262B; font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: #000; margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 13px; letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: 10px;
}
.section-head { margin-bottom: 36px; }
.section-title { font-size: 30px; line-height: 1.35; }
.section-desc { margin-top: 12px; color: #5B6169; font-size: 15px; line-height: 1.7; }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.eyebrow svg { flex-shrink: 0; width: 18px; height: 18px; }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff !important; font-weight: 700;
  padding: 12px 22px; border-radius: 0; font-size: 14.5px; white-space: nowrap;
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fff; color: #fff !important; font-weight: 700;
  padding: 13px 28px; border-radius: 0; font-size: 15px;
}

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid #13130A; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 34px; height: 34px; color: var(--accent); flex: none; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-family: var(--font-heading); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #000; }
.logo-keyword { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: 12px; flex: 1; font-family: var(--font-nav); }
.main-nav > a { font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; }
.nav-dropdown { position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.nav-dropdown__toggle { background: none; border: 0; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 0; }
.caret { font-size: 10px; }
.nav-dropdown__panel {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #ECECEC; box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  min-width: 240px; padding: 8px 0; flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel { display: flex; }
.nav-dropdown__panel a { padding: 10px 20px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.035em; font-family: var(--font-nav); }
.nav-dropdown__panel a:hover { background: var(--accent-soft); color: var(--accent); }
.header-cta { margin-left: auto; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: #000; display: block; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid #ECECEC; padding: 8px 24px 16px; }
.mobile-nav a { padding: 10px 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid #F3F3F1; }
.mobile-nav__courses-label { padding-top: 10px; font-size: 12px; color: #888; font-weight: 700; }
.mobile-nav.is-open { display: flex; }

/* ---------- apt editorial home hero ---------- */
.apt-hero { position: relative; background: #fff; }
.apt-hero__slides { position: relative; height: 640px; overflow: hidden; }
.apt-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.apt-hero__slide.is-active { opacity: 1; }
.apt-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.apt-hero__panel { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(19,19,10,0.82); color: #fff; padding: 34px 0; }
.apt-hero__panel-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.apt-hero__eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.12em; color: var(--apt-yellow); font-weight: 700; margin-bottom: 12px; }
.apt-hero__title { color: #fff; font-size: clamp(28px, 4vw, 46px); line-height: 1.25; margin-bottom: 10px; }
.apt-hero__desc { color: #D8D6C9; font-size: 14.5px; max-width: 560px; line-height: 1.7; }
.apt-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.apt-hero__cta .btn-cta { background: var(--apt-ink); }
.apt-hero__cta .btn-outline { border-color: #fff; }
.apt-hero__checks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #C9C7B8; margin-top: 18px; }
.apt-hero__checks span::before { content: '✓'; color: var(--apt-yellow); margin-right: 6px; font-weight: 700; }

/* ---------- generic hero (fallback, unused w/ apt_variant=1) ---------- */
.hero { padding: 56px 0 88px; background: #fff; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; background: #F5F4F2; border-radius: 28px; padding: 56px; }
.hero__eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; padding: 7px 16px; margin-bottom: 20px; }
.hero h1 { font-size: 46px; line-height: 1.25; margin-bottom: 18px; color: #000; }
.hero h1 .accent { color: var(--accent); position: relative; }
.hero p { font-size: 16.5px; line-height: 1.8; max-width: 520px; color: #4B5563; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; margin-bottom: 36px; }
.hero__checks { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: #4B5563; border-top: 1px solid #E5E5E5; padding-top: 20px; }
.hero__photo { border-radius: 16px; overflow: hidden; max-width: 600px; margin-left: auto; box-shadow: 0 20px 44px rgba(0,0,0,0.14); }
.hero__photo img { width: 100%; height: 520px; object-fit: cover; display: block; }

/* ---------- apt-service-hero (category / about / cases list) ---------- */
.apt-service-hero { position: relative; height: 460px; display: flex; align-items: flex-end; }
.apt-service-hero__bg { position: absolute; inset: 0; }
.apt-service-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.apt-service-hero__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.94) 92%); }
.apt-service-hero__inner { position: relative; padding-bottom: 40px; width: 100%; }
.apt-service-hero .eyebrow { color: var(--apt-ink); }
.apt-service-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; color: #13130A; line-height: 1.2; }
.apt-service-hero p { margin-top: 14px; color: #33332B; font-size: 15px; max-width: 680px; line-height: 1.75; }

/* ---------- section shells ---------- */
.section { padding: 84px 0; }
.section--tint { background: #F9F7F3; }
.section--dark { background: var(--apt-ink); color: #fff; }
.section--dark h2, .section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow { color: var(--apt-yellow); }

/* ---------- box cards + champions-city hover ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.box-card {
  position: relative; background: #fff; border: 1px solid #ECECEC; padding: 30px 26px;
  transition: transform 0.25s ease; overflow: hidden;
}
.box-card:hover { transform: translateY(-3px); }
.box-card .cc-frame { position: absolute; inset: 0; pointer-events: none; }
.box-card .cc-frame i { position: absolute; background: #000; transition: all 0.6s ease; }
.box-card .cc-frame .t { top: 0; left: 0; width: 0; height: 1px; }
.box-card .cc-frame .r { top: 0; right: 0; width: 1px; height: 0; }
.box-card .cc-frame .b { bottom: 0; right: 0; width: 0; height: 1px; }
.box-card .cc-frame .l { bottom: 0; left: 0; width: 1px; height: 0; }
.box-card:hover .cc-frame .t { width: 100%; }
.box-card:hover .cc-frame .r { height: 100%; }
.box-card:hover .cc-frame .b { width: 100%; }
.box-card:hover .cc-frame .l { height: 100%; }
.box-card__icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 18px; flex-shrink: 0; overflow: hidden; }
.box-card__icon svg { display: block; width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.box-card h3 { font-size: 17px; margin-bottom: 10px; }
.box-card p { font-size: 14px; color: #5B6169; line-height: 1.7; margin: 0; }

/* ---------- why-us zigzag ---------- */
.whyus-list { display: flex; flex-direction: column; gap: 70px; }
.whyus-item { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.whyus-item.is-reverse .whyus-item__text { order: 2; }
.whyus-item.is-reverse .whyus-item__img { order: 1; }
.whyus-item__text h3 { font-size: 22px; margin-bottom: 14px; }
.whyus-item__text p { font-size: 15px; color: #5B6169; line-height: 1.8; margin: 0; }
.whyus-item__img img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; }

/* ---------- apt-service-icons (courses) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #13130A; }
.svc-card { padding: 34px 22px; border-right: 1px solid #E0E0DC; }
.svc-card:last-child { border-right: none; }
.svc-icon { display: block; width: 56px; height: 56px; flex-shrink: 0; overflow: hidden; color: #13130A; margin-bottom: 20px; }
.svc-icon svg { display: block; width: 100%; height: 100%; max-width: 56px; max-height: 56px; }
.svc-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; color: #5B6169; line-height: 1.65; margin: 0 0 14px; }
.svc-card .link-more { font-size: 13px; }

/* ---------- course table ---------- */
.course-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.course-table caption { caption-side: top; }
.course-table th, .course-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #ECECEC; }
.course-table th { font-weight: 700; color: #000; border-bottom: 2px solid #13130A; }
.course-table td:first-child a { font-weight: 700; color: var(--accent); }
.course-table td { color: #5B6169; }

/* ---------- cases (home + list) ---------- */
.cases-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { display: block; background: #fff; }
.case-card__img-wrap { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; }
.case-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.case-card:hover .case-card__img-wrap img { transform: scale(1.05); }
.case-card__body { padding: 16px 2px; }
.case-card__task { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.case-card__kw { font-size: 13px; color: #888; }
.cases-more { margin-top: 40px; text-align: center; }
.link-more { display: inline-block; border-bottom: 1px solid var(--ink); font-weight: 700; font-size: 14.5px; padding-bottom: 2px; }

/* ---------- after / support ---------- */
.after-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- about ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-block__text p { font-size: 15px; color: #4B5563; line-height: 1.85; margin: 0 0 16px; }
.about-block__img img { border-radius: 12px; width: 100%; height: 420px; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E5E5E5; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 20px 4px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-size: 15.5px; font-weight: 700; font-family: var(--font-body); color: #000;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--accent); font-weight: 400; }
.faq-item.is-open .faq-q::after { content: '－'; }
.faq-a { display: none; padding: 0 4px 22px; font-size: 14.5px; color: #5B6169; line-height: 1.8; }
.faq-item.is-open .faq-a { display: block; }

/* ---------- closing ---------- */
.closing { position: relative; height: 650px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.closing__overlay { position: absolute; inset: 0; background: rgba(19,19,19,0.55); }
.closing__inner { position: relative; text-align: center; color: #fff; max-width: 640px; padding: 0 24px; }
.closing__inner h2 { color: #fff; font-size: clamp(18px, 3vw, 28px); margin-bottom: 18px; line-height: 1.4; }
.closing__inner p { font-size: 15.5px; color: #EDEDED; margin-bottom: 30px; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid #E5E5E5; padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-weight: 700; font-size: 16px; }
.footer-info { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #4B5563; list-style: none; margin: 0; padding: 0; }
.footer-biz { font-size: 12.5px; color: #888; display: flex; flex-direction: column; gap: 2px; }
.footer-tel-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff !important; font-weight: 700; padding: 6px 16px; }
.footer-tel-btn svg { width: 14px; height: 14px; }
.footer-copy { font-size: 12.5px; color: #999; margin-top: 6px; }

/* ---------- mobile bar / floating cta ---------- */
.mobile-bar { display: none; list-style: none; margin: 0; padding: 0; }
.mobile-bar li { display: flex; flex: 1; }
.floating-cta {
  position: fixed; bottom: 32px; right: 32px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--apt-yellow); color: var(--apt-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28); z-index: 55;
}
.floating-cta svg { width: 26px; height: 26px; }

/* ---------- category page body ---------- */
.cat-body { padding: 60px 0; max-width: 820px; margin: 0 auto; font-size: 15.5px; color: #333; line-height: 1.9; }
.cat-body h2 { font-size: 21px; margin: 42px 0 14px; }
.cat-body p { margin: 0 0 16px; }
.cat-cta { text-align: center; margin: 40px 0; }

/* ---------- apt-journal case list ---------- */
.journal-head { padding: 64px 0 28px; text-align: center; }
.journal-head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
.journal-head p { margin-top: 12px; color: #5B6169; font-size: 15px; }
.journal-grid { column-count: 3; column-gap: 22px; padding-bottom: 40px; }
.journal-card { display: block; break-inside: avoid; margin-bottom: 22px; }
.journal-card__img { overflow: hidden; border-radius: 4px; }
.journal-card__img img { width: 100%; object-fit: cover; transition: transform 0.3s ease; }
.journal-card:hover .journal-card__img img { transform: scale(1.04); }
.journal-card__body { padding-top: 12px; }
.journal-card__task { font-size: 18px; font-weight: 700; }
.journal-card__kw { font-size: 12.5px; color: #888; margin-top: 4px; }
.journal-card--wide { column-span: none; }

/* ---------- case detail ---------- */
.page-hero { height: 380px; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.5); }
.page-hero__title { position: relative; color: #fff; font-size: 30px; font-weight: 700; font-family: var(--font-heading); text-align: center; padding: 0 20px; }
.kh-single { max-width: 820px; margin: 0 auto; padding: 56px 24px 0; }
.kh-single__thumb { max-width: 720px; aspect-ratio: 16 / 10; margin: 0 auto 40px; border-radius: 12px; overflow: hidden; background: #fff; }
.kh-single__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; cursor: pointer; display: block; }
.kh-single__index { font-size: 13px; color: #888; letter-spacing: 0.04em; margin-bottom: 14px; display: block; }
.kh-single__title { font-size: 27px; font-weight: 700; line-height: 1.35; margin: 0 0 20px; font-family: var(--font-heading); }
.kh-single__related { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.kh-single__related a { font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; }
.kh-single__body { font-size: 15px; color: #333; line-height: 1.9; font-weight: 500; }
.kh-single__body p { margin: 0 0 16px; }
.kh-single__body h2 { font-size: 21px; margin-top: 48px; margin-bottom: 16px; font-family: var(--font-heading); }
.kh-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 32px auto 40px; }
.kh-gallery img { width: 100%; height: 300px; object-fit: cover; object-position: center; background: transparent; border-radius: 12px; cursor: pointer; display: block; }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #E0E0DC; }
.process-item { padding: 28px 20px 28px 24px; border-right: 1px solid #E0E0DC; }
.process-item:first-child { padding-left: 0; }
.process-item:last-child { border-right: none; }
.pnum { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.process-item h3 { font-size: 16px; font-weight: 800; color: #22262B; margin: 0 0 8px; }
.process-item p { font-size: 13.5px; color: #5B6169; line-height: 1.65; margin: 0; }

.related-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 auto; max-width: 1000px; }
.kh-cta { text-align: center; margin: 20px 0; }

/* ---------- lightbox ---------- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.88); display: none; align-items: center; justify-content: center; z-index: 999; }
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 32px; background: none; border: 0; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 34px; background: none; border: 0; cursor: pointer; padding: 12px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- about page ---------- */
.about-hero { padding: 70px 0 44px; background: var(--accent-soft); }
.about-hero h1 { font-size: 34px; }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.branch-card { border: 1px solid #ECECEC; padding: 26px 24px; }
.branch-card h3 { font-size: 16px; margin-bottom: 10px; }
.branch-card p { font-size: 14px; color: #5B6169; line-height: 1.7; margin: 4px 0; }

/* ---------- terms ---------- */
.terms-body { max-width: 780px; margin: 0 auto; padding: 60px 24px 90px; font-size: 14.5px; color: #444; line-height: 1.85; }
.terms-body h2 { font-size: 18px; margin: 34px 0 10px; }

@media (max-width: 1024px) {
  .card-grid, .cases-grid-3, .after-grid { grid-template-columns: repeat(2, 1fr); }
  .about-block, .branch-grid { grid-template-columns: 1fr; }
  .related-row { grid-template-columns: repeat(2, 1fr); }
  .whyus-item { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card:nth-child(2n) { border-right: none; }
  .journal-grid { column-count: 2; }
}

@media (max-width: 767px) {
  .main-nav, .header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .apt-hero__slides { height: 460px; }
  .apt-hero__panel { padding: 22px 0; }
  .card-grid, .cases-grid-3, .after-grid, .related-row { grid-template-columns: 1fr; }
  .about-block { gap: 24px; }
  .whyus-list { gap: 40px; }
  .whyus-item.is-reverse .whyus-item__text,
  .whyus-item.is-reverse .whyus-item__img { order: initial; }
  .whyus-item__img img { height: 220px; }
  .about-block__img img { height: 260px; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .kh-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kh-gallery img { height: 180px; }
  .process-item { padding: 22px 16px 22px 16px; }
  .process-item:first-child { padding-left: 16px; }
  .kh-single__title { font-size: 22px; }
  .section { padding: 56px 0; }
  .closing { height: 480px; }
  .closing__inner h2 { font-size: clamp(16px, 5vw, 22px); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card:nth-child(2n) { border-right: none; }
  .svc-card { border-bottom: 1px solid #E0E0DC; }
  .journal-grid { column-count: 1; }
  .apt-service-hero { height: 340px; }
  .course-table { display: block; overflow-x: auto; white-space: nowrap; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
  .floating-cta { display: none; }
  .mobile-bar__btn { flex: 1; text-align: center; padding: 14px 0; font-weight: 700; font-size: 14.5px; background: var(--accent); color: #fff; }
  .mobile-bar__btn--phone { background: #1B1F2E; }
  body { padding-bottom: 54px; }
}
