/*
 * faq.css — SimCash.io FAQ pages (faq/)
 * Integrated into main site; uses Bootstrap 5 + stylenew.css navbar/footer.
 * Fonts: Montserrat, Open Sans (loaded by main site).
 * -----------------------------------------------------------------------------
 */

/* ===== BASE FONT SIZE (1rem = 32px) ====================================== */
html {
  font-size: 20px;
}

/* ===== CSS VARIABLES ===================================================== */
:root {
  --faq-midnight: linear-gradient(135deg, rgb(2,3,129) 0%, rgb(40,116,252) 100%);
  --faq-amber:    linear-gradient(135deg, rgb(252,185,0) 0%, rgb(255,105,0) 100%);
  --faq-green:    linear-gradient(135deg, rgb(122,220,180) 0%, rgb(0,208,130) 100%);
  --faq-cta-bg:   radial-gradient(circle, rgb(2,3,129) 81%, rgb(40,116,252) 100%);

  --faq-primary:  #2f2c4f;
  --faq-body:     #6d6c83;
  --faq-link:     #2e1cff;
  --faq-white:    #ffffff;
  --faq-light:    #f2f4fa;

  --faq-radius:   35px;
  --faq-gap:      2.25rem;
}

/* ===== GENERAL BODY RESET FOR FAQ PAGES ================================== */
.faq-page {
  font-family: 'Open Sans', sans-serif;
  color: var(--faq-body);
  background-color: var(--faq-white);
}

.faq-page h1,
.faq-page h2,
.faq-page h3,
.faq-page h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--faq-primary);
}

.faq-page a {
  color: var(--faq-link);
}

.faq-page p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.faq-page .container .row {
    margin-bottom: 3rem;
}

/* ===== HERO BANNER (hub page) ============================================ */
.faq-hero {
  background-image: url('../images/dark-blue-gradient-ipad-air-wallpapers-hd.jpg');
  background-size: cover;
  background-position: center;
  color: var(--faq-white);
  padding: 100px 0 70px;
  text-align: center;
}

.faq-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--faq-white);
  margin-bottom: 1rem;
}

.faq-hero p.tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.faq-hero .btn-faq-primary {
  background: var(--faq-white);
  color: var(--faq-primary);
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 8px 10px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.faq-hero .btn-faq-primary:hover {
  opacity: 0.85;
  color: var(--faq-primary);
}

.faq-hero .btn-faq-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--faq-white);
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 8px 10px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.faq-hero .btn-faq-secondary:hover {
  background: rgba(255,255,255,0.28);
  color: var(--faq-white);
}

/* ===== NAVBAR OFFSET FOR FAQ PAGES ======================================== */
/* The fixed navbar has height:120px via .header-style .navbar-main.
   Give #header a real layout height so the page-title sits naturally below
   it in document flow — no more margin-top hacks.
   Also force top:0 so the navbar never drifts when scroll=0 and .stiky
   is removed by script.js.                                                  */
.faq-page #header {
  height: 120px;
  background: var(--faq-midnight);
}

.faq-page #header .navbar-main {
  top: 0;
}

/* ===== PAGE TITLE (sub-pages) — sticky bar below the fixed navbar ======= */
/* No margin-top needed: #header already occupies 120px in layout flow.
   position:sticky + top:120px keeps it glued right under the navbar
   throughout the entire scroll range, including scroll=0.                   */
.faq-page-title {
  position: sticky;
  top: 120px;
  z-index: 1020;          /* Bootstrap sticky-top layer — above content */
  background: var(--faq-midnight);
  color: var(--faq-white);
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(2, 3, 129, 0.35);
}

/* Inner layout: nav left, h1 right */
.faq-page-title-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.faq-page-title h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--faq-white);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== TOPIC NAV ========================================================== */
.faq-topic-nav {
  flex: 1;
  min-width: 0;
}

/* Horizontal list, no bullets */
.faq-topic-nav .wp-block-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each top-level item */
.faq-topic-nav .wp-block-navigation-item {
  position: relative;
  list-style: none;
}

/* Top-level link + chevron wrapper */
.faq-topic-nav .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.faq-topic-nav .wp-block-navigation-item__content:hover,
.faq-topic-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Chevron toggle button */
.faq-topic-nav .wp-block-navigation__submenu-icon {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0.35rem 0.3rem 0.35rem 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.18s, transform 0.18s;
  vertical-align: middle;
}

.faq-topic-nav .wp-block-navigation-item:hover .wp-block-navigation__submenu-icon {
  color: #fff;
  transform: rotate(180deg);
}

