/* 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 {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
}

.programmes-section {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.programmes-section h1 {
  text-align: center;
  font-size: 32px;
  color: #003366;
  margin-bottom: 50px;
}

.programme-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.7s ease;
}

.programme-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.programme-card.left .programme-image {
  order: 0;
}

.programme-card.right .programme-image {
  order: 1;
}

.programme-card.right .programme-content {
  order: 0;
}

.programme-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.programme-image, .programme-content {
  flex: 1;
}

.programme-content h2 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 15px;
}

.programme-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .programme-card {
    flex-direction: column;
    text-align: center;
  }

  .programme-card.left .programme-image,
  .programme-card.right .programme-image {
    order: 0;
  }

  .programme-card.right .programme-content,
  .programme-card.left .programme-content {
    order: 1;
  }

  .programme-content h2 {
    font-size: 20px;
  }

  .programme-content p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .programmes-section h1 {
    font-size: 24px;
  }

  .programme-content h2 {
    font-size: 18px;
  }

  .programme-content p {
    font-size: 14px;
  }
}
