#services_hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 5rem;
  align-items: center;
  justify-content: center;
  background-image: url('../images/servicebg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

}

#services_hero h1 {
  font-size: 3rem;
  text-align: center;
}

#services_hero p {
  font-size: .95rem;
  text-align: center;
  width: 60%;
  margin: auto;
}

.main-class {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 5rem;

}

.main-class header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.main-class header h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
}

.main-class header h1 span {
  color: var(--primary-color);
}

.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
}

.services-wrapper .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* button hamesha bottom me */
  width: calc((100% - 6rem)/4);
  background-color: rgba(142, 202, 255, 0.25);
  border-radius: 0.3rem;
  overflow: hidden;
  min-height: 400px;
  /* ensures uniform height */
  box-sizing: border-box;
}

.card-top iframe {
  width: 100%;
  height: 200px;
  border: none;
  object-fit: cover;
}

.card-content {
  flex-grow: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.card-bottom {
  padding: 0 1rem 1rem 1rem;
  text-align: center;
}

.card-bottom button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
  color: #fff;
  background-color: var(--primary-color);
  transition: 0.3s;
}

.card-bottom button:hover {
  background-color: #093bcc;
}

.our-products-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.our-products-wrapper .card {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.our-products-wrapper .card figure {
  width: calc(50% - 1rem);
  flex-shrink: 0;
  flex-grow: 1;
  overflow: hidden;
  max-height: 250px;
  /* add this to limit height */


}

.our-products-wrapper .card figure img {
  object-fit: cover;
  /* cover instead of contain for uniform look */
  width: 100%;
  height: 100%;
  /* fill figure height */
}

.our-products-wrapper .card:nth-child(even) {
  flex-direction: row-reverse;
}

.our-products-wrapper .card>div {
  width: calc(50% - 1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.our-products-wrapper .card>div h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.our-products-wrapper .card>div p {
  font-size: 1rem;
  font-weight: 200;
}

.more-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.more-projects .card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc((100% - 4rem) / 3);
  background-color: #f9f9f9;
  /* optional, card background */
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.more-projects .card figure {
  width: 100%;
  height: 200px;
  /* fixed height */
  overflow: hidden;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
}

.more-projects .card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* image crop hoga but layout safe */
}

.more-projects .card h2 {
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 1rem 0 1rem;
}

.more-projects .card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin: 0 1rem 1rem 1rem;
  flex-grow: 1;
  /* description ka space le, but card height uniform */
}

.more-projects .card a button {
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem 1rem;
  padding: .8rem 0;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: .3rem;
  cursor: pointer;
  text-align: center;
  font-size: 1rem;
  transition: 0.3s;
}

.more-projects .card a button:hover {
  background-color: #093bcc;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .more-projects .card {
    width: calc((100% - 2rem) / 2);
  }
}

@media (max-width: 768px) {
  .more-projects .card {
    width: 100%;
  }
}

#work_progress {
  padding: 5rem 2rem;
}

#work_progress header {
  text-align: center;
  margin-bottom: 3rem;
}

#work_progress header h1 {
  font-size: 2rem;
  font-weight: 600;
}

#work_progress header h1 span {
  color: #0a66c2;
}

#work_progress header p {
  font-size: 1rem;
  color: #555;
  margin: 0.5rem 0;
}

/* Timeline wrapper */
.work-progress-wrapper {
  position: relative;
  width: 100%;
}

/* Vertical line */
.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #0a66c2;
  transform: translateX(-50%);
  z-index: 0;
}

/* Timeline items */
.timeline-item {
  position: relative;
  width: 40%;
  /* smaller box */
  padding: 10px 15px;
  /* smaller padding */
  box-sizing: border-box;
}

.timeline-item.left {
  left: 50%;
  transform: translateX(-105%);
  /* box slightly left of line */
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  transform: translateX(5%);
  /* box slightly right of line */
  text-align: left;
}

/* Dot on the timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  /* align dot vertically with image */
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0a66c2;
  border: 3px solid #fff;
  z-index: 1;
}

/* Timeline content box */
.timeline-item .content {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  /* smaller height */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* center image & text */
  gap: 0.3rem;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Image and name */
.timeline-item .content figure {
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.timeline-item .content figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.timeline-item .content .name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  text-align: center;
}

/* Headings and text */
.timeline-item .content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.timeline-item .content p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    left: 0 !important;
    transform: none !important;
    text-align: left !important;
    padding-left: 60px;
    margin-left: 0;
    margin-right: 0;
  }

  .timeline-item::before {
    left: 20px !important;
    transform: none;
  }

  .timeline-item .content {
    align-items: flex-start;
  }

  .timeline-item .content .name {
    text-align: left;
  }
}

.content {
  background: #fff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content h3 {
  margin: 0 0 10px;
  color: #0a66c2;
}

.content p {
  margin: 0;
  color: #555;
}

@media only screen and (max-width : 1300px) {
  .services-wrapper .card figure {
    width: 100%;
    height: 150px;
    overflow: hidden;
  }
}

@media only screen and (max-width : 1000px) {

  #services_hero,
  .main-class {
    padding: 4.5rem;
  }

  #services_hero h1 {
    font-size: 2.8rem;
  }

  #services_hero p {
    width: 80%;
  }

  .services-wrapper .card {
    width: calc((100% - 2rem) / 2);
  }

  .our-products-wrapper .card figure img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .more-projects .card {
    width: calc((100% - 2rem) / 2);


  }




}

@media only screen and (max-width : 800px) {

  #services_hero,
  .main-class {
    padding: 4rem;
  }

  #services_hero h1 {
    font-size: 2.6rem;
  }

  #services_hero p {
    width: 100%;
  }
}



@media only screen and (max-width : 768px) {
  .our-products-wrapper .card figure img {
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  .our-products-wrapper .card {
    display: flex;
    gap: 1rem;
    flex-direction: column;
  }

  .our-products-wrapper .card figure {
    width: 100%;
    flex-shrink: 0;
    flex-grow: 1;
    overflow: hidden;

  }

  .our-products-wrapper .card>div {
    width: 100%;
  }

  .our-products-wrapper .card:nth-child(even) {
    flex-direction: column;
  }

  .more-projects .card {
    width: calc(100%);


  }

  .timeline-item.left {
    left: 0;
    text-align: right;
  }

  .timeline-item.right {
    left: 0%;
    text-align: right;
  }

  .timeline-item.right::before {
    left: 98% !important;
    /* right: -12px !important; */
  }

  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 98%;
    width: 4px;
    background: #0a66c2;
    transform: translateX(-50%);
  }

  .timeline-item {
    position: relative;
    width: 98%;
    padding: 20px;
    overflow: visible;
  }


}

















@media only screen and (max-width : 700px) {

  #services_hero,
  .main-class {
    padding: 3.5rem;
  }

  #services_hero h1 {
    font-size: 2.4rem;
  }

}

@media only screen and (max-width : 600px) {

  #services_hero,
  .main-class {
    padding: 3rem;
  }

  #services_hero h1 {
    font-size: 2.2rem;
  }

  .services-wrapper .card {
    width: 100%;
  }
}

@media only screen and (max-width : 500px) {

  #services_hero,
  .main-class {
    padding: 2.5rem;
  }

  #services_hero h1 {
    font-size: 2rem;
  }
}

@media only screen and (max-width : 400px) {

  #services_hero,
  .main-class {
    padding: 2rem;
  }

  #services_hero h1 {
    font-size: 1.8rem;
  }
}