/* === DESIGN TOKENS ===
   Layout: full-width sections stacked, max-content-width 1200px centred
   BSI Access brand: deep navy + amber gold, IBM Plex type pair */
:root {
  --c-navy:    #003087;
  --c-navy-dk: #001e5a;
  --c-navy-lt: #d6e0f5;
  --c-gold:    #f5a623;
  --c-gold-lt: #fff3d6;
  --c-white:   #ffffff;
  --c-bg:      #f4f6fb;
  --c-surface: #ffffff;
  --c-text:    #0d1b3e;
  --c-muted:   #5a6a8a;
  --c-border:  #dde3f0;
  --c-footer-bg: #0a1a40;
  --c-footer-fg: #c2cce8;
  --f-display: 'IBM Plex Serif', Georgia, serif;
  --f-body:    'IBM Plex Sans', system-ui, sans-serif;
  --r-card:    8px;
  --shadow-sm: 0 1px 4px rgba(0,48,135,.08);
  --shadow-md: 0 4px 16px rgba(0,48,135,.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:      #0d1b3e;
    --c-surface: #162044;
    --c-text:    #e8eeff;
    --c-muted:   #8899cc;
    --c-border:  #253060;
    --c-footer-bg: #060f28;
    --c-footer-fg: #8899cc;
    --c-navy-lt: #1a2f6a;
    --c-gold-lt: #3d2800;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-bg:      #0d1b3e;
  --c-surface: #162044;
  --c-text:    #e8eeff;
  --c-muted:   #8899cc;
  --c-border:  #253060;
  --c-footer-bg: #060f28;
  --c-footer-fg: #8899cc;
  --c-navy-lt: #1a2f6a;
  --c-gold-lt: #3d2800;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== UTILITY BAR ===== */
.util-bar {
  background: var(--c-navy-dk);
  color: var(--c-footer-fg);
  font-size: 12px;
  padding: 6px 0;
}
.util-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.util-left, .util-right { display: flex; align-items: center; gap: 16px; }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  overflow: hidden;
}
.lang-switcher button {
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--f-body);
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .05em;
  transition: background .15s, color .15s;
}
.lang-switcher button.active {
  background: var(--c-gold);
  color: var(--c-navy-dk);
}
.lang-switcher button:not(.active):hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.util-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
  width: 200px;
}
.util-search input {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  color: #fff;
  width: 100%;
  outline: none;
}
.util-search input::placeholder { color: rgba(255,255,255,.45); }
.util-search-btn {
  padding: 5px 8px;
  display: flex;
  align-items: center;
}
.util-search-btn img { width: 14px; height: 14px; filter: invert(1); opacity: .7; }
.login-btn {
  background: var(--c-gold);
  color: var(--c-navy-dk) !important;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s;
}
.login-btn:hover { opacity: .88; }
.login-btn img { width: 13px; filter: none; }
.util-icon-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.util-icon-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  transition: color .15s;
}
.util-icon-link:hover { color: #fff; }
.util-icon-link img { width: 12px; filter: invert(1); opacity: .7; }

/* ===== MAIN NAV ===== */
.main-nav {
  background: var(--c-surface);
  box-shadow: 0 2px 8px rgba(0,48,135,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  height: 100%;
}
.nav-links li { height: 100%; position: relative; }
.nav-links li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links li a:hover { color: var(--c-navy); border-color: var(--c-navy); }
.nav-links li.priority a { color: var(--c-gold); font-weight: 600; }
.nav-links li.priority a:hover { border-color: var(--c-gold); }
.nav-hamburger { display: none; padding: 8px; }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); margin: 4px 0;
  transition: .2s;
}

