/* ExamRankers product pages: /online-exam-software and /features. Builds on
   the .er-page blocks in style.css (erp-*) and uses its tokens (--navy,
   --blue, --green, ...). */

/* ---------- hero: copy on the left, an exam screen on the right ---------- */
.er-page .oes-hero { padding: 64px 0 132px; }
.er-page .oes-hero .erp-sub { margin-left: 0; max-width: 540px; }
.er-page .oes-hero .erp-actions { justify-content: flex-start; }
.oes-points {
  list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500;
}
.oes-points i { color: var(--green-lt); margin-right: 6px; }

.oes-hero-visual { position: relative; max-width: 460px; margin-left: auto; padding: 0 0 58px 36px; }
.er-page .oes-hero-visual .erp-mock { max-width: none; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.oes-exam-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: .8rem;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.oes-exam-bar > :first-child { margin-right: auto; font-weight: 600; color: var(--navy); }
.oes-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-weight: 600; }
.oes-lang span { padding: 2px 10px; }
.oes-lang .on { background: var(--blue); color: #fff; }
.oes-timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }
.oes-q { font-weight: 700; color: var(--navy); }
.oes-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .9rem; color: var(--text);
}
.oes-opt b {
  width: 24px; height: 24px; border-radius: 50%; background: var(--light); color: var(--blue); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: .75rem;
}
.oes-opt.on { border-color: var(--blue); background: #f3f7ff; }
.oes-opt.on b { background: var(--blue); color: #fff; }
.oes-float {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: 14px; padding: 12px 16px; color: var(--navy); box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.oes-float small { display: block; color: var(--muted); font-size: .78rem; }
.oes-float strong { display: block; font-size: 1.05rem; line-height: 1.2; }

/* ---------- the four headline features, overlapping the hero ---------- */
.oes-highlights { position: relative; margin-top: -76px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.oes-highlight {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text);
  box-shadow: 0 16px 40px rgba(11,20,55,.1); transition: transform .2s ease, border-color .2s ease;
}
.oes-highlight:hover { transform: translateY(-3px); border-color: #c7d7fe; color: var(--text); }
.oes-highlight strong { display: block; color: var(--navy); font-size: .98rem; margin-bottom: 2px; }
.oes-highlight small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }

/* ---------- at a glance ---------- */
.oes-facts { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.oes-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 13px 20px; }
.oes-facts > div + div { border-top: 1px solid var(--border); }
.oes-facts dt { font-weight: 700; color: var(--navy); font-size: .9rem; }
.oes-facts dd { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- feature grid ---------- */
.oes-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.oes-feature {
  grid-column: span 12; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; scroll-margin-top: 90px; transition: box-shadow .2s ease, border-color .2s ease;
}
.oes-feature:hover, .oes-feature:target { border-color: #c7d7fe; box-shadow: 0 14px 34px rgba(11,20,55,.08); }
.oes-feature-text { flex: 1; display: flex; flex-direction: column; }
.oes-feature-head { display: flex; align-items: center; gap: 12px; }
.er-page .oes-feature-head .erp-icon { width: 42px; height: 42px; font-size: 1.15rem; }
.oes-feature h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 16px 0 8px; }
.oes-feature-text > p { color: var(--muted); line-height: 1.65; margin: 0; }
.er-page .oes-feature .erp-checks { margin-top: 16px; gap: 8px; font-size: .92rem; }
.er-page .oes-feature .erp-link { margin-top: auto; padding-top: 18px; text-decoration: none; align-self: flex-start; }
.oes-visual {
  margin-top: 22px; border-radius: 16px; padding: 22px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef4ff 0%, #f5f0ff 100%); border: 1px solid #e3e9fb;
}
.er-page .oes-visual .erp-tiles, .er-page .oes-visual .erp-mock { max-width: none; }
.oes-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.oes-chips span {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500;
  background: var(--light); color: var(--navy); border-radius: 999px; padding: 5px 12px;
}
.oes-chips i { color: var(--blue); }

/* file types an import accepts */
.oes-files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.oes-file {
  background: #fff; border-radius: 12px; padding: 14px 6px; text-align: center; font-weight: 600;
  font-size: .82rem; color: var(--navy); box-shadow: 0 4px 14px rgba(11,20,55,.06);
}
.oes-file i { display: block; font-size: 1.7rem; margin-bottom: 6px; }
.oes-file .pdf { color: #e11d48; }
.oes-file .word { color: #1a56db; }
.oes-file .excel { color: #16a34a; }
.oes-file .ai { color: #7c3aed; }

/* one question in two languages */
.oes-bi { width: 100%; display: grid; gap: 10px; }
.oes-bi > div { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(11,20,55,.06); }
.oes-bi small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.oes-bi strong { display: block; color: var(--navy); }
.oes-bi span { color: var(--muted); font-size: .88rem; }

/* ---------- dark "platform" strip ---------- */
.er-page .oes-dark {
  background: linear-gradient(120deg, #060d2e 0%, var(--navy) 55%, #0e1f5b 100%); color: #fff;
  position: relative; overflow: hidden;
}
.er-page .oes-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(26,86,219,.4) 0%, transparent 60%);
}
.er-page .oes-dark .container { position: relative; }
.er-page .oes-dark .erp-eyebrow { color: var(--cyan); }
.er-page .oes-dark .erp-head h2 { color: #fff; }
.er-page .oes-dark .erp-head p { color: rgba(255,255,255,.72); }
.oes-pillar { height: 100%; padding: 24px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.oes-pillar h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 16px 0 8px; }
.oes-pillar p { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ---------- paper vs online ---------- */
.oes-compare-wrap { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: #fff; }
.oes-compare { width: 100%; min-width: 620px; margin: 0; border-collapse: collapse; }
.oes-compare th, .oes-compare td { padding: 15px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); font-size: .94rem; }
.oes-compare thead th { border-top: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f7f9fe; }
.oes-compare tbody th { width: 22%; color: var(--navy); font-weight: 700; }
.oes-compare td { color: var(--muted); }
.oes-compare td.online { background: #f0fbf4; color: var(--text); font-weight: 500; }
.oes-compare td.online i { color: var(--green); margin-right: 6px; }
.oes-compare thead th.online { background: var(--green); color: #fff; }

/* ---------- other modules ---------- */
.oes-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.oes-module { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.er-page .oes-module .erp-icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
.oes-module h3 { font-size: .98rem; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.oes-module p { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 0; }

/* ---------- FAQ: heading beside the questions ---------- */
.oes-faq-side { position: sticky; top: 96px; }
.oes-faq-side h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; color: var(--navy); margin: 10px 0 12px; }
.oes-faq-side p { color: var(--muted); }
.er-page .oes-faq-side .erp-link { text-decoration: none; }

/* ---------- /features: a centred hero, then features in numbered groups ---------- */
.er-page .oes-hero-center { padding-bottom: 132px; }
.oes-group { padding: 64px 0; scroll-margin-top: 80px; }
.oes-group + .oes-group { border-top: 1px solid var(--border); }
.oes-group-alt { background: #f7f9fe; }
.oes-group-head { display: flex; align-items: flex-start; gap: 20px; max-width: 760px; margin-bottom: 32px; }
.oes-group-num {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
}
.oes-group-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; color: var(--navy); margin: 4px 0 8px; }
.oes-group-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.oes-visual img { max-width: 100%; max-height: 250px; object-fit: contain; }
.er-page .oes-visual .oes-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.er-page .oes-visual .erp-tile { min-width: 0; }

/* every feature, as a list to scan */
.oes-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.oes-index > div { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.oes-index h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.er-page .oes-index h3 .erp-icon { width: 34px; height: 34px; font-size: .95rem; border-radius: 9px; }
.er-page .oes-index .erp-checks { margin: 0; gap: 8px; font-size: .88rem; }
.er-page .oes-index .erp-checks li { font-weight: 400; color: var(--muted); }
.er-page .oes-index .erp-checks i { font-size: .95rem; }

/* ---------- responsive ---------- */
@media (min-width: 768px) {
  .oes-span-4 { grid-column: span 6; }
}
@media (min-width: 992px) {
  .oes-span-7 { grid-column: span 7; }
  .oes-span-5 { grid-column: span 5; }
  .oes-span-4 { grid-column: span 4; }
  /* a wide card puts its picture beside the text */
  .oes-wide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center; }
  .er-page .oes-wide .erp-tiles { grid-template-columns: 1fr; }
  .oes-wide .oes-visual { margin-top: 0; }
  /* the first card of a group runs the height of the two beside it */
  .oes-tall { grid-row: span 2; }
  /* ...and its picture takes up whatever height is left over */
  .oes-tall .oes-feature-text { flex: 0 0 auto; }
  .oes-tall .oes-visual { flex: 1; min-height: 220px; }
  .oes-tall .oes-visual img { max-height: 320px; }
}
@media (max-width: 1199.98px) {
  .oes-modules, .oes-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .er-page .oes-hero { text-align: center; }
  .er-page .oes-hero .erp-sub { margin: 0 auto; }
  .er-page .oes-hero .erp-actions, .oes-points { justify-content: center; }
  .oes-hero-visual { margin: 44px auto 0; text-align: left; }
  .oes-highlights { grid-template-columns: repeat(2, 1fr); }
  .oes-faq-side { position: static; }
}
@media (max-width: 575.98px) {
  .oes-highlights, .oes-modules, .oes-index { grid-template-columns: 1fr; }
  .oes-group { padding: 44px 0; }
  .oes-group-head { gap: 14px; }
  .oes-group-num { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
  .er-page .oes-visual .oes-tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .er-page .oes-visual .erp-tile { padding: 12px; gap: 10px; font-size: .86rem; }
  .oes-visual { padding: 16px; }
  .oes-hero-visual { padding: 0 0 58px 0; }
  .oes-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .oes-feature { padding: 22px; }
  .oes-files { grid-template-columns: repeat(2, 1fr); }
  /* all three columns stay on screen instead of scrolling sideways */
  .oes-compare { min-width: 0; }
  .oes-compare th, .oes-compare td { padding: 11px 12px; font-size: .84rem; }
  .oes-compare tbody th { width: 26%; }
}
