/* AA Merchant Services — Regent: navy + brass-gold, IBM Plex Sans KR / Noto Sans KR / IBM Plex Mono. */

@font-face {
  font-family: "Noto Sans KR Site";
  src: url("/assets/fonts/NotoSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans KR Site";
  src: url("/assets/fonts/NotoSansKR-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans KR Site";
  src: url("/assets/fonts/IBMPlexSansKR-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans KR Site";
  src: url("/assets/fonts/IBMPlexSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans KR Site";
  src: url("/assets/fonts/IBMPlexSansKR-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono Site";
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono Site";
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #12213c;
  --navy: #1c3765;
  --navy-2: #25406f;
  --navy-deep: #0e1b32;
  --sky: #e8eef8;
  --paper: #f7f9fd;
  --gold: #a9824f;
  --gold-line: #c9a869;
  --neutral: #5b6883;
  --error: #b00020;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sky);
  font-family: "Noto Sans KR Site", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Plex Sans KR Site", sans-serif;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; font-weight: 400; }

strong { font-weight: 600; color: var(--ink); }

.mono {
  font-family: "Plex Mono Site", monospace;
  font-variant-numeric: tabular-nums;
}

main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
}

.top-bar {
  background: var(--navy-deep);
  color: #cddaea;
  font-size: 0.85rem;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: "Plex Mono Site", monospace;
  letter-spacing: 0.01em;
}

.main-header {
  background: var(--paper);
  border-bottom: 1px solid var(--gold-line);
}
.main-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: "Plex Sans KR Site", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.main-nav > ul > li > a:hover { color: var(--navy); }
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  box-shadow: 0 12px 28px rgba(18, 33, 60, 0.14);
  min-width: 240px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 8px 0;
  flex-direction: column;
  gap: 0;
  z-index: 10;
}
.main-nav .has-dropdown:hover .dropdown { display: flex; }
.main-nav .dropdown li { padding: 0; }
.main-nav .dropdown a {
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 0.92rem;
}
.main-nav .dropdown a:hover,
.main-nav .dropdown a.active { background: var(--sky); color: var(--navy); }

.lang-switch {
  border: 1px solid var(--navy-2);
  border-radius: 3px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.lang-switch:hover { background: var(--navy); color: #f3ead9; border-color: var(--navy); }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  min-height: 50vh;
}

.section-banner {
  background: var(--navy);
  color: #f3ead9;
  font-family: "Plex Sans KR Site", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 20px;
  margin: 32px 0 20px;
  border-left: 3px solid var(--gold);
}

button,
input[type="submit"] {
  font-family: "Plex Sans KR Site", "Noto Sans KR Site", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--navy);
  color: #f3ead9;
  border: 1px solid var(--navy);
  border-radius: 3px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}
button:hover,
input[type="submit"]:hover { background: #152c53; }

.main-footer {
  background: var(--navy-deep);
  color: #a8b8cc;
  margin-top: 48px;
  border-top: 1px solid var(--gold-line);
}
.main-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: #fff;
  font-family: "Plex Sans KR Site", sans-serif;
  font-weight: 400;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col p { font-family: "Plex Mono Site", monospace; font-size: 0.92rem; line-height: 1.7; }
.footer-bottom {
  text-align: center;
  padding: 16px;
  border-top: 1px solid #223354;
  font-size: 0.85rem;
  font-family: "Plex Mono Site", monospace;
}

/* Hero video: contained within main's normal width, so it keeps the same
   left/right padding as the rest of the page content (no longer full-bleed). */
.hero-video {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

/* Category hero banners: full-bleed, 20% of viewport height.
   Unified navy field across all categories (was per-category hue) so the
   site reads as one consistent premium-navy brand; category is already
   named in the H1 text, so color doesn't need to re-encode it. */
.page-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 20vh;
  min-height: 130px;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 32px;
  background-image: linear-gradient(135deg, var(--navy-deep), var(--navy));
  background-size: 200% 200%;
  border-bottom: 3px solid var(--gold);
}
.page-hero:not(.has-media)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(201,168,105,0.08) 0 2px, transparent 2px 26px);
  z-index: 0;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 50, 0.45);
  z-index: 1;
}
.page-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: "Plex Sans KR Site", sans-serif;
  font-size: clamp(1.65rem, 3.6vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* Promo sections (homepage "2026 PROMOTION" 1~4 blocks): colored title bar
   + alternating image/text two-column layout, mirroring aams24.com/cms. */
.promo-banner {
  color: #fff;
  font-family: "Plex Sans KR Site", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 20px;
  margin: 44px 0 22px;
}
.promo-banner.promo-orange { background: #ff6900; }
.promo-banner.promo-blue { background: #0693e3; }

.promo-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.promo-image, .promo-video { flex: 0 0 40%; max-width: 40%; }
.promo-image img { width: 100%; height: auto; margin: 0; border-radius: 4px; }
.promo-video video { width: 100%; height: auto; margin: 0; border-radius: 4px; display: block; }
.promo-text { flex: 1 1 0; min-width: 0; }
.promo-text p { margin: 0 0 14px; }

.promo-highlight {
  background: #fcb900;
  color: var(--ink);
  padding: 18px 20px;
  border-radius: 4px;
  margin: 0 0 18px;
}
.promo-highlight p { margin: 0 0 10px; font-weight: 600; }
.promo-highlight ul { margin: 0; padding-left: 20px; }
.promo-highlight a { text-decoration: underline; }

.promo-more a {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 18px;
}
.promo-more.promo-amber a { background: #fcb900; color: var(--ink); }
.promo-more.promo-paleblue a { background: #8ed1fc; color: #fff; }

.promo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.promo-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 9999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
}
.promo-btn.promo-orange { background: #ff6900; }
.promo-btn.promo-blue { background: #0693e3; }
.promo-btn:hover { filter: brightness(0.92); }

@media (max-width: 720px) {
  .promo-row { flex-direction: column; }
  .promo-image { flex: none; max-width: 100%; }
}

/* Topic icon cards, used on content-light pages */
.topic-icon-card {
  float: right;
  width: 200px;
  margin: 0 0 20px 28px;
  padding: 24px 16px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
}
.topic-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  color: #fff;
}
.topic-icon svg { width: 44px; height: 44px; }
.topic-icon-card p {
  margin: 0;
  font-family: "Plex Sans KR Site", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .topic-icon-card { float: none; width: auto; margin: 0 0 20px; }
  .main-header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-wrap: wrap; gap: 16px; }
}
