/* ============================================================
   coverage-quiz.com — Standalone styles
   Color palette from logo:
     Navy Blue:       #14213D  (text, headings, buttons, dark accents)
     Electric Orange: #FCA311  (highlights, CTAs, progress bar)
     Light Blue:      #007EA7  (secondary accents, links)
     Soft Gray:       #E5E5E5  (backgrounds, borders, cards)
     White:           #FFFFFF  (page background, icon highlights)
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #14213D;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* === Navigation === */
.navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E5E5E5;
}

.navigation-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-navy { color: #14213D; }
.logo-orange { color: #FCA311; }
.logo-gray { color: #6b7280; }

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #14213D;
  transition: color 0.2s;
}

.nav-item:hover { color: #007EA7; }

/* Mobile nav */
@media screen and (max-width: 767px) {
  .nav-menu { gap: 16px; }
  .nav-item { font-size: 12px; }
  .navigation-wrap { padding: 12px 16px; }
}

/* === Page Layout === */
.page-wrap {
  flex: 1;
  padding: 0;
}

.container-global {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.spacer { height: 32px; }

@media screen and (max-width: 479px) {
  .container-global { padding: 0 12px; }
  .spacer { height: 20px; }
}

/* === Welcome Page === */
.main-block.welcome {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
}

.image-block.welcome {
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.image-block.welcome img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.welcome-title h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  color: #14213D;
  text-align: center;
}

.welcome-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #14213D;
}

.welcome-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: #14213D;
}

.welcome-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: #14213D;
}

.welcome-content p {
  margin-bottom: 14px;
}

.welcome-content ul {
  margin: 10px 0 14px 24px;
  list-style: disc;
}

.welcome-content li {
  margin-bottom: 8px;
}

/* Stack on tablet + phone */
@media screen and (max-width: 991px) {
  .main-block.welcome {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .image-block.welcome {
    position: static;
    max-height: 300px;
  }

  .welcome-title h1 { font-size: 28px; }
}

@media screen and (max-width: 479px) {
  .welcome-title h1 { font-size: 24px; }
  .welcome-content { font-size: 15px; }
  .welcome-content h2 { font-size: 20px; }
}

/* === CTA Button === */
.cta-block {
  text-align: center;
  padding: 24px 0;
}

.cta-button {
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

/* === Shared Button Style === */
.q-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 1px solid #14213D;
  border-radius: 12px;
  background-color: #14213D;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 350ms ease;
}

.q-button:hover {
  background-color: #FCA311;
  border-color: #FCA311;
  color: #14213D;
  box-shadow: rgba(20, 33, 61, 0.2) 0px 5px 6px 0px;
}

@media screen and (max-width: 479px) {
  .q-button {
    font-size: 18px;
    border-width: 2px;
    border-radius: 4px;
    padding: 14px 18px;
  }
}

/* === Index Page === */

/* Reusable two-column block with grey background */
.index-block {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
  align-items: center;
  background: #E5E5E5;
  border-radius: 16px;
  margin-top: 24px;
}

/* Flip: text-first blocks get 60/40 */
.index-block.text-first {
  grid-template-columns: 60% 40%;
}

.index-block-image {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-block-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
}

.index-block-text {
  padding: 28px 32px;
}

.index-block-text h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #14213D;
}

.index-block-text h2 {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #14213D;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 600;
  color: #14213D;
  margin-bottom: 20px;
  line-height: 1.4;
  opacity: 0.75;
}

.index-block-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #14213D;
  margin-bottom: 14px;
  opacity: 0.85;
}

.index-block-text ul {
  margin: 10px 0 14px 24px;
  list-style: disc;
  opacity: 0.85;
}

.index-block-text li {
  font-size: 16px;
  line-height: 1.7;
  color: #14213D;
  margin-bottom: 8px;
}

.index-block-text a {
  color: #007EA7;
  text-decoration: underline;
}

.index-block-text a:hover {
  color: #FCA311;
}

/* Stack on tablet + phone */
@media screen and (max-width: 991px) {
  .index-block {
    grid-template-columns: 1fr;
  }

  .index-block-image {
    padding: 24px 24px 0;
  }

  .index-block-image img { max-width: 280px; }

  .index-block-text {
    padding: 20px 24px 24px;
  }

  .index-block-text h1 { font-size: 32px; }
  .hero-tagline { font-size: 18px; }
}

@media screen and (max-width: 479px) {
  .index-block-text h1 { font-size: 26px; }
  .index-block-text h2 { font-size: 22px; }
  .hero-tagline { font-size: 16px; }
  .index-block-image img { max-width: 220px; }
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 0 48px;
}

.topic-card {
  border-radius: 16px;
  overflow: hidden;
  background: #E5E5E5;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.topic-card:hover {
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.15);
  transform: translateY(-2px);
}

