/* ==========================================================================
   Abhyas Online — How It Works (Multilingual Videos & 4-Page A4 PDFs)
   ========================================================================== */

.hiw-page {
  color: var(--slate-800, #1E293B);
  background: var(--white, #FFFFFF);
}

html[lang="hi"] .hiw-page,
html[lang="pa"] .hiw-page,
html[lang="hi"] .hiw-page *,
html[lang="pa"] .hiw-page * {
  letter-spacing: 0 !important;
}

html[lang="hi"] .hiw-page h1,
html[lang="hi"] .hiw-page h2,
html[lang="hi"] .hiw-page h3,
html[lang="pa"] .hiw-page h1,
html[lang="pa"] .hiw-page h2,
html[lang="pa"] .hiw-page h3 {
  line-height: 1.35;
}

.hiw-hero {
  background: var(--blue-light, #EFF6FF);
  border-bottom: 1px solid var(--slate-200, #E2E8F0);
  padding: 28px 0 32px;
}

.hiw-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hiw-lang-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hiw-lang-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-600, #475569);
  margin-right: 2px;
}

.hiw-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--slate-200, #E2E8F0);
  background: var(--white, #FFFFFF);
  color: var(--slate-800, #1E293B);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hiw-lang-pill:hover {
  border-color: var(--blue, #0068B6);
  color: var(--blue, #0068B6);
}

.hiw-lang-pill.is-active {
  background: var(--slate-900, #0F172A);
  border-color: var(--slate-900, #0F172A);
  color: var(--white, #FFFFFF);
}

.hiw-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--slate-900, #0F172A);
  margin: 4px 0 8px;
  line-height: 1.22;
}

.hiw-sub {
  font-size: 16px;
  color: var(--slate-600, #475569);
  max-width: 760px;
  margin: 0 0 20px;
  line-height: 1.55;
}

.hiw-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--slate-200, #E2E8F0);
  padding: 6px;
  border-radius: 12px;
}

.hiw-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--slate-700, #334155);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hiw-tab:hover {
  background: var(--slate-50, #F8FAFC);
  color: var(--blue, #0068B6);
}

.hiw-tab.is-active {
  background: var(--blue, #0068B6);
  color: var(--white, #FFFFFF);
}

.hiw-tab svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.hiw-main {
  padding: 36px 0;
  background: var(--white, #FFFFFF);
  border-bottom: 1px solid var(--slate-200, #E2E8F0);
}

.hiw-stage {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

.hiw-panel {
  background: var(--slate-50, #F8FAFC);
  border: 1px solid var(--slate-200, #E2E8F0);
  border-top: 3px solid var(--blue, #0068B6);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hiw-panel-pdf {
  background: var(--white, #FFFFFF);
  border-top-color: var(--orange, #F58220);
}

.hiw-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--blue-light, #EFF6FF);
  color: var(--blue-dark, #004E8A);
  border: 1px solid var(--blue-border, #BFDBFE);
}

.hiw-badge svg {
  width: 14px;
  height: 14px;
}

.hiw-meta-chip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-600, #475569);
  background: var(--white, #FFFFFF);
  border: 1px solid var(--slate-200, #E2E8F0);
  padding: 4px 10px;
  border-radius: 99px;
}

.hiw-video-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--slate-200, #E2E8F0);
  background: var(--slate-900, #0F172A);
  aspect-ratio: 16 / 9;
}

.hiw-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--slate-900, #0F172A);
}

.hiw-panel h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900, #0F172A);
  margin: 0;
  line-height: 1.32;
}

.hiw-desc {
  font-size: 14.5px;
  color: var(--slate-600, #475569);
  margin: 0;
  line-height: 1.55;
}

.hiw-highlights-lbl {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500, #64748B);
  margin: 4px 0 8px;
}

.hiw-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hiw-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--slate-700, #334155);
  line-height: 1.48;
  background: var(--slate-50, #F8FAFC);
  border: 1px solid var(--slate-200, #E2E8F0);
  border-radius: 9px;
  padding: 9px 11px;
}

.hiw-highlights li svg {
  width: 16px;
  height: 16px;
  color: var(--green, #16A34A);
  flex-shrink: 0;
  margin-top: 2px;
}

.hiw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hiw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hiw-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hiw-btn-blue {
  background: var(--blue, #0068B6);
  color: var(--white, #FFFFFF) !important;
}

.hiw-btn-blue:hover {
  background: var(--blue-dark, #004E8A);
}

.hiw-btn-orange {
  background: var(--orange, #F58220);
  color: var(--white, #FFFFFF) !important;
}

.hiw-btn-orange:hover {
  background: var(--orange-dark, #D96B0C);
}

.hiw-btn-outline {
  background: var(--white, #FFFFFF);
  border-color: var(--blue-border, #BFDBFE);
  color: var(--blue-dark, #004E8A) !important;
}

.hiw-btn-outline:hover {
  border-color: var(--blue, #0068B6);
  background: var(--blue-light, #EFF6FF);
}

.hiw-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-200, #E2E8F0);
}

.hiw-next-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue, #0068B6);
  text-decoration: none !important;
}

.hiw-next-link:hover {
  text-decoration: underline !important;
}

/* All-Languages Download Matrix */
.hiw-matrix-sec {
  padding: 40px 0 48px;
  background: var(--slate-50, #F8FAFC);
}

.hiw-matrix-head {
  margin-bottom: 18px;
}

.hiw-matrix-head h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--slate-900, #0F172A);
  margin: 0 0 6px;
}

.hiw-matrix-head p {
  font-size: 15px;
  color: var(--slate-600, #475569);
  margin: 0;
}

.hiw-table-wrap {
  background: var(--white, #FFFFFF);
  border: 1px solid var(--slate-200, #E2E8F0);
  border-radius: 12px;
  overflow-x: auto;
}

.hiw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.hiw-table th {
  background: var(--slate-100, #F1F5F9);
  color: var(--slate-900, #0F172A);
  font-weight: 800;
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--slate-200, #E2E8F0);
}

.hiw-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--slate-200, #E2E8F0);
  color: var(--slate-700, #334155);
  vertical-align: middle;
}

.hiw-table tr:last-child td {
  border-bottom: none;
}

.hiw-table tr.is-current-row {
  background: var(--blue-light, #EFF6FF);
}

.hiw-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hiw-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid var(--slate-200, #E2E8F0);
  background: var(--white, #FFFFFF);
  color: var(--slate-800, #1E293B) !important;
  cursor: pointer;
}

.hiw-mini-btn:hover {
  border-color: var(--blue, #0068B6);
  color: var(--blue, #0068B6) !important;
}

.hiw-mini-btn-primary {
  background: var(--blue, #0068B6);
  border-color: var(--blue, #0068B6);
  color: var(--white, #FFFFFF) !important;
}

.hiw-mini-btn-primary:hover {
  background: var(--blue-dark, #004E8A);
  color: var(--white, #FFFFFF) !important;
}

@media (max-width: 920px) {
  .hiw-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hiw-title {
    font-size: 24px;
  }
  .hiw-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .hiw-tab {
    justify-content: center;
  }
  .hiw-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
