@import url('https://fonts.googleapis.com/css2?family=Iceberg&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  background-color: #f3f3f3;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  /* Base font size for scalability */
}

/* Container */
.container {
  max-width: 1800px;
  margin: 0 auto;
}

/* Alert Bar */
.alert-bar {
  border-radius: 8px;
  height: 50px;
  background-color: #FF9500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 5%;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.alert-bar p {
  font-size: clamp(14px, 3.5vw, 18px);
  letter-spacing: 1px;
  color: white;
}

.alert-bar a {
  text-decoration: none;
  color: white;
}

.alert-bar a:hover {
  color: olivedrab;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  flex-wrap: wrap;
}

header .logo img {
  width: clamp(120px, 25vw, 180px);
}

/* Navigation */
.nav-links ul {
  font-size: clamp(14px, 3vw, 16px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  gap: clamp(20px, 5vw, 60px);
  font-family: monospace;
}

.nav-links ul li {
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.nav-links ul li:hover {
  background-color: #ddd;
}

.nav-links ul a {
  color: black;
  text-decoration: none;
}

.nav-links ul li:last-child {
  background-color: orangered;
  color: white;
}

.nav-links ul li:last-child:hover {
  background-color: lightcoral;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}

.hamburger .fa-bars,
.hamburger .fa-times {
  transition: opacity 0.3s ease-in-out;
}

.hamburger .fa-times {
  display: none;
}

.hamburger.active .fa-bars {
  display: none;
}

.hamburger.active .fa-times {
  display: inline-block;
}

.nav-links {
  transition: transform 0.3s ease-in-out;
}

.nav-links.active {
  display: flex;
}

/* Main Section */
main {
  display: flex;
  padding: 10px 5% 5% 5%;
  margin-top: 60px;
}

/* Login Form Section */
.login-form-section {
  width: 40%;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
}

.login-form-section h1 {
  text-align: center;
  font-size: clamp(24px, 5vw, 36px);
  color: #2c2b2b;
  font-family: monospace;
}

.login-form-section p {
  text-align: center;
  font-size: clamp(14px, 3vw, 16px);
  margin: 20px 0;
}

.login-form-section label {
  font-size: clamp(16px, 3.5vw, 20px);
  margin: 10px 0;
  display: block;
}

.login-form-section input {
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: clamp(14px, 3vw, 16px);
  margin-bottom: 20px;
  margin-top: 5px;
  width: 100%;
  outline-color: orange;
}

.login-form-section #error-message {
  font-size: clamp(12px, 3vw, 14px);
  color: red;
  margin: 10px 0;
}

.login-form-section button {
  width: 100%;
  font-size: clamp(14px, 3vw, 16px);
  padding: 15px 0;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background-color: orange;
  font-weight: 600;
  color: #fff;
  transition: 0.3s ease-in-out;
}

.login-form-section button:hover {
  background-color: rgb(252, 182, 52);
}

/* Testimonials Section */
section {
  padding: 20px;
}

.testimonials-section {
  width: 60%;
  padding-top: 80px;
  padding-right: 8%;
}

.testimonials-section h1 {
  font-size: clamp(26px, 5vw, 40px);
  text-align: center;
  font-weight: 400;
  margin: 40px 0;
  color: rgb(68, 68, 68);
}

.testimonials-section .testimonial-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
  padding: 10%;
  text-align: justify;
  line-height: 1.6rem;
  word-spacing: 2px;
  font-size: clamp(13px, 3vw, 15px);
}

.testimonial-card .student-details {
  border-top: 1px solid #ccc;
  background-color: #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.student-details .image-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 50%;
}

.student-details .image-name img {
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
  object-fit: cover;
  border-radius: 50%;
}

.student-details .image-name h2 {
  font-size: clamp(16px, 3.5vw, 20px);
  color: rgb(48, 61, 2);
}

