/* ============================================================
   BASIC RESET
   ============================================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background: #f7f3eb;
    color: #102a43;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
  }
  
  button,
  input {
    font: inherit;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  
  /* ============================================================
     NAVIGATION
     ============================================================ */
  
  .navbar {
    align-items: center;
    background: #102a43;
    color: #fff;
  
    display: flex;
    justify-content: space-between;
  
    gap: 24px;
  
    padding: 18px 5%;
  }
  
  .logo {
    font-size: 22px;
    font-weight: bold;
  }
  
  .nav-links {
    display: flex;
    flex-wrap: wrap;
  
    gap: 24px;
  
    list-style: none;
  }
  
  .nav-links a {
    color: #fff;
    font-size: 15px;
  }
  
  .nav-links a:hover {
    color: #d4af37;
  }
  
  
  /* ============================================================
     HERO
     ============================================================ */
  
  .hero {
    background: #102a43;
    color: #fff;
  
    padding: 34px 5%;
  
    text-align: center;
  }
  
  .hero h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
  
    margin-bottom: 12px;
  }
  
  .hero p {
    color: #e5e7eb;
  
    font-size: 18px;
  
    margin: 0 auto;
  
    max-width: 900px;
  }
  
  
  /* ============================================================
     MAIN PAGE
     ============================================================ */
  
  /*
     IMPORTANT CHANGE:
     The main container is now allowed to use almost
     the entire browser width.
  */
  
  .container {
    width: 100%;
    max-width: none;
  
    margin: 0 auto;
  
    padding: 28px 2.5%;
  }
  
  
  /*
     Keep ordinary screens narrower.
  
     The actual SAT test screen is NOT restricted.
  */
  
  #startScreen,
  #navigatorScreen,
  #reviewScreen,
  #resultScreen,
  #teacherScreen {
    max-width: 1180px;
  
    margin-left: auto;
    margin-right: auto;
  }
  
  
  /* ============================================================
     GENERAL CARDS
     ============================================================ */
  
  .card {
    background: #fff;
  
    border-radius: 12px;
  
    box-shadow:
      0 8px 24px
      rgba(16, 42, 67, 0.08);
  
    padding: 28px;
  
    margin-bottom: 24px;
  }
  
  
  /* ============================================================
     NOTICE
     ============================================================ */
  
  .notice {
    background: #fffdf8;
  
    border-left: 5px solid #d4af37;
  
    border-radius: 10px;
  
    color: #334e68;
  
    padding: 18px 20px;
  
    margin-bottom: 22px;
  }
  
  
  /* ============================================================
     BUTTONS
     ============================================================ */
  
  .btn {
    background: #102a43;
  
    border: 0;
  
    border-radius: 999px;
  
    color: #fff;
  
    cursor: pointer;
  
    font-weight: bold;
  
    padding: 11px 18px;
  }
  
  .btn:hover {
    background: #d4af37;
    color: #102a43;
  }
  
  .btn.secondary {
    background: #fff;
  
    border: 1px solid #102a43;
  
    color: #102a43;
  }
  
  .btn.danger {
    background: #7f1d1d;
  }
  
  .btn:disabled {
    opacity: 0.45;
  
    cursor: not-allowed;
  }
  
  
  /* ============================================================
     HIDDEN ELEMENTS
     ============================================================ */
  
  .hidden {
    display: none !important;
  }
  
  
  /* ============================================================
     START SCREEN
     ============================================================ */
  
  .start-grid {
    display: grid;
  
    gap: 16px;
  
    grid-template-columns: 1fr 1fr;
  }
  
  .field label {
    display: block;
  
    font-weight: bold;
  
    margin-bottom: 6px;
  }
  
  .field input {
    width: 100%;
  
    padding: 12px 14px;
  
    border: 1px solid #cbd5e1;
  
    border-radius: 8px;
  
    background: #fff;
  }
  
  
  /* ============================================================
     SAT TEST AREA
     ============================================================ */
  
  /*
     IMPORTANT CHANGE:
     No more narrow 1050px center strip.
  */
  
  .test-shell {
    width: 100%;
  
    max-width: none;
  
    margin: 0 auto;
  }
  
  
  /* ============================================================
     TEST HEADER
     ============================================================ */
  
  .test-top {
    width: 100%;
  
    display: grid;
  
    grid-template-columns: 1fr auto;
  
    gap: 22px;
  
    align-items: start;
  
    margin-bottom: 18px;
  
    padding: 0 6px;
  }
  
  .kicker {
    color: #52606d;
  
    font-size: 14px;
  
    text-transform: uppercase;
  
    letter-spacing: 0.08em;
  }
  
  .test-title {
    font-size: 24px;
  }
  
  .timer {
    background: #fffdf8;
  
    border: 1px solid #eadfca;
  
    border-radius: 10px;
  
    padding: 10px 18px;
  
    text-align: center;
  
    min-width: 145px;
  }
  
  .timer strong {
    display: block;
  
    font-size: 26px;
  }
  
  
  /* ============================================================
     PROGRESS BAR
     ============================================================ */
  
  .progress {
    height: 8px;
  
    background: #e5e7eb;
  
    border-radius: 999px;
  
    overflow: hidden;
  
    margin-top: 10px;
  }
  
  .progress > div {
    height: 100%;
  
    background: #d4af37;
  }
  
  
  /* ============================================================
     QUESTION CARD
     ============================================================ */
  
  .question-card {
    width: 100%;
  
    background: #fff;
  
    border: 1px solid #d8dee6;
  
    border-radius: 10px;
  
    box-shadow:
      0 8px 24px
      rgba(16, 42, 67, 0.08);
  
    overflow: hidden;
  }
  
  
  /* ============================================================
     QUESTION HEADER
     ============================================================ */
  
  .q-head {
    background: #fffdf8;
  
    border-bottom: 1px solid #eadfca;
  
    display: flex;
  
    justify-content: space-between;
  
    gap: 16px;
  
    align-items: center;
  
    padding: 16px 24px;
  }
  
  .q-head h2 {
    font-size: 21px;
  }
  
  
  /* ============================================================
     MAIN SAT TWO-COLUMN LAYOUT
     ============================================================ */
  
  /*
     Your existing HTML is:
  
     passage
     prompt
     options
     q-tools
  
     CSS Grid places the passage on the LEFT
     and everything else on the RIGHT.
  */
  
  .q-body {
    display: grid;
  
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
  
    grid-template-rows:
      auto
      auto
      1fr;
  
    width: 100%;
  
    min-height: 610px;
  
    padding: 0;
  }
  
  
  /* ============================================================
     LEFT SIDE — PASSAGE
     ============================================================ */
  
  .passage {
    grid-column: 1;
    grid-row: 1 / 4;
  
    width: 100%;
  
    margin: 0;
  
    padding: 42px 50px;
  
    border-right: 1px solid #cbd5e1;
  
    background: #fff;
  
    color: #102a43;
  
    font-size: 18px;
  
    line-height: 1.75;
  
    white-space: pre-line;
  
    overflow-y: auto;
  }
  
  
  /* ============================================================
     RIGHT SIDE — QUESTION
     ============================================================ */
  
  .prompt {
    grid-column: 2;
    grid-row: 1;
  
    width: 100%;
  
    margin: 0;
  
    padding:
      42px
      50px
      20px
      50px;
  
    background: #fff;
  
    font-size: 18px;
  
    font-weight: bold;
  
    line-height: 1.65;
  }
  
  
  /* ============================================================
     ANSWER CHOICES
     ============================================================ */
  
  .options {
    grid-column: 2;
    grid-row: 2;
  
    display: grid;
  
    gap: 14px;
  
    width: 100%;
  
    padding:
      0
      50px
      10px
      50px;
  
    background: #fff;
  }
  
  
  .option {
    display: grid;
  
    grid-template-columns:
      38px
      1fr
      auto;
  
    gap: 12px;
  
    align-items: start;
  
    width: 100%;
  
    border: 1px solid #b7c0ca;
  
    border-radius: 8px;
  
    padding: 15px 16px;
  
    background: #fff;
  
    cursor: pointer;
  
    transition:
      border-color 0.15s ease,
      background 0.15s ease,
      transform 0.1s ease;
  }
  
  
  .option:hover {
    border-color: #102a43;
  
    background: #fafbfc;
  }
  
  
  .option.selected {
    border: 2px solid #102a43;
  
    background: #fffaf0;
  }
  
  
  /* ============================================================
     ANSWER LETTER
     ============================================================ */
  
  .letter {
    width: 30px;
    height: 30px;
  
    border-radius: 50%;
  
    display: flex;
  
    align-items: center;
  
    justify-content: center;
  
    background: #102a43;
  
    color: #fff;
  
    font-weight: bold;
  }
  
  
  /* ============================================================
     CROSSED-OUT ANSWERS
     ============================================================ */
  
  .crossed .option-text {
    text-decoration: line-through;
  
    opacity: 0.6;
  }
  
  .cross-btn {
    background: none;
  
    border: 0;
  
    color: #7f1d1d;
  
    cursor: pointer;
  
    font-weight: bold;
  }
  
  
  /* ============================================================
     MARK FOR REVIEW
     ============================================================ */
  
  .q-tools {
    grid-column: 2;
    grid-row: 3;
  
    display: flex;
  
    align-items: flex-start;
  
    gap: 10px;
  
    width: 100%;
  
    padding:
      16px
      50px
      42px
      50px;
  
    background: #fff;
  }
  
  
  /* ============================================================
     BOTTOM NAVIGATION
     ============================================================ */
  
  .nav-bottom {
    display: flex;
  
    justify-content: space-between;
  
    gap: 12px;
  
    align-items: center;
  
    width: 100%;
  
    margin-top: 18px;
  
    padding: 0 6px;
  }
  
  
  /* ============================================================
     QUESTION NAVIGATOR
     ============================================================ */
  
  .navigator {
    display: grid;
  
    grid-template-columns:
      repeat(9, 1fr);
  
    gap: 8px;
  }
  
  .navnum {
    border: 1px solid #cbd5e1;
  
    background: #fff;
  
    border-radius: 8px;
  
    padding: 10px 0;
  
    cursor: pointer;
  
    font-weight: bold;
  }
  
  .navnum.answered {
    background: #e8f0f6;
  }
  
  .navnum.current {
    outline: 3px solid #d4af37;
  }
  
  .navnum.marked::after {
    content: "★";
  
    color: #b8860b;
  
    font-size: 10px;
  
    margin-left: 3px;
  }
  
  
  /* ============================================================
     REVIEW SCREEN
     ============================================================ */
  
  .review-grid {
    display: grid;
  
    grid-template-columns:
      repeat(9, 1fr);
  
    gap: 8px;
  
    margin: 18px 0;
  }
  
  .review-grid button {
    padding: 10px 0;
  
    border-radius: 8px;
  
    border: 1px solid #cbd5e1;
  
    background: #fff;
  
    cursor: pointer;
  }
  
  .review-grid .answered {
    background: #e8f0f6;
  }
  
  .review-grid .marked {
    border-color: #d4af37;
  }
  
  
  /* ============================================================
     RESULTS
     ============================================================ */
  
  .score {
    font-size: 44px;
  
    font-weight: bold;
  
    color: #102a43;
  }
  
  .result-row {
    display: flex;
  
    justify-content: space-between;
  
    border-bottom: 1px solid #eee;
  
    padding: 10px 0;
  }
  
  
  /* ============================================================
     TEACHER DASHBOARD
     ============================================================ */
  
  .teacher-login {
    max-width: 420px;
  
    margin: 0 auto;
  }
  
  .teacher-grid {
    display: grid;
  
    grid-template-columns:
      1fr
      1fr;
  
    gap: 18px;
  }
  
  .answer-edit {
    display: grid;
  
    grid-template-columns:
      70px
      1fr
      1fr;
  
    gap: 8px;
  
    align-items: center;
  
    padding: 8px 0;
  
    border-bottom: 1px solid #eee;
  }
  
  .answer-edit select,
  .answer-edit input {
    padding: 8px;
  
    border: 1px solid #cbd5e1;
  
    border-radius: 6px;
  }
  
  
  /* ============================================================
     TABLES
     ============================================================ */
  
  .table-wrap {
    overflow: auto;
  }
  
  table {
    width: 100%;
  
    border-collapse: collapse;
  }
  
  th,
  td {
    padding: 10px;
  
    border-bottom: 1px solid #e5e7eb;
  
    text-align: left;
  }
  
  th {
    background: #fffdf8;
  }
  
  
  /* ============================================================
     FOOTER
     ============================================================ */
  
  footer {
    background: #102a43;
  
    color: #e5e7eb;
  
    padding: 26px;
  
    text-align: center;
  
    margin-top: 40px;
  }
  
  
  /* ============================================================
     MEDIUM SCREENS
     ============================================================ */
  
  @media (max-width: 1000px) {
  
    .container {
      padding: 24px 3%;
    }
  
    .passage {
      padding: 34px 32px;
    }
  
    .prompt {
      padding:
        34px
        32px
        20px
        32px;
    }
  
    .options {
      padding:
        0
        32px
        10px
        32px;
    }
  
    .q-tools {
      padding:
        16px
        32px
        34px
        32px;
    }
  }
  
  
  /* ============================================================
     MOBILE / SMALL SCREEN
     ============================================================ */
  
  @media (max-width: 760px) {
  
    .navbar {
      align-items: flex-start;
  
      flex-direction: column;
    }
  
    .container {
      padding: 20px 4%;
    }
  
    .start-grid,
    .teacher-grid {
      grid-template-columns: 1fr;
    }
  
    .navigator,
    .review-grid {
      grid-template-columns:
        repeat(6, 1fr);
    }
  
    .test-top {
      grid-template-columns: 1fr;
    }
  
  
    /* Stack passage and question vertically */
  
    .q-body {
      display: block;
  
      min-height: auto;
    }
  
  
    .passage {
      width: 100%;
  
      padding: 26px 22px;
  
      border-right: none;
  
      border-bottom:
        1px solid #cbd5e1;
  
      font-size: 17px;
    }
  
  
    .prompt {
      width: 100%;
  
      padding:
        26px
        22px
        18px
        22px;
  
      font-size: 17px;
    }
  
  
    .options {
      width: 100%;
  
      padding:
        0
        22px
        8px
        22px;
    }
  
  
    .q-tools {
      width: 100%;
  
      padding:
        16px
        22px
        26px
        22px;
    }
  
  
    .q-head {
      align-items: flex-start;
  
      flex-direction: column;
    }
  }