/* ===================== Base ===================== */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(90deg, #E2F3FB 10%, #F4F5FF 100%) !important;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

/* ===================== Logo ===================== */
.logo-img {
  width: 171px;
  height: 121px;
}

@media (max-width: 576px) {
  .logo-img {
    width: 120px;
    height: auto;
  }
}

/* ===================== Navbar ===================== */
.navbar {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-weight: 700;
  color: #05847D !important;
}

.navbar-nav .nav-item {
  margin: 0 18px;
}

.nav-link {
  font-family: "Inter", sans-serif;
  position: relative;
  font-size: 16px;
  text-decoration: none;
  color: rgba(51, 51, 51, 1);
  font-weight: 400;
  margin-top: 40px;
}

.nav-link i {
  color: #05847D;
  height: 22px;
  width: 22px;
  font-weight: bold;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: #05847D;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.auth-buttons {
  display: flex;
  align-items: center;
  color: rgba(51, 51, 51, 1);
  gap: 30px;
  margin-left: auto;
}

/* ===================== Buttons ===================== */
.btn-signup {
  border: 1px solid #05847D;
  color: #05847D;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 13px;
  transition: 0.3s;
  margin-top: 40px;
}

.btn-signup:hover {
  background-color: #05847D;
  color: #fff;
}

.btn-learn {
  font-family: sans-serif;
  border: 1px solid #05847D;
  color: #FFFFFF;
  border-radius: 30px;
  padding: 5px 14px;
  font-size: 13px;
  background-color: #05847D;
  transition: 0.3s;
  display: inline-block;
}

.btn-learn:hover {
  background: transparent;
  color: #05847D;
}

/* ===================== Services ===================== */
.services h1 {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: rgba(51, 51, 51, 1);
  padding-top: 50px;
}

.services h2 {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(51, 51, 51, 1);
  padding-top: 10px;
}

.services h3 {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: rgba(5, 132, 125, 0.67);
  margin-bottom: 10px;
  padding-top: 50px;
}

.services p {
  font-family: sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(85, 85, 85, 1);
}

.underline {
  width: 124px;
  height: 1px;
  background-color: #05847D;
  margin: 30px auto 0;
}

.big-underline {
  width: 927px;
  height: 1px;
  background-color: #05847D;
  border-radius: 10px;
  margin: 14px auto 3px;
}

/* Circle Arrow Icon */
.circle-icon {
  width: 50px;
  height: 50px;
  background-color: #05847D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 80px auto 40px;
  cursor: pointer;
}

.circle-icon i {
  color: #fff;
  font-size: 20px;
}

.services .card {
  height: 90%;
  display: flex;
  flex-direction: column;
}


/* ===================== Profile ===================== */
.profile-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #05847eab;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  margin-top: 50px;
  margin-left: 100px;
}

.profile-name {
  font-size: 12px;
  font-weight: 500;
  margin-left: 100px;
}

.mobile-profile {
  z-index: 1050;
  position: absolute;
  top: 29px;
  right: 18px;
  text-align: center;
}

.mobile-profile .profile-circle {
  background: #05847D;
  color: white;
  font-weight: bold;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-profile .profile-name {
  font-size: 14px;
  font-weight: 500;
}

.login-text {
  color: #05847D;
  font-weight: 500;
  text-decoration: none;
}

/* ===================== Responsive ===================== */
/* Tablets (≤ 991px) */
@media (max-width: 991px) {
  .services h1 {
    font-size: 20px;
    padding-top: 30px;
  }
  .services h2 {
    font-size: 14px;
    padding-top: 5px;
  }
  .services h3 {
    font-size: 20px;
    padding-top: 30px;
  }
  .services p {
    font-size: 13px;
  }
  .services .card {
    margin-bottom: 20px;
  }
  .big-underline {
    width: 100%;
    max-width: 600px;
  }
  .circle-icon {
    margin: 40px auto 20px;
  }
  .navbar-nav {
    gap: 10px !important;
    margin-top: 10px;
  }
  .auth-buttons {
    margin-top: 10px;
    justify-content: center;
  }

  /* Mobile/Tablet menu overlay */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: rgba(5, 132, 125, 0.95);
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    z-index: 9999;
  }
  .navbar-collapse.show {
    transform: translateX(0);
  }
  .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
  }
  body.menu-open .hero,
  body.menu-open main,
  body.menu-open footer {
    filter: blur(6px);
    transition: filter 0.3s ease;
  }
  .navbar-nav .nav-link {
    color: #fff !important;
    font-size: 18px;
    margin: 10px 0;
  }
  .mobile-logout {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
  .mobile-logout .btn {
    background-color: #E2F3FB;
    color: rgb(243, 10, 10) !important;
    font-weight: 600;
    font-size: 18px;
  }
}

/* Mobiles (≤ 576px) */
@media (max-width: 576px) {
  .services h1 {
    font-size: 18px;
  }
  .services h2 {
    font-size: 13px;
    line-height: 1.5;
  }
  .services h3 {
    font-size: 18px;
    padding-top: 20px;
  }
  .services p {
    font-size: 12px;
  }
  .services .card {
    padding: 15px;
    margin: 10px auto;
  }
  .btn-learn {
    font-size: 12px;
    padding: 5px 12px;
  }
  .circle-icon {
    width: 40px;
    height: 40px;
    margin: 30px auto 20px;
  }
  .circle-icon i {
    font-size: 16px;
  }
  .big-underline {
    max-width: 90%;
  }
  .btn-signup {
    margin-top: 10px;
    padding: 6px 14px;
  }
  .navbar .navbar-toggler {
    margin-left: 10px;
    order: -1;
    border: none;
    padding: 2px 6px;
  }
  .navbar-toggler-icon {
    background-image: none;
    width: 20px;
    height: 2px;
    background-color: #05847D;
    display: block;
    position: relative;
  }
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #05847D;
    left: 0;
  }
  .navbar-toggler-icon::before {
    top: -7px;
  }
  .navbar-toggler-icon::after {
    top: 7px;
  }
  .profile-user {
    margin-top: -25px;
    margin-right: 20px;
  }
  #profile-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
    background-color: #05847D;
  }
  .login-text {
    color: #05847D;
    font-weight: 500;
    text-decoration: none;
    margin-top: 41px;
    margin-right: 18px !important;
  }

  .services .card {
  height: 80%;
  display: flex;
  flex-direction: column;
}
}
