/* ================================
   Discover Canada Practice App
   No WordPress header/footer styles
================================ */

#dc-practice-app {
  font-family: Arial, Helvetica, sans-serif;
  color: #071b4d;
  background: #ffffff;
}

#dc-practice-app * {
  box-sizing: border-box;
}

#dc-practice-app .hidden {
  display: none;
}

/* Hero Section */
#dc-practice-app .dc-practice-hero {
  min-height: 220px;
  padding: 50px 48px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #f4f8ff 0%, #eaf3ff 100%);
  position: relative;
  overflow: hidden;
}

#dc-practice-app .dc-practice-hero::after {
  content: "🏛️";
  position: absolute;
  right: 90px;
  bottom: 20px;
  font-size: 120px;
  opacity: 0.12;
}

#dc-practice-app .dc-practice-hero-content {
  position: relative;
  z-index: 2;
}

#dc-practice-app .dc-practice-hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #071b4d;
}

#dc-practice-app .dc-practice-hero p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  color: #33466f;
}

/* Main Container */
#dc-practice-app .dc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 32px 60px;
}

#dc-practice-app .dc-container h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 26px;
  color: #071b4d;
}

/* Chapter Grid */
#dc-practice-app .chapter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

#dc-practice-app .chapter-card {
  position: relative;
  min-height: 210px;
  padding: 24px 20px 18px;
  border: 1px solid #dfe6f2;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(7, 27, 77, 0.08);
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  color: #071b4d;
  font-family: inherit;
}

/* No hover color change */
#dc-practice-app .chapter-card:hover {
  background: #ffffff;
  color: #071b4d;
  border-color: #dfe6f2;
  box-shadow: 0 6px 16px rgba(7, 27, 77, 0.08);
  transform: none;
}

#dc-practice-app .chapter-number {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0f2a60;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

#dc-practice-app .chapter-icon {
  font-size: 48px;
  margin: 26px 0 14px;
  line-height: 1;
}

#dc-practice-app .chapter-card h3 {
  min-height: 48px;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 22px;
  color: #071b4d;
}

#dc-practice-app .chapter-card:hover h3 {
  color: #071b4d;
}

#dc-practice-app .chapter-footer {
  border-top: 1px solid #e3e9f2;
  padding-top: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #33466f;
  font-size: 15px;
}

#dc-practice-app .chapter-card:hover .chapter-footer {
  color: #33466f;
}

/* Hide chapter card arrow */
#dc-practice-app .chapter-arrow {
  display: none;
}

/* Source Box */
#dc-practice-app .source-box {
  margin-top: 34px;
  padding: 28px 34px;
  border: 1px solid #c7dcff;
  border-radius: 13px;
  background: #f1f7ff;
  display: flex;
  align-items: center;
  gap: 22px;
}

#dc-practice-app .source-icon {
  font-size: 44px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #e1efff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dc-practice-app .source-box strong {
  font-size: 18px;
  color: #071b4d;
}

#dc-practice-app .source-box p {
  margin: 8px 0 0;
  color: #33466f;
}

/* Quiz View */
#dc-practice-app .back-btn {
  border: none;
  background: none;
  color: #0b5cff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 24px;
  padding: 0;
  font-family: inherit;
}

#dc-practice-app .back-btn:hover {
  background: none;
  color: #0b5cff;
  text-decoration: underline;
}

#dc-practice-app .quiz-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 20px;
}

#dc-practice-app .quiz-top h2 {
  margin: 0;
  text-align: center;
}

#dc-practice-app #question-count {
  background: #e7f0ff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  color: #0b3d91;
  white-space: nowrap;
}

#dc-practice-app .progress-bar {
  height: 8px;
  width: 70%;
  background: #e1e7f0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

#dc-practice-app #progress-fill {
  height: 100%;
  width: 0;
  background: #149954;
  border-radius: 20px;
  transition: 0.3s ease;
}

#dc-practice-app .quiz-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 34px;
  align-items: start;
}

/* Question Card */
#dc-practice-app .question-card,
#dc-practice-app .answer-panel {
  border: 1px solid #dfe6f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(7, 27, 77, 0.08);
}

#dc-practice-app .question-card {
  padding: 34px;
}

#dc-practice-app .question-card h3 {
  font-size: 25px;
  line-height: 1.35;
  margin: 0 0 28px;
  color: #071b4d;
}

#dc-practice-app .options {
  display: grid;
  gap: 14px;
}

#dc-practice-app .option-btn {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  background: #ffffff;
  color: #071b4d;
  font-size: 17px;
  line-height: 1.4;
  text-align: left;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* No hover color change for options */
