/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navigation */
nav {
  display: flex;
  padding: 0% 6%;
  justify-content: space-between;
  align-items: center;
}

nav img {
  margin-top: 30px;
  width: 150px;
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 10px 35px;
  position: relative;
}

.nav-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

.nav-links ul li::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #f44336;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.nav-links ul li:hover::after {
  width: 100%;
}

nav .fa {
  display: none;
}

/* Header + Text Box */
.header {
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url("Images/bg1.jpeg");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 30, 0.7);
  z-index: 0;
}

.text-box {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: white;
  font-family: 'Poppins', sans-serif;
  padding: 20px 15px;
  word-break: break-word;
  text-align: center;
}

.text-box h3 {
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.3;
}

.text-box h1 {
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.text-box h2 {
  font-size: clamp(16px, 4.5vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}

.text-box .hero-btn {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 25px;
  border: 1px solid #fff;
  color: white;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  display: inline-block;
}

.text-box .hero-btn:hover {
  background-color: #f44336;
  border-color: #f44336;
}

/* Sections */
.course,
.facilities,
.testimonial,
.notice {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-top: 5%;
}

.course-col,
.facilities-col,
.testimonial-col {
  flex-basis: 31%;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  background: #fff3f3;
  border-radius: 10px;
}

.course-col:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-10px);
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

h3 {
  font-size: 25px;
  font-weight: 800;
  color: #000;
  text-align: center;
}

.facilities-col img {
  width: 100%;
  border-radius: 10px;
}

.testimonial-col {
  display: flex;
  text-align: left;
}

.testimonial-col img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-right: 30px;
}

.cta {
  margin: 100px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("Images/bg2.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 100px 0;
  border-radius: 10px;
}

.cta h1 {
  color: white;
  margin-bottom: 40px;
}

.footer {
  width: 100%;
  text-align: center;
  padding: 30px 0;
}

.footer h1 {
  margin-bottom: 25px;
}

.footer-intro p {
  font-size: 18px;
  color: #8b8b8b;
}

.icons .fa {
  margin: 0 13px;
  color: #f44336;
  padding: 18px 0;
  cursor: pointer;
  transition: 0.3s;
}

.icons .fa:hover {
  transform: scale(1.5);
}

/* Notice Board */
.notice {
  background-color: #fff3f3;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notice h1 {
  font-size: 32px;
  color: #f44336;
}

.notice-list {
  list-style: none;
  padding: 0;
}

.notice-list li {
  font-size: 18px;
  border-bottom: 1px solid #f44336;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-list li:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  nav .fa {
    display: block;
    color: white;
    font-size: 22px;
    cursor: pointer;
    margin: 10px;
  }

  .nav-links {
    position: fixed;
    background: #f44336;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    transition: 0.3s;
  }

  .nav-links ul {
    padding: 30px;
  }

  .row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .course-col,
  .facilities-col,
  .testimonial-col {
    width: 100%;
    padding: 15px;
  }

  .testimonial-col {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .testimonial-col img {
    margin: 0 0 15px 0;
  }

  .hero-btn {
    font-size: 14px;
    padding: 10px 20px;
    margin: 10px auto;
    display: inline-block;
  }

  .notice {
    padding: 20px;
    width: 95%;
  }

  .notice-list li {
    font-size: 16px;
    word-break: break-word;
  }

  .footer-intro p {
    font-size: 14px;
    padding: 0 15px;
  }

  .text-box h1,
  .text-box h2,
  .text-box h3 {
    padding: 0 10px;
  }
}


