@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Prompt:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #F4F8FD;
  --bg-white: #FFFFFF;
  --blue-royal: #1565C0;
  --blue-navy-bar: #0C3B7E;
  --blue-navy-deep: #07234E;
  --blue-sky: #1E88E5;
  --gold-accent: #F6AD1D;
  --text-dark: #0F1C2E;
  --text-body: #1E2D40;
  --text-muted: #506680;
  --border-blue: rgba(21, 101, 192, 0.25);
  --border-blue-strong: rgba(21, 101, 192, 0.65);
  --shadow-card: 0 10px 28px rgba(12, 59, 126, 0.09), 0 2px 8px rgba(0, 0, 0, 0.04);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(30, 136, 229, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(12, 59, 126, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #FFFFFF 0%, #EFF5FC 50%, #FFFFFF 100%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.74;
  padding-bottom: 76px;
  overflow-x: hidden;
}

a {
  color: var(--blue-royal);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--blue-navy-bar);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sticky Top Header matching marlenwin.jp.net (Crisp White Header + Gold Accent Border + Royal Blue Nav) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 3px solid var(--gold-accent);
  box-shadow: 0 4px 20px rgba(12, 59, 126, 0.14);
}

.header-main {
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 9px 22px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg, #1E78D6 0%, #0C4A9E 100%);
  color: #FFFFFF !important;
  border: 1.5px solid #0C4A9E;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.28);
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.btn-vip:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(21, 101, 192, 0.42);
}

