/* fxpro-malaysia.com — teal + white, rounded cards, Shariah badge. Mobile-first, no frameworks. */

:root {
  --teal: #0e7a6f;
  --teal-dark: #0a5c54;
  --teal-deep: #06423c;
  --teal-tint: #e6f4f2;
  --teal-line: #bfe0dc;
  --gold: #c9a24b;
  --ink: #1d2a28;
  --ink-soft: #47605c;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 18px rgba(10, 92, 84, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: #f6faf9;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 70%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 2.6rem 0 2.4rem;
  border-bottom: 4px solid var(--gold);
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8d8d1;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 1.4rem;
  max-width: 40rem;
  color: #d7ece9;
  font-size: 1.02rem;
}

/* ---------- CTA buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

main .btn-ghost {
  color: var(--teal-dark);
  border-color: var(--teal);
}

/* ---------- Shariah / swap-free badge ---------- */

.badge-shariah {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

/* ---------- Sections as rounded cards ---------- */

main {
  padding: 1.6rem 0 2.4rem;
}

main section {
  background: var(--white);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem;
  margin: 1.3rem 0;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.32rem;
  line-height: 1.3;
  color: var(--teal-deep);
}

section > p { margin: 0 0 1rem; }
section > p:last-child { margin-bottom: 0; }

/* ---------- Quick answer ---------- */

.quick-answer {
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-left: 6px solid var(--teal);
}

.qa-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.quick-answer p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-bottom: 0.4rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--teal-line);
  vertical-align: top;
  min-width: 7rem;
}

thead th {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: var(--teal-tint); }

/* ---------- Lists ---------- */

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.5rem; }
.cost-list li { margin-bottom: 0.7rem; }

/* ---------- FAQ ---------- */

