* {
  padding: 0;
  margin: 0;
  

}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
 background: linear-gradient(to right, #a8c8d8, #e0e6ed, #ffffff, #e0e6ed, #a8c8d8);
  font-family: Trebuchet MS, sans-serif;
}

/* ---------------------header----------------------------- */
header {
  background-color: #000000;
  color: #fff;
  padding: 10px 0;
  top: 0;
  width: 100%;
  z-index: 1000;
  position: fixed;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-left, .logo-right {
  width: 200px;
  margin: 0;
  padding-right: 20px;
}



/* ---------------------University Header----------------------------- */
.university-header {
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e5e5;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 0;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 999; /* ensures it stays visible above the image */
}






nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 60px;
  font-weight: 600;
  font-family: Trebuchet MS, sans-serif;
}

.menu li {
  display: inline;
}

.menu li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  transition: color 0.3s;
}

.menu-toggle {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.menu li a:hover {
  color: #4dc1e7; /* Text color on hover */
}

/* --------------Home------------------------------------ */

.image-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Ensure the image container covers the full viewport height */
}

.bg {
  width: 100%;
  height: 100vh; /* Ensure the image covers the full viewport height */
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(35%);
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 23px;
  text-align: center;
  word-spacing: 5px;
  line-height: 45px;
  z-index: 1; /* Ensure the text is on top of the image */
}

.text-overlay a {
  text-decoration: none;
}


.uni-name {
  font-size: clamp(2rem, 4vw, 3rem);
  white-space: nowrap;
  letter-spacing: 1px;
  font-weight: 700;
}


@media (max-width: 768px) {
    .uni-name {
        font-size: 1.9rem;   /* ✅ big but fits in one line */
        letter-spacing: 0.5px;
        margin-bottom: 12px;
    }
}




.join {
  display: inline-block; /* Change from block to inline-block to remove unnecessary space */
  margin-top: 29px;
  padding: 15px 30px;
  font-size: 18px;
  font-family: Trebuchet MS, sans-serif;
  font-weight: 500;
  background: #315af0;
  color: rgb(255, 255, 255);
  border-radius: 25px;
  border: none; /* Remove border for a cleaner look */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s; /* Add transition for smoother hover effect */
  cursor: pointer;
}

.join:hover {
  background: linear-gradient(to right, #322ceb, #4096ed, #315af0);
  transform: translateY(-2px);
  box-shadow: 0 0 5px #dde3e5, 0 0 5px #073186, 0 0 50px #192ea5;
}

/* -------------------------FOOTER_______________________ */
footer {
  background-color: #020202;
  color: white;
  text-align: center;
}

.icons {
  background-color: #181616;
  padding-bottom: 5px;
  padding-top: 5px;
  align-items: center;
}

.icons a {
  margin: 10px 10px;
}

.text {
  display: flex;
  justify-content: space-around;
  padding-bottom: 20px;
  padding-top: 30px;
  align-items: justify;
}

.column {
  width: 30%; /* Adjust width as needed */
  text-align: left;
  line-height: 30px;
  font-size: 15px;
  font-family: Trebuchet MS, sans-serif;
}

.top {
  position: fixed;
  bottom: 2.1rem;
  right: 2.1rem;
}

.top i {
  color: #25b4e8;
  background: #25b4e8;
  font-size: 35px;
  padding: 7px;
  border-radius: 2rem;
}

/* -------------------------RESPONSIVE DESIGN_______________________ */
@media (max-width: 768px) {
 
  header {
      padding: 5px 0;
      background-color: black;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;
  }

  .navbar-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 0px 30px; /* Adjust padding to reduce overall size */
  }

  .logo-left, .logo-right {
      width: 120px; /* Reduce the width of the logos */
      margin-bottom: 5px;
  }

  .logo-right {
      width: 120px;
      margin-bottom: 5px;
      padding-left: 15px;
  }

  nav {
      flex-direction: column;
      align-items: flex-start; /* Align the menu items to the right */
      width: 100%;
  }

  .menu {
      display: none;
      flex-direction: column;
      align-items: flex-end; /* Align menu items to the right */
      width: 100%;
      gap: 30px;
  }

  .menu li {
      width: 100%;
      border-top: 1px solid #fff;
      text-align: left;
      padding: 5px;
      padding-top: 20px; /* Adjust padding to reduce overall size */
      padding-left: 150px; /* Add padding from the left */
  }

  .menu li:first-child {
      border-top: none;
  }

  .menu-toggle {
      padding-right: 15px;
      padding-left: 15px; /* Adjust the padding-right */
      display: inline-block;
      align-self: flex-end;
  }

  .show-menu {
      display: flex;
      padding-left: 22px;
      padding-bottom: 30px;
  }

  .bg {
      width: 100%;
      height: 80vh;
      background-repeat: no-repeat;
      background-position: center;
      filter: brightness(30%);
  }
.image-container{
  height:80vh;
}
  .text-overlay {
    margin-top:50px;
      font-size: 13px;
      word-spacing: 2px;
      line-height: 30px;
      padding: 0 0px;
      width: 75%;
  font-family: Trebuchet MS, sans-serif;

  }

  .join {
      padding: 10px 20px;
      font-size: 12px;
  }

  
  .footer-visible {
      max-width: 100%;
  }

  footer .text {
      flex-direction: column;
      max-width: 80%;
      align-items: center;
      text-align: center;
  }

  footer .column {
      margin: 5px 0;
      padding: 10px;
      width: 80%;
      font-size: 11px;
      padding-left: 70px;
      text-align: center;
      line-height: 20px;
  }

  footer .icons img {
      width: 25px;
      margin: 5px;
  }
}

/* ---------------- RESPONSIVE HERO FIX (FOR MOBILE) ---------------- */
@media (max-width: 768px) {

  /* Reduce text sizes and keep it within the background */
  .text-overlay h1 {
    font-size: 18px !important;
    line-height: 26px !important;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .text-overlay .uni-name {
    font-size: 20px !important;
    line-height: 28px !important;
    white-space: normal;
    margin: 8px 0;
  }

  .text-overlay h2 {
    font-size: 15px !important;
    line-height: 22px !important;
  }

  /* Adjust the text container so it doesn’t overflow upward */
  .text-overlay {
    top: 55%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 0 10px;
  }

  /* Background image better centered for mobile */
  .bg {
    height: 85vh !important;
    object-fit: cover;
    background-position: center center;
    filter: brightness(35%);
  }

  /* Button spacing and scaling */
  .join {
    margin-top: 15px;
    padding: 10px 22px;
    font-size: 14px;
  }
}