.btn-vip.btn-gold {
  background: linear-gradient(180deg, #FFC233 0%, #F29B08 100%);
  color: #0F1C2E !important;
  border: 1.5px solid #D98600;
  box-shadow: 0 4px 14px rgba(246, 173, 29, 0.42);
}

.header-bottom {
  background: linear-gradient(90deg, #0A2E66 0%, #124E9E 50%, #0A2E66 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  text-decoration: none !important;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(180deg, #FFC233 0%, #F29B08 100%);
  color: #07234E;
  border-color: #FFD56B;
  box-shadow: 0 4px 12px rgba(246, 173, 29, 0.38);
}

/* Notice Ticker Bar - Blue & White (No Recommended Partners Slider) */
.notice-board {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--blue-royal);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--blue-navy-deep);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.notice-badge {
  background: linear-gradient(180deg, #1E78D6 0%, #0C3B7E 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: #FFFFFF;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 9px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.05);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--blue-royal);
  font-weight: 700;
}

/* White Content Cards with Royal Blue Heading Bars matching 78win Blue & White theme */
.content-box.bg-1 {
  background: var(--bg-white);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 26px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.hero-card.content-box.bg-1,
header.content-box.bg-1 {
  text-align: center;
}

/* Signature Royal Blue Bar Headings with Gold bottom accent matching marlenwin.jp.net */
h1 {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.32rem, 2.6vw, 1.78rem);
  font-weight: 800;
  background: linear-gradient(180deg, #124E9E 0%, #092B61 100%);
  color: #FFFFFF;
  line-height: 1.38;
  padding: 14px 22px;
  border-radius: 14px;
  border-bottom: 3px solid var(--gold-accent);
  margin-bottom: 16px;
  box-shadow: 0 5px 16px rgba(12, 59, 126, 0.24);
}

h2 {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 700;
  background: linear-gradient(180deg, #124E9E 0%, #092B61 100%);
  color: #FFFFFF;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: 12px;
  border-bottom: 3px solid var(--gold-accent);
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(12, 59, 126, 0.2);
}

.bg-2 {
  background: linear-gradient(180deg, #124E9E 0%, #092B61 100%);
  color: #FFFFFF;
  border-radius: 12px;
  border-bottom: 3px solid var(--gold-accent);
  padding: 12px 20px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(12, 59, 126, 0.2);
}

h3 {
  font-family: 'Prompt', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--blue-navy-bar);
  margin: 12px 0 6px;
}

p {
  margin-bottom: 14px;
  color: var(--text-body);
}

/* GEO Direct Answer Box immediately after H2 (40-60 words) */
.direct-answer {
  background: linear-gradient(90deg, #EDF5FF 0%, #F7FAFF 100%);
  border-left: 5px solid var(--blue-royal);
  border-top: 1px solid rgba(21, 101, 192, 0.22);
  border-right: 1px solid rgba(21, 101, 192, 0.22);
  border-bottom: 1px solid rgba(21, 101, 192, 0.22);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: #0D2342;
  font-weight: 500;
  text-align: left;
}

/* Zero CLS Media Frame - Exact Fit without Cropping */
.media-frame {
  width: 100%;
  max-width: 920px;
  margin: 18px auto 20px;
  background: #FFFFFF;
  border: 2px solid var(--blue-royal);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 59, 126, 0.16);
}

.media-frame.media-square {
  max-width: 520px;
}

.content-media-img {
  width: 100%;
  height: auto;
  display: block;
}

.media-frame figcaption {
  padding: 9px 14px;
  font-size: 0.86rem;
  color: #FFFFFF;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(90deg, #07234E 0%, #124E9E 50%, #07234E 100%);
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

/* Bulleted Feature Lists */
.feature-list,
.content-box ul:not(.main-nav):not(.footer-links) {
  list-style: none;
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.feature-list li,
.content-box ul:not(.main-nav):not(.footer-links) li {
  position: relative;
  padding: 11px 16px 11px 38px;
  background: #F2F7FE;
  border: 1px solid rgba(21, 101, 192, 0.24);
  border-radius: var(--radius-md);
  color: var(--text-body);
}

.feature-list li::before,
.content-box ul:not(.main-nav):not(.footer-links) li::before {
  content: "💎";
  position: absolute;
  left: 12px;
  top: 11px;
  font-size: 0.95rem;
}

strong {
  color: var(--blue-navy-bar);
  font-weight: 700;
}

/* GEO Responsive Data Tables - Blue & White */
.table-wrap,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--blue-royal);
}

table,
.seo-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  font-size: 0.94rem;
  text-align: left;
}

th {
  background: linear-gradient(180deg, #124E9E 0%, #08295C 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--gold-accent);
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(21, 101, 192, 0.15);
  color: var(--text-body);
}

tr:nth-child(even) td {
  background: #F4F8FD;
}

/* Silo Navigation Grid Cards matching marlenwin.jp.net category cards */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 16px 0 6px;
}

.silo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF5FD 100%);
  border: 1.5px solid rgba(21, 101, 192, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.silo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(21, 101, 192, 0.18);
  border-color: var(--blue-royal);
}

.silo-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #0F1C2E !important;
  background: linear-gradient(180deg, #FFC233 0%, #F29B08 100%);
  padding: 6px 14px;
  border-radius: 10px;
  align-self: flex-start;
  text-decoration: none !important;
}

/* FAQ Accordion Cards */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.faq-item {
  background: #F4F8FD;
  border: 1px solid rgba(21, 101, 192, 0.24);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
}

.faq-question {
  font-weight: 700;
  color: var(--blue-navy-bar);
  margin-bottom: 6px;
  font-size: 1.03rem;
}

.faq-answer {
  margin-bottom: 0;
  color: var(--text-body);
}

/* Footer & Trust Certifications - Deep Navy Blue Footer */
.site-footer {
  background: linear-gradient(180deg, #0A2E66 0%, #051838 100%);
  border-top: 3px solid var(--gold-accent);
  padding: 36px 0 28px;
  margin-top: 36px;
  color: #DCE9F9;
  font-size: 0.9rem;
}

.site-footer h3 {
  color: #FFC233;
}

.site-footer a {
  color: #EBF3FC;
}

.site-footer a:hover {
  color: #FFC233;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.trust-certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid var(--blue-royal);
  border-radius: var(--radius-md);
}

.trust-certs img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: #DCE9F9;
}

.footer-bottom p {
  color: #DCE9F9;
}

/* Sticky Bottom Navigation Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #0D3C82 0%, #061D42 100%);
  border-top: 2px solid var(--gold-accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.38);
  padding: 7px 4px;
}

.mobile-bottom-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  padding: 4px 2px;
  text-decoration: none !important;
}

.mobile-bottom-bar a.highlight {
  color: #FFC233;
}

@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container {
    padding: 0 10px;
    max-width: 100vw;
  }
  .header-inner {
    gap: 6px;
  }
  .brand-logo img {
    height: 36px;
    width: auto;
  }
  .header-actions {
    gap: 6px;
  }
  .btn-vip {
    padding: 6px 11px;
    font-size: 0.76rem;
  }
  .main-nav {
    gap: 5px;
  }
  .main-nav a {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .content-box.bg-1 {
    padding: 16px 12px;
    max-width: 100%;
    overflow: hidden;
  }
  .silo-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