/* ===== HERO CAROUSEL ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-navy-dk);
}
.hero-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,30,90,.75) 0%, rgba(0,30,90,.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 0 0 56px 0;
}
.hero-slide-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.hero-slide-content h2 {
  font-family: var(--f-display);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 600;
  color: #fff;
  max-width: 520px;
  text-wrap: balance;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-slide-content p {
  color: rgba(255,255,255,.85);
  font-size: clamp(13px, 1.5vw, 16px);
  max-width: 420px;
  margin-bottom: 20px;
}
.hero-cta {
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-navy-dk);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 4px;
  transition: opacity .15s;
}
.hero-cta:hover { opacity: .88; }
.hero-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.active { background: var(--c-gold); transform: scale(1.3); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* ===== QUICK LINKS BAR ===== */
.quick-bar {
  background: var(--c-navy);
  padding: 0;
}
.quick-bar .wrap {
  display: flex;
  align-items: stretch;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.1);
  flex: 1;
  transition: background .15s;
  min-width: 0;
}
.quick-link:hover { background: rgba(255,255,255,.08); }
.quick-link img {
  width: 40px; height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.quick-link span { line-height: 1.3; }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}
.section-header h2 {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--c-navy);
  text-wrap: balance;
}
:root[data-theme="dark"] .section-header h2,
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section-header h2 { color: var(--c-navy-lt); } }

/* ===== NEWS SECTION ===== */
.news-section {
  padding: 56px 0 48px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--c-surface);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-gold);
  padding: 2px 8px;
  background: var(--c-gold-lt);
  border-radius: 3px;
}
.news-date { font-size: 11px; color: var(--c-muted); }
.news-card-body h3 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.35;
  text-wrap: balance;
}
.news-card-body p { font-size: 13px; color: var(--c-muted); flex: 1; }
.news-card-more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.news-card-more::after { content: '→'; }
.news-card-more:hover { color: var(--c-gold); }

/* dark overrides for navy text */
.news-card-body h3 { color: var(--c-navy); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-card-body h3 { color: var(--c-navy-lt); }
  :root:not([data-theme="light"]) .news-card-more { color: var(--c-navy-lt); }
  :root:not([data-theme="light"]) .section-header h2 { color: var(--c-navy-lt); }
}
:root[data-theme="dark"] .news-card-body h3 { color: var(--c-navy-lt); }
:root[data-theme="dark"] .news-card-more { color: var(--c-navy-lt); }
:root[data-theme="dark"] .section-header h2 { color: var(--c-navy-lt); }

/* ===== DIGITAL SECTION ===== */
.digital-section {
  padding: 56px 0;
  border-top: 1px solid var(--c-border);
}
.digital-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.digital-logo img { max-width: 280px; }
.digital-copy h2 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 16px;
}
:root[data-theme="dark"] .digital-copy h2,
.digital-copy p { color: var(--c-muted); font-size: 14px; margin-bottom: 20px; }
.digital-more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-navy);
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 2px;
  display: inline-block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .digital-copy h2 { color: var(--c-navy-lt); }
  :root:not([data-theme="light"]) .digital-more { color: var(--c-navy-lt); }
}
:root[data-theme="dark"] .digital-copy h2 { color: var(--c-navy-lt); }
:root[data-theme="dark"] .digital-more { color: var(--c-navy-lt); }

