/* Convocation Schedule Section */
/* Convocation Schedule Section */
#convocation-schedule {
  background: radial-gradient(
    circle at center,
    rgba(38, 38, 92, 0.7) 0%,
    rgba(88, 45, 124, 0.6) 60%,
    rgba(71, 108, 176, 0.6) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  color: #fff;
  text-align: center;
}

/* Background Mandala Image */
#convocation-schedule::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/mandalaback.png") center/cover no-repeat;
  opacity: 0.15; /* made visible but not too harsh */
  z-index: 0;
}

/* Content Wrapper */
#convocation-schedule .container {
  position: relative;
  z-index: 1; /* ensure content appears above the mandala */
}

/* Table Wrapper */
/* Add space above the table for heading */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #d4af37; /* gold scrollbar for style */
  border-radius: 4px;
}

#convocation-schedule .table-wrapper {
  overflow-x: auto;
  margin-top: 60px; /* 👈 pushes the table downward */
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(0, 0, 0, 0.3);
}
/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto; /* allow scrolling if needed */
    -webkit-overflow-scrolling: touch;
  }

  .custom-schedule-table {
    min-width: 0;
    width: 60%;
    font-size: 10px; /* smaller text on mobile */
  }

  .custom-schedule-table thead th {
    padding: 12px 8px; /* smaller padding */
    font-size: 14px; /* reduce font size */
  }

  .custom-schedule-table th,
  .custom-schedule-table td {
    padding: 8px 6px; /* reduce cell padding */
  }

  /* Optional: wrap long header text */
  .custom-schedule-table thead th {
    white-space: normal;
    word-wrap: break-word;
  }
}

/* Table Styling */
.custom-schedule-table {
  width: 100%;
  min-width: 400px; /* Prevent squishing on small screens */
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

/* Table Header */
.custom-schedule-table thead th {
  text-align: center;
  padding: 20px;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  color: #f0ad4e;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 3px solid #a2cfe4;
}

/* Table Cells */
.custom-schedule-table th,
.custom-schedule-table td {
  padding: 16px;
  color: #fff;
  border: 1px solid #a2cfe4;
  vertical-align: middle;
  transition: all 0.3s ease;
}

/* Alternate Rows */
.custom-schedule-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

/* Hover Effect */
.custom-schedule-table tbody tr:hover {
  background: rgba(244, 180, 0, 0.2);
  transform: scale(1.01);
  font-weight: bold;
}
