/* ============================================================
   IQ TEST MASTER STYLESHEET
   Consolidated from ar.html, at.html, or.html, pr.html,
   so.html, vp.html, wdm.html
   ============================================================ */

/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #1a1a1a;
  color: #222;
}

/* ---------- BACKGROUND VIDEO LAYER ---------- */
#video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

#bg-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  background-color: #000;
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 1rem;
  color: #e0f0ff;
  font-size: 2rem;
}

/* ---------- PRINT BUTTON ---------- */
.btn-print {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
}

.btn-print:hover {
  background: #c6a15b;
  color: white;
}

/* ---------- BACK LINK ---------- */
.back-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #c6a15b;
}

/* ---------- SCORE CARD (Single dimension pages) ---------- */
.score-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(238, 231, 223, 0.6);
  text-align: center;
}

.score-percent {
  font-size: 4rem;
  font-weight: 800;
  color: #c6a15b;
}

.score-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a2c3a;
}

/* ---------- SECTIONS ---------- */
.section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(238, 231, 223, 0.6);
}

.section h2 {
  color: #3366cc;
  margin-top: 0;
  border-left: 4px solid #c6a15b;
  padding-left: 1rem;
}

.section p {
  color: #2e2d2c;
  margin-bottom: 0.8rem;
  text-align: justify;
  font-size: 1rem;
}

.section ul, 
.section ol {
  margin-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.section li {
  color: #2e2d2c;
  text-align: justify;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* ---------- GRAPH IMAGE ---------- */
.graph-image {
  text-align: center;
  margin: 1rem 0;
}

.graph-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- HEADER SECTION (or.html - 3 columns) ---------- */
.header-section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(238, 231, 223, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-left {
  flex: 1;
  min-width: 150px;
}

.header-left h2 {
  color: #3366cc;
  margin: 0 0 0.5rem 0;
  border-left: 4px solid #c6a15b;
  padding-left: 1rem;
}

.classification-badge {
  display: inline-block;
  background: rgba(198, 161, 91, 0.2);
  padding: 0.3rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #c6a15b;
}

.header-center {
  flex: 2;
  text-align: center;
  min-width: 200px;
}

.header-center .name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a2c3a;
  margin: 0 0 0.3rem 0;
}

.header-center .score {
  font-size: 1.1rem;
  color: #c6a15b;
  font-weight: 600;
  margin: 0;
}

.header-right {
  flex: 0 0 auto;
}

.header-right img {
  max-width: 80px;
  height: auto;
  border-radius: 12px;
}

/* ---------- COGNITIVE DIMENSIONS TABLE (or.html) ---------- */
.scores-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.scores-table th,
.scores-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e0d5c0;
}

.scores-table th {
  background: rgba(198, 161, 91, 0.15);
  color: #1a2c3a;
  font-weight: 700;
  font-size: 1.1rem;
}

.scores-table td {
  color: #2e2d2c;
  font-size: 1rem;
}

.scores-table td a {
  font-weight: 700;
  color: #2e2d2c;
  text-decoration: none;
  transition: color 0.2s;
}

.scores-table td a:hover {
  color: #c6a15b;
}

.score-value {
  font-weight: 700;
  color: #c6a15b;
  text-align: right;
}

/* ---------- DIMENSION LIST (wdm.html) ---------- */
.dimension-list {
  list-style: none;
  padding-left: 0;
}

.dimension-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0d5c0;
  font-weight: 500;
}

.dimension-list li:last-child {
  border-bottom: none;
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 50px;
  text-align: center;
  color: #cfcdc0;
}

hr {
  margin-top: 40px;
  margin-bottom: 40px;
  border: none;
  border-top: 1px solid rgba(226, 217, 205, 0.5);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 640px) {
  body {
    padding: 15px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .score-percent {
    font-size: 2.5rem;
  }
  
  .header-section {
    flex-direction: column;
    text-align: center;
  }
  
  .header-left h2 {
    text-align: left;
  }
  
  .scores-table th,
  .scores-table td {
    padding: 8px 6px;
    font-size: 0.85rem;
  }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  #video-container {
    display: none;
  }
  
  body {
    background: white;
    padding: 0;
  }
  
  .score-card,
  .section,
  .header-section {
    background: white;
    backdrop-filter: none;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  
  .btn-print {
    display: none;
  }
  
  .back-link {
    color: #000;
  }
  
  .scores-table th,
  .scores-table td {
    border-bottom: 1px solid #000;
  }
}