/* CSS Variables for Maintainability */
:root {
  --primary-color: #00335a;
  --secondary-color: #ff6b35;
  --accent-color: #4caf50;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --muted-text: #555;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --darkGreyBg: #e8e8e8;
}

/* Scroll Behavior for Smooth Navigation */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #6c93e1;
  background-color: var(--bg-color);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fade-In Animation for Sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

header {
  box-shadow: var(--shadow);
  width: 100%;
  position: sticky;
  z-index: 1;
}

.language-toggle {
  display: inline-block;
  position: relative;
  width: 80px;
  user-select: none;
}

.language-toggle input[type="checkbox"] {
  display: none;
}

#language-selector {
  font-size: 0.9rem;  
  padding: 0.4em 0.4em; 
  border-radius: 10px;  
  border: 1px solid #ccc; 
  background-color: white;
  cursor: pointer;
  min-width: 60px;     
  transition: border-color 0.3s ease;
}

#language-selector:hover,
#language-selector:focus {
  border-color: #f26d3d; /* Accent color */
  outline: none;
}

nav {
  display: flex;
  justify-content:space-between;
  height: auto;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10000;
  max-width: 100%;
  margin: 0 auto;
  transition: var(--transition);
}

nav.scrolled {
  background: linear-gradient(90deg, var(--primary-color), #2f4996);
}

.logo {
  align-items: start;
  font-weight: 700;
  font-size: 1.4rem;
  font-family: "Roboto", sans-serif;
}

.logo img {
  width: 120px;
  height: 50px;
  margin-right: 150px;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.1);
}

.logo2 img {
  width: 220px;
  height: 190px;
  margin-right: 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.logo2 img:hover {
  transform: scale(1.1);
}

.head img {
  width: 80px;
  height: 60px;
  transition: var(--transition);
}

.head img:hover {
  transform: scale(1.1);
}

.logoPartner img {
  width: 150px;
  height: 150px;
  margin-right: 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.logoPartner img:hover {
  transform: scale(1.1);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  position: relative;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
  font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--secondary-color);
}

nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

/* Dropdown Menu Styles */
.dropdown-container {
  position: relative;
  display: grid;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  min-width: 200px;
  z-index: 10005;
}

.dropdown-container:hover .dropdown-menu,
.dropdown-container.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  z-index: 10005;
}

.dropdown-menu li {
  margin: 0 10px;
}

.dropdown-menu a {
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* About Us Page Specific Styles */
.aboutus-body {
  background-color: #f8f9fa;
  color: #333333;
  line-height: 1.6;
  z-index: -1;
}

.trust-section-aboutus {
  margin-top: -2px;
  padding: 5rem 2rem;
  padding-top: 0rem;
  background-color: #f8f9fa;
  z-index: 0;
}

.container-aboutus {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0rem;
}

.how-it-works-aboutus {
  text-align: center;
  padding: 10px 0;
  z-index: -1;
}

.how-it-works-aboutus h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #333333;
}

.how-it-works-aboutus p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555555;
}

.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.step {
  flex: 1;
  min-width: 300px;
  position: relative;
  margin-bottom: 0px;
}

.step-image {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 60px;
  height: 60px;
  background-color: #ff5722;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  z-index: 2;
}

.step-content {
  text-align: left;
}

.step-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333333;
}

.step-content p {
  font-size: 16px;
  color: #666666;
  text-align: left;
}

.cta-button-aboutus {
  display: inline-block;
  background-color: #0a2885;
  color: white;
  padding: 15px 20px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 2rem;
  margin-right: 10px;
  margin-bottom: 4rem;
  transition: background-color 0.3s;
}

.cta-button-aboutus:hover {
  background-color: #ffffff;
  color: #0a2885;
  outline-color: #0a2885 1px;
}

