/* RM711SLOT — dark + gold, modelled on jadiking.my; includes article component system */

:root {
  --bg: #0d0b06;
  --bg-2: #160f00;
  --surface: #1c160a;
  --surface-2: #241c0d;
  --line: #3a2e12;
  --gold: #f7cc27;
  --gold-soft: #ffe174;
  --gold-deep: #ad8500;
  --text: #f2ede0;
  --muted: #a89a7c;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, iframe, video { max-width: 100%; height: auto; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  background: rgba(13, 11, 6, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: .5px;
  color: var(--text); white-space: nowrap;
}
.brand img { height: 34px; width: auto; }
.brand span { color: var(--gold); }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--gold); text-decoration: none; }
.cta-btn {
  padding: 10px 20px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1a1200; font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(247, 204, 39, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover { color: #1a1200; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(247, 204, 39, .34); }

/* ------------------------------------------------------------------ main */
main { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 72px; }
.rm711-container, .page-wrapper, .epicwin-brand-container { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: #fff; margin: 1.8em 0 .6em; }
h1 { font-size: clamp(28px, 4.4vw, 42px); margin-top: 0; letter-spacing: -.5px; }
h2 { font-size: clamp(23px, 3vw, 30px); }
h3 { font-size: 20px; }
h1 + p, .lede, .rm711-muted { color: var(--muted); font-size: 19px; }
.rm711-muted { font-size: 15px; }
p { margin: 0 0 1.15em; }
strong { color: #fff; }
ul, ol { padding-left: 22px; margin: 0 0 1.15em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.section-title { color: var(--gold-soft); border-bottom: 2px solid var(--gold-deep); padding-bottom: 10px; }

/* icons (Font Awesome) tinted gold by default */
.fas, .fa, .far, .fab { color: var(--gold); }

/* ---------------------------------------------------- generic card system */
.section-card, .rm711-card, .box, .feature-card, .highlight-box,
.tldr-card, .tldr-box, .tldr-premium, .responsible-box, .prize-box,
.author-box, .step-box, .box-div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 22px;
}
.section-card h2, .section-card h3, .rm711-card h3, .feature-card h3 { margin-top: 0; }

.highlight-box, .tldr-premium, .tldr-card {
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(247,204,39,.06), transparent 60%), var(--surface);
}
.prize-box { border-color: var(--gold-deep); }
.responsible-box { border-left: 3px solid #d98b8b; }

.feature-card:hover, .section-card:hover { border-color: var(--gold-deep); }

/* TLDR / quick summary grid */
.tldr-grid, .tldr-box ul { list-style: none; padding-left: 0; margin: 0; }
.tldr-grid li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.tldr-premium h3 { margin-top: 0; color: var(--gold-soft); }

/* steps */
.step-box { display: flex; gap: 16px; align-items: flex-start; }
.step-number {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1a1200; font-weight: 800;
}

/* author box */
.author-box { display: flex; gap: 16px; align-items: center; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* CTA buttons inside articles (were blue in old template) */
.cta {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1a1200 !important;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 18px rgba(247, 204, 39, .22);
  transition: transform .15s ease, box-shadow .15s ease;
  margin: 6px 0;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(247, 204, 39, .34); }

/* tables */
table, .table-modern { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
th { background: var(--surface-2); color: var(--gold-soft); font-weight: 600; }
tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.table-modern { display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 760px) { .table-modern { display: table; white-space: normal; } }

/* ------------------------------------------------------- FAQ accordion */
.interactive-faq, .faq-item { margin-bottom: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; color: #fff; border: 0;
  padding: 18px 20px; font-size: 17px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-question::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq-question.active::after, .faq-question.opened::after { content: "\2013"; }
.faq-answer {
  padding: 0 20px; max-height: 0; overflow: hidden;
  color: var(--muted); transition: max-height .25s ease, padding .25s ease;
}
.faq-answer.opened, .faq-question.active + .faq-answer { padding: 0 20px 18px; max-height: 800px; }

/* read-more toggle: content always shown (SEO + no JS dependency); hide the
   dead toggle links, but keep real blog-card "Read guide" anchors visible */
.read-more { margin: 8px 0; color: var(--gold); font-weight: 600; }
.read-more:not([href]) { display: none; }
.more-content { margin-top: 8px; display: block !important; }

/* collapsible "Read More" details: open by default, styled summary toggle */
.rm711-readmore > summary {
  cursor: pointer; list-style: none;
  color: var(--gold); font-weight: 600; margin: 8px 0;
}
.rm711-readmore > summary::-webkit-details-marker { display: none; }
.rm711-readmore[open] > summary .rm711-more { display: none; }
.rm711-readmore:not([open]) > summary .rm711-less { display: none; }

/* ---------------------------------------------------- homepage layout */
.rm711-video-section { text-align: center; margin-bottom: 44px; }
.rm711-section-title { color: var(--gold-soft); text-align: center; border: 0; }
.rm711-video-container {
  max-width: 640px; margin: 18px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.rm711-video-container iframe { width: 100%; height: 100%; border: 0; display: block; }

.rm711-footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-direction: column; gap: 22px;
}

/* ambassador: portrait beside text, not a full-width square */
.rm711-ambassador-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.rm711-ambassador-top > img {
  width: 180px; height: 180px; object-fit: cover;
  border-radius: 12px; flex-shrink: 0; border: 1px solid var(--line);
}
.rm711-ambassador-top > div { flex: 1; min-width: 240px; }

/* payment / certificate strips: wide banners, fit the card */
.rm711-logo-row { margin: 6px 0; }
.rm711-logo-row img { width: 100%; max-width: 560px; height: auto; }

.rm711-social-icons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rm711-social-icons img { width: 38px; height: 38px; object-fit: contain; }

/* footer link columns */
.rm711-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.rm711-links ul { list-style: none; padding-left: 0; margin: 0; }
.rm711-links li { margin-bottom: 8px; }

/* contact + map */
.rm711-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rm711-map iframe { width: 100%; min-height: 260px; border: 0; border-radius: var(--radius); display: block; }
@media (max-width: 760px) { .rm711-contact-grid { grid-template-columns: 1fr; } }

.rm711-copyright {
  text-align: center; color: var(--muted); font-size: 14px;
  padding-top: 22px; margin-top: 6px; border-top: 1px solid var(--line);
}

/* --------------------------------------------------------- blog index */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 36px; }
.card { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease, transform .18s ease; }
.card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.card h2 { font-size: 19px; margin: 0 0 10px; line-height: 1.4; }
.card h2 a { color: #fff; }
.card h2 a:hover { color: var(--gold); text-decoration: none; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.card .read-more { align-self: flex-start; margin-top: 12px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 24px 28px; }
.foot-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-soft); }
.foot-grid a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 9px; }
.foot-grid a:hover { color: var(--gold); text-decoration: none; }
.foot-bottom { max-width: var(--wrap); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot-bottom p { margin: 0 0 6px; }

/* hide leftover casino-template chrome that pointed at the dead platform */
#floatcontainer, .floating-fly, #custom-menu-widget, .swiper, #floatclose { display: none !important; }

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .cta-btn { margin-left: auto; }
  main { padding: 32px 18px 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