.student-details button {
  width: 30%;
  font-size: clamp(14px, 3vw, 16px);
  padding: 10px 0;
  border: none;
  background-color: #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.student-details button:hover {
  background-color: #ccc;
}

.last-buttons {
  margin-top: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
}

.last-buttons button {
  width: clamp(60px, 12vw, 80px);
  border: none;
  background-color: #3b4705;
  color: white;
  border-radius: 5px;
  font-size: clamp(12px, 3vw, 14px);
  padding: 8px;
}

/* Footer */
footer {
  width: 100%;
  background-color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 5%;
  flex-wrap: wrap;
  gap: 20px;
}

footer .left {
  width: 100%;
  max-width: 25%;
  padding: 15px;
}

footer .left .bottom-logo {
  text-align: center;
}

footer .left .bottom-logo img {
  height: clamp(60px, 15vw, 80px);
}

footer .left ul li {
  margin: 20px 0;
  font-size: clamp(14px, 3vw, 18px);
  list-style: none;
  display: flex;
  align-items: center;
  color: olive;
  cursor: pointer;
}

footer .left ul li:hover {
  color: orange;
}

footer .left ul li i {
  margin-right: 8px;
  font-size: clamp(14px, 3vw, 18px);
  color: #2c2b2b;
  cursor: default;
}

footer .left ul li a {
  color: olive;
  text-decoration: none;
}

footer .left ul li a:hover {
  color: orange;
}

footer .right {
  height: auto;
  width: 100%;
  max-width: 50%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer .right h3 {
  text-align: center;
  font-size: clamp(16px, 3.5vw, 20px);
  padding: 5px 8px;
  border-bottom: 1px solid #5b6e07af;
}

footer .right a {
  text-decoration: none;
}

footer .right a p,
.right .social-profile-section a i {
  padding: 0 8px;
  text-transform: capitalize;
  font-size: clamp(14px, 3vw, 16px);
  margin: 15px 0;
  color: #3b4705;
  transition: 0.1s ease-in;
}

footer .right a p:hover,
.right .social-profile-section a i:hover {
  color: olive;
}

.right .social-profile-section a i {
  font-size: clamp(24px, 6vw, 32px);
  color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #e0e0e0;
    padding: 80px 20px 20px;
    transform: translateX(100%);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    display: block;
    transform: translateX(0);
  }

  .nav-links ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .nav-links ul li {
    padding: 15px 30px;
    font-size: clamp(18px, 5vw, 22px);
    width: 80%;
    max-width: 300px;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
  }

  .nav-links ul li:hover {
    background-color: #f3f3f3;
    transform: scale(1.05);
  }

  .nav-links ul li:last-child {
    background-color: orangered;
    color: white;
  }

  .nav-links ul li:last-child:hover {
    background-color: lightcoral;
  }

  .alert-bar {
    margin: 15px 3%;
    height: 40px;
  }

  main {
    flex-direction: column;
    padding: 10px 3% 3% 3%;
    margin-top: 30px;
  }

  .login-form-section {
    width: 100%;
    padding: 20px;
    order: 1;
    /* Ensure form appears first */
  }

  .testimonials-section {
    width: 100%;
    padding: 20px 3%;
    order: 2;
    /* Ensure testimonials appear second */
  }

  .testimonials-section h1 {
    margin: 30px 0;
  }

  .student-details .image-name {
    width: 60%;
    justify-content: flex-start;
    gap: 20px;
  }

  .student-details button {
    width: 40%;
  }

  .last-buttons {
    justify-content: center;
  }

  footer .left,
  footer .right {
    max-width: 100%;
  }

  footer .right {
    justify-content: space-around;
  }
}

@media (max-width: 480px) {
  section {
    padding: 15px;
  }

  .alert-bar {
    margin: 10px 3%;
    height: 36px;
  }

  .student-details .image-name {
    width: 70%;
  }

  .student-details button {
    width: 50%;
  }

  .login-form-section input {
    padding: 10px 15px;
  }

  .login-form-section button {
    padding: 10px 0;
  }
}