/* css styles */
css
/* 1. Most common selector for banner subtitles */
.quarto-title-block .quarto-title-meta-subtitle {
  color: #ffffff !important;
}

/* Make ALL text in the title banner white */
.quarto-title-block * {
  color: #ffffff !important;
}

.topbar {
  background-color: #ffcd00;
  color: black;
  font-weight: bold;
  padding: 0.6rem 1rem;
  text-align: right;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  /*height: 55px;*/
  vertical-align: middle;
  margin-right: .5rem;
}

/* Make the global navbar bright yellow with a subtle shadow */
.navbar {
  background-color: #ffcd00 !important;         /* UNSW-style yellow */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);    /* drop shadow */
}

/* Brand/logo area on the left */
.navbar .navbar-brand {
  display: flex; 
  align-items: center;
  font-weight: 700;
  color: #000 !important;
}

/* Logo image in the top left */
.navbar .navbar-brand img {
  height: 80px !important;          /* tweak as needed */
  margin-right: 0.75rem;
}

/* Push nav links to the right */
.navbar-nav {
  margin-left: auto; /* moves nav items to the right side */
}

/* Nav link styling */
.navbar .nav-link {
  color: #000 !important;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  text-decoration: underline;
}

/* Force a 2×2 grid on normal screens, 1×4 on small screens */
.what-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));  /* always 2 columns */
  gap: 1.5rem;
}

/* On small screens, stack them */
@media (max-width: 768px) {
  .what-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep module images tidy and consistent */
.modules-img {
  height: 300px;
  object-fit: cover;
  width: 100%;
}