.hero-section {
  background-image: url('/public/images/terms/outsourcingdev_terms_of_service.webp');
  height: 50vh; 
  color: white;
  padding: 40px 0; 
  text-align: center;
  background-size: cover;
  background-repeat: no-repeat; 
  background-position: center center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  color: #fff;
  font-size: 2.5rem; 
  line-height: 1.3;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: #f1d47a;
}

.terms-section {
  padding: 60px 20px;
  background-color: #fff;
}

.terms-section .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.terms-navigation {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 40px;
  position: sticky;
  top: 100px;
  z-index: 10;
}

.terms-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-navigation li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.terms-navigation a {
  display: inline-block;
  padding: 8px 15px;
  color: #6998e1;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.terms-navigation a:hover,
.terms-navigation a.active {
  background-color: #6998e1;
  color: white;
}

.terms-navigation a[href="#contact"] {
  color: #58dac0;
  border: 1px solid #58dac0;
}

.terms-navigation a[href="#contact"]:hover,
.terms-navigation a[href="#contact"].active {
  background-color: #58dac0;
  color: white;
  border-color: #58dac0;
}

.terms-block {
  margin-bottom: 50px;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.terms-block:hover {
  transform: translateY(-5px);
}

.terms-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: #58dac0;
}

.terms-title {
  color: #6998e1;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.terms-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.terms-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.terms-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #333;
}

.terms-link {
  color: #58dac0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.terms-link:hover {
  color: #6998e1;
  text-decoration: underline;
}

.terms-update-date {
  text-align: right;
  color: #777;
  font-style: italic;
  margin-top: 30px;
}

.terms-cta {
  margin-top: 50px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  text-align: center;
}

.terms-cta p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #333;
}

@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .terms-navigation {
    position: relative;
    top: 0;
    padding: 15px;
    margin: 0 0 30px 0;
  }
  
  .terms-navigation ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .terms-navigation li {
    width: 100%;
  }
  
  .terms-navigation a {
    display: block;
    text-align: center;
    width: 100%;
  }
  
  .terms-block {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .terms-title {
    font-size: 1.5rem;
  }
  
  .terms-icon img {
    width: 50px;
    height: 50px;
  }
  
  .terms-cta {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 30vh;
  }
  
  .hero-text h1 {
    font-size: 1.7rem;
  }
  
  .terms-block {
    padding: 15px;
  }
  
  .terms-title {
    font-size: 1.3rem;
  }
}