table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: center;
}

td:first-child, th:first-child {
  text-align: left;  /* Project Name column looks better left-aligned */
}

.title {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  background: #f5f5f5;
}
/* Rightmost column (Report) already done */
th:last-child, td:last-child {
  white-space: nowrap;
  width: 1%;
  padding: 2px 4px;
}

/* Second-to-last column (Portal) */
th:nth-last-child(2), td:nth-last-child(2) {
  white-space: nowrap;
  width: 1%;
  padding: 2px 4px;
}
/* SCALPED columns (2nd through 8th) */
th:nth-child(n+2):nth-child(-n+8),
td:nth-child(n+2):nth-child(-n+8) {
  white-space: nowrap;
  width: 1%;
  padding: 2px 4px;
  text-align: center;
}
/* Highlight any cell manually */
td.highlight {
  background-color: #d4edda;
  color: #155724;
  font-weight: bold;
}

.benefactors-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  border: 1px solid #888;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefactors-table th {
  background-color: #1e5ba8;
  color: white;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.benefactors-table td {
  padding: 8px 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.benefactors-table td:first-child, .benefactors-table th:first-child {
  text-align: left;
}

/* ===== B_Projects_Content: TTGD Panel Styling ===== */
.ttgd-panel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  max-width: 900px;
}

.ttgd-panel h2 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.ttgd-panel p {
  margin: .75rem 0;
  line-height: 1.6;
}

.ttgd-panel ul {
  margin: .5rem 0 0 1.1rem;
}

.ttgd-panel li {
  margin: .5rem 0;
  line-height: 1.6;
}

.ttgd-portrait {
  float: right;
  width: 220px;
  max-width: 40%;
  height: auto;
  margin: 0 0 .5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

@media (max-width: 700px) {
  .ttgd-portrait {
    float: none;
    display: block;
    margin: 0 auto .75rem;
    max-width: 70%;
  }
}

/* ===== D_Open_Concerns_Content: Grid Layout ===== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.grid-item {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  background-color: #f9f9f9;
}

.grid-item img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10%;
}

.grid-item h3 {
  margin: 10px 0;
}

.grid-item p {
  margin: 5px 0;
}

.grid-item a {
  text-decoration: none;
  color: #007bff;
}

.btn-link {
  display: inline-block;
  padding: 6px 12px;
  background-color: #d8dfebff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-link:hover {
  background-color: #062a63;
}

/* ===== D_Open_Concerns_Content: Intro Panels ===== */
.intro-panels {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.intro-card {
  background: #f8f9fb;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.intro-card h2 {
  margin-top: 0;
  color: #0b3d91;
}

/* ===== E_Nigerian_School_Places_Content: School Places Styles ===== */
.schools-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.schools-form.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin: 16px 0 10px;
}

.schools-form.filters label {
  font-size: 12px;
  color: #333;
  display: block;
}

.schools-form.filters input,
.schools-form.filters select {
  padding: 6px 8px;
  font-size: 14px;
}

.schools-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.schools-table th,
.schools-table td {
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.schools-table th {
  background: #e6e6e6;
  color: #0057b8;
  font-weight: 600;
}

.schools-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #333;
  margin-right: 6px;
}

.schools-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-decoration: none;
}

.schools-btn-primary {
  border-color: #333;
}

.schools-prog {
  height: 8px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
}

.schools-prog > span {
  display: block;
  height: 100%;
  background: #bbb;
}

.schools-note {
  font-size: 13px;
  color: #666;
}

.schools-ok {
  color: #0a7;
}

.schools-warn {
  color: #d60;
}

.schools-err {
  color: #b00;
}

.schools-statbar {
  display: flex;
  gap: 20px;
  margin: 10px 0;
  color: #444;
}

.schools-cta-bar {
  margin: 16px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* School places modal styles */
.schools-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.schools-modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.schools-modal-content .close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.schools-modal-content .close:hover {
  color: #ccc;
}

.schools-modal-content video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  border-radius: 12px;
}

.simpleology-cta-section {
  text-align: center;
  margin-top: 20px;
}

.simpleology-cta-link {
  display: inline-block;
  padding: 12px 24px;
  background: #0073e6;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.simpleology-cta-link:hover {
  background-color: #0059b3;
}
