footer {
  margin-top: 0px !important; /* diger fayllari yoxlamali ki pozmasin onlari */
}
.firstsection {
  background-color: #f7f2eb;
  padding: 80px 84px 18px 84px;
  margin-top: -20px;
}
.s-service-title {
  font-family: CARDILLAC-REGULAR, serif;
  font-weight: 400;
  font-size: 83px;
  line-height: 95px;
  letter-spacing: -3px;
  margin-bottom: 21px;
}

.s-service-desc {
  color: #7a7a7a;
  font-family: Gliory-Italic, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0%;
  max-width: 826px;
}

.what-we-do-section {
  background-color: white;
  padding: 60px 84px 80px 84px;
}

.what-we-do-title {
  font-family: Gliory-Italic, sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 72px;
  letter-spacing: 0%;
  text-transform: uppercase;

  margin-bottom: 11px;
}

.what-we-do-content {
  max-width: 826px;
}

.what-we-do-desc {
  color: #7a7a7a;
  font-family: Gliory-Italic, sans-serif !important;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0%;
  margin-bottom: 30px;
}

.primary-areas {
  font-weight: bold;
}

.service-list {
  list-style: none;
  margin-bottom: 80px;
}

.service-item {
  margin-bottom: 30px;
  padding-left: 20px;
  position: relative;
}

.service-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7a7a7a;
  font-size: 20px;
}

.service-item-text {
  color: #7a7a7a;
}

.example-section {
  background-color: #f7f2eb;
  padding: 84px 70px 53px 70px;
}

.example-title {
  font-family: Gliory-Italic, sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 32px;
  color: #272727;
  line-height: 72px;
  letter-spacing: 0%;
  text-transform: uppercase;
  margin-bottom: 47px;
}

.examples-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
}

.example-card {
  flex: 1;
  background: #fff;
  border-radius: 13.73px;
  padding: 14.64px 15.56px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.example-image {
  width: 100%;
  height: 277.25px;
  object-fit: cover;
  border-radius: 6px;
}

.example-content {
  padding-bottom: 80px;
  padding-top: 6.41px;
}

.example-name {
  font-family: Gliory-Italic, sans-serif;
  font-weight: 600;
  font-size: 25.62px;
  line-height: 65.88px;
  letter-spacing: 0%;
  color: #272727;
}

.example-type {
  font-family: Gliory-Italic, sans-serif;
  font-weight: 500;
  font-size: 18.3px;
  line-height: 25.62px;
  letter-spacing: 0%;
  color: #717171;
}

.all-works-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 16px 42px;
  border-radius: 25px;
  text-decoration: none;
  font-family: Gliory-Italic, sans-serif;
  font-weight: 400;
  font-size: 18.88px;
  line-height: 20.06px;
  letter-spacing: 0%;

  transition: background-color 0.3s ease;
  max-width: 201px;
  margin: auto;
  box-shadow: 0px 4px 16px 0px #f78e1e3d;

  background: #f68e1f;
  border-radius: 25.96px;
}

.all-works-btn:hover {
  background-color: #f4840d;
  color: white;
}

.read-more-btn {
  background: none;
  border: 1px solid #f68e1f;
  padding: 8px 16px;
  border-radius: 20px;
  color: #f68e1f;
  font-family: Gliory-Italic, sans-serif;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
  display: none;
}

.read-more-btn:hover {
  text-decoration: none;
}

.truncated {
  display: none;
}

.expanded {
  display: block;
}

.what-we-do-expandable {
  display: block;
}

.what-we-do-expandable.expanded {
  display: block;
}

/* Fade effect containers */
.fade-container {
  position: relative;
}

.fade-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

footer {
  margin-top: 0px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .all-works-btn {
    display: none;
  }
  .fade-container.white-fade::after {
    background: linear-gradient(transparent, white);
  }

  .fade-container.show-fade::after {
    opacity: 1;
  }

  .firstsection {
    padding: 80px 24px 32px 24px;
  }

  .s-service-title {
    font-size: 64px;
    line-height: 95px;
    margin-bottom: 24px;
  }

  .s-service-desc {
    font-size: 20px;
    line-height: 31px;
  }

  .what-we-do-section {
    padding: 29px 24px 60px 24px;
  }

  .what-we-do-title {
    font-size: 32px;
    line-height: 72px;
    margin-bottom: 18px;
  }

  .what-we-do-desc {
    font-size: 20px;
    line-height: 31px;
    margin-bottom: 20px;
  }

  .service-list {
    margin-bottom: 40px;
  }

  .service-item {
    margin-bottom: 20px;
  }

  .service-item-text {
    font-size: 16px;
    line-height: 24px;
  }

  .example-section {
    padding: 24px 24px 60px 24px;
  }

  .example-title {
    font-size: 24px;
    line-height: 72px;
    margin-bottom: 12px;
  }

  .examples-grid {
    flex-direction: column;
    gap: 48px;
    margin-bottom: 40px;
  }

  .example-card {
    padding: 12px;
  }

  .example-image {
    height: 219.27px;
  }

  .example-content {
    padding-bottom: 20px;
    padding-top: 12px;
  }

  .example-name {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 12px;
  }

  .example-type {
    font-size: 18px;
    line-height: 19px;
  }

  .all-works-btn {
    font-size: 16px;
    padding: 12px 24px;
    max-width: 140px;
  }

  /* Mobile Read More Functionality */
  .read-more-btn {
    display: inline-block;
  }
  .what-we-do-expandable {
    display: block;
  }

  .what-we-do-expandable.expanded {
    display: block;
  }

  /* Fade effect containers */
  .fade-container {
    position: relative;
  }

  .fade-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #f7f2eb);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* Hide expandable content on mobile initially */
  .what-we-do-expandable {
    display: none;
  }

  .what-we-do-expandable.expanded {
    display: block;
  }

  /* Truncate text on mobile */
  .mobile-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 13;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mobile-truncate.expanded {
    display: block;
    -webkit-line-clamp: none;
  }

  /* Hide read more when expanded */
  .expanded + .read-more-btn {
    /* display: none; */
  }

  .arrow-icon {
    transition: transform 0.3s ease;
  }

  .arrow-icon.rotated {
    transform: rotate(180deg);
  }

  /* Show fade effects on mobile for truncated content */
  .fade-container.show-fade::after {
    opacity: 1;
  }

  /* Hide fade when expanded */
  .fade-container.expanded::after {
    opacity: 0;
  }
}
