.content-section h2 {
  font-size: 1.4rem;
  color: var(--bhu-green-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bhu-gold);
  display: inline-block;
}

.tools-page-header {
  border-radius: 12px;
}

.tools-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.tools-index-grid .tool-card {
  height: auto;
  min-height: 360px;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--bhu-border);
  box-shadow: var(--bhu-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tools-index-grid .tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--bhu-green);
  box-shadow: var(--bhu-shadow-lg);
}

.tools-index-grid .tool-card.featured {
  border: 1px solid var(--bhu-border);
  box-shadow: var(--bhu-shadow);
}

.tools-index-grid.tools-grid .tool-card > .tool-card-header,
.tools-index-grid.tools-grid .tool-card > .tool-card-footer {
  padding-left: 0;
  padding-right: 0;
}

.tools-index-grid .tool-card-header {
  flex: 1;
}

.tools-index-grid .tool-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 366 / 204;
  margin: 12px 0;
  border-radius: 8px;
}

.tools-index-grid .tool-card-footer {
  margin-top: auto;
}

.khatian-page-header {
  border-radius: 12px;
}

.khatian-warning-box {
  font-size: 0.75rem !important;
}

.warning-box.khatian-warning-box p {
  font-size: 0.75rem !important;
}

.warning-box.khatian-warning-box strong {
  font-size: 0.85rem !important;
}

/* =========================================
   YouTube Shorts - Vertical Video
   ========================================= */

.guide-short {
    width: 100%;
    max-width: 911px;
    aspect-ratio: 911 / 512;
    margin: 25px auto 35px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.guide-short iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.content-section.khatian-content-section.bhu-fade-in.bhu-visible {
  background: #ffffff !important;
}

@media (max-width: 1200px) {
  .tools-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-index-grid .tool-card {
    width: auto;
  }
}

@media (max-width: 768px) {
  .tools-index-grid {
    grid-template-columns: 1fr;
  }
}

.content-section h3 {
  font-size: 1.1rem;
  color: var(--bhu-green);
  margin: 20px 0 10px;
}

.content-section p {
  margin-bottom: 12px;
  color: var(--bhu-text-secondary);
}

.content-section ul, .content-section ol {
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--bhu-text-secondary);
}

.content-section li { margin-bottom: 6px; }

.result-box {
  background: var(--bhu-surface);
  border: 1px solid var(--bhu-border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--bhu-shadow);
}

.result-box h4 { margin-bottom: 12px; color: var(--bhu-green-dark); }
.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--bhu-border);
  font-size: 0.95rem;
}
.result-item:last-child { border-bottom: none; }
.result-item .label { color: var(--bhu-text-secondary); }
.result-item .value { font-weight: 700; }

.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--bhu-border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--bhu-text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.95rem;
}

.tab-btn.active {
  color: var(--bhu-green);
  border-bottom-color: var(--bhu-green);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.warning-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  color: #7f1d1d;
  font-size: 0.95rem;
}

.warning-box strong { display: block; margin-bottom: 5px; }

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-fill {
  height: 100%;
  background: var(--bhu-green);
  transition: width 0.3s;
  border-radius: 9999px;
}

.table-responsive { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--bhu-border);
  padding: 10px 12px;
  text-align: left;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--bhu-green-dark);
}

tr:nth-child(even) { background: #fafafa; }

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 0.95rem;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}