/* IELTS Signup Section */
.ielts-signup-container {
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.ielts-signup-section {
  display: flex;
  width: 100%;
  height: 600px;
  position: relative;
}

.image-section-ielts {
  width: 40%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.image-section-ielts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.form-section-ielts {
  width: 60%;
  height: 100%;
  background-color: #2e1a6a;
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-content-ielts {
  position: relative;
  z-index: 2;
}

.form-title-ielts {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 2.4;
  color: #ffffff;
}

.form-subtitle-ielts {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.2;
  color: #ffffff;
}

.email-input-ielts {
  width: 70%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  margin-left: 80px;
  outline: none;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.custom-checkbox {
  width: 15px;
  height: 15px;
  border: 2px solid white;
  margin-right: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-checkbox.checked::after {
  content: "✓";
  color: white;
  font-size: 14px;
}

.checkbox-label {
  margin-left: 0px;
  font-size: 14px;
  line-height: 1.4;
}

.privacy-text {
  font-size: 12px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.terms-link {
  color: #ffeb3b;
  text-decoration: underline;
}

.signup-button {
  background-color: #ffeb3b;
  color: #333;
  border: none;
  margin-left: 170px;
  border-radius: 12px;
  padding: 15px 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
  transition: background-color 0.3s;
}

.signup-button:hover {
  background-color: #fdd835;
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color);
  padding: 5rem 2rem 2rem;
  color: var(--bg-color);
  font-family: "Poppins", sans-serif;
  width: 100vw;
  max-width: 1550px;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact p {
  margin: 0.6rem 0;
}

.footer-contact a {
  color: var(--muted-text);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-links a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: .5rem;
  border-top: 1px solid #dee2e6;
  text-align: start;
  font-size: 0.95rem;
}

.footer-bottom p {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
   nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    width: 100vw;
    flex-wrap: nowrap;
 
  }

  nav ul {
   flex-direction: row;  /* Keep links horizontal */
    align-items: center;
    gap: 1.5rem;         /* Space between links */
    width: auto;         /* Don't take full width */
    margin: 0;
    padding: 0;
  }

  .logo {
    font-size: 1rem;
    width: auto;
  }

  

   .logo img {
    width: 60px;         /* Smaller logo for mobile */
    height: auto;
    margin-right: 0;
  }

  .head {
    flex-shrink: 0;      /* Prevent flag from shrinking */
  }

  .head img {
    width: 30px;         /* Smaller flag for mobile */
    height: auto;
  }

  .language-toggle {
    flex-shrink: 0;      /* Prevent language selector from shrinking */
  }

  #language-selector {
    font-size: 0.8rem;
    padding: 0.3rem;
    min-width: 70px;
  }
.dropdown-menu {
    position: absolute;
    top: 100%;           /* Position below the nav item */
    left: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    width: 200px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
  }
  /* .dropdown-menu {
    position: static;
    width: 100%;
    background-color: #2f4996;
    border-radius: 0;
    box-shadow: none;
  } */

  .steps {
    flex-direction: column;
  }

  .step {
    min-width: 100%;
  }

  .ielts-signup-section {
    flex-direction: column;
    height: auto;
  }

  .image-section-ielts,
  .form-section-ielts {
    width: 100%;
  }

  .email-input-ielts,
  .signup-button {
    width: 100%;
    margin-left: 0;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-column {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .how-it-works-aboutus h2 {
    font-size: 1.75rem;
  }
 
.form-section-ielts {
  width: 100%;          /* Slightly wider on small screens */
  max-width: 500px;     /* Optional max width to limit very large on some devices */
  margin: 0 auto;       /* Center horizontally */
  padding: 1rem 0.75rem;        /* Add padding around content */
  box-sizing: border-box; /* Ensure padding does not add to width */
  border-radius: 1.2rem;
}
.form-content-ielts {
  display: flex;
  flex-direction: column;  /* Stack children vertically */
  gap: 0.5rem;               /* Spacing between elements */
}


  .how-it-works-aboutus p {
    font-size: 0.9rem;
  }

  .step-image {
    height: 250px;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }

  .step-content p {
    font-size: 0.9rem;
  }

 .form-title-ielts {
  font-size: 0.5rem;  /* Bigger for visibility on mobile */
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-subtitle-ielts {
  font-size: 0.25rem;   /* More readable than 0.5rem */
  
  color: #555;
}

.email-input-ielts {
  width: 100%;           /* Full width to fill container */
  padding: 0.75rem 1rem; /* Sufficient padding for touch */
  font-size: 1rem;       /* Readable font size */
  border-radius: 6px;    /* Rounded corners */
  border: 1px solid #ccc; /* Neutral border */
  box-sizing: border-box; /* Padding included in width */
  margin: 0 auto 1.5rem;
}
.privacy-text {
  font-size: 0.8rem;
  color: #bbb;
  text-align: center;
}

.signup-button {
 
  width: 80%;           /* Not full width for better aesthetics */
  max-width: 200px;     /* But not too wide */
  padding: 0.8rem 0;
  font-size: 1rem;
  border-radius: 30px;  /* More rounded */
  background: #ffeb3b;
  color: #333;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;       /* This centers the button */
  display: block;       /* Needed for margin auto to work */
  font-weight: bold;
}

.signup-button:hover {
  background: #fdd835;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
  


.signup-button:hover,
.signup-button:focus {
  background: var(--secondary-color, #ff6b35);
  outline: none;
}



}