/* 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;
}

/* 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;
}

.language-toggle {
  display: inline-block;
  position: relative;
  width: 80px;
  user-select: 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;
  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;
  align-items: end;
  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: flex;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 10002;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition), opacity 0.3s ease, transform 0.3s ease;
}

.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;
}

/* Hamburger icon */
.hamburger-menu {
  display: none;              /* hidden by default (desktop) */
  flex-direction: column;
  cursor: pointer;
  z-index: 10002;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #fff;     /* visible bars */
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animate into X when active (optional) */
.hamburger-menu.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }



/* IELTS HERO SECTION */
.ielts-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2f4996 100%);
  color: white;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-features li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.hero-visuals {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-background-image {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-background-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* MODULES SECTION */
.modules-section {
  padding: 6rem 2rem;
  background-color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.module-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #e0e0e0;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.module-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.module-icon i {
  font-size: 1.5rem;
  color: white;
}

.module-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.module-card p {
  color: var(--muted-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.module-card ul {
  list-style: none;
  padding: 0;
}

.module-card li {
  padding: 0.5rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 1.5rem;
}

.module-card li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FEATURES SECTION */
.features-section {
  padding: 6rem 2rem;
  background-color: var(--bg-color);
}

.features-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.features-text {
  flex: 1;
}

.features-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  color: white;
  font-size: 1.2rem;
}

.feature-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--muted-text);
  line-height: 1.6;
}

.features-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.features-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* PRICING SECTION */
.pricing-section {
  padding: 6rem 2rem;
  background-color: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--muted-text);
  font-size: 1.1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 2rem;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.pricing-cta {
  text-align: center;
  margin-top: 3rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: 6rem 2rem;
  background-color: var(--bg-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 0.25rem 0;
}

.author-info span {
  color: var(--secondary-color);
  font-weight: 500;
}

/* 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: 0.5rem;
  border-top: 1px solid #dee2e6;
  text-align: start;
  font-size: 0.95rem;
}

.footer-bottom p {
  color: #ffffff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 1.5rem;
  }
  nav ul {
    gap: 1.5rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .features-content {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
 nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0rem;
    width: 100%;
    flex-wrap: nowrap;
  }

  nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .logo {
    font-size: 1rem;
    width: auto;
  }
  
  .logo img {
    width: 60px;
    height: auto;
    margin-right: 0;
  }

 

  #language-selector {
    font-size: 0.8rem;
    padding: 0.3rem;
    min-width: 70px;
  }
 .hamburger-menu {
    display: flex;
    z-index: 100010;
  }
  
  .dropdown-container.active .dropdown-menu {
    display: flex !important;
    flex-direction: column;
  }
  .dropdown-container:hover .dropdown-menu {
    display: none ; 
  }
  .dropdown-menu li {
    margin: 0;
    width: 100%;
  }
  .dropdown-menu a {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.1rem;
    text-align: center;
  }
  .hamburger-menu {
      display: flex;
    }

 

    .nav-links {
      display: flex;
     flex-direction: column;
     align-items: flex-start;
      position: fixed;
      top: 0;
      right: -100%;
      width: 250px;
      height: 100vh;
      background-color: var(--primary-color);
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      margin: 0;
      padding: 80px 20px 20px 20px;
      transition: right 0.3s ease;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
      z-index: 10001;
    }

    .nav-links.active {
      right: 0;
    }

      .nav-links li {
    width: 100%;
    margin: 10px 0;
    position: relative;  /* Ensure proper positioning context */
  }

   .nav-links li a {
      display: block;
      padding: 15px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      width: 100%;
    }
  nav .cta {
    margin-top: 0.8rem;
    width: 80%;
    text-align: center;
  }
  
   
  .language-toggle {
    flex-shrink: 0; 
    margin-right: 2rem;     /* Prevent language selector from shrinking */
  }

  
  .dropdown-menu {
    position: relative;  /* Change to relative positioning for mobile */
    top: auto;           /* Remove absolute positioning */
    left: auto !important; /* Force remove absolute positioning */
    background-color: var(--primary-color);
    flex-direction: column;
    width: 100%;         /* Full width in mobile sidebar */
    padding: 0.5rem 0;
    box-shadow: none;    /* Remove shadow for mobile */
    margin-top: 0.5rem;  /* Add some spacing */
    padding-left: 0;     /* Remove left padding to pull items to the left */
    margin-left: -200px;  /* Pull the entire dropdown menu to the left */
    z-index: 10006;      /* Ensure it appears above other elements */
    transform: none !important; /* Remove any transforms */
    opacity: 1 !important;      /* Force opacity to be visible */
    visibility: visible !important; /* Force visibility */
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a {
    padding: 0.6rem 0.2rem;  /* Further reduced left padding to pull items more to the left */
    font-size: 0.9rem;   /* Slightly larger font for mobile */
    border-bottom: none; /* Remove border for dropdown items */
    color: #ffffff !important;      /* Force text to be visible */
    background-color: transparent; /* Ensure background is transparent */
    text-decoration: none;         /* Remove any text decoration */
    display: block;                /* Ensure it's displayed as block */
    width: 100%;                   /* Full width */
    white-space: normal;           /* Allow text to wrap */
    opacity: 1 !important;         /* Force opacity to be visible */
  }

  .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light background on hover */
    color: #ffffff;
  }


 .dropdown-menu li {
    margin: 0;
    width: 100%;
    position: relative;
    list-style: none;    /* Remove list bullets */
    padding: 0;          /* Remove default padding */
  }


  /* Ensure dropdown items are properly positioned in mobile */


  /* Hide dropdown by default in mobile */
  .dropdown-container .dropdown-menu {
    display: none;
  }

  /* Show dropdown when container is active or hovered */
  .dropdown-container.active .dropdown-menu,
  .dropdown-container:hover .dropdown-menu {
    display: block;
  }

  /* Add visual indicator for dropdown toggle in mobile */
  .dropdown-container .dropdown-toggle::after {
    content: '▼';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }

  /* .dropdown-container.active .dropdown-toggle::after {
    transform: rotate(180deg);
  } */

  /* Override desktop dropdown container styles for mobile */
  .dropdown-container {
    position: static;
    display: block;
    align-items: stretch;
    height: auto;
  }
  .nav-profile-image {
    height: 70px;
    width: 70px;
  }
  header{
    position: relative;
  }

 

  .head {
    flex-shrink: 0;
  }
  .head img {
    width: 30px;         /* Smaller flag for mobile */
    height: auto;
  }
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 3.5rem 1.5rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-column {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .module-card {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

} 

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {

  .footer {
    padding: 3.5rem 1.5rem 1.5rem;
  }

   .footer-container {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-column {
    flex: 0 0 100%;
  }

  .footer-logo img {
    width: 100px;
  }
  .logo2 img {
  width: 120px;
  padding: 0;
  height: 140px;
  padding-top: 0;
  /* margin-left: 6rem; */
  margin-right: 6rem;
  border-radius: 8px;
  transition: var(--transition);
}
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 75px;
    right: 15px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 70px;
    right: 10px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}


/* @media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
  }
  .hamburger-menu {
    display: none !important; 
  }
} */