@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Roboto:wght@500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --blue: #4e81f1;
  --blue-bright: #539eff;
  --blue-deep: #1a3a6b;
  --blue-ink: #0e2444;
  --promo: #d62828;
  --promo-soft: #fff1f0;
  --surface: #f5f7fb;
  --surface-2: #e8eef8;
  --white: #ffffff;
  --text: #1c2430;
  --muted: #5a6577;
  --border: #d5dde9;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(26, 58, 107, 0.12);
  --font: 'Open Sans', 'PingFang SC', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif;
  --font-sub: 'Roboto', 'PingFang SC', 'Microsoft JhengHei', sans-serif;
  --display: 'Source Serif 4', 'Noto Serif TC', 'Noto Serif SC', Georgia, serif;
  --header-h: 84px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Site-wide white background texture @ 30% opacity */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../img/webbg.jpg') center top / cover no-repeat;
  opacity: 0.3;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Promo bar —— */
.promo-bar {
  background: linear-gradient(90deg, var(--blue-ink), var(--blue-deep) 45%, #2a5a9e);
  color: #e8f0ff;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.55rem 1rem;
}
.promo-bar strong { color: #fff; }
.promo-bar .countdown {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.promo-bar .countdown span {
  background: rgba(255,255,255,0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
}
.logo-footer {
  background: #fff;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  width: fit-content;
}
.logo-footer .logo-img {
  height: 56px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
}
.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-sub {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}
.nav-main a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.nav-main a:hover,
.nav-main a.active {
  background: var(--surface-2);
  color: var(--blue-deep);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.lang-toggle button + button {
  border-left: 1px solid var(--border);
}
.lang-toggle button.active {
  background: var(--blue-deep);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(78, 129, 241, 0.35);
}
.btn-primary:hover { background: #3d6fe0; color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  padding: 0.45rem 0.7rem;
}
.btn-lg { padding: 0.75rem 1.4rem; font-size: 1rem; }
.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background-color: #0e2444;
  background-image:
    linear-gradient(115deg, rgba(14,36,68,0.88) 0%, rgba(26,58,107,0.55) 48%, rgba(14,36,68,0.35) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero-banner {
  min-height: 0;
  display: block;
  align-items: stretch;
  background: #e8f1fb;
  color: inherit;
}
.hero-banner::before { display: none; }
.hero-banner-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.03) 40px,
      rgba(255,255,255,0.03) 41px
    );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 640px;
  animation: fadeUp 0.7s ease both;
}
.brand-hero {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  color: #d6e4ff;
  line-height: 1.35;
}
.hero p {
  margin: 0 0 1.5rem;
  color: rgba(232, 240, 255, 0.85);
  font-size: 1rem;
  max-width: 36ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: none; }
.hero .btn-primary:hover { background: #e8f0ff; color: var(--blue-ink); }
.hero .btn-outline {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background:
    linear-gradient(180deg, rgba(245, 247, 251, 0.72) 0%, rgba(238, 242, 249, 0.72) 100%);
}
.section-head {
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin: 0 0 0.4rem;
  color: var(--blue-ink);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* —— Cards / grids —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid-4 { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(26, 58, 107, 0.06);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.product-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
}
.product-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,36,68,0.75), rgba(14,36,68,0.1) 55%, transparent);
  pointer-events: none;
}
.product-card-media .badge,
.product-card-media .code {
  z-index: 1;
}
.product-card-media .badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--blue);
  border-radius: 4px;
}
.product-card-media .code {
  position: relative;
  color: rgba(255,255,255,0.95);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.product-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}
