/* ===== HERO ===== */
.scholarships {
  min-height: 55vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 50px;
  background:
    linear-gradient(rgba(243, 248, 250, 0.88), rgba(243, 248, 250, 0.88)),
    url('../img/star.jpg') no-repeat center center / cover;
}

.scholarships::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: url('../img/scholarship.png') no-repeat center center / contain;
  z-index: 1;
}

.scholarships-container {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 55%;
  padding: 20px;
}

.scholarships-container h1 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.scholarships-container p.contact-text {
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--grey);
  margin-bottom: 0;
  letter-spacing: 0.5px;
  line-height: 1.7;
  max-width: 500px;
}

/* ===== TABLE ===== */
.scholarship-table-container {
  padding: 40px;
  background: #F8F8F8;
}

.scholarship-table {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ccc;
  font-family: 'Jost', sans-serif;
}

.scholarship-table tr:hover,
.scholarship-table td:hover {
  background-color: #ECECEC;
}

.scholarship-table thead {
  color: var(--grey);
  font-size: 24px;
  font-weight: 600;
  background-color: #f1f1f1;
}

.scholarship-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #ccc;
}

.scholarship-table tbody tr {
  color: var(--grey);
}

.scholarship-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.scholarship-table tbody td {
  padding: 14px 18px;
  font-size: 15px;
  color: var(--grey);
  vertical-align: top;
  border: 1px solid #ccc;
}

.scholarship-table .col-category {
  width: 30%;
}

.scholarship-table .col-description {
  width: 70%;
  line-height: 1.6;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 1400px) {
  .scholarships {
    padding: 80px 80px;
  }
  .scholarships-container h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 1200px) {
  .scholarships {
    padding: 70px 30px;
  }
  .scholarships-container {
    width: 60%;
  }
}

@media (max-width: 1024px) {
  .scholarships {
    flex-direction: column;
    justify-content: center;
    padding: 60px 30px;
  }
  .scholarships::before {
    width: 100%;
    height: 220px;
    top: unset;
    bottom: 0;
    background-size: contain;
    background-position: bottom center;
    opacity: 0.15;
  }
  .scholarships-container {
    width: 100%;
    text-align: center;
  }
  .scholarships-container p.contact-text {
    max-width: 100%;
  }
  .scholarship-table-container {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .scholarships::before {
    display: none;
  }
  .scholarships {
    padding: 50px 20px;
    min-height: 40vh;
  }
  .scholarship-table thead th,
  .scholarship-table tbody td {
    font-size: 14px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .scholarships {
    padding: 40px 15px;
  }
  .scholarship-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .scholarship-table thead th,
  .scholarship-table tbody td {
    font-size: 13px;
    padding: 8px;
  }
}