

/* ======= Title ======= */
.main__title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #000 !important;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.main__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #ffcc33;
  border-radius: 2px;
}

/* Container */
.district-table-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Title */
.district-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2b7a4b;
    text-align: center;
}

/* Table */
.district-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 16px;
}

/* Header */
.district-table thead th {
    background: #ffd700;
    color:#000;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Body Rows */
.district-table tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

 a{

    color:#198754;
}

.district-table tbody tr:hover {
    background: #b9b8b89f;
    transform: scale(1.01);
}

.district-table td {
    padding: 14px;
    vertical-align: top;
    border-bottom: 1px solid #eef2f7;
}

/* Responsive */
@media (max-width: 768px) {
    .district-table thead {
        display: none;
    }

    .district-table tbody tr {
        display: block;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
    }

    /* Turn rows into cards */
    .district-table tr {
        display: block;
        margin-bottom: 20px;
        background: #ffffff;
        border: 1px solid #d9d9d9;
        border-radius: 10px;
        padding: 10px;
    }

    /* Stack cells */
    .district-table td {
        display: block;
        text-align: left;
        padding: 10px;
        border-bottom: none;
        font-size: 15px;
        white-space: normal; /* prevents text overflow */
    }

    /* Add labels before each cell */
    .district-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #003366;
        margin-bottom: 3px;
    }
}