<?php
/**
 * NCERT Solutions exercise page styles.
 */
?>
.sol-ex-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 48px;
}
.sol-ex-crumb {
  font-size: .88rem;
  color: #64748b;
  margin: 12px 0 18px;
  line-height: 1.5;
}
.sol-ex-crumb a {
  color: #2563eb;
  text-decoration: none;
}
.sol-ex-crumb a:hover { text-decoration: underline; }
.sol-ex-crumb .sep { margin: 0 6px; color: #cbd5e1; }

.sol-ex-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 22px 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.06);
}
.sol-ex-kicker {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2563eb;
}
.sol-ex-hero h1 {
  font-size: clamp(1.25rem, 3.2vw, 1.72rem);
  line-height: 1.32;
  margin: 0 0 10px;
  color: #0f172a;
}
.sol-ex-lead {
  margin: 0 0 14px;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.55;
}
.sol-ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sol-ex-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: .82rem;
  font-weight: 600;
}

.sol-ex-quick {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.sol-ex-quick th,
.sol-ex-quick td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: .92rem;
}
.sol-ex-quick tr:last-child th,
.sol-ex-quick tr:last-child td { border-bottom: 0; }
.sol-ex-quick th {
  width: 34%;
  color: #64748b;
  background: #f8fafc;
  font-weight: 600;
}
.sol-ex-quick td { font-weight: 600; color: #0f172a; }
.sol-ex-quick a { color: #2563eb; text-decoration: none; }
.sol-ex-quick a:hover { text-decoration: underline; }

.sol-ex-switcher {
  margin-bottom: 22px;
}
.sol-ex-switcher h2 {
  font-size: .95rem;
  color: #1e3a8a;
  margin: 0 0 10px;
}
.sol-ex-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sol-ex-pills a,
.sol-ex-pills .is-current {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.sol-ex-pills a:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.sol-ex-pills .is-current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.sol-ex-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 0 0 18px;
}
.sol-ex-nav-btn {
  flex: 1 1 180px;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
}
.sol-ex-nav-btn:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.sol-ex-nav-btn strong {
  display: block;
  font-size: .78rem;
  color: #64748b;
  margin-bottom: 4px;
}
.sol-ex-nav-btn span {
  font-size: .92rem;
  font-weight: 600;
  color: #1d4ed8;
}

.sol-ex-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  line-height: 1.68;
  color: #1e293b;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.sol-ex-panel h2 {
  font-size: 1.12rem;
  color: #1e3a8a;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dbeafe;
}
.sol-ex-panel h3,
.sol-ex-panel h4 {
  color: #1e3a8a;
  margin-top: 1.25em;
  line-height: 1.4;
}
.sol-ex-panel p { margin: .75em 0; }
.sol-ex-panel ul,
.sol-ex-panel ol { padding-left: 1.25rem; }
.sol-ex-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sol-ex-faq { margin-top: 28px; }
.sol-ex-faq h2 {
  font-size: 1.12rem;
  color: #1e3a8a;
  margin: 0 0 12px;
}
.sol-ex-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.sol-ex-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}
.sol-ex-faq p {
  margin: 10px 0 2px;
  color: #475569;
  line-height: 1.55;
}

.sol-ex-resources {
  margin-top: 28px;
  padding-top: 8px;
}
.sol-ex-resources h2 {
  font-size: 1.05rem;
  color: #1e3a8a;
  margin: 0 0 10px;
}
.sol-ex-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sol-ex-resource-grid a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.sol-ex-resource-grid a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

@media (max-width: 640px) {
  .sol-ex-hero { padding: 18px 16px; }
  .sol-ex-panel { padding: 16px 14px; }
  .sol-ex-nav-row { flex-direction: column; }
}