/* ===== SUBMENU ============================================================ */
.faq-topic-nav .wp-block-navigation__submenu-container {
  display: none;
  position: absolute;
  top: 100%;           /* nessun gap – il padding-top copre lo spazio visivo */
  left: 0;
  min-width: 200px;
  background: #f1f0ff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.4rem 0 0.4rem;
  padding-top: 4px;    /* spazio visivo spostato QUI per mantenere hover continuo */
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  z-index: 1050;
}

/* Show on hover */
.faq-topic-nav .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container {
  display: block;
}

.faq-topic-nav .wp-block-navigation__submenu-container .wp-block-navigation-item {
  list-style: none;
}

.faq-topic-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.78);
  border-radius: 0;
  background: transparent;
}

.faq-topic-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: #b7b7b7;
  color: #000000;
}

/* Ensure the first content section starts with comfortable breathing room */
.faq-page-title + .faq-content-section {
  padding-top: 2.5rem;
}

/* ===== TABLE OF CONTENTS BOX ============================================= */
.faq-toc {
  background: var(--faq-midnight);
  border-radius: var(--faq-radius);
  padding: 2.5rem 3rem;
  margin-bottom: 3rem;
}

.faq-toc h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--faq-white);
  margin-bottom: 1.25rem;
}

.faq-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 2rem;
}

@media (max-width: 600px) {
  .faq-toc ul {
    column-count: 1;
  }
}

.faq-toc ul li {
  margin-bottom: 0.55rem;
}

.faq-toc ul li a {
  color: var(--faq-white);
  text-decoration: none;
  font-size: 0.97rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.faq-toc ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===== FAQ SECTION WRAPPER =============================================== */
.faq-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid #eaeaf0;
}

.faq-section:last-of-type {
  border-bottom: none;
}

/* ===== QUESTION BANNER ==================================================== */
.faq-q-banner {
  border-radius: var(--faq-radius);
  padding: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.faq-q-banner.midnight { background: var(--faq-midnight); }
.faq-q-banner.amber    { background: var(--faq-amber); }
.faq-q-banner.green    { background: var(--faq-green); }

.faq-q-banner h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--faq-white);
  margin: 0;
}

/* ===== ANSWER BODY ======================================================= */
.faq-answer {
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--faq-body);
}

