:root {
  --font-size-xl: 5.375rem;
  --font-size-lg: 3.5rem;
  --font-size-md: 2.2rem;
  --font-size-md-des: 1.3rem;
  --font-size-sm: 1rem;
  --font-size-base: 1.125rem;
  --gap-lg: 3rem;
  --gap-md: 2.5rem;
  --gap-sm: 2.25rem;
  --padding-xl: 10rem;
  --padding-lg: 4.375rem;
  --padding-md: 2.5rem;
  --border-radius: 1.25rem;
  --hero-img-width: 30.875rem;
  --hero-img-width-lg: 25rem;
  --hero-img-width-md: 20rem;
  --hero-img-width-sm: 15rem;
  --hero-img-height: 18.75rem;
  --case-img-width: 27rem;
  --case-img-height: 17.625rem;
  --case-p-info: 1.4rem;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.service-section {
  min-height: 100vh;
  width: 100%;
  position: relative; /* คงตำแหน่งใน flow */
  z-index: 1; /* ไม่ลอยทับ footer */
}
/* Services Background */
.service-bg-black {
  max-width: 100vw;
  min-height: 100vh;
  background-color: black;
  position: relative;
  z-index: -1;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.service-bg-cover {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  /* background-size: cover; */
  background-position: top;
  position: absolute;
  top: 0;
}

/* Services Background Images */
.s-media {
  background-image: url(https://wyndigitalgroup.com/wp-content/uploads/2025/04/Media_Performance_1@2x-scaled.webp);
}
.s-creative {
  background-image: url(https://wyndigitalgroup.com/wp-content/uploads/2025/04/Creative_Production@2x-scaled.webp);
}
.s-influ {
  background-image: url(https://wyndigitalgroup.com/wp-content/uploads/2025/04/Influencer_Marketing@2x-scaled.webp);
}
.s-event {
  background-image: url(https://wyndigitalgroup.com/wp-content/uploads/2025/04/Event_Organization@2x-scaled.webp);
}
.s-social {
  background-image: url(https://wyndigitalgroup.com/wp-content/uploads/2025/04/Social_Monitoring@2x-scaled.webp);
}
.s-web {
  background-image: url(https://wyndigitalgroup.com/wp-content/uploads/2025/04/Website_Development@2x-scaled-1.webp);
}

/* Service Content */
.service-content {
  font-family: "GothamMedium", sans-serif;
  position: relative; /* เดิมเป็น absolute → เปลี่ยนเพื่อไม่ให้หลุด flow */
  margin: 0 var(--padding-lg);
  padding-top: 40rem; /* แทน top: 45% */
  padding-bottom: 6rem; /* กันชนด้านล่างไม่ให้ footer ทับ */
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  width: calc(100% - 2 * var(--padding-lg));
  box-sizing: border-box;
  z-index: 1;
}

.service-content h1 {
  text-transform: uppercase;
  font-size: var(--font-size-xl);
  color: aliceblue;
}

.service-hero-container {
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  gap: var(--gap-lg);
}

.service-container {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: var(--hero-img-width);
  height: auto;
}
.hero-event {
  width: 400px;
  height: auto;
}

.hero-image img {
  width: 100%;
  height: 100;
}

.hero-arrow {
  display: block;
  width: 6.25rem;
}

.hero-arrow img {
  width: 100%;
  height: auto;
}

.service-description {
  width: 100%;
  max-width: 100%;
  color: aliceblue;
  font-size: var(--font-size-md-des);
  font-family: "GothamBook", sans-serif;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-bottom: 2rem;
  margin-top: 1.25rem;
}
.text-achievements-bold {
  font-family: "GothamMedium", sans-serif;
  display: inline-block;
}
.service-description p {
  font-family: "GothamBook", sans-serif;
}
.service-description-list {
  margin-top: 2rem;
}
.service-description-list ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.service-type {
  display: flex;
  flex-direction: column;
}
.service-type h1 {
  margin: 0;
}
/* Case Section */
.case-container {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* padding: 50px 0; */
  gap: var(--gap-md);
}

.case-studies-header-text {
  display: flex;
  justify-content: center;
  margin: 100px 0;
  margin-top: 50px;
}

.case-studies-header-text h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: var(--font-size-xl);
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  font-family: "GothamBold", sans-serif;
}

.case-studies-header-text img {
  margin-top: 7px;
  height: 0.85em;
}

.rainbowV {
  width: 5px;
  height: 200px;
  background: linear-gradient(
    180deg,
    #ffc502,
    #88d04a,
    #028dfe,
    #425cf8,
    #8336cd,
    #fc7c0b,
    #f93f14
  );
}
.case-cta {
  min-height: 300px;
  margin: 2rem 0;
  padding: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.case-cta p {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.cta-img {
  max-width: 100px;
  width: 100%;
  height: auto;
  margin-top: 1rem;
}
@media (max-width: 1024px) {
  .service-content h1 {
    font-size: var(--font-size-lg);
  }
  .hero-image {
    width: var(--hero-img-width-lg);
  }
  .hero-arrow {
    display: block;
    width: 5.25rem;
  }
}
@media (max-width: 991px) {
  .service-bg-black {
    /* padding-bottom: 0; */
  }
  .service-bg-cover {
    background-size: contain;
  }

  .service-content {
    margin: 0 var(--padding-md);
    /* top: 20%; */
  }
  .service-hero-container {
    flex-direction: column;
    align-items: center;
  }
  .hero-image {
    width: var(--hero-img-width-md);
  }
  .hero-arrow {
    display: none;
  }
  .case-cta p {
    font-size: var(--font-size-sm);
  }
  .service-type {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* gap: 10px; */
  }
  .service-content {
    margin: 0 var(--padding-md);
    width: calc(100% - 5rem);
    box-sizing: border-box;
  }

  .service-description {
    font-size: 1rem;
  }

  .service-content h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 900px) {
  .service-content {
    padding-top: 30rem;
  }
}
@media (max-width: 820px) {
  .service-content {
    /* top: 30%; */
    /* padding-top: 20rem; */
  }
}
@media (max-width: 768px) {
  .hero-image {
    width: 200px;
  }
}
@media (max-width: 600px) {
  .service-hero-container {
    padding-top: 0;
    display: flex;
    justify-content: center;
    gap: var(--gap-sm);
  }

  .service-content h1 {
    /* font-size: var(--font-size-md); */
    font-size: var(--font-size-lg);
  }
  .service-content {
    /* padding-top: 20rem; */
    padding-top: 10rem;
  }

  .service-type {
    flex-direction: column;
    align-items: flex-start;
  }
  .service-description {
    margin-top: 1rem;
  }
  .service-description p {
    margin: 1.5rem 0;
  }
  .service-description-list ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
  }
  .service-description-list ul li::marker {
    font-size: 1.5em;
  }
  .text-achievements-bold {
    margin-bottom: 5px;
  }
}
@media (max-width: 480px) {
  .hero-image {
    /* width: var(--hero-img-width-sm); */
  }
  /* .service-type {
    flex-direction: column;
  }
  .service-content {
    padding-top: 15rem;
  } */
  .service-content h1 {
    font-size: var(--font-size-md);
  }
}
@media (max-width: 425px) {
  /* .hero-image {
    width: 150px;
  } */
  .service-content {
    /* top: 20%; */
  }
}
