/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


/* ================= HEADER ================= */
header {
  background: linear-gradient(135deg, #4c98af, #6fb1c7);
  text-align: center;
  padding: 20px;
  position: relative;
  color: white;
}

.logo {
  max-width: 80px;
  margin-bottom: 10px;
}


/* ================= MENU ================= */
.menu {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.menu-links {
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 8px 0;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s;
}

.menu-links.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-links a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
}

.menu-links a:hover {
  background: #f0f0f0;
}


/* ================= NAV ================= */
nav {
  background: #222;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: 0.3s;
}

nav a:hover {
  background: #4c98af;
}


/* ================= SEARCH ================= */
.search-container {
  display: flex;
  justify-content: center;
  margin: 20px;
}

#searchBar {
  width: 60%;
  padding: 12px 18px;
  border-radius: 25px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

#searchBar:focus {
  border-color: #4c98af;
  box-shadow: 0 0 8px rgba(76,152,175,0.3);
}


/* ================= MAIN ================= */
main {
  background: #f4f4f4;
  padding-bottom: 40px;
}


/* ================= INTRO SECTION ================= */
.programme-section {
  text-align: center;
  padding: 30px 20px;
}

.programme-section h2 {
  margin-bottom: 10px;
}

.programme-section p {
  color: #555;
  margin-bottom: 15px;
}

.register-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #007BFF;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.register-btn:hover {
  background: #0056b3;
}


/* ================= GRID ================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 20px;
  gap: 20px;
}


/* ================= COURSE CARD ================= */
.course {
  background: white;
  padding: 20px;
  border-radius: 12px;

  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course:hover {
  transform: translateY(-6px);
}


/* ================= TEXT ================= */
.course h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #222;
}

.course p {
  color: #555;
  margin-bottom: 15px;
  font-size: 14px;
}


/* ================= BUTTON ================= */
.button-link {
  display: inline-block;
  padding: 8px 12px;
  background: #007BFF;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.button-link:hover {
  background: #0056b3;
}


/* ================= SCROLL IMPROVEMENT ================= */
body {
  scroll-behavior: smooth;
}

#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.5);

  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  #searchBar {
    width: 90%;
  }

  nav {
    flex-wrap: wrap;
  }
}