/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Page Header */
.new-header {
  background: linear-gradient(135deg, #DC143C 0%, #a00d2b 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.new-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background/pattern.png');
  opacity: 0.1;
  pointer-events: none;
}

.new-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.new-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Section Styling */
section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

section h2 {
  font-size: 2.5rem;
  color: #DC143C;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  font-weight: 700;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #DC143C;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Table Design */
.table-responsive {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #eee;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #DC143C;
  color: #fff;
}

th {
  padding: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

td {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f1f1;
  text-align: center;
  font-size: 1rem;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: #fcfcfc;
}

tbody tr:hover {
  background-color: #fff9fa;
  cursor: default;
}

/* Vacant Numbers Highlight */
.vacant-num {
  font-weight: 700;
  color: #DC143C;
}

/* Eligibility & Contact Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 5px solid transparent;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-10px);
  border-bottom-color: #DC143C;
  box-shadow: 0 15px 35px rgba(220, 20, 60, 0.15);
}

.info-card i {
  font-size: 3rem;
  color: #DC143C;
  margin-bottom: 20px;
  display: block;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #222;
}

.info-card p {
  color: #666;
  line-height: 1.8;
}

/* Mobile Responsive Design */
@media (max-width: 991px) {
  .new-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .new-header {
    padding: 60px 20px;
  }

  .new-header h1 {
    font-size: 2rem;
  }

  /* Force Table to Cards on Mobile */
  .table-responsive {
    box-shadow: none;
    background: transparent;
    border: none;
  }

  thead {
    display: none;
    /* Hide header on mobile */
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    background: #fff !important;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px;
    border: 1px solid #eee;
  }

  td {
    text-align: right;
    padding: 12px 15px;
    border-bottom: 1px solid #f9f9f9;
    position: relative;
    padding-left: 50%;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    text-align: left;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 0.8rem;
  }

  .vacant-num {
    color: #DC143C;
  }

  section h2 {
    font-size: 1.8rem;
  }
}