.topic-card-image {
  height: 180px;
  overflow: hidden;
}

.topic-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card-body {
  padding: 20px;
}

.topic-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #14213D;
}

.topic-card-body p {
  font-size: 14px;
  color: #14213D;
  opacity: 0.65;
  margin-bottom: 16px;
}

.topic-card-cta {
  font-size: 14px;
  font-weight: 700;
  color: #FCA311;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === Quiz / Combo Page === */
.big-block {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quiz-shell {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding: 5px;
  gap: 12px;
  overflow-x: hidden;
}

@media screen and (max-width: 479px) {
  .big-block { padding-left: 5px; padding-right: 5px; }
  .quiz-shell { padding: 5px; }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .big-block { padding-left: 5px; padding-right: 5px; }
  .quiz-shell { padding: 5px; }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .big-block { padding-left: 5px; padding-right: 5px; }
  .quiz-shell { padding: 5px; }
}

#quiz-wrapper * { box-sizing: border-box; }

/* Animations */
.fade-in { animation: fadeIn 0.9s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Combo container */
.combo-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qz-combo {
  display: grid !important;
  grid-template-columns: 40% 60%;
  grid-template-areas:
    "progress progress"
    "image content";
  column-gap: 28px;
  row-gap: 18px;
  align-items: stretch;
  background: #E5E5E5;
  border-radius: 16px;
  padding-left: 10px;
  padding-right: 50px;
}

.progress-row { grid-area: progress; }
.qz-img { grid-area: image; height: 100%; }
.qz-content { grid-area: content; min-width: 0; }

@media screen and (max-width: 991px) {
  .qz-combo {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "image"
      "content";
    padding: 12px;
  }
}

/* Progress bar */
.progress-rail {
  width: 100%;
  height: 15px;
  background: rgba(20, 33, 61, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #FCA311;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feedback styling */
.feedback-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.feedback-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.feedback-body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

.feedback-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
  width: 100%;
}

.feedback-actions .q-button {
  width: 100%;
  max-width: 360px;
}

@media screen and (max-width: 479px) {
  .feedback-title { font-size: 22px; }
  .feedback-body { font-size: 14px; }
  .feedback-actions { flex-direction: column; }
}

/* Image styling */
.qz-img,
.quiz-image-container {
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #E5E5E5;
}

.quiz-image-container img {
  width: 100% !important;
  display: block;
  border-radius: 12px !important;
}

@media screen and (min-width: 992px) {
  .qz-combo { padding-top: 5px; }
  .options-block { margin-bottom: 5px; }
  .quiz-image-container { height: 100%; }
  .quiz-image-container img {
    height: 100% !important;
    object-fit: cover !important;
  }
}

@media screen and (min-width: 428px) and (max-width: 991px) {
  .qz-combo { padding-top: 5px; padding-bottom: 2.5px; }
  .quiz-image-container {
    height: 300px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .quiz-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
  }
}

@media screen and (max-width: 427px) {
  .qz-combo { padding-top: 5px; padding-bottom: 2.5px; }
  .quiz-image-container img {
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
  }
}

/* Quiz typography */
.quiz-qnum {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #14213D;
}

.quiz-divider {
  height: 2px;
  background: #14213D;
  opacity: 0.9;
  margin: 10px 0 18px;
  width: 100%;
}

.quiz-leadin {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007EA7;
  margin-bottom: 10px;
}

.question-main-text {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  line-height: 1.5;
  color: #14213D;
  font-weight: 600;
  text-decoration: none !important;
}

@media screen and (max-width: 480px) {
  .quiz-leadin { font-size: 12px; margin-bottom: 8px; }
  .question-main-text { font-size: 16px; line-height: 1.35; }
}

/* Answer options grid */
.options-block {
  display: grid;
  width: 100%;
  margin-top: 20px;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

@media screen and (max-width: 991px) {
  .options-block { grid-template-columns: 1fr; }
}

/* Quiz buttons — height for answer tiles */
#quiz-wrapper .q-button {
  width: 100%;
  height: 100%;
  min-height: 110px;
}

/* Scrollbar */
.quiz-scroll {
  scrollbar-width: thin;
  scrollbar-color: #007EA7 transparent;
}
.quiz-scroll::-webkit-scrollbar { width: 8px; }
.quiz-scroll::-webkit-scrollbar-thumb { background: #007EA7; border-radius: 8px; }
.quiz-scroll::-webkit-scrollbar-track { background: transparent; }

/* === Footer === */
.footer {
  background: #14213D;
  padding: 24px 0;
  margin-top: auto;
}

.footer .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-wrap {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-link:hover { color: #FCA311; }