.product-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .meta-interest {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.icon-user {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}
.product-card .price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.35rem;
}
.price-group {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #b7d0f5;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: #fff;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.product-card:hover .card-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.price-list {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.85rem;
}
.price-sale {
  color: var(--promo);
  font-weight: 700;
  font-size: 1.15rem;
}
.price-normal {
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 1.15rem;
}
.discount-tag {
  background: var(--promo-soft);
  color: var(--promo);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

/* Featured certs homepage block */
.section-featured-certs {
  padding: 0;
  background: rgba(243, 246, 251, 0.55);
}
.featured-certs-hero {
  background:
    radial-gradient(ellipse 50% 80% at 85% 40%, rgba(78,129,241,0.25), transparent 55%),
    linear-gradient(120deg, #0e2444 0%, #163a6e 55%, #1a4a8a 100%);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.featured-certs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126,200,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,200,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.featured-certs-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.featured-certs-copy { max-width: 36rem; }
.featured-eyebrow {
  color: #7ec8ff !important;
  margin-bottom: 0.55rem;
}
.featured-certs-copy h2 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}
.featured-certs-copy h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 4px;
  background: var(--blue-bright);
  border-radius: 2px;
  margin-top: 0.55rem;
}
.featured-certs-copy p:last-child {
  margin: 0;
  color: rgba(232, 240, 255, 0.88);
  font-size: 0.95rem;
}
.featured-certs-art {
  flex-shrink: 0;
  width: min(220px, 32vw);
}
.cert-3d {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(78,129,241,0.45));
  animation: certFloat 4.5s ease-in-out infinite;
}
@keyframes certFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.featured-certs-body {
  padding: 1.75rem 0 2.75rem;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.btn-outline-blue {
  background: #fff;
  border: 1.5px solid #9bbcf5;
  color: var(--blue);
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-outline-blue:hover {
  background: #f0f6ff;
  border-color: var(--blue);
  color: var(--blue-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .featured-certs-art { display: none; }
  .featured-certs-hero { padding: 2rem 0; }
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.badge-exam { background: #4e81f1; }
.badge-elearn { background: #2d6a4f; }
.badge-ilt { background: #7c4a1a; }
.badge-bundle { background: #4e81f1; }

/* Category / technology domain cards — dark theme + sectionbg */
.section-domains {
  position: relative;
  overflow: hidden;
  background: #0e2444;
  color: #e8f0ff;
}
.section-domains::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/sectionbg.jpg') center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.section-domains::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(78,129,241,0.22), transparent 55%),
    linear-gradient(120deg, rgba(14,36,68,0.55) 0%, rgba(22,58,110,0.4) 50%, rgba(18,47,88,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.section-domains .section-head {
  position: relative;
  z-index: 1;
}
.section-domains .section-eyebrow {
  color: #7ec8ff;
}
.section-domains .section-head h2 {
  color: #fff;
  font-family: var(--font);
}
.section-domains .section-head h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 4px;
  background: var(--blue-bright);
  border-radius: 2px;
  margin-top: 0.55rem;
}
.section-domains .section-head p {
  color: rgba(232, 240, 255, 0.82);
}
.section-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.domain-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.domain-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.15rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--domain-accent, var(--blue));
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 100%;
}
.domain-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  color: inherit;
}
.domain-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--domain-accent, #7ec8ff);
}
.domain-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.domain-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.domain-card .domain-desc {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: rgba(232, 240, 255, 0.72);
  line-height: 1.45;
  flex: 1;
}
.domain-topics {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
}
.domain-topics li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.78rem;
  color: rgba(232, 240, 255, 0.88);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
.domain-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--domain-accent, #7ec8ff);
  opacity: 0.9;
}
.domain-link {
  font-size: 0.8rem;
  font-weight: 650;
  color: #7ec8ff;
  margin-top: auto;
}
.domain-card:hover .domain-link {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .domain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .domain-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .domain-grid {
    grid-template-columns: 1fr;
  }
}

/* Legacy compact cat grid (unused on home, keep for safety) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.25rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
  text-align: center;
}
.cat-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--blue-deep);
}
.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--blue);
  overflow: hidden;
}
.cat-icon.has-img {
  color: transparent;
  font-size: 0;
}
.cat-item span { font-size: 0.85rem; font-weight: 600; }

/* Trust band */
.section-trust {
  padding: 2.25rem 0 2.75rem;
  background: transparent;
}
.trust-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  background:
    linear-gradient(135deg, rgba(14, 36, 68, 0.94), rgba(26, 58, 107, 0.92));
  border: 1px solid rgba(126, 200, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(14, 36, 68, 0.18);
  position: relative;
}
.trust-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126,200,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,200,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}
.trust-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.35rem 1.4rem;
}
.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(78, 129, 241, 0.2);
  border: 1px solid rgba(126, 200, 255, 0.28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #7ec8ff;
}
.trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.trust-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ec8ff;
}
.trust-copy strong {
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.4;
}
.trust-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(126, 200, 255, 0.35) 20%,
    rgba(126, 200, 255, 0.35) 80%,
    transparent
  );
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .trust-band {
    grid-template-columns: 1fr;
  }
  .trust-divider {
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(126, 200, 255, 0.35) 15%,
      rgba(126, 200, 255, 0.35) 85%,
      transparent
    );
  }
  .trust-item { padding: 1.15rem 1.25rem; }
}

