@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.form-container {
  max-width: 600px;
  margin: auto;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
}

.form-container p {
  text-align: center;
  margin-bottom: 20px;
  color: #444;
}

form input,
form select,
form textarea,
form button {
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f9fafb;
  transition: border 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #1B4670;
  background-color: #fff;
  outline: none;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  background-color: #1B4670;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background-color: #163855;
}

.phone-row {
  display: flex;
  gap: 10px;
}

.phone-row select {
  flex: 1;
  font-size: 14px; 
  padding: 8px 10px; 
  min-width: 130px;
}

.phone-row input {
  flex: 2;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}


/* TOP BAR */
.top-bar {
  background-color: #1b4670;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 70px;
  flex-wrap: wrap;
  border: none;
  outline: none;
  margin: 0;
}

.top-left {
  display: flex;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  height: 60px;
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: 200px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info i {
  margin-right: 5px;
}

/* NAVIGATION BAR */
.nav-bar {
  background-color: #ff6600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-bar ul li {
  position: relative;
}

.nav-bar ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 5px;
  position: relative;
}

/* Hover effect - without underline */
.nav-bar ul li a::after {
  content: none; /* Removing the underline effect */
}

.nav-bar ul li a:hover::after {
  width: 0; /* Ensuring no underline appears */
}
/* DROPDOWN MENU */
.dropdown-parent {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1b4670;
  display: none;
  flex-direction: column;
  width: 180px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  padding: 6px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99;
}

.dropdown a {
  padding: 8px 15px;
  color: white;
  text-decoration: none;
  display: block;
  font-size: 13px;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}

.dropdown a:hover {
  color: #ff6600;
  background-color: #fff;
  transform: translateX(5px);
}