#dc-practice-app .option-btn:hover {
  border-color: #cfd9e8;
  background: #ffffff;
  color: #071b4d;
}

#dc-practice-app .option-btn.selected {
  border-color: #0b5cff;
  background: #f0f6ff;
  color: #071b4d;
}

#dc-practice-app .option-btn.selected:hover {
  border-color: #0b5cff;
  background: #f0f6ff;
  color: #071b4d;
}

#dc-practice-app .option-btn.correct {
  border-color: #15965d;
  background: #eafaf1;
  color: #0a7b43;
  font-weight: 700;
}

#dc-practice-app .option-btn.correct:hover {
  border-color: #15965d;
  background: #eafaf1;
  color: #0a7b43;
}

#dc-practice-app .option-btn.incorrect {
  border-color: #e33434;
  background: #fff0f0;
  color: #c42020;
  font-weight: 700;
}

#dc-practice-app .option-btn.incorrect:hover {
  border-color: #e33434;
  background: #fff0f0;
  color: #c42020;
}

#dc-practice-app .radio-circle {
  width: 18px;
  height: 18px;
  border: 2px solid #aebbd0;
  border-radius: 50%;
  flex-shrink: 0;
}

#dc-practice-app .option-btn:hover .radio-circle {
  border-color: #aebbd0;
  background: transparent;
}

#dc-practice-app .option-btn.selected .radio-circle,
#dc-practice-app .option-btn.selected:hover .radio-circle {
  border-color: #0b5cff;
  background: #0b5cff;
}

#dc-practice-app .option-btn.correct .radio-circle,
#dc-practice-app .option-btn.correct:hover .radio-circle {
  border-color: #15965d;
  background: #15965d;
}

#dc-practice-app .option-btn.incorrect .radio-circle,
#dc-practice-app .option-btn.incorrect:hover .radio-circle {
  border-color: #e33434;
  background: #e33434;
}

#dc-practice-app .question-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

#dc-practice-app button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Buttons */
#dc-practice-app .primary-btn,
#dc-practice-app .outline-btn {
  min-width: 170px;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#dc-practice-app .primary-btn {
  background: #001f5b;
  color: #ffffff;
  border: 1px solid #001f5b;
}

#dc-practice-app .primary-btn:hover:not(:disabled) {
  background: #001f5b;
  color: #ffffff;
  border-color: #001f5b;
}

#dc-practice-app .outline-btn {
  background: #ffffff;
  color: #001f5b;
  border: 1px solid #8aa1ca;
}

#dc-practice-app .outline-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #001f5b;
  border-color: #8aa1ca;
}

/* Answer Panel */
#dc-practice-app .answer-panel {
  padding: 32px;
  background: #f2fff7;
  border-color: #a9e4c3;
}

#dc-practice-app .answer-panel h3 {
  color: #149954;
  font-size: 28px;
  margin: 0 0 24px;
}

#dc-practice-app .answer-panel.incorrect-panel {
  background: #fff7f7;
  border-color: #f2b5b5;
}

#dc-practice-app .answer-panel.incorrect-panel h3 {
  color: #d92d2d;
}

#dc-practice-app .answer-label {
  margin-bottom: 8px;
}

#dc-practice-app .answer-panel h4 {
  color: #149954;
  font-size: 22px;
  line-height: 1.35;
  margin: 10px 0 24px;
}

#dc-practice-app .answer-panel.incorrect-panel h4 {
  color: #149954;
}

#dc-practice-app .answer-panel p {
  line-height: 1.65;
  color: #1b2d59;
}

#dc-practice-app .full-btn {
  width: 100%;
  margin-top: 18px;
}

/* Tip Box */
#dc-practice-app .tip-box {
  margin-top: 28px;
  padding: 18px 24px;
  border: 1px solid #c7dcff;
  border-radius: 10px;
  background: #f1f7ff;
  color: #0b3d91;
  font-weight: 600;
}

/* Finished Box */
#dc-practice-app .chapter-completed {
  border: 1px solid #a9e4c3;
  border-radius: 14px;
  padding: 40px;
  background: #f2fff7;
  text-align: center;
  box-shadow: 0 8px 22px rgba(7, 27, 77, 0.08);
}

#dc-practice-app .chapter-completed h3 {
  font-size: 30px;
  color: #149954;
  margin: 0 0 14px;
}

#dc-practice-app .chapter-completed p {
  font-size: 17px;
  color: #33466f;
  margin-bottom: 26px;
}