details {
  border: 1px solid var(--teal-line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  background: #fbfefd;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--teal-dark);
  list-style: none;
  position: relative;
  padding-right: 2.2rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

details[open] summary::after { content: "–"; }

details[open] summary {
  background: var(--teal-tint);
  border-bottom: 1px solid var(--teal-line);
}

details p {
  padding: 0.85rem 1rem;
  margin: 0;
}

/* ---------- Footer ---------- */

.risk-footer {
  background: var(--teal-deep);
  color: #c9dedb;
  padding: 1.8rem 0 2.2rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.risk-footer strong { color: var(--white); }

.foot-meta {
  margin-top: 0.9rem;
  color: #8fb8b2;
  font-size: 0.78rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 700px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3.4rem 0 3rem; }
  main section { padding: 1.8rem 2rem; }
  table { display: table; overflow-x: visible; }
}

/* FxPro partner disclosure bar + about block (brand guidelines) */
.partner-bar { background: #0b5d54; color: #eafaf7; font-size: .82rem; padding: .45rem 1rem; text-align: center; }
.partner-bar a { color: inherit; text-decoration: underline; font-weight: 600; }
.about-fxpro { padding: 1.5rem 1rem; max-width: 900px; margin: 0 auto; }
.about-fxpro h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.about-fxpro p { font-size: .88rem; opacity: .85; line-height: 1.6; }

/* Guide hub (home + inner pages) */
/* Guide hub (home + inner pages) */
.guide-accent-green { --guide-accent: #27b573; --guide-accent-soft: #1e8e5a; }
.guide-accent-gold { --guide-accent: #c9a24b; --guide-accent-soft: #e4c477; }
.guide-accent-crimson { --guide-accent: #b01030; --guide-accent-soft: #8c0c26; }
.guide-accent-teal { --guide-accent: #0e7a6f; --guide-accent-soft: #0a5c54; }
.guide-accent-red { --guide-accent: #c8102e; --guide-accent-soft: #9c0c24; }

.guide-header {
  border-bottom: 1px solid var(--line, rgba(255,255,255,.12));
  background: var(--guide-header-bg, var(--charcoal-deep, #121418));
  position: sticky;
  top: 0;
  z-index: 40;
}
.guide-header--light {
  --guide-header-bg: var(--bg, #fff);
  --guide-pill-bg: var(--bg-alt, #f4f4f5);
  --guide-pill-border: var(--line, #e3e3e6);
  --guide-pill-text: var(--ink, #1c1c1e);
}
.guide-header--dark {
  --guide-header-bg: var(--navy-deep, var(--charcoal-deep, #121418));
  --guide-pill-bg: rgba(255,255,255,.08);
  --guide-pill-border: rgba(255,255,255,.18);
  --guide-pill-text: var(--ink, #e8ebee);
}
.guide-header .wrap { max-width: var(--max, 1080px); margin: 0 auto; padding: 0 20px; }
.guide-header-inner { padding: 12px 0 14px; }
.guide-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.guide-header a { text-decoration: none; }
.guide-logo {
  font-weight: 800;
  color: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.guide-logo em { font-style: normal; color: var(--crimson, inherit); }
.guide-logo-accent { color: var(--guide-accent-soft, var(--guide-accent, #27b573)); }
.guide-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--guide-pill-border, rgba(255,255,255,.2));
  background: var(--guide-pill-bg, rgba(255,255,255,.06));
  color: var(--guide-pill-text, inherit);
  white-space: nowrap;
}
.guide-home-btn:hover { border-color: var(--guide-accent, #27b573); color: var(--guide-pill-text, inherit); }
.guide-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.guide-pills a.guide-pill,
.guide-pills span.guide-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--guide-pill-border, rgba(255,255,255,.18));
  background: var(--guide-pill-bg, rgba(255,255,255,.08));
  color: var(--guide-pill-text, inherit);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.guide-pills a.guide-pill:hover {
  border-color: var(--guide-accent, #27b573);
  transform: translateY(-1px);
  color: var(--guide-pill-text, inherit);
}
.guide-pills a.guide-pill:visited { color: var(--guide-pill-text, inherit); }
.guide-pills span.guide-pill.is-active,
.guide-pills a.guide-pill.is-active {
  background: var(--guide-accent, #27b573);
  border-color: var(--guide-accent, #27b573);
  color: #fff;
}

.guide-hub {
  padding: 52px 0 56px;
  background: var(--guide-hub-bg, var(--bg-alt, #f8f7f7));
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
}
.guide-hub-on-dark { --guide-hub-bg: var(--charcoal-panel, var(--navy-panel, #2b3036)); }
.guide-header--light ~ .guide-hub { --guide-hub-bg: var(--bg-alt, #f8f7f7); }
.guide-hub-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
  margin: 0 0 8px;
  font-weight: 700;
}
.guide-hub h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.guide-hub-lead { margin: 0; opacity: 0.78; max-width: 52ch; font-size: 0.95rem; }
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-top: 22px;
}
a.guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 18px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--line, #e3e3e6);
  background: var(--card, var(--white, #fff));
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.06));
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
}
a.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--guide-accent, #27b573);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  color: inherit;
}
a.guide-card:visited { color: inherit; }
.guide-card-title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; margin: 0; }
.guide-card-teaser { font-size: 0.88rem; opacity: 0.76; line-height: 1.55; margin: 0; flex: 1; }
.guide-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--guide-accent, #27b573);
}

.page-main { padding-bottom: 40px; }
.page-hero { padding: 36px 0 28px; }
.page-hero h1 { margin: 8px 0 16px; line-height: 1.2; }
.breadcrumb { font-size: 0.88rem; opacity: 0.72; margin-bottom: 10px; }
.breadcrumb a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.breadcrumb a:hover { opacity: 1; }
.cta-center { text-align: center; }
.page-main details {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--line, rgba(128,128,128,.28));
  border-radius: 8px;
  background: var(--card, rgba(255,255,255,.03));
}
.page-main details summary { cursor: pointer; font-weight: 600; }
.page-main details p { margin: 10px 0 0; }
@media (max-width: 640px) {
  .guide-header-top { flex-wrap: wrap; }
  .guide-pills { gap: 8px; }
  .guide-pills a.guide-pill,
  .guide-pills span.guide-pill { padding: 8px 14px; font-size: 0.82rem; }
}
