

/* ==============================
   QUIZ WRAPPER
============================== */
#quiz-wrapper {
  max-width: 900px;
  margin: 40px auto;
  font-family: Poppins, sans-serif;
}

#quiz-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #111;
}

/* ==============================
   QUESTION CARD
============================== */
.quiz-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.quiz-card p {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
}

/* ==============================
   OPTIONS
============================== */
.quiz-card .option {
  margin-bottom: 12px;
}

.quiz-card .option label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-card .option label:hover {
  background: #f2f2f2;
}

/* Radio */
.quiz-card input[type="radio"] {
  accent-color: #d4af37;
  cursor: pointer;
}

/* Disable after selection */
.quiz-card.disabled .option label {
  cursor: default;
}

/* ==============================
   FEEDBACK STATES
============================== */

/* Correct */
.quiz-card .option label.correct {
  background: #e9f7ef;
  border-color: #28a745;
  color: #1e7e34;
  font-weight: 600;
}

/* Wrong */
.quiz-card .option label.incorrect {
  background: #fdecea;
  border-color: #dc3545;
  color: #a71d2a;
  font-weight: 600;
}

/* Feedback text */
.quiz-card .feedback {
  margin-top: 10px;
  font-size: 0.9rem;
}

.quiz-card .feedback .right {
  color: #28a745;
  font-weight: 600;
}

.quiz-card .feedback .wrong {
  color: #dc3545;
  font-weight: 600;
}

/* ==============================
   SUBMIT BUTTON
============================== */
#ppa-submit-test {
  background: linear-gradient(135deg, #d4af37, #c9a227);
  color: #111;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

#ppa-submit-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* ==============================
   RESULT BOX
============================== */
#quiz-result {
  margin-top: 25px;
  padding: 18px 22px;
  background: #fdfbf5;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ==============================
   MOBILE
============================== */
@media (max-width: 600px) {
  .quiz-card {
    padding: 18px;
  }

  #quiz-title {
    font-size: 1.4rem;
  }
}
/* ===============================
   PRINT MODE
================================ */
@media print {

    header, footer, nav,
    .site-header, .site-footer,
    .elementor-header, .elementor-footer {
        display: none !important;
    }

    body {
        background: linear-gradient(135deg, #d4af37, #c9a227) !important;
    }

    a[href]:after {
        content: none !important;
    }
}
.ppa-print-header {
    text-align: center;
    margin-bottom: 20px;
}

.ppa-print-logo {
    height: 80px;
    margin-bottom: 10px;
}
.ppa-watermark {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 120px;
    color: rgba(0, 0, 0, 0.06);
    font-weight: 700;
    z-index: 0;
    pointer-events: none;
}
.ppa-watermark {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 120px;
    color: rgba(0, 0, 0, 0.06);
    font-weight: 700;
    z-index: 0;
    pointer-events: none;
}
.ppa-print-area * {
    position: relative;
    z-index: 1;
}
.ppa-download-btn {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 12px;
  transition: all .25s ease;
}

.ppa-download-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

.ppa-bookmark-btn {
    float: right;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.ppa-bookmark-btn.bookmarked {
    color: #d4af37;
}
.ppa-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.ppa-lock-note {
    display: block;
    font-size: 12px;
    color: #b00020;
    margin-left: 10px;
}

/* SUBJECT GRID */
#ppa-subjects-wrapper {
    max-width: 1100px;
    margin: 40px auto;
}

.ppa-subject-block {
    display: block;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.ppa-subject-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.ppa-subject-title {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 0;
}
.ppa-chapter-list {
    max-width: 900px;
    margin: 30px auto;
}

.ppa-start-quiz-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #222;
    transition: all 0.2s ease;
}

.ppa-start-quiz-btn:hover {
    background: #f9f9f9;
}

.ppa-mode-badge.exam {
    background: #ffe6e6;
    color: #b30000;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.ppa-mode-badge.practice {
    background: #e8f7ec;
    color: #0f6b2f;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.ppa-locked {
    opacity: 0.6;
    cursor: not-allowed;
}
.ppa-lock-note {
    display: block;
    font-size: 12px;
    color: #b00020;
    margin: 0 0 12px 10px;
}
.ppa-subject-heading {
    font-size: 1.6rem;
    margin: 10px 0 25px;
    color: #1a1a1a;
}

/* ==================================================
   GLOBAL CONTAINER
================================================== */
#quiz-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: "Poppins", system-ui, sans-serif;
}

