/* 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;
}

/* 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;
  align-self: center;
  border-radius: 30px;
  max-width: 1550px;
}

.hire-tutor-container {
  margin-top: -20px;
  margin-bottom: 4rem;
  max-width: 900px;
  text-align: center;
  padding: 2rem;
  padding-right: 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 ;
    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;
  }

  nav .cta {
    margin-top: 0.8rem;
    width: 80%;
    text-align: center;
  }
   .logo {
    font-size: 1rem;
    width: auto;
  }
   .logo img {
    width: 60px;         /* Smaller logo for mobile */
    height: auto;
    margin-right: 0;
  }
  .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;
  }
  .nav-profile-image {
    height: 70px;
    width: 70px;
  }
  header{
    position: relative;
  }

  .head {
    flex-shrink: 0;      /* Prevent flag from shrinking */
  }

  .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;
  }

  
}