/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
  }
  
  /* Header */
  header {
    background-color: #003366;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  header img {
    height: 60px;
    margin-right: 1rem;
  }
    header h1 {
        font-size: 2.5rem;
        margin: 0;
        flex-grow: 1;
    }  
  
  /* header h1 {
    margin: 0;
    font-size: 2rem;
  }
   */
  /* Navigation */
  nav ul {
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    text-decoration: underline;
  }
  
  /* Main content */
  main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  h2 {
    color: #003366;
  }
  
  /* Footer */
  footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
  }
  
  .council-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 2rem auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .bursary-list {
    list-style: none;
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .bursary-list li {
    background: #fff;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-left: 5px solid #003366;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .bursary-list h3 {
    margin-top: 0;
    color: #003366;
  }
  
  .bursary-list a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
  }
  
  .bursary-list a:hover {
    text-decoration: underline;
  }

  .graduates-programmes {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .graduates-programmes h3 {
    margin-top: 0;
    color: #003366;
  }
  .graduates-programmes ul {
    list-style-type: none;
    padding-left: 0;
  }

  .graduates-programmes li {
    background: #f9f9f9;
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 5px solid #003366;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .graduates-programmes a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
  }

  .graduates-programmes a:hover {
    text-decoration: underline;
  }
  
  main ul {
    padding-left: 1.5rem;
    list-style-type: disc;
  }
  
  .council-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
  }
  
  .council-member {
    flex: 1 1 250px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1rem;
    background-color: #f9f9f9;
  }

  /* Make the first council member full width */
  .council-member:first-child {
  flex: 1 1 100%;
  }
  
  .council-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
  }

  .contact-info p {
    margin-bottom: 0.5rem;
  }
  
  .contact-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
  }
  
  .contact-form button {
    width: fit-content;
    padding: 0.5rem 1rem;
    background-color: #0057b7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .contact-form button:hover {
    background-color: #00449e;
  }
  
  @media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header h1 {
    font-size: 1.8rem;
    text-align: left;
    width: 100%;
  }

  nav ul {
  align-items: flex-start;
  padding-left: 1.5rem; /* Adds spacing from the left edge */
}

nav ul li {
  text-align: left;
  width: 100%;
}


  main {
    padding: 1rem;
  }

  .council-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .council-member {
    flex: 1 1 100%;
  }

  .graduates-programmes li,
  .bursary-list li {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .contact-form {
    width: 100%;
    padding: 0 1rem;
  }

  .council-image {
    width: 100%;
    margin: 1rem auto;
  }

  h2, h3 {
    font-size: 1.2rem;
    text-align: center;
  }
}

.events-section {
  margin-top: 4rem;
  padding: 2rem 1rem;
  background-color: #fff;
  text-align: center;
}

.events-section h2 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.event-card {
  width: 250px;
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #ddd;
}

.event-card h3 {
  padding: 1rem;
  font-size: 1.1rem;
  color: #003366;
  margin: 0;
}

.our-events {
  padding: 2rem;
  text-align: center;
  width: 100%;
  overflow-x: auto;
}

.event-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.event-card {
  flex: 0 0 auto;
  width: 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.event-card h3 {
  margin: 1rem;
  font-size: 1.2rem;
}

.event-card:hover {
  transform: scale(1.03);
}

/* Optional: Remove scrollbar on WebKit browsers */
.event-row::-webkit-scrollbar {
  display: none;
}


.our-schools {
  padding: 2rem;
  text-align: center;
}

.school-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.school-logos a img {
  height: 60px; /* Adjust as needed */
  width: auto;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.school-logos a img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .school-logos {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .school-logos a {
    flex: 1 1 40%; /* 2 per row on tablets */
  }
}

@media (max-width: 480px) {
  .school-logos a {
    flex: 1 1 100%; /* Stack vertically on small phones */
  }
}

.poster-container {
  position: relative;
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

.poster-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.poster-container:hover .event-video {
  opacity: 1;
}

.poster-container:hover img {
  opacity: 0;
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-modal video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