/* ===== PROMOTIONS ===== */
.promos-section {
  background: var(--c-footer-bg);
  padding: 56px 0;
}
.promos-section .section-header h2 { color: #fff; }
.promos-carousel { position: relative; }
.promos-main {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16/8;
  margin-bottom: 12px;
}
.promos-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.promos-main img.active { display: block; }
.promos-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.promo-thumb {
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-thumb.active { opacity: 1; border-color: var(--c-gold); }
.promos-see-more {
  text-align: center;
  margin-top: 28px;
}
.btn-outline-white {
  display: inline-block;
  padding: 11px 36px;
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: border-color .15s, background .15s;
}
.btn-outline-white:hover { border-color: var(--c-gold); background: rgba(245,166,35,.1); }

/* ===== CURRENCY RATES ===== */
.rates-section {
  padding: 56px 0;
  background: var(--c-bg);
}
.rates-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.rate-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}
.rate-card .currency { font-weight: 700; color: var(--c-navy); font-size: 15px; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rate-card .currency { color: #a0b4e8; }
}
:root[data-theme="dark"] .rate-card .currency { color: #a0b4e8; }
.rate-row { margin-bottom: 6px; }
.rate-label { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--c-gold); font-weight: 600; }
.rate-value { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--c-text); font-weight: 500; }
.rates-note { font-size: 12px; color: var(--c-muted); text-align: center; max-width: 720px; margin: 0 auto 24px; }
.rates-date { text-align: center; font-size: 12px; color: var(--c-muted); margin-bottom: 4px; }
.btn-outline-navy {
  display: inline-block;
  padding: 11px 36px;
  border: 2px solid var(--c-navy);
  color: var(--c-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.btn-outline-navy:hover { background: var(--c-navy); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-outline-navy { border-color: #a0b4e8; color: #a0b4e8; }
  :root:not([data-theme="light"]) .btn-outline-navy:hover { background: #a0b4e8; color: var(--c-navy-dk); }
}
:root[data-theme="dark"] .btn-outline-navy { border-color: #a0b4e8; color: #a0b4e8; }
:root[data-theme="dark"] .btn-outline-navy:hover { background: #a0b4e8; color: var(--c-navy-dk); }
.rates-cta { text-align: center; }

/* ===== HELP SECTION ===== */
.help-section {
  padding: 56px 0;
  border-top: 1px solid var(--c-border);
}
.help-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.help-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.help-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .help-card h3 { color: #a0b4e8; }
}
:root[data-theme="dark"] .help-card h3 { color: #a0b4e8; }
.help-card p { font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }
.see-solution {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-navy);
  border-bottom: 1px solid var(--c-navy);
  padding-bottom: 1px;
  display: inline-block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .see-solution { color: #a0b4e8; border-color: #a0b4e8; }
}
:root[data-theme="dark"] .see-solution { color: #a0b4e8; border-color: #a0b4e8; }
.help-other {
  background: var(--c-navy);
  border-radius: var(--r-card);
  padding: 24px 20px;
  color: #fff;
  margin-top: 16px;
  display: inline-block;
  max-width: 260px;
}
.help-other h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.help-other a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-gold);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-fg);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-hq h4, .footer-contact h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-gold);
  margin-bottom: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-hq p, .footer-hq address {
  font-size: 13px;
  line-height: 1.8;
  font-style: normal;
}
.footer-contact ul { list-style: none; }
.footer-contact ul li { margin-bottom: 8px; }
.footer-contact ul li a {
  font-size: 13px;
  color: var(--c-footer-fg);
  transition: color .15s;
}
.footer-contact ul li a:hover { color: var(--c-gold); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bar p { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-license { font-size: 11px; color: rgba(255,255,255,.3); max-width: 620px; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .rates-grid { grid-template-columns: repeat(3, 1fr); }
  .help-cards { grid-template-columns: repeat(2, 1fr); }
  .digital-inner { grid-template-columns: 1fr; text-align: center; }
  .digital-logo img { max-width: 200px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .util-icon-links { display: none; }
}
@media (max-width: 640px) {
  .quick-bar .wrap { flex-direction: column; gap: 0; }
  .quick-link { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .help-cards { grid-template-columns: 1fr; }
  .promos-thumbs { grid-template-columns: repeat(2, 1fr); }
  .util-search { display: none; }
  .hero-slide-overlay { padding-bottom: 48px; }
  .hero-slide-content { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .main-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--c-surface);
    box-shadow: var(--shadow-md);
    z-index: 200;
  }
  .main-nav.open .nav-links li { height: auto; }
  .main-nav.open .nav-links li a {
    height: auto;
    padding: 14px 24px;
    border-bottom: 1px solid var(--c-border);
    border-left: none;
  }
}

/* ===== LANG-AWARE hidden ===== */
[data-lang="id"] { display: none; }
body.lang-id [data-lang="en"] { display: none; }
body.lang-id [data-lang="id"] { display: block; }
span[data-lang="id"] { display: none; }
body.lang-id span[data-lang="en"] { display: none; }
body.lang-id span[data-lang="id"] { display: inline; }
