/* Reset default margins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar Styles */
header {
  background-color: #002244;
  padding: 20px 20px;
  color: white;
  position: relative;
  z-index: 10;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo and school name container */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  height: 60px;
  width: auto;
}

.school-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.school-name .main-title {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.school-name .sub-title {
  font-size: 12px;
  color: #cccccc;
  margin-top: 2px;
}

/* Nav links (desktop) */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffcc00;
}

/* Hamburger icon (hidden by default) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

/* Nav items on small screen */
@media screen and (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: center;
  }

  .navbar-logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
    margin-top: 10px;
    align-self: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #002244;
    position: absolute;
    top: 100%; /* push below header */
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }

  .nav-links li a {
    color: white;
    font-size: 18px;
  }

  .nav-links li a:hover {
    color: #ffcc00;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
}

.admissions-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  background-color: white;
}

h1 {
  text-align: center;
  color: #003366;
  margin-bottom: 30px;
}

.tabs {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #ccc;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 25px;
  margin: 5px;
  background-color: #e6f0ff;
  color: #003366;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  border: 1px solid #ccc;
  border-bottom: none;
  font-weight: bold;
}

.tab.active {
  background-color: #003366;
  color: #fff;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  margin-bottom: 20px;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: center;
}

table th {
  background-color: #003366;
  color: white;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.note-section {
  margin-top: 20px;
}

.note-section h3 {
  color: #003366;
}

.note-section ul {
  margin-left: 20px;
  line-height: 1.6;
}

/* Responsive Table: Mobile-first design */
@media (max-width: 768px) {
  .table-container {
    overflow-x: auto;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none; /* hide headers */
  }

  tr {
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    background-color: #fff;
    padding: 10px;
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #003366;
    flex-basis: 50%;
    text-align: left;
  }

  td:last-child {
    border-bottom: 0;
  }

  table {
    border: none;
    width: 100%;
    min-width: unset;
  }
}