/* ==================================================
   PAGE TITLE
================================================== */
.ppa-page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 35px;
    color: #1a1a1a;
}

/* ==================================================
   SUBJECT CARDS
================================================== */
#ppa-subjects-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.ppa-subject-block {
    display: block;
    background: linear-gradient(135deg, #ffffff, #f9fbff);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    border: 1px solid #eef1f6;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle accent strip */
.ppa-subject-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #d4af37, #b9982c);
}

/* Hover */
.ppa-subject-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

/* Subject Title */
.ppa-subject-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

/* ==================================================
   BACK BUTTON
================================================== */
.ppa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #e6e6e6;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.ppa-back-link:hover {
    background: #f6f6f6;
    transform: translateX(-3px);
}

/* ==================================================
   SUBJECT HEADING
================================================== */
.ppa-subject-heading {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #111;
}

/* ==================================================
   CHAPTER LIST
================================================== */
.ppa-chapter-list {
    max-width: 900px;
}

.ppa-start-quiz-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 18px 22px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid #eef1f6;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.ppa-start-quiz-btn:hover {
    transform: translateY(-2px);
    background: #f9fafc;
}

/* ==================================================
   MODE BADGES
================================================== */
.ppa-mode-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ppa-mode-badge.exam {
    background: #fff0f0;
    color: #c40000;
}

.ppa-mode-badge.practice {
    background: #e9f7ef;
    color: #157f43;
}

/* ==================================================
   LOCKED CHAPTER
================================================== */
.ppa-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.ppa-lock-note {
    font-size: 0.75rem;
    color: #b30000;
    margin: -6px 0 14px 14px;
}

/* ==================================================
   MOBILE TWEAKS
================================================== */
@media (max-width: 600px) {
    .ppa-page-title {
        font-size: 1.6rem;
    }

    .ppa-subject-heading {
        font-size: 1.4rem;
    }

    .ppa-start-quiz-btn {
        padding: 16px;
    }
}
/* ===============================
   PAGE HEADER (CENTERED)
================================ */
.ppa-page-header {
    text-align: center;
    margin-bottom: 45px;
}

.ppa-page-title {
    font-size: 2.1rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.ppa-title-line {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b9982c);
    margin: 14px auto 0;
    border-radius: 4px;
}

/* ===============================
   BACK TO DASHBOARD BUTTON
================================ */
.ppa-dashboard-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0 auto 25px;
    padding: 10px 20px;

    background: #ffffff;
    color: #1a1a1a;
    text-decoration: none;

    border-radius: 30px;
    border: 1px solid #e6e6e6;

    font-size: 0.9rem;
    font-weight: 500;

    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.ppa-dashboard-back:hover {
    background: #f6f6f6;
    transform: translateX(-3px);
}
/* Center dashboard button wrapper */
.ppa-dashboard-wrap {
    text-align: center;
    margin-bottom: 35px;
}


/* =========================================
   QUIZ GOLD BACKGROUND (CORRECT WAY)
========================================= */
/* =========================================
   SUBTLE GOLD QUIZ BACKGROUND (PREMIUM)
========================================= */
.ppa-quiz-bg {
    background: linear-gradient(
        180deg,
        #fffefb 0%,
        #f8f4df 100%
    );
    padding: 60px 0 80px;
}


/* LOCKED + RESET INLINE */
.ppa-lock-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.ppa-request-reset-btn {
    background: #ffffff;
    border: 2px solid #b30000;   /* stronger border */
    color: #b30000;              /* matches LOCKED seriousness */
    font-size: 14px;             /* bigger */
    font-weight: 700;            /* bold */
    padding: 6px 16px;           /* more presence */
    border-radius: 24px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.ppa-request-reset-btn:hover {
    transform: translateY(-1px);
}
/* ===============================
   RESET REQUEST MODAL
================================ */

.ppa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ppa-modal {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.ppa-modal h3 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.ppa-modal-note {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 14px;
}

#ppa-reset-reason {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

#ppa-reset-reason:focus {
    outline: none;
    border-color: #b30000;
}

.ppa-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.ppa-btn-secondary {
    background: #f2f2f2;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.ppa-btn-primary {
    background: #b30000;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
}

.ppa-btn-primary:hover {
    background: #8f0000;
}