/* Desktop: Hover activates dropdown */
@media (min-width: 993px) {
  .dropdown-parent:hover .dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: Active class toggles dropdown */
@media (max-width: 992px) {
  .dropdown-parent.active .dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable hover on mobile */
  .dropdown-parent:hover .dropdown {
    display: none;
    opacity: 0;
    transform: translateY(10px);
  }
}


/* REGISTER BUTTON */
.register-btn {
  background-color: white;
  color: black;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: none;
  margin-left: auto;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.register-btn::after {
  content: "→";
  margin-left: 10px;
  font-size: 18px;
  transition: transform 0.3s;
}

.register-btn:hover::after {
  transform: translateX(5px);
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .top-bar, .nav-bar {
    padding: 10px 30px;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: flex;
    margin-bottom: 10px;
  }

  #navMenu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  #navMenu.show {
    display: flex;
  }

  .register-btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .dropdown {
    position: relative;
    transform: none;
    opacity: 1;
    display: none;
    box-shadow: none;
  }

  .dropdown-parent:hover .dropdown {
    display: flex;
  }
}

@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 0; /* Remove gap to prevent white line */
    padding: 10px 20px;
    border: none;
    margin: 0;
  }

  .contact-info {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: -1px; /* Negative top margin to remove white line */
    background-color: #1b4670; /* Match the top bar background color */
    border: none;
    padding-top: 5px;
  }

  .nav-bar {
    padding: 10px 20px;
  }

  .register-btn {
    width: 100%;
  }
}
@media (max-width: 992px) {
  .top-bar, .nav-bar {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
  }

  .nav-container {
    width: 100%;
  }

  .navbar-logo, .contact-info {
    width: 100%;
  }
  
  .navbar-logo {
    display: flex;
    justify-content: center;
  }
  
  .logo-icon {
    display: block;
    margin: 0 auto;
  }
  
  .top-left {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* WhatsApp Button Styling */
.whatsapp-button {
  position: fixed;
  bottom: 30px; /* Distance from the bottom */
  right: 30px; /* Distance from the right edge */
  background-color: #25d366; /* WhatsApp green */
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

/* WhatsApp Icon */
.whatsapp-button img {
  width: 50px; /* Icon size */
  height: 50px;
}

/* Hover Effects */
.whatsapp-button:hover {
  transform: scale(1.1); /* Slight zoom effect */
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
  opacity: 0.9; /* Slight fade effect on hover */
}

/* Hover Bounce Animation */
.whatsapp-button:hover {
  animation: bounceIn 0.5s ease-out;
}

/* Bounce Animation Keyframes */
@keyframes bounceIn {
  0% {
      transform: translateY(10px) scale(1);
  }
  50% {
      transform: translateY(-5px) scale(1.1);
  }
  100% {
      transform: translateY(0) scale(1);
  }
}

/* Mobile Friendly (Adjustments for smaller screens) */
@media (max-width: 768px) {
  .whatsapp-button {
      padding: 12px;
  }
  .whatsapp-button img {
      width: 45px;
      height: 45px;
  }
}
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background-image: url('https://images.unsplash.com/photo-1587560699334-cc4ff634909a?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* Update the path */
    background-size: cover;          /* Makes the image cover the whole screen */
    background-repeat: no-repeat;    /* Prevents tiling */
    background-position: center;     /* Centers the image */
  }

  .form-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
  }

  h2 {
    color: orange;
    margin-bottom: 10px;
  }

  .form-container p {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
  }

  form input,
  form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9fc;
  }

  .name-fields {
    display: flex;
    gap: 10px;
  }

  .name-fields input {
    flex: 1;
  }

  form textarea {
    resize: none;
    height: 100px;
  }

  button {
    background-color: #0e2a47;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
  }

  /* button:hover {
    background-color: darkorange;
  } */

  /* button:hover {
    background-color: #4b0082;
  } */

  /* Responsive */
  @media screen and (max-width: 768px) {
    .contact-box {
      flex-direction: column;
    }

    .contact-info,
    .contact-form {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #ccc;
    }
  }
/* Mobile View - Tablets & Phones (≤768px) */
@media screen and (max-width: 768px) {
  .form-container {
    max-width: 85%;
    margin: 40px auto;
    padding: 25px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  h2 {
    font-size: 20px;
  }

  .form-container p {
    font-size: 13px;
    color: #333;
    text-align: center;
    padding: 0 5px;
    margin-bottom: 15px;
  }

  .name-fields {
    flex-direction: column;
    gap: 0;
  }

  form input,
  form textarea {
    font-size: 14px;
    padding: 10px;
    margin-bottom: 12px;
  }

  button {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }
  
  .eduatal-heading {
    font-size: 28px;
    margin-bottom: 10px;
  }
}

/* Extra Small Screens (≤480px) */
@media screen and (max-width: 480px) {
  .form-container {
    max-width: 90%;
    margin: 30px auto;
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  /* Ensure the contact container is properly centered */
  .contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .contact-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  h2 {
    font-size: 18px;
  }

  .form-container p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  form input,
  form textarea {
    font-size: 13px;
    padding: 8px;
    margin-bottom: 10px;
  }

  button {
    font-size: 14px;
    padding: 8px;
  }
  
  .eduatal-heading {
    font-size: 24px;
    margin-bottom: 8px;
  }
}

/* Very Small Screens (≤360px) */
@media screen and (max-width: 360px) {
  .form-container {
    max-width: 95%;
    margin: 20px auto;
    padding: 15px 10px;
  }
  
  h2 {
    font-size: 16px;
  }
  
  .form-container p {
    font-size: 11px;
    margin-bottom: 10px;
  }
  
  form input,
  form textarea {
    font-size: 12px;
    padding: 7px;
    margin-bottom: 8px;
  }
  
  button {
    font-size: 13px;
    padding: 7px;
  }
  
  .eduatal-heading {
    font-size: 22px;
    margin-bottom: 6px;
  }
}

/* Footer Styles */
.footer {
  background-color: #0e2a47;
  padding: 40px 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 100px; /* Optional: adds spacing between columns */
  width: 100%;
}

.footer-col {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

/* Reordering columns */
.popular-courses {
  order: 1;
}
.connect {
  order: 2;
}
.quick-links {
  order: 3;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #fff;
}

.footer ul {
  list-style: none;
  padding-left: 0;
  padding-right: 0;
}

.footer ul li {
  margin-bottom: 6px;
  font-size: 14px;
}

.footer ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer ul li a:hover {
  color: #ff6600;
}

.logo-section p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  width: 200px;
  height: auto;
}

.logo-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
}

.logo-text {
  color: #f97316;
}

.logo-text span {
  color: white;
}

.footer-contact {
  flex: 1 1 200px;
}

.footer-info {
  flex: 1 1 200px;
  text-align: right;
  margin-top: 0;
  color: #fff;
}

.footer-info p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
  text-align: right;
}

.social-icons {
  margin-top: 10px;
}

.social-icons i {
  font-size: 18px;
  margin-left: 15px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

.social-icons i:hover {
  color: #1e90ff;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: white;
}

/* Footer Responsive Styles */
@media (max-width: 992px) {
  .footer {
    padding: 30px 20px;
    gap: 40px;
  }
  
  .footer-col {
    flex: 1 1 100%;
  }
  
  .footer-info {
    text-align: left;
  }
  
  .footer-info p {
    text-align: left;
  }
  
  .social-icons i {
    margin-left: 0;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 15px;
  }
}