/* —— Catalog filters —— */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.15rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.filters h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--blue-ink);
}
.filter-group { margin-bottom: 1.1rem; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
  color: var(--text);
}
.filters input[type="search"],
.filters select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.filters input[type="search"] { margin-bottom: 0.75rem; }

.page-banner {
  background:
    linear-gradient(105deg, rgba(14, 36, 68, 0.78) 0%, rgba(26, 58, 107, 0.55) 45%, rgba(14, 36, 68, 0.35) 100%),
    url('../img/titlebg.jpg') center / cover no-repeat;
  color: #fff;
  padding: 2.5rem 0;
}
.page-banner h1 {
  font-family: var(--display);
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.page-banner p {
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* —— Product detail —— */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
}
.product-cover {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue-deep), var(--blue-bright));
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.product-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,36,68,0.85), rgba(14,36,68,0.2) 50%, transparent);
}
.product-info h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0.5rem 0 0.75rem;
  color: var(--blue-ink);
}
.product-info .desc {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-list li span:first-child { color: var(--muted); }

/* —— Product page v3 (Comment: left content / right specs) —— */
.product-page-v3 {
  padding: 2rem 0 2.5rem;
}
.product-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.product-buy-panel h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  margin: 0.45rem 0 0.65rem;
  color: var(--blue-ink);
}
.product-buy-panel .desc.lead {
  color: var(--muted);
  margin: 0 0 1rem;
}
.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.product-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
  gap: 2rem;
  align-items: start;
}
.product-body-main {
  min-width: 0;
}
.product-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.product-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.product-block h2,
.product-specs-card h2 {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--blue-ink);
}
.product-prose {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.product-prose a {
  color: var(--blue);
  word-break: break-word;
}
.product-specs-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.2rem 1.25rem;
}
.product-specs-card .spec-list {
  margin-bottom: 0;
}
.curriculum-body {
  color: var(--text);
}
.curriculum-heading {
  font-family: var(--font-sub);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--blue-ink);
  margin: 1.15rem 0 0.45rem;
}
.curriculum-heading:first-child {
  margin-top: 0;
}
.curriculum-list {
  margin: 0 0 0.35rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.curriculum-list li {
  margin: 0.28rem 0;
}
@media (max-width: 900px) {
  .product-top,
  .product-body {
    grid-template-columns: 1fr;
  }
  .product-specs-card {
    position: static;
  }
}

/* —— Auth / forms —— */
.auth-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(83,158,255,0.15), transparent 50%),
    var(--surface);
}
.auth-card {
  width: min(100%, 440px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-family: var(--display);
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  color: var(--blue-ink);
}
.auth-card .lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--blue-ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin: 0.75rem 0 1.25rem;
}
.auth-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  padding: 0.25rem;
  border-radius: var(--radius);
}
.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-tabs button.active {
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Checkout —— */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2.5rem 0;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
}
.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--blue-ink);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.95rem;
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.pay-options {
  display: grid;
  gap: 0.6rem;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}
.pay-option:hover,
.pay-option.selected {
  border-color: var(--blue);
  background: rgba(78,129,241,0.04);
}
.pay-option input { accent-color: var(--blue); }
.coupon-row {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}
.coupon-row input { flex: 1; }

.success-box {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 520px;
  margin: 2rem auto;
}
.success-box .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8f7ef;
  color: #2d6a4f;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  animation: fadeUp 0.5s ease both;
}

/* —— Portal —— */
.portal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}
.portal-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.portal-nav button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 550;
  font-size: 0.9rem;
  color: var(--text);
}
.portal-nav button:hover { background: var(--surface-2); }
.portal-nav button.active {
  background: var(--blue);
  color: #fff;
}
.portal-panel { display: none; }
.portal-panel.active { display: block; animation: fadeUp 0.35s ease both; }
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border);
}
table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.voucher-masked { font-family: ui-monospace, monospace; letter-spacing: 0.05em; }
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--blue-ink);
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  animation: fadeUp 0.3s ease both;
  font-size: 0.9rem;
}

