/* ============================================================
   gratis-auto-theorie.nl — redesign layer (additive, loaded last)
   Safe to remove: just delete the <link> in views/baseview.php.
   ============================================================ */

:root {
  --gat-blue: #0588f0;
  --gat-blue-dark: #0466c4;
  --gat-ink: #1c2733;
  --gat-muted: #5a6b7b;
  --gat-line: #e6ecf2;
  --gat-soft: #f4f8fc;
}

html { scroll-behavior: smooth; }

/* ---- Question / answer blocks (oefenvragen + onderwerp pages) ---- */
.oefenvraag {
  background: #fff;
  border: 1px solid var(--gat-line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(20, 40, 60, .06);
}
.oefenvraag h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gat-muted);
  margin: 0 0 14px;
}
.oefenvraag .question_image { border-radius: 10px; display: block; margin: 0 auto; }
.oefenvraag .questiontext {
  font-size: 19px;
  line-height: 1.5;
  color: var(--gat-ink);
  margin: 18px 0 14px;
  font-weight: 500;
}
.oefenvraag ul { list-style: none; padding: 0; margin: 0 0 6px; }
.oefenvraag ul li {
  padding: 12px 16px;
  border: 1px solid var(--gat-line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--gat-soft);
}

/* ---- Answer reveal (was an unstyled <details>) ---- */
.oefenvraag details { margin-top: 4px; }
.oefenvraag summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gat-blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .15s ease;
}
.oefenvraag summary::-webkit-details-marker { display: none; }
.oefenvraag summary::before { content: "\f06e"; font-family: "Font Awesome 5 Free", "FontAwesome"; font-weight: 900; }
.oefenvraag summary:hover,
.oefenvraag details[open] summary { background: var(--gat-blue-dark); }
.oefenvraag details > p {
  background: var(--gat-soft);
  border-left: 4px solid var(--gat-blue);
  padding: 12px 16px;
  margin: 12px 0 0;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

/* ---- Hub cards (topics / categories / articles) ---- */
.gat-card {
  background: #fff;
  border: 1px solid var(--gat-line);
  border-radius: 14px;
  padding: 22px 24px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(20, 40, 60, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 40, 60, .10); }
.gat-card h2, .gat-card h3 { margin-top: 0; }
.gat-card h2 a, .gat-card h3 a { color: var(--gat-ink); text-decoration: none; }
.gat-card h2 a:hover, .gat-card h3 a:hover { color: var(--gat-blue); }
.gat-card .btn { margin-top: 10px; }
/* equal-height cards within a Bootstrap row */
.gat-card-row { display: flex; flex-wrap: wrap; }
.gat-card-row > [class*="col-"] { display: flex; margin-bottom: 24px; }

/* ---- Buttons ---- */
.btn.get-quote { border-radius: 999px; }

/* ---- Hero ---- */
.banner, .bg-color { min-height: 440px; }
.text-border { border: none; margin-top: 60px; }
.text-dec { text-transform: none; font-weight: 700; letter-spacing: -.01em; padding: 0; font-size: 46px; }
.intro-para .big-text { font-size: 30px; }
.resume-form input[name="slug"] { width: 180px; height: 42px; }
.resume-form .btn { height: 42px; margin-left: 6px; }

/* ---- Content typography ---- */
.section-padding p { line-height: 1.7; }
.section-padding h1 { line-height: 1.25; }

/* ---- Resume-exam input on the landing page ---- */
input[name="slug"]:focus {
  outline: none;
  border-color: var(--gat-blue) !important;
  box-shadow: 0 0 0 3px rgba(5, 136, 240, .18);
}

/* ---- Richer footer links ---- */
.footer ul { list-style: none; padding: 0; }
.footer ul li a { color: #cfd8e3; transition: color .15s ease; }
.footer ul li a:hover { color: #fff; text-decoration: underline; }
.footer h4 { letter-spacing: .02em; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .banner h1.text-dec { font-size: 30px; }
  .blocks .btn { font-size: 16px; padding: 14px 12px; }   /* bigger tap targets for exam answers */
  .oefenvraag { padding: 16px; }
  .oefenvraag .questiontext { font-size: 17px; }
  .section-padding { padding: 40px 0; }
  .footer { padding: 40px 0 20px; }
}

/* ===== Exam: start screen ===== */
.start-rules { max-width: 560px; margin: 20px auto; text-align: left; }
.start-rules p { font-size: 17px; margin: 10px 0; }
.start-rules i { color: #54d94f; margin-right: 8px; }
.start-buttons { margin: 22px 0 10px; }
.start-buttons .btn { margin: 8px; }
.start-extra { background: transparent !important; border: 2px solid #fff !important; }

/* ===== Exam: single-page exam ===== */
.exam-wrap { max-width: 820px; margin: 0 auto; padding: 90px 16px 60px; }
.exam-bar {
  position: sticky; top: 58px; z-index: 100;
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--gat-line); border-radius: 12px;
  padding: 10px 16px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(20,40,60,.10);
}
.exam-timer { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gat-ink); }
.exam-timer.low { color: #d9534f; }
.exam-meta { color: var(--gat-muted); flex: 1; }
.exam-q { background: #fff; border: 1px solid var(--gat-line); border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(20,40,60,.06); }
.exam-q-head { display: flex; justify-content: space-between; align-items: center; color: var(--gat-muted); font-size: 14px; margin-bottom: 12px; }
.exam-flag { background: none; border: 1px solid var(--gat-line); border-radius: 999px; padding: 4px 12px; color: var(--gat-muted); cursor: pointer; }
.exam-flag.active { background: #ffe9c7; border-color: #f0ad4e; color: #8a5a00; }
.exam-audio { width: 100%; height: 36px; margin-bottom: 12px; }
.exam-img { max-width: 100%; max-height: 50vh; display: block; margin: 0 auto 14px; border-radius: 10px; }
.exam-qtext { font-size: 19px; font-weight: 500; color: var(--gat-ink); margin: 0 0 16px; }
.exam-opts { display: flex; flex-direction: column; gap: 10px; }
.exam-opt { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--gat-line); border-radius: 10px; cursor: pointer; background: var(--gat-soft); margin: 0; font-weight: 400; }
.exam-opt:hover { border-color: var(--gat-blue); }
.exam-opt input { margin: 0; }
.exam-navrow { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; }
.exam-navrow #examPos { color: var(--gat-muted); font-weight: 500; }
.exam-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 10px 0; }
.exam-grid-btn { border: 1px solid var(--gat-line); background: #fff; border-radius: 6px; padding: 8px 0; cursor: pointer; font-size: 14px; color: var(--gat-ink); }
.exam-grid-btn.answered { background: #e3f7e6; border-color: #54d94f; }
.exam-grid-btn.flagged { border-color: #f0ad4e; box-shadow: inset 0 0 0 2px #f0ad4e; }
.exam-grid-btn.current { outline: 2px solid var(--gat-blue); font-weight: 700; }
.exam-help { color: var(--gat-muted); font-size: 14px; text-align: center; margin: 12px 0; }
.exam-score { font-size: 30px; font-weight: 700; color: var(--gat-blue); margin: 6px 0; }

@media (max-width: 768px) {
  .exam-grid { grid-template-columns: repeat(8, 1fr); }
  .start-buttons .btn { display: block; width: 100%; }
}

/* ===== Modal (replaces native alert/confirm) ===== */
.gat-modal { position: fixed; inset: 0; background: rgba(20,30,40,.55); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.gat-modal-box { background: #fff; border-radius: 14px; padding: 28px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.gat-modal-box p { font-size: 18px; color: var(--gat-ink); margin: 0 0 22px; line-height: 1.5; }
.gat-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gat-modal-actions .btn { min-width: 130px; }

/* ===== Consistent exam CTA button (used on every page) ===== */
.cta-exam {
  display: inline-block; background: var(--gat-blue); color: #fff !important;
  font-size: 19px; font-weight: 600; padding: 14px 36px; border-radius: 999px;
  border: 2px solid var(--gat-blue); text-decoration: none !important;
  transition: background .15s ease, color .15s ease; line-height: 1.2;
}
.cta-exam:hover, .cta-exam:focus { background: #fff; color: var(--gat-blue) !important; }

/* ===== Content pages (onderwerpen, kosten, oefenen) ===== */
.content-page { max-width: 820px; margin: 100px auto 0; text-align: left; }
.content-page h1 { text-align: center; margin-bottom: 10px; }
.content-page .page-intro { text-align: center; color: var(--gat-muted); max-width: 680px; margin: 0 auto 36px; font-size: 17px; }
.content-page h2 { font-size: 24px; margin: 38px 0 14px; }
.content-page p { line-height: 1.7; }
.content-page ul.bullets { list-style: disc; line-height: 1.8; padding-left: 24px; } .content-page ul.bullets li { list-style: disc !important; margin-left: 4px; }
.content-page hr { border: 0; border-top: 1px solid var(--gat-line); margin: 36px 0; }
.content-cta { text-align: center; margin: 44px 0 10px; }
.content-cta p { color: var(--gat-muted); margin-bottom: 16px; }

/* info-list: title + description rows */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li { background: #fff; border: 1px solid var(--gat-line); border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(20,40,60,.05); }
.info-list .il-title { font-weight: 600; color: var(--gat-ink); display: block; margin-bottom: 4px; }
.info-list .il-desc { color: var(--gat-muted); }

/* price-list: kosten */
.price-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--gat-line); border-radius: 12px; overflow: hidden; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--gat-line); background: #fff; }
.price-list li:last-child { border-bottom: 0; }
.price-list .pl-label { color: var(--gat-ink); }
.price-list .pl-price { font-weight: 700; color: var(--gat-blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-note { color: var(--gat-muted); font-size: 14px; margin-top: 14px; }

/* ===== Mobile: horizontal breathing room (no edge-to-edge content) ===== */
@media (max-width: 768px) {
  .banner-text { padding-left: 20px; padding-right: 20px; }
  .content-page { padding-left: 12px; padding-right: 12px; }
  .exam-wrap { padding-left: 18px; padding-right: 18px; }
  .start-buttons .btn { white-space: normal; }
}

/* ===== Unified list view (hubs: topics / categories / articles) ===== */
.gat-list { max-width: 760px; margin: 0 auto; }
.gat-list-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--gat-line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
  text-decoration: none; color: var(--gat-ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.gat-list-item:hover { border-color: var(--gat-blue); box-shadow: 0 6px 18px rgba(20,40,60,.08); transform: translateY(-1px); }
.gat-list-main { flex: 1; min-width: 0; }
.gat-list-title { display: block; font-size: 18px; font-weight: 600; color: var(--gat-ink); margin-bottom: 3px; }
.gat-list-meta { display: block; font-size: 14px; color: var(--gat-muted); line-height: 1.5; }
.gat-list-cta { color: var(--gat-blue); font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
@media (max-width: 600px) {
  .gat-list-item { padding: 14px 16px; gap: 10px; }
  .gat-list-cta { font-size: 14px; }
}

/* ===== Small phones (<=400px) safety ===== */
@media (max-width: 400px) {
  .exam-bar { gap: 8px; padding: 8px 12px; }
  .exam-timer { font-size: 18px; }
  .exam-meta { font-size: 13px; }
  .exam-bar .btn { padding: 6px 12px; font-size: 14px; }
  .exam-grid { grid-template-columns: repeat(6, 1fr); }
  .gat-list-item { padding: 13px 14px; }
  .gat-list-title { font-size: 16px; }
  .cta-exam { font-size: 17px; padding: 13px 24px; }
}

/* ===== Homepage: fix float overlap + dead whitespace in mid sections ===== */
.section-padding .row { padding-top: 0; }              /* kill compounding 75px row offset */
#structuur .col-md-6 { float: none; width: 100%; }     /* stack cleanly, no float overlap */
#structuur .col-md-6:first-child {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px;
}
#structuur .col-md-6:first-child > [class*="col-"] { width: auto; float: none; padding: 0; }
.detail-info { max-width: 680px; margin: 0 auto; text-align: center; }
.detail-info .det-txt { font-size: 26px; margin-bottom: 4px; }
p.det-p { padding: 10px 0; }
.feature-info { overflow: hidden; }                    /* clear floated .fea columns */
.header-section { margin-bottom: 8px; }

/* keep step/info lists readable inside centered .detail-info */
.detail-info ul { text-align: left; display: inline-block; margin: 0 auto; }
