/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, picture, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.5;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.25;
  font-weight: 700;
}
a {
  color: #ffa814;
  text-decoration: none;
}
a:hover, a:focus {
  color: #ffa814;
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background-color: #ffa814;
  color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}
.btn-secondary {
  background-color: #ad5700;
  color: #ffffff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: #ffa814;
  color: #ffffff;
  text-decoration: none;
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
}
.cta-button {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: #f9fafb;
  border-top: 1px solid #e2e8f0;
  margin-top: 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 64px;
  text-align: center;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  margin: 0 auto;
}
.footer-copy {
  color: #1e293b;
  font-size: 14px;
}

/* Tablet */
@media (min-width: 768px) {
  .header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .logo-img {
    height: 48px;
  }
}

/* 404 page */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
  min-height: 50vh;
}
.not-found-inner {
  text-align: center;
  max-width: 480px;
}
.not-found-code {
  font-size: 64px;
  font-weight: 700;
  color: #ffa814;
  line-height: 1;
  margin-bottom: 8px;
}
.not-found-inner h1 {
  font-size: 28px;
  margin-bottom: 12px;
}
.not-found-copy {
  color: #1e293b;
  margin-bottom: 24px;
}

/* === Page-specific additions (Betplay home) === */
.main { display: block; }

/* Hero carousel */
.hero-carousel { overflow: hidden; margin-top: 0; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-top: 16px;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}
.carousel-slide {
  position: relative;
  flex: 0 0 85%;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  min-height: 220px;
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
.carousel-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  height: 100%;
  min-height: 220px;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}
.carousel-heading {
  color: #ffffff;
  font-size: 22px;
}
.carousel-overlay .cta-button { align-self: flex-start; }

@media (min-width: 768px) {
  .carousel-slide { flex: 0 0 45%; }
}
@media (min-width: 1024px) {
  .carousel-slide { flex: 0 0 31%; }
}

/* Page title + TOC */
.title-toc-section { padding-top: 32px; padding-bottom: 16px; }
.title-toc-section h1 { font-size: 28px; margin-bottom: 20px; }
.toc-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f9fafb;
  padding: 16px 20px;
}
.toc-title { font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a { color: #ffa814; }

/* Intro + banner */
.intro-banner-section { padding-top: 16px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 16px; }
.intro-banner-section p { color: #1e293b; }
.promo-banner-link { display: block; border-radius: 8px; overflow: hidden; }
.promo-banner-img { width: 100%; border-radius: 8px; }

/* Article sections */
.article-section, .trust-section, .support-section, .faq-section {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-section h2, .trust-section h2, .support-section h2, .faq-section h2 {
  font-size: 22px;
}
.article-img { width: 100%; border-radius: 8px; }
.article-section .cta-button, .trust-section .cta-button { align-self: flex-start; }

/* Tables */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
th, td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
th { background-color: #f9fafb; color: #1e293b; font-weight: 700; }

/* FAQ accordion */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 16px;
  background-color: #f9fafb;
}
.accordion-question {
  cursor: pointer;
  font-weight: 700;
  color: #1e293b;
  padding: 12px 0;
}
.accordion-answer { padding-bottom: 14px; color: #1e293b; }

/* Sticky bottom promo bar */
.sticky-promo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background-color: #1e293b;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
.sticky-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.sticky-promo-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .sticky-promo-text { display: none; }
}