/* Universities Page Styles - Premium & Interactive */

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url("../assets/join_stationery_assets/banner.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax Effect */
  margin-top: -10px;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll; /* Disable parallax on mobile */
  }
}

/* Background Overlay */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.9) 0%,
    rgba(30, 30, 30, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: "lora", serif;
  letter-spacing: -1.5px;
  color: #fff;
}

.hero-content p {
  font-size: 1.4rem;
  color: #f5f5f5;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- University Container --- */
.uni-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 60px;
  background: rgba(25, 25, 25, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.academic-header {
  text-align: center;
  margin-bottom: 40px;
}

.academic-header h2 {
  font-size: 2.5rem;
  color: #ef986e; /* Using brand highlight for title */
  margin-bottom: 12px;
  border: none;
  padding: 0;
  font-family: "lora", serif;
}

.subtitle {
  color: #ccc; /* Better contrast for subtitle */
  font-size: 1.1rem;
  font-weight: 300;
}

/* --- Search Box --- */
.search-box {
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

#searchInput {
  width: 100%;
  padding: 16px 25px 16px 55px;
  font-size: 1.1rem;
  border: 2px solid rgba(0, 90, 156, 0.2);
  border-radius: 50px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  outline: none;
}

#searchInput:focus {
  border-color: #005a9c;
  box-shadow: 0 10px 25px rgba(0, 90, 156, 0.15);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* --- Table Styles --- */
.table-responsive {
  overflow-x: auto;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.03); /* Transparent dark base */
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  color: #eee; /* Light text for dark table */
}

.premium-table thead tr {
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-table th {
  padding: 20px 25px;
  text-align: left;
  font-weight: 700;
  color: #ef986e; /* Highlight headers */
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

.uni-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.uni-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(0.995);
}

.premium-table td {
  padding: 15px 25px;
  vertical-align: middle;
}

.index-cell {
  font-weight: bold;
  color: #999;
}

.logo-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.uni-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.name-cell {
  font-family: "DM Sans", sans-serif;
}

.uni-name-main {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.uni-full-name {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 4px;
}

.action-cell {
  text-align: right;
}

.btn-action {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #005a9c, #007bdd);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 90, 156, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-action:hover {
  background: linear-gradient(135deg, #007bdd, #009cff);
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 12px 25px rgba(0, 90, 156, 0.4),
    0 0 20px rgba(0, 123, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.no-results {
  text-align: center;
  padding: 60px !important;
  color: #888;
}

.no-results p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.btn-missing {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(135deg, #ef986e, #ffb088);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 800;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(239, 152, 110, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.btn-missing:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(239, 152, 110, 0.5);
  filter: brightness(1.1);
}

/* --- Institutions Footer --- */
.institutions-footer {
  margin-top: 50px;
  text-align: center;
}

.footer-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin-bottom: 30px;
}

.footer-request p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* --- Pagination Footer --- */
.pagination-footer {
  text-align: center;
  margin-top: 40px;
}

.btn-more,
.btn-less {
  background: linear-gradient(45deg, #ef986e, #f3966b) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 14px 40px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(239, 152, 110, 0.3);
  font-size: 0.9rem !important;
}

.btn-more:hover,
.btn-less:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(239, 152, 110, 0.5);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .uni-container {
    padding: 25px 15px;
    margin: 20px auto; /* Centered */
    width: calc(100% - 30px); /* Equal spacing */
    border-radius: 20px;
    box-sizing: border-box;
  }

  .academic-header h2 {
    font-size: 1.6rem;
  }

  .premium-table th:nth-child(1),
  .premium-table td:nth-child(1) {
    display: none;
  }

  .premium-table td {
    padding: 12px 10px;
  }

  .uni-name-main {
    font-size: 1rem;
  }

  .uni-full-name {
    display: none;
  }

  .logo-wrapper {
    width: 40px;
    height: 40px;
  }
}
