/* prep-academy.com — content + quiz engine */

.pa-hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin: 1.5rem 0; }
.pa-cat-card { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.4rem; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s; display: block; }
.pa-cat-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: var(--accent); text-decoration: none; }
.pa-cat-card-icon { font-size: 2rem; margin-bottom: .3rem; }
.pa-cat-card h3 { margin: 0 0 .2rem; color: var(--accent); font-size: 1.05rem; }
.pa-cat-card p  { color: #555; font-size: .85rem; margin: 0; line-height: 1.45; }
.pa-cat-card .ct { color: #888; font-size: .8rem; margin-top: .3rem; }

.pa-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin: 1rem 0; }
.pa-art-card { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.15rem 1.3rem; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s; }
.pa-art-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: var(--accent); }
.pa-art-card .cat { color: #888; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.pa-art-card h3 { margin: .3rem 0 .35rem; color: var(--accent); font-size: 1.05rem; line-height: 1.3; }
.pa-art-card p { color: #555; font-size: .9rem; margin: 0; line-height: 1.5; }

.pa-article { max-width: 720px; margin: 0 auto; }
.pa-article-cat { color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.pa-article h1 { margin: .2rem 0 1rem; font-size: 1.9rem; line-height: 1.25; }
.pa-article .meta { color: #999; font-size: .85rem; margin-bottom: 2rem; }
.pa-article h2 { margin: 2rem 0 .8rem; font-size: 1.3rem; color: var(--accent); }
.pa-article p, .pa-article li { line-height: 1.65; color: #333; }
.pa-article p { margin: .8rem 0; }
.pa-article ul, .pa-article ol { padding-left: 1.5em; }
.pa-article li { margin: .35rem 0; }
.pa-article-related { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.2rem 1.4rem; margin-top: 2rem; }

/* Quiz engine */
.pa-quiz { background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; margin: 1rem 0; }
.pa-quiz-head { padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.pa-quiz-head h2 { margin: 0; }
.pa-quiz-head p  { color: #666; margin: .3rem 0 0; font-size: .9rem; }

.pa-quiz-progress { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; font-size: .9rem; color: #555; }
.pa-quiz-progress .bar { background: var(--border); height: 8px; border-radius: 4px;
  flex: 1; margin: 0 1rem; overflow: hidden; }
.pa-quiz-progress .fill { background: var(--accent); height: 100%; transition: width .3s; }

.pa-quiz-question { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.4; }
.pa-quiz-options { display: grid; gap: .6rem; margin-bottom: 1rem; }
.pa-quiz-option { background: #fff; border: 2px solid var(--border); border-radius: 8px;
  padding: 1rem 1.2rem; cursor: pointer; transition: all .15s; text-align: left;
  font-size: 1rem; }
.pa-quiz-option:hover { border-color: var(--accent); background: #f5f9ff; }
.pa-quiz-option.selected { border-color: var(--accent); background: #e8f0fe; }
.pa-quiz-option.correct { border-color: #2e9e4d; background: #d4edda; color: #155724; }
.pa-quiz-option.incorrect { border-color: #d4504e; background: #f8d7da; color: #721c24; }
.pa-quiz-option .marker { font-weight: 700; margin-right: .5rem; }

.pa-quiz-explain { background: #f5f9ff; border-left: 4px solid var(--accent);
  border-radius: 4px; padding: .9rem 1.1rem; margin: 1rem 0; font-size: .95rem; color: #333; }

.pa-quiz-actions { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; }
.pa-quiz-actions button { background: var(--accent); color: #fff; border: none;
  padding: .7rem 1.3rem; border-radius: 6px; cursor: pointer; font-weight: 600; }
.pa-quiz-actions button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.pa-quiz-actions button:disabled { opacity: .5; cursor: not-allowed; }

.pa-quiz-result { text-align: center; padding: 2rem; }
.pa-quiz-result .score { font-size: 4rem; font-weight: 800; color: var(--accent);
  font-family: monospace; line-height: 1; }
.pa-quiz-result .total { color: #888; font-size: 1rem; }
.pa-quiz-result .verdict { margin: 1rem 0; font-size: 1.1rem; color: #555; }

/* Schedule builder */
.pa-tool { background: linear-gradient(135deg, #fef3c7, #fff); border: 2px solid #fbbf24;
  border-radius: 12px; padding: 1.5rem; margin: 0 0 2rem; }
.pa-tool h2 { margin-top: 0; }
.pa-form { display: grid; gap: .8rem; }
.pa-form label { display: flex; flex-direction: column; gap: .25rem; color: #555; font-size: .9rem; }
.pa-form input, .pa-form select { padding: .65rem .8rem; border: 2px solid var(--border);
  border-radius: 6px; font-size: 1.05rem; font-family: monospace; }

.pa-schedule { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin: 1rem 0; }
.pa-day-cell { background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: .5rem; text-align: center; min-height: 80px; display: flex; flex-direction: column; justify-content: space-between; }
.pa-day-cell .date { font-size: .75rem; color: #888; }
.pa-day-cell .topic { font-size: .8rem; color: #333; margin-top: .3rem; }
.pa-day-cell.study { background: #e8f0fe; border-color: var(--accent); }
.pa-day-cell.rest { background: #f0fdf4; border-color: #86efac; }
.pa-day-cell.exam { background: #fef3c7; border-color: #fbbf24; font-weight: 700; }
.pa-day-cell.exam .topic { color: #b45309; font-weight: 700; }

/* Checklist */
.pa-checklist { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.5rem; margin: 1rem 0; }
.pa-checklist h3 { margin-top: 0; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.pa-check-item { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 0;
  border-bottom: 1px solid var(--border); }
.pa-check-item:last-child { border-bottom: none; }
.pa-check-item input[type=checkbox] { margin-top: .15rem; width: 1.2em; height: 1.2em; }
.pa-check-item.done .label { text-decoration: line-through; color: #999; }
.pa-check-item .label { font-weight: 500; }
.pa-check-item .why { display: block; color: #666; font-size: .85rem; margin-top: .15rem; }
