/* 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;
}

.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;
  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;
}

/* Navigation Responsiveness */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 1.5rem;
  }
  nav ul {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0rem;
    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;
  }
 

  .head {
    flex-shrink: 0;      /* Prevent flag from shrinking */
  }

  .head img {
    width: 30px;         /* Smaller flag for mobile */
    height: auto;
  }


  .dropdown-menu a {
    padding: 0.8rem 2rem;
  }
}

/* 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-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-width: 220px;
  height: 400px;
  transition: var(--transition);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.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;
}

@media (max-width: 992px) {
  .footer-column {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3.5rem 1.5rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-column {
    flex: 0 0 100%;
  }

  .footer-logo img {
    width: 100px;
  }
}

/* Accessibility Focus States */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* SERVICE PAGE SPECIFIC STYLES */
.service-body {
  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-icon svg {
  width: 24px;
  height: 24px;
}

.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;
}

@media (max-width: 768px) {

    
  .trust-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .trust-image img {
    height: 300px;
  }
  
  .feature-item-service {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .section-title-service {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title-service {
    font-size: 1.75rem;
  }
  
  .section-subtitle-service {
    font-size: 0.9rem;
  }
  
  .trust-image img {
    height: 250px;
    border-radius: 16px;
  }
  
  .feature-title-service {
    font-size: 1.1rem;
  }
  
  .feature-description-service {
    font-size: 0.9rem;
  }
}