body {
  overflow-x: hidden;
}

:root {
  --selection-color: #3685b6;
  --primary-color: #2b65f5;
  --linear-gradient: linear-gradient(45deg, #162ba2, #060c2c);
}

.banner-wrapper {
  background: url("../images/sem-bg.jpg") no-repeat center center/cover;
}

.semantic-section {
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}


.semantic-card-wrap-section>h1{
  font-weight: 300;
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  margin: 10px;
  color: white;
  text-align: center;
  margin-bottom: 30px;
}

.semantic-section > .achieved {
  font-size: 10.67px;
  font-weight: 400;
  line-height: 10px;
  border: 1px solid rgb(50, 50, 170);
  padding: 1px 8px 2px 2px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.semantic-section > h1 {
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: 10px;
}

.semantic-section > .tagline {
  font-size: clamp(14px, 1.6vw, 16.67px);
  font-weight: 200;
  margin: 15px 0;
  color: rgb(255, 255, 255);
  line-height: 20px;
}

.semantic-card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin: 0 90px;
}

.semantic-card {
  /* background-color: #2050b0; */
  border-radius: 10px;

  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.semantic-card {
  color: white;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgb(137, 137, 137);
}

.semantic-card > img {
  margin-bottom: 10px;
  height: 23px;
  width: 23px;
}

.semantic-card .empty-card {
  width: 30px;
  height: 30px;
  background-color: black;
  border-radius: 5px;
  position: absolute;
  top: 0px;
  right: 0px;
  transition: background-color 0.4s ease;
}

.semantic-card-wrapper > .semantic-card {
  background-color: #161616;
}

.semantic-card-wrapper > .semantic-card:hover {
  background: var(--linear-gradient) !important;
  transition: background 0.6s ease;
  color: white;
}

.semantic-card-wrapper > .semantic-card:hover p {
  color: white;
}

.semantic-card > h3 {
  color: white;
  font-weight: 300;
  font-size: 1rem;
}

.semantic-card > p {
  color: #868686;
  font-weight: 300;
  font-size: 0.9rem;
  margin: 10px 0;
}

.semantic-card:hover {
  transform: translateY(-5px);
}

.semantic-section-one {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Key for stacking on small screens */
  gap: clamp(10px, 3vw, 40px);
  margin: clamp(40px, 5vw, 90px) clamp(16px, 4vw, 30px);
}

.semantic-chart > img {
  height: clamp(180px, 35vw, 300px); /* scales with screen size */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.semantic-section-one > div > h1 {
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin: clamp(10px, 2vw, 20px) 0;
  text-align: left;
}

.semantic-section-one > div > p {
  font-size: clamp(13px, 1.5vw, 16.67px);
  font-weight: 200;
  color: rgb(167, 164, 164);
  line-height: 1.6;
  margin: clamp(10px, 2vw, 20px) 0;
  width: 100%;
  text-align: left;
}

.semantic-section-one div {
  max-width: 900px;
  flex: 1 1 300px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  text-align: center;
}

@media (max-width: 768px) {
  .semantic-section-one {
    flex-direction: column;
    align-items: center;
  }

  .semantic-section-one div p {
    width: 100%;
  }

  .semantic-chart > img {
    height: auto;
    width: 80%;
    margin: 0 auto;
  }
}

.Why-Semantic-AI-one {
  color: white;
  /* padding: 0 clamp(1rem, 5vw, 90px); */
}

.Why-Semantic-AI-one > h1 {
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: clamp(10px, 2vw, 20px) 0;
  padding: clamp(15px, 4vw, 30px) 0;
  text-align: center;
}

.Why-Semantic-AI-one-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
}

.Why-Semantic-AI-one-wrapper > div > img {
  height: clamp(200px, 40vw, 350px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.Why-Semantic-AI-one-wrapper-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
}

.Why-Semantic-AI-one-wrapper-content > div {
  background-color: #161616;
  padding: clamp(12px, 3vw, 15px);
  border-radius: 15px;
  border: 1px solid rgb(137, 137, 137);
  width: 100%;
}

.Why-Semantic-AI-one-wrapper-content > div > h4 {
  font-weight: 300;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  margin: clamp(10px, 2vw, 15px) 0;
  color: white;
  text-align: left;
}

.Why-Semantic-AI-one-wrapper-content > div > p {
  font-size: clamp(12px, 1.6vw, 14px);
  font-weight: 200;
  color: rgb(167, 164, 164);
  line-height: 1.6;
  padding: 5px 10px;
  text-align: left;
  margin: 0;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .Why-Semantic-AI-one-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .Why-Semantic-AI-one-wrapper > div > img {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .Why-Semantic-AI-one-wrapper-content {
    padding: 20px;
  }

  .second-section {
    margin-top: unset !important;
  }
}

.second-section {
  margin-top: 100px;
}

.semantic-roi {
  color: white;
  text-align: center;
  margin: 50px 0;
}

.semantic-roi > h1 {
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: 10px;
  color: white;
  padding: 5px 0;
}

.dark-blue-highlight {
  background-color: #161616;
}

.light-blue-highlight {
  background-color: #161616;
}

.sem-subcard:hover{
 background: var(--linear-gradient) !important;
  transition: background 0.6s ease;
  color: white !important;
}

.sem-subcard:hover p {
  color: white;
}