#dc-practice-app .completed-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Tablet */
@media (max-width: 1024px) {
  #dc-practice-app .chapter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #dc-practice-app .quiz-layout {
    grid-template-columns: 1fr;
  }

  #dc-practice-app .progress-bar {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #dc-practice-app .dc-practice-hero {
    padding: 38px 22px;
    min-height: 190px;
  }

  #dc-practice-app .dc-practice-hero::after {
    right: 20px;
    font-size: 82px;
  }

  #dc-practice-app .dc-practice-hero h1 {
    font-size: 34px;
  }

  #dc-practice-app .dc-practice-hero p {
    font-size: 16px;
  }

  #dc-practice-app .dc-container {
    padding: 30px 18px 50px;
  }

  #dc-practice-app .dc-container h2 {
    font-size: 26px;
  }

  #dc-practice-app .chapter-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #dc-practice-app .source-box {
    padding: 22px;
    align-items: flex-start;
  }

  #dc-practice-app .source-icon {
    width: 52px;
    height: 52px;
    font-size: 32px;
    flex-shrink: 0;
  }

  #dc-practice-app .quiz-top {
    flex-direction: column;
    gap: 12px;
  }

  #dc-practice-app .question-card,
  #dc-practice-app .answer-panel {
    padding: 24px;
  }

  #dc-practice-app .question-card h3 {
    font-size: 22px;
  }

  #dc-practice-app .option-btn {
    font-size: 16px;
  }

  #dc-practice-app .question-actions {
    flex-direction: column;
  }

  #dc-practice-app .primary-btn,
  #dc-practice-app .outline-btn {
    width: 100%;
  }
}


/* ================================
   Quiz Top Tools: Question Count + Jump
   Compact Layout
================================ */

body #dc-practice-app .quiz-top {
  width: 100%;
  max-width: 1100px;
  margin: 0 0 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

body #dc-practice-app .quiz-top h2 {
  margin: 0;
  text-align: left;
  min-width: 0;
}

body #dc-practice-app .quiz-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

body #dc-practice-app #question-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #eef4ff;
  color: #062b70;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

body #dc-practice-app .question-jump-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 7px 5px 14px;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(7, 27, 77, 0.05);
  white-space: nowrap;
}

body #dc-practice-app .question-jump-inline label {
  font-size: 14px;
  font-weight: 700;
  color: #33466f;
  white-space: nowrap;
}

body #dc-practice-app .question-jump-inline input {
  width: 58px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  text-align: center;
}

body #dc-practice-app .question-jump-inline input:focus {
  outline: none;
  border-color: #062b70;
  box-shadow: 0 0 0 3px rgba(6, 43, 112, 0.12);
}

body #dc-practice-app .question-jump-inline .jump-btn {
  height: 32px;
  min-width: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #062b70;
  background: #062b70;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

body #dc-practice-app .question-jump-inline .jump-btn:hover,
body #dc-practice-app .question-jump-inline .jump-btn:focus,
body #dc-practice-app .question-jump-inline .jump-btn:active {
  background: #041f52 !important;
  color: #ffffff !important;
  border-color: #041f52 !important;
  box-shadow: none !important;
  outline: none !important;
}


/* ================================
   Make progress bar align with quiz top
================================ */

body #dc-practice-app .progress-bar {
  width: 100%;
  max-width: 1100px;
}


/* ================================
   Chapter Continue Tag
================================ */

body #dc-practice-app .chapter-card {
  position: relative;
}

body #dc-practice-app .chapter-continue-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eafaf1;
  color: #15965d !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid #bce8cf;
}

body #dc-practice-app .chapter-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}


/* ================================
   Tablet
================================ */

@media (max-width: 1024px) {
  body #dc-practice-app .quiz-top {
    max-width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  body #dc-practice-app .quiz-top h2 {
    text-align: center;
  }

  body #dc-practice-app .quiz-tools {
    justify-content: center;
    flex-wrap: wrap;
  }

  body #dc-practice-app .progress-bar {
    max-width: 100%;
  }
}


/* ================================
   Mobile
================================ */

@media (max-width: 767px) {
  body #dc-practice-app .quiz-tools {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  body #dc-practice-app #question-count {
    width: auto;
    min-height: 42px;
    padding: 0 20px;
    font-size: 16px;
  }

  body #dc-practice-app .question-jump-inline {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    border-radius: 18px;
    padding: 12px;
  }

  body #dc-practice-app .question-jump-inline label {
    font-size: 14px;
  }

  body #dc-practice-app .question-jump-inline input {
    width: 76px;
  }

  body #dc-practice-app .question-jump-inline .jump-btn {
    min-width: 64px;
  }

  body #dc-practice-app .chapter-continue-tag {
    top: 16px;
    right: 16px;
    min-height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }
}