/* —— Static content —— */
.prose {
  max-width: 720px;
  padding: 2.5rem 0 3.5rem;
}
.prose h1 {
  font-family: var(--display);
  color: var(--blue-ink);
  margin: 0 0 1rem;
}
.prose h2 {
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin: 2rem 0 0.65rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.prose p, .prose li { color: var(--muted); }
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.policy-nav a {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  background: var(--surface);
  border-radius: 999px;
  color: var(--blue-deep);
  text-decoration: none;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.partner-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  background: var(--white);
}
.partner-card .initials {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--blue);
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  background: var(--blue-ink);
  color: rgba(232,240,255,0.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer a {
  color: rgba(232,240,255,0.75);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  max-width: 28ch;
}
.social-row {
  display: flex;
  gap: 0.5rem;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.demo-note {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
  }
  .nav-main.open { display: flex; }
  .catalog-layout,
  .product-detail,
  .checkout-grid,
  .portal-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .filters, .portal-nav { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .header-actions .btn-outline { display: none; }
}

/* —— Motion / reveal —— */
.site-header {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(14, 36, 68, 0.12);
  background: rgba(255, 255, 255, 0.97);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-18px);
}
.reveal-left.is-visible {
  transform: translateX(0);
}
.reveal-scale {
  transform: scale(0.97);
}
.reveal-scale.is-visible {
  transform: scale(1);
}

.hero-banner-img {
  animation: heroZoom 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroZoom {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.promo-bar {
  animation: promoSlide 0.55s ease both;
}
@keyframes promoSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn,
.domain-card,
.product-card,
.trust-item,
.btn-outline-blue {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.trust-icon {
  transition: transform 0.25s ease, background 0.25s ease;
}
.trust-item:hover .trust-icon {
  transform: scale(1.08);
  background: rgba(78, 129, 241, 0.32);
}

.domain-link,
.card-arrow {
  transition: transform 0.2s ease, background 0.15s, border-color 0.15s, color 0.15s;
}
.domain-card:hover .domain-link {
  transform: translateX(3px);
}
.product-card:hover .card-arrow {
  transform: translateX(2px);
}

.logo-img {
  transition: transform 0.25s ease;
}
.logo:hover .logo-img {
  transform: scale(1.03);
}

.featured-certs-hero {
  animation: bandIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bandIn {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-scale,
  .hero-banner-img,
  .promo-bar,
  .featured-certs-hero,
  .cert-3d,
  .portal-panel.active,
  .toast,
  .success-box .icon,
  .hero-inner {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cert-3d { animation: none !important; }
}

/* —— Phase 1–4: nav dropdown, home cards, checkout helpers —— */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item > a,
.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
}
.nav-item > a:hover,
.nav-item > button:hover {
  background: var(--surface);
  text-decoration: none;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
}
.nav-dropdown a:hover {
  background: var(--surface);
  color: var(--blue-deep);
  text-decoration: none;
}
.mega {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(720px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega,
.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-col h4 {
  margin: 0 0 0.55rem;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.mega-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
}
.mega-col a:hover {
  color: var(--blue);
  text-decoration: none;
}

.product-card.home-card .price-row,
.home-card .price-row {
  display: none;
}
.home-card {
  position: relative;
}
.home-card .card-body {
  padding-bottom: 1rem;
}

.selling-points {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
}
.selling-points .point {
  text-align: center;
  padding: 1.15rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.selling-points .point-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--blue);
}
.selling-points .point p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--blue-ink), var(--blue-deep));
  color: #e8f0ff;
  border-radius: 10px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.newsletter-box h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  color: #fff;
}
.newsletter-box p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}
.newsletter-box form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-box input[type="email"] {
  min-width: 220px;
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.newsletter-box input[type="text"],
.newsletter-box select {
  min-width: 140px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.newsletter-box select option {
  color: var(--text);
  background: var(--white);
}
.newsletter-box input[type="email"]::placeholder {
  color: rgba(255,255,255,0.55);
}
.newsletter-box input[type="text"]::placeholder {
  color: rgba(255,255,255,0.55);
}

.promo-strip {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
}
.promo-strip img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}
.promo-strip-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  padding: 0.45rem 0.85rem;
  background: rgba(14, 36, 68, 0.82);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.footer-lfapac {
  display: block;
  margin: 0.65rem 0 0.85rem;
  opacity: 0.92;
  filter: brightness(1.1);
}

.policy-scroll {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.policy-scroll h3,
.policy-scroll h4 {
  font-size: 0.88rem;
  color: var(--blue-deep);
  margin: 0.75rem 0 0.35rem;
}
.policy-scroll h3:first-child,
.policy-scroll h4:first-child {
  margin-top: 0;
}
.policy-scroll.is-scrolled-bottom {
  border-color: var(--blue);
}

.fx-ref {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.fx-ref strong {
  color: var(--text);
  font-weight: 600;
}
.fx-ref table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.35rem;
  font-size: 0.75rem;
}
.fx-ref th,
.fx-ref td {
  text-align: left;
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .nav-item .nav-dropdown,
  .nav-item .mega {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    box-shadow: none;
    border: 0;
    padding: 0.25rem 0 0.25rem 0.75rem;
    display: none;
  }
  .nav-item.is-open .nav-dropdown,
  .nav-item.is-open .mega {
    display: block;
  }
  .mega {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .selling-points {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-box {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .selling-points {
    grid-template-columns: 1fr;
  }
}

/* —— Mobile full-screen menu —— */
.mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  .nav-main { display: none !important; }
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 4000;
    background: rgba(10, 24, 48, 0.45);
  }
  .mobile-menu.is-open,
  .mobile-menu:not([hidden]) {
    display: block;
  }
  .mobile-menu[hidden] { display: none !important; }
  .mobile-menu-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.1rem 2.5rem;
  }
  .mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: #fff;
    padding: 0.25rem 0 0.75rem;
    z-index: 1;
  }
  .mobile-menu-close {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 1.5rem;
    cursor: pointer;
  }
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 2rem;
  }
  .mobile-menu-nav a {
    display: block;
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--border);
    color: var(--blue-ink);
    font-weight: 600;
    text-decoration: none;
  }
}

/* —— News —— */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.news-filters button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.news-filters button.active {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--blue-deep);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.news-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-cover-event,
.news-cover-promotion,
.news-cover-blog {
  background-color: #12284c;
}
.news-card-body { padding: 1rem 1.1rem 1.2rem; }
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.news-read {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.news-cat {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.news-card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--blue-ink);
}
.news-card-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.news-card-body time { font-size: 0.78rem; color: var(--muted); }
.news-article { max-width: 760px; margin: 0 auto; padding: 2rem 0 3.5rem; }
.news-article .news-cover { height: 280px; border-radius: 12px; margin-bottom: 1.25rem; }
.article-lead { max-width: 760px; }

/* —— Directory cards —— */
.dir-intro { max-width: 760px; color: var(--muted); margin-bottom: 1.5rem; }
.dir-intro p { margin: 0 0 0.75rem; }
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
}
.dir-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.1rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dir-logo, .dir-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid var(--border);
}
.dir-logo img, .dir-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dir-photo { width: 120px; height: 120px; border-radius: 50%; }
.dir-logo-lg, .dir-photo-lg { margin: 0 auto 1rem; }
.dir-logo-lg { width: 112px; height: 112px; }
.dir-photo-lg { width: 140px; height: 140px; }
.dir-card .meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.job-board { max-width: 900px; }
.job-list { display: flex; flex-direction: column; gap: 0.85rem; }
.job-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}
.job-row:hover { box-shadow: var(--shadow); text-decoration: none; }
.job-logo {
  width: 72px; height: 72px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  overflow: hidden; background: #f4f7fb; border: 1px solid var(--border);
}
.job-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-detail { max-width: 760px; margin: 0 auto; padding: 2rem 0 3.5rem; }
.job-detail h2 { margin: 1.5rem 0 0.4rem; font-size: 1.1rem; color: var(--blue-deep); }
.job-detail-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.25rem;
}
.job-detail-head h1 { margin: 0 0 0.25rem; }
.job-company { margin: 0; font-weight: 700; color: var(--blue-deep); }
.job-loc { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.redeem-banner {
  background: #eef4ff;
  border: 1px solid #c5d6f5;
  color: var(--blue-ink);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.checkout-invoice {
  margin: 0 0 1.25rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--border);
}
.checkout-invoice h2 { margin-top: 0; }

.lf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(10, 24, 48, 0.5);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lf-modal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.lf-modal-x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}
.coupon-card {
  background: linear-gradient(145deg, #0e3a6b, #4e81f1);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.coupon-card-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.coupon-card-amt { font-size: 2.2rem; font-weight: 800; margin: 0.35rem 0; }
.coupon-card-name { opacity: 0.95; margin-bottom: 1rem; }
.coupon-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 0.25rem 0.5rem; margin: 0; }
.coupon-card dt { opacity: 0.75; font-size: 0.8rem; }
.coupon-card dd { margin: 0; font-family: ui-monospace, monospace; }
.coupon-card .demo-note { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.profile-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue-deep);
  overflow: hidden;
}
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.phone-split { display: grid; grid-template-columns: 160px 1fr; gap: 0.5rem; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .job-row { grid-template-columns: 56px 1fr; }
  .job-row .btn { grid-column: 1 / -1; }
  .phone-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}

