.table-wrapper {
  font-family: 'poppins', sans-serif;
  display: flex;
}

.table-card {
  background: #FFFFFF99;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 1300px;
  box-shadow: 4px 5px 24px 0px #6565653D;
}

/* Table */
.event-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

/* Header */
.event-table th {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  text-align: left;
  padding: 4px 20px 12px;
}

/* Cells */
.event-table td {
  padding: 16px 28px;
  font-size: 16px;
  color: #2d2d2d;
  background: #EDF3FFC4;
  max-width: 340px;
}

/* First column */
.td-first {
  border-radius: 10px 0 0 10px;
  width: 22%;
}

/* Last column */
.td-last {
  border-radius: 0 10px 10px 0;
  width: 18%;
}

.business-quiz-table .td-first {
  width: 260px;
}

.business-quiz-table .td-last {
  width: auto;
}

/* Row spacing effect */
.event-table tbody tr {
  overflow: hidden;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .table-card {
    padding: 22px;
    border-radius: 14px;
  }

  .event-table th {
    font-size: 15px;
    padding: 4px 16px 10px;
  }

  .event-table td {
    font-size: 15px;
    padding: 14px 20px;
  }
}

/* ── Small Tablet (max 768px) ── */
@media (max-width: 768px) {
  .table-wrapper {
    display: block;
  }

  .table-card {
    padding: 18px 16px;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .table-card::-webkit-scrollbar {
    display: none;
  }

  .table-card {
    position: relative;
  }

  .event-table th {
    font-size: 14px;
    padding: 4px 14px 10px;
    white-space: nowrap;
  }

  .event-table td {
    font-size: 14px;
    padding: 12px 16px;
  }

  .business-quiz-table .td-first {
    width: auto;
    max-width: 100px;
  }
}

/* ── Mobile (max 480px) ── */
@media (max-width: 480px) {

  thead {
    display: none;
  }

  .table-card {
    padding: 14px 12px;
    border-radius: 10px;
    overflow: visible;
  }

  .event-table {
    border-spacing: 0;
  }

  /* .event-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #EDF3FFC4;
    border-radius: 16px;
  }

  .event-table td {
    padding: 4px 0;
    background: transparent !important;
    border-radius: 0 !important;
    max-width: 100%;
    font-size: 12px;
    color: #2d2d2d;
    min-width: 120px;
  }

 
  .td-first {
    font-size: 16px !important;
    font-weight: 600;
    grid-column: 1 / -1;
    padding-bottom: 6px;
    color: #1a1a1a;
  }

 
  .event-table td:nth-child(2) {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 400;
    color: #2d2d2d;
    padding-bottom: 2px;
  }

  
  .event-table td:nth-child(3) {
    position: relative;
    grid-column: 1 / 2;
    font-size: 12px;
    font-weight: 500;
  }

  
  .td-last { 
    grid-column: 2 / 3;
    font-size: 12px;
    font-weight: 500;
  }

   .event-table td:nth-child(3):after {
    content: '';
    position: absolute;
    right: 0; 
    top: 50%; 
    transform: translate(50%, -50%);
    width: 1px;
    height: 60%;
    background: rgba(0, 0, 0, 0.12);
  } */



  .event-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #EDF3FFC4;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
  }

  .event-table td {
    padding: 4px 0;
    background: transparent !important;
    border-radius: 0 !important;
    max-width: 92%;
    font-size: 12px !important;
    color: #2d2d2d;
    min-width: 80px;
    width: 100%;
  }

  /* Everything full width by default */
  .event-table td {
    grid-column: 1 / -1;
  }

  /* Last two side by side — works whether there are 4 or 5 columns */
  .event-table td:nth-last-child(2) {
    grid-column: 1 / 2;
    font-size: 12px;
    font-weight: 500;
    position: relative;
  }

  .event-table td:nth-last-child(1) {
    grid-column: 2 / 3;
    font-size: 12px;
    font-weight: 500;
  }

  /* Divider between the last two */
  .event-table td:nth-last-child(2):after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translate(50%, -50%);
    width: 1px;
    height: 60%;
    background: rgba(0, 0, 0, 0.12);
  }

  /* First td - City Name */
  .td-first {
    font-size: 16px !important;
    font-weight: 600;
    grid-column: 1 / -1;
    padding-bottom: 6px;
    color: #1a1a1a;
  }




  /* If you have a status badge in last column */
  .td-last .status {
    background-color: #C7DDEF;
    padding: 4px 12px;
    font-size: 10px;
    border-radius: 999px;
    display: inline-block;
  }
}