/* 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;
}

/* Base Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #6c93e1;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* Header/Navigation Styles */
header {
  box-shadow: var(--shadow);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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);
}

.logo img {
  width: 120px;
  height: 50px;
  margin-right: 150px;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.1);
}

.head img {
  width: 80px;
  height: 60px;
  transition: var(--transition);
}

.head 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);
}

/* Dropdown Menu Styles */
.dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  /* display: none; */
  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 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); }



/* Button Styles */
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Service Hero Section */
.service-hero {
  margin-top: 20px;
  padding: 9rem 2rem;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/images/learningwomen.webp") no-repeat center/cover;
  color: white;
  text-align: center;
  z-index: -1;
}

.service-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-family: "Roboto", sans-serif;
}

.service-hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Trust Section */
.service-body-softskills {
  font-family: "Inter", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  z-index: -1;
}

.trust-section-service {
  position: relative;
  z-index: -1;
  padding: 5rem 2rem;
  padding-top: 0rem;
  background-color: #f8f9fa;
}

.container-service {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0rem;
}

.section-header-service {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 0rem;
}

.section-title-service {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-subtitle-service {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.trust-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.trust-image {
  flex: 1;
  max-width: 500px;
}

.trust-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.trust-features-service {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item-service {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 2rem;
}

.feature-icon-service {
  width: 40px;
  height: 40px;
  background-color: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0a2885;
}

.feature-content-service {
  flex: 1;
  text-align: left;
}

.feature-title-service {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.feature-description-service {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-left: 0;
  text-align: left;
}

/* Pricing Section */
.pricing-section {
  background: #e9ecef;
  padding: 1rem;
  text-align: center;
  border-radius: 12px;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.pricing-section h2 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-family: "Roboto", sans-serif;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  width: 220px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pricing-level {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.6rem;
}

.pricing-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 1rem 0;
}

.pricing-time {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.6rem;
}

.quote-button {
  display: inline-block;
  background: linear-gradient(45deg, #000, #333);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.quote-button:hover {
  background: linear-gradient(45deg, #333, #000);
  transform: translateY(-3px);
}

/* Hire Tutor Section */
.hire-tutor-section {
  background-color: var(--primary-color);
  padding: 1.2rem 2rem;
  background-size: 20px 20px;
  position: relative;
  width: 60vw;
  margin: 0rem auto;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  max-width: 1550px;
}

.hire-tutor-container {
  margin-top: -20px;
  margin-bottom: 4rem;
  max-width: 900px;
  text-align: center;
  padding: 2rem;
  
}

.hire-tutor-section h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--bg-color);
  font-family: "Roboto", sans-serif;
}

.subtitle {
  font-size: 1rem;
  text-align: center;
  padding-right: 2rem;
  width: 100%;
  color: var(--bg-color);
}

.submit-button {
  background: linear-gradient(45deg, var(--primary-color), #2f4996);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

.submit-button:hover {
  background: linear-gradient(45deg, #2f4996, var(--primary-color));
  transform: translateY(-3px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 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);
}

.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: 1024px) {
  nav {
    padding: 1rem 1.5rem;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .logo img {
    margin-right: 0;
  }
}

@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;
  }
  
  .service-hero {
    padding: 3rem;
  }
  
  .service-hero h1 {
    font-size: 1.5rem;
  }
  
  .service-hero p {
    font-size: 0.8rem;
  }
  
  .trust-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .trust-image {
    max-width: 100%;
  }
  
  .trust-image img {
    height: 300px;
  }
  
  .feature-item-service {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .pricing-card {
    width: 100%;
    max-width: 250px;
    margin-bottom: 1.5rem;
  }
  
  .hire-tutor-section {
    width: 90vw;
    padding: 1rem;
  }
  
  .hire-tutor-section h2 {
    font-size: 2.5rem;
  }
  
  .footer-container {
    flex-direction: row;
    gap: 0.1rem;
  }
  
  .footer-column {
    flex: 0 0 100%;
  }
 
}

@media (max-width: 480px) {
  .service-hero h1 {
    font-size: 2rem;
  }
  
  .section-title-service {
    font-size: 2rem;
  }
  
  .feature-title-service {
    font-size: 1.1rem;
  }
  
  .feature-description-service {
    font-size: 0.9rem;
  }
  
  .hire-tutor-section h2 {
    font-size: 2rem;
  }
  
  .submit-button {
    padding: 1rem;
    font-size: 1rem;
  }
  

  
}

/* 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;
  }
}
