/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Ubuntu", sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
  color: #0c2340;
  overflow-x: hidden;
}

/* Parallax Background Layer */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("imgs/walking.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  filter: brightness(0.6) blur(2px);
  transform: scale(1.05);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Navigation */
nav {
  position: sticky;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  text-align: center;
  border-bottom: 4px solid #0c2340;
  background: #d44500;
  padding: 1em 0;
  position: relative;
  z-index: 10;
  font-family: "Ubuntu", sans-serif;
}

@media screen and (max-width: 900px) {
  nav {
    grid-template-columns: 100%;
    grid-gap: 1em;
  }
}

.item1 {
  grid-column: 1;
}
.item2 {
  grid-column: 2;
}
.item3 {
  grid-column: 4;
}
.item4 {
  grid-column: 5;
}

.logo {
  grid-column: 3;
  background-image: url("imgs/cuselogo.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  height: 10vh;
}

/* Nav Links */
.navLinks {
  font-size: 1.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
}

.navLinks:hover {
  color: #0c2340;
  border-left: 1px solid white;
  border-right: 1px solid white;
  padding: 1em 1em;
}

/* Main Title */
h1 {
  font-family: ShermanSerif, Georgia, serif;
  text-align: center;
  margin: 2rem 0;
  color: #d44500;
  font-weight: 700;
  font-size: 2.8rem;
  text-shadow: 2px 2px 5px #0c2340;
}

/* Container for sidebar and content */
.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
  gap: 2rem;
  margin-top: 100px;
}

.schools-list {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.school-btn {
  background-color: #d44500;
  border: none;
  padding: 12px 16px;
  color: white;
  font-weight: 700;
  font-family: "Ubuntu", sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  text-align: center;
  font-size: 1rem;
}

.school-btn:hover,
.school-btn:focus {
  background-color: #a83400;
  outline: none;
}

.school-btn.active {
  background-color: #0c2340;
  color: #d44500;
  cursor: default;
}

/* Content Area */
.programs-container {
  flex: 3 1 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  max-height: 75vh;
  font-family: "Ubuntu", sans-serif;
  color: #0c2340;
}

.programs h2 {
  font-family: ShermanSerif, Georgia, serif;
  font-weight: 700;
  color: #d44500;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.programs ul {
  margin-left: 1.2rem;
  margin-bottom: 1.2rem;
  list-style-type: disc;
  color: #333;
}

.programs p {
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .schools-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .school-btn {
    flex: 1 1 45%;
    font-size: 0.9rem;
  }
  .programs-container {
    max-height: none;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6rem;
  margin-top: 100px;
}

/* Card Container */
.card-container {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
}

/* Card Styling */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  background: #ff9d41;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #d44500;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(12, 35, 64, 0.3);
}

/* Card Image */
.card-image {
  position: relative;
}

.card-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Card Title over image */
.card-title {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 3px 3px 4px black;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

/* Card Content */
.card-content {
  padding: 1.2rem;
  font-size: 1rem;
  color: white;
  line-height: 1.5;
  text-shadow: 2px 2px 4px black;
  font-family: "skolar-sans-latin", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Card Action */
.card-action {
  padding: 0.75rem 1.2rem;
  background-color: #16365e;
  text-align: right;
}

.card-action a {
  color: #d44500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.card-action a:hover {
  color: #a83400;
}

.title {
  margin-top: 100px;
}