.faq-answer p     { margin-bottom: 1rem; }
.faq-answer strong { color: var(--faq-primary); }
.faq-answer .disclaimer strong { color: #c0392b !important; }

.faq-answer ol,
.faq-answer ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

.faq-answer blockquote {
  background: var(--faq-light);
  border-left: 4px solid #2e1cff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-style: normal;
}

.faq-answer .warn {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.96rem;
}

.faq-answer .warn strong { color: #a05000; }

.faq-answer .disclaimer {
  color: #c0392b !important;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* ===== DEVICE-SPECIFIC SUB-SECTIONS ====================================== */
.faq-device-block {
  background: var(--faq-light);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-device-block h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--faq-primary);
  margin-bottom: 0.5rem;
}

/* ===== PAYOUT TABLE ====================================================== */
.faq-payout-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.faq-payout-table thead tr {
  background: var(--faq-midnight);
}

.faq-payout-table thead th {
  color: var(--faq-white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  border: none;
}

.faq-payout-table tbody tr:nth-child(even) {
  background: var(--faq-light);
}

.faq-payout-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e0e0ef;
  color: var(--faq-primary);
  vertical-align: middle;
}

.faq-payout-table tbody td:first-child {
  font-weight: 600;
}

/* ===== EXCHANGE GUIDE BLOCKS ============================================= */
.faq-exchange {
  background: var(--faq-light);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.faq-exchange img.exchange-logo {
  height: 40px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

.faq-exchange h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--faq-primary);
  margin-bottom: 0.75rem;
}

/* ===== FAQ CATEGORY CARDS (hub) ========================================== */
.faq-card {
  border-radius: var(--faq-radius);
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.faq-card.bg-white  { background: var(--faq-white); box-shadow: 0 4px 24px rgba(47,44,79,0.08); }
.faq-card.bg-light  { background: var(--faq-light);  box-shadow: 0 4px 24px rgba(47,44,79,0.06); }
.faq-card.bg-dark   { background: var(--faq-midnight); }

.faq-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-card.bg-dark h4      { color: var(--faq-white); }
.faq-card.bg-white h4,
.faq-card.bg-light h4     { color: var(--faq-primary); }

.faq-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.faq-card ul li {
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.faq-card.bg-dark ul li    { color: rgba(255,255,255,0.85); }
.faq-card.bg-white ul li,
.faq-card.bg-light ul li   { color: var(--faq-body); }

.faq-card .btn-card {
  display: inline-block;
  border-radius: 30px;
  padding: 9px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.faq-card.bg-dark .btn-card {
  background: var(--faq-white);
  color: var(--faq-primary);
}

.faq-card.bg-white .btn-card,
.faq-card.bg-light .btn-card {
  background: var(--faq-midnight);
  color: var(--faq-white);
}

.faq-card .btn-card:hover { opacity: 0.85; }

.faq-card a { color: white; }

/* ===== FEATURE CARDS (hub — "one account / passive income") ============== */
.faq-feature-card {
  border-radius: 30px;
  padding: 2rem;
  background: var(--faq-white);
  box-shadow: 0 4px 24px rgba(47,44,79,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.faq-feature-card img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  border-radius: 12px;
}

.faq-feature-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--faq-primary);
  margin-bottom: 0.75rem;
}

.faq-feature-card p {
  color: var(--faq-body);
  font-size: 0.97rem;
}

/* Feature card placeholder (for missing image) */
.faq-feature-card .img-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: var(--faq-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faq-body);
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

/* ===== EARN-MORE COVER SECTION =========================================== */
.faq-earn-cover {
  background-image: url('../images/dark-blue-gradient-ipad-air-wallpapers-hd.jpg');
  background-size: cover;
  background-position: center;
  color: var(--faq-white);
  padding: 70px 0;
  text-align: center;
}

.faq-earn-cover h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--faq-white);
  margin-bottom: 1rem;
}

.faq-earn-cover p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.faq-earn-cover a.btn-earn {
  background: var(--faq-white);
  color: var(--faq-primary);
  border-radius: 30px;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.faq-earn-cover a.btn-earn:hover {
  opacity: 0.85;
  color: var(--faq-primary);
}

/* ===== GUIDE SECTION (9 steps) =========================================== */
.faq-guide-section {
  padding: 5rem 0;
}

.faq-guide-section > .container > h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--faq-primary);
  margin-bottom: 0.5rem;
}

.faq-guide-section > .container > p.subtitle {
  text-align: center;
  color: var(--faq-body);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.faq-step-card {
  border-radius: var(--faq-radius);
  padding: 2rem 1.75rem;
  height: 100%;
}

.faq-step-card.bg-white { background: var(--faq-white); box-shadow: 0 4px 20px rgba(47,44,79,0.07); }
.faq-step-card.bg-light { background: var(--faq-light); }

.faq-step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--faq-midnight);
  color: var(--faq-white);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.faq-step-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--faq-primary);
  margin-bottom: 0.6rem;
}

.faq-step-card p {
  font-size: 0.92rem;
  color: var(--faq-body);
  margin: 0;
  line-height: 1.6;
}

/* ===== FOOTER CTA ======================================================== */
.faq-cta-footer {
  background: var(--faq-cta-bg);
  padding: 4rem 0;
}

.faq-cta-footer h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--faq-white);
  margin-bottom: 0.75rem;
}

.faq-cta-footer p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.faq-cta-footer .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 280px;
}

.faq-cta-footer .cta-buttons a {
  display: block;
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.97rem;
  text-align: center;
  text-decoration: none;
  background: var(--faq-white);
  color: var(--faq-primary);
  transition: opacity 0.2s;
}

.faq-cta-footer .cta-buttons a:hover {
  opacity: 0.85;
  color: var(--faq-primary);
}

/* ===== HUB SECTION HEADINGS ============================================= */
.faq-section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-section-heading h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--faq-primary);
  margin-bottom: 0.5rem;
}

.faq-section-heading p {
  color: var(--faq-body);
  font-size: 1.05rem;
}

/* ===== LOGO DIVIDER ====================================================== */
.faq-logo-divider {
  text-align: center;
  padding: 1rem 0;
}

.faq-logo-divider img {
  height: 73px;
  width: auto;
}

/* ===== CONTENT SECTIONS (hub) ============================================ */
.faq-content-section {
  padding: 5rem 0;
}

.faq-content-section.bg-light-section {
  background: var(--faq-light);
}

/* ===== RESPONSIVE ======================================================== */
@media (max-width: 767px) {
  .faq-toc {
    padding: 1.5rem 1.25rem;
  }

  .faq-q-banner {
    padding: 1rem 1.25rem;
  }

  .faq-card {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .faq-cta-footer .cta-buttons {
    max-width: 100%;
  }

  .faq-payout-table { font-size: 0.82rem; }
  .faq-payout-table thead th,
  .faq-payout-table tbody td { padding: 0.5rem 0.6rem; }

  /* Mobile navbar collapses to ~75px tall */
  .faq-page #header {
    height: 75px;
  }

  .faq-page-title {
    top: 75px;
  }
}
