/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* Header */
.header {
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url("Images/bg1.jpg");
  background-position: center;
  background-size: cover;
  position: relative;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  flex-wrap: wrap;
  position: relative;
  z-index: 1001;
}

nav img {
  margin-top: 30px;
  width: 120px;
  max-width: 40vw;
}

.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;
}

.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%;
}

/* Menu Icons */
nav .fa-bars,
nav .fa-times {
  position: absolute;
  top: 30px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  display: none;
  z-index: 1002;
}
.fa-times {
  display: none;
}

/* Hero Section */
.text-box {
  width: 90%;
  color: white;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h1 {
  font-size: 44px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
  letter-spacing: 1px;
}

.text-box p {
  margin: 25px 0 40px;
  color: #f5f5f5;
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn2 {
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 1px solid #ffffff;
  padding: 12px 34px;
  font-size: 15px;
  background: transparent;
  position: relative;
  transition: 0.8s;
}

.hero-btn2:hover {
  border: 1px solid #f44336;
  background: #f44336;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav .fa-bars,
  nav .fa-times {
    display: block;
  }

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

  .nav-links ul li {
    display: block;
    padding: 20px 20px;
  }

  .text-box h1 {
    font-size: 28px;
    line-height: 1.4;
    padding: 0 10px;
  }

  .text-box p {
    font-size: 14px;
    padding: 0 15px;
  }
}
/* Add display logic for menu toggle */
@media (max-width: 768px) {
  .nav-active .fa-bars {
    display: none !important;
  }
  .nav-active .fa-times {
    display: block !important;
  }
}


/* Footer and other sections: reuse your existing CSS */
/* If you need help updating specific sections (about, contact, etc.) let me know. */


/* ----course---------- */

.course {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

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

.course-col p {
  color: #8b8b8b;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  padding: 10px;
}

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

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

.course-intro p {
  color: #555;
  margin-top: 25px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h3 {
  text-align: center;
  font-weight: 800px;
  color: #000000;
  margin: 10px 0;
  font-size: 25px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

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

@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }

  .course-col:hover {
    box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.4);
    border-radius: 0px;
    transform: translateX(0px);
  }
}


/* -------------campus----------------- */

.campus {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}

.campus p {
  margin-top: 25px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #555;
}

.campus-col {
  flex-basis: 32%;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.campus-col img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: all ease 0.5s;
  scale: 1.1;
}

.campus-col:hover img {
  scale: 1;
}

.layer {
  background: (226, 0, 0, 0.7);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s;
}

.layer:hover {
  background: rgba(226, 0, 0, 0.7);
}

.layer h3 {
  width: 100%;
  font-weight: 500;
  color: #fff;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
}

.layer:hover h3 {
  bottom: 49%;
  opacity: 1;
}

/* ---------------facilities--------------------- */

.facilities {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

.facilities-intro p {
  margin-top: 25px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.facilities-col {
  flex-basis: 31%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
}

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

.facilities-col p {
  padding: 0;
  color: #8b8b8b;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.facilities-col h3 {
  margin-top: 16px;
  margin-bottom: 15px;
  text-align: left;
}


/* -------------cta---------- */

.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-position: center;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding: 100px 0;
}

.cta h1 {
  color: #fff;
  margin-bottom: 40px;
  padding: 0;
}

@media (max-width: 700px) {
  .cta h1 {
    font-size: 24px;
  }
}

/* ---------footer------------ */

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

.footer h4 {
  margin-bottom: 25px;
  margin-top: 20px;
  font-weight: 600;
}

.icons .fa {
  color: #f44336;
  margin: 0 13px;
  cursor: pointer;
  padding: 18px 0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.fa-heart-o {
  color: #f44336;
}

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

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

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

@media screen and (max-width: 700px) {
  .footer-intro p {
    font-size: 14px;
    text-align: center;
    margin-right: 25px;
    margin-left: 25px;
  }
}

/* --------------------about us page--------------------------------- */

.sub-header {
  position: relative;
  height: 50vh;
  width: 100%;
  background: linear-gradient(rgba(4, 9, 30, 0.6), rgba(4, 9, 30, 0.6)), url("Images/about_us.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  padding-top: 80px; /* create space for nav on small screens */
}

.sub-header nav {
  width: 100%;
  padding: 0 5%;
  position: absolute;
  top: 0px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-header nav img {
  width: 120px;
  margin: 0;
  padding: 0;
}

.sub-header nav .fa-bars,
.sub-header nav .fa-times {
  display: none;
  
}

.sub-header h1 {
  color: #fff;
  font-size: 36px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  margin-top: 20px;
}

/* ABOUT SECTION */
.about-us {
  width: 80%;
  margin: auto;
  padding-top: 80px;
  padding-bottom: 50px;
}

.about-col {
  flex-basis: 48%;
  padding: 30px 2px;
}

.about-col img {
  width: 100%;
}

.about-col h1 {
  padding-top: 0;
  margin-top: 45px;
}

.about-col p {
  padding: 15px 0 25px;
  color: #8b8b8b;
  line-height: 25px;
}

.red-btn {
  border: 1px solid #f44336;
  background: transparent;
  color: #f44336;
}

.red-btn:hover {
  color: #fff;
}

/* ---- ACHIEVEMENTS SECTION ---- */

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 images per row */
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.about-col1 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 480px) {
  .achievements-grid {
    grid-template-columns: 1fr; /* 1 per row on mobiles */
  }
}


/* ---- MOBILE VIEW ---- */
@media (max-width: 700px) {
  .sub-header {
    height: 50vh;
    padding-top: 80px;
    background: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), 
      url("Images/about_us.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .sub-header nav .fa-bars,
  .sub-header nav .fa-times {
    display: block;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 3;
    margin-top: 20px;
  }

  .about-col img {
    width: 100%;
    height: auto;
    display: block;
  }

  .about-col {
    flex-basis: 48%;
    padding: 0px 2px;
  }

  .about-us {
    width: 80%;
    margin: auto;
    padding-top: 0px;
    padding-bottom: 50px;
  }
}



/* ---------------------contact us-------------------- */

.location {
  width: 80%;
  margin: auto;
  padding: 80px 0;
}

.location iframe {
  width: 100%;
}

.contact-us {
  width: 80%;
  margin: auto;
}

.contact-col {
  flex-basis: 48%;
  margin-bottom: 30px;
}

.contact-col div {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.contact-col div .fa {
  font-size: 28px;
  color: #f44336;
  margin: 10px;
  margin-right: 30px;
}

.contact-col div p {
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-col div h5 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
  font-weight: 400;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-col input,
.contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.row {
  margin-left: 10px;
  display: flex;
}

.hero-btn-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px; /* increased space between buttons */
  align-items: center;
  margin-top: 30px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: red;
  color: white;
  border-color: red;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.course-col {
  background-color: #fff4f4;
  padding: 20px;
  border-radius: 15px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.hero-btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

.hero-btn2.red-btn {
  padding: 12px 24px;
  border: 1px solid #f05454;
  background-color: white;
  color: #f05454;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn2.red-btn:hover {
  background-color: #f05454;
  color: white;
}
