/* =========================================================
   CASE STUDY PAGE
========================================================= */

.case-study-page {
  width: 100%;
  overflow: hidden;
  background: #f5f8f8;
  color: #102f3d;
}


/* =========================================================
   HERO
========================================================= */

.case-study-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.case-study-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;

  background-image: url("../assets/images/S3.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.case-study-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background: linear-gradient(
    90deg,
    rgba(8, 35, 46, 0.95) 0%,
    rgba(8, 35, 46, 0.78) 48%,
    rgba(8, 35, 46, 0.38) 100%
  );
}

.case-study-hero-content {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 100px 0 80px;
  color: #fff;
}

.case-study-label,
.section-label {
  display: inline-block;
  color: #35c7bc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.case-study-hero h1 {
  max-width: 850px;
  margin: 24px 0 0;

  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -4px;
  font-weight: 400;
}

.case-study-hero h1 strong {
  display: block;
  font-weight: 800;
}

.case-study-hero p {
  max-width: 570px;
  margin-top: 30px;

  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.case-study-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  font-size: 12px;
}

.case-study-breadcrumb span {
  color: rgba(255, 255, 255, 0.55);
}

.case-study-breadcrumb b {
  color: #35c7bc;
}

.case-study-breadcrumb strong {
  color: #fff;
}

.case-study-hero-number {
  position: absolute;
  right: 4%;
  bottom: 50px;

  display: flex;
  align-items: flex-end;
  gap: 14px;

  color: rgba(255, 255, 255, 0.55);
}

.case-study-hero-number span {
  font-size: 10px;
  letter-spacing: 3px;
}

.case-study-hero-number strong {
  color: #35c7bc;
  font-size: 60px;
  line-height: 0.8;
  letter-spacing: -3px;
}


/* =========================================================
   INTRO
========================================================= */

.case-study-intro {
  width: min(1000px, 90%);
  margin: 0 auto;
  padding: 100px 0 90px;
}

.case-study-intro-line {
  width: 55px;
  height: 3px;
  margin-bottom: 25px;
  background: #35c7bc;
}

.case-study-intro h2 {
  max-width: 760px;
  margin-top: 22px;

  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -3px;
  font-weight: 400;
}

.case-study-intro h2 strong {
  display: block;
  font-weight: 800;
}

.case-study-intro p {
  max-width: 620px;
  margin-top: 28px;

  color: #687e86;
  font-size: 15px;
  line-height: 1.85;
}


/* =========================================================
   CASE STUDY LIST
========================================================= */

.case-study-list {
  width: min(1280px, 94%);
  margin: 0 auto;
}


/* =========================================================
   CASE STUDY CARD
========================================================= */

.case-study-item {
  display: block !important;
  width: 100%;

  margin: 0 0 110px;

  background: #fff;
  border: 1px solid #dce6e8;

  overflow: hidden;
}


/* =========================================================
   IMAGE
========================================================= */

.case-study-visual {
  position: relative;

  width: 100%;
  height: 380px;

  overflow: hidden;
  background: #102f3d;
}

.case-study-visual img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;

  transition: transform 0.8s ease;
}

.case-study-item:hover .case-study-visual img {
  transform: scale(1.03);
}

.case-study-visual-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(16, 47, 61, 0.02) 20%,
    rgba(16, 47, 61, 0.78) 100%
  );
}

.case-study-number {
  position: absolute;
  left: 42px;
  top: 30px;

  color: #fff;

  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -5px;
}

.case-study-category {
  position: absolute;
  left: 45px;
  bottom: 32px;

  color: #35c7bc;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}


/* =========================================================
   CONTENT
========================================================= */

.case-study-content {
  display: block;

  padding: 58px 65px 65px;
}

.case-study-small-number {
  display: block;

  color: #35a9a0;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}

.case-study-content > h2 {
  max-width: 1000px;

  margin: 18px 0 50px;

  color: #102f3d;

  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 500;
}


/* =========================================================
   DETAILS
========================================================= */

.case-study-details {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  width: 100%;

  border-top: 1px solid #dce6e8;
}


/* =========================================================
   DETAIL BLOCK
========================================================= */

.case-study-block {
  min-width: 0;

  padding: 32px 30px 10px 0;
  margin: 0 30px 0 0;

  border: 0;
  border-right: 1px solid #dce6e8;
}

.case-study-block:last-child {
  margin-right: 0;
  border-right: 0;
}

.case-study-block-heading {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 20px;
}

.case-study-block-heading span {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #35c7bc;
  border-radius: 50%;

  color: #159b91;

  font-size: 10px;
  font-weight: 800;
}

.case-study-block-heading h3 {
  margin: 0;

  color: #102f3d;

  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.case-study-block p,
.case-study-block li {
  color: #667d85;

  font-size: 13px;
  line-height: 1.8;
}

.case-study-block p {
  margin: 0;
}

.case-study-block ul {
  margin: 0;
  padding-left: 17px;
}

.case-study-block li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.case-study-block li::marker {
  color: #35bdb3;
}

.case-study-benefits {
  padding-bottom: 10px;
}

.case-study-benefits
.case-study-block-heading
span {
  background: #e7f8f6;
}


/* =========================================================
   CTA
========================================================= */

.case-study-cta {
  position: relative;

  min-height: 500px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background: linear-gradient(
    110deg,
    #102f3d 0%,
    #143f4d 60%,
    #176f70 100%
  );
}

.case-study-cta::after {
  content: "DNCL";

  position: absolute;

  right: -20px;
  bottom: -70px;

  color: rgba(255, 255, 255, 0.035);

  font-size: 220px;
  font-weight: 900;
  letter-spacing: -15px;
}

.case-study-cta-content {
  position: relative;
  z-index: 2;

  width: min(1100px, 90%);
  margin: 0 auto;
}

.case-study-cta h2 {
  max-width: 700px;

  margin-top: 25px;

  color: #fff;

  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -4px;
  font-weight: 400;
}

.case-study-cta h2 strong {
  display: block;
  font-weight: 800;
}

.case-study-cta p {
  max-width: 520px;

  margin-top: 25px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 14px;
  line-height: 1.8;
}

.case-study-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;

  margin-top: 35px;
  padding: 16px 24px;

  background: #35c7bc;
  color: #102f3d;

  text-decoration: none;

  font-size: 13px;
  font-weight: 800;

  transition: all 0.3s ease;
}

.case-study-cta-button span {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.case-study-cta-button:hover {
  background: #fff;
  transform: translateY(-3px);
}

.case-study-cta-button:hover span {
  transform: translateX(5px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

  .case-study-hero {
    min-height: 520px;
  }

  .case-study-hero-content {
    padding: 90px 0 70px;
  }

  .case-study-visual {
    height: 340px;
  }

  .case-study-content {
    padding: 48px;
  }

  .case-study-details {
    grid-template-columns: 1fr !important;
  }

  .case-study-block {
    padding: 28px 0;

    margin: 0;

    border-right: 0;
    border-bottom: 1px solid #dce6e8;
  }

  .case-study-block:last-child {
    border-bottom: 0;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .case-study-hero {
    min-height: 500px;
  }

  .case-study-hero-content {
    width: calc(100% - 40px);
    padding: 80px 0 60px;
  }

  .case-study-hero h1 {
    font-size: 46px;
    letter-spacing: -2.5px;
  }

  .case-study-hero p {
    font-size: 13px;
  }

  .case-study-hero-number {
    display: none;
  }

  .case-study-intro {
    width: calc(100% - 40px);
    padding: 75px 0;
  }

  .case-study-intro h2 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .case-study-list {
    width: calc(100% - 24px);
  }

  .case-study-item {
    margin-bottom: 70px;
  }

  .case-study-visual {
    height: 260px;
  }

  .case-study-number {
    left: 25px;
    top: 22px;
    font-size: 55px;
  }

  .case-study-category {
    left: 28px;
    bottom: 22px;
  }

  .case-study-content {
    padding: 34px 24px;
  }

  .case-study-content > h2 {
    margin-bottom: 30px;

    font-size: 29px;
    letter-spacing: -1.3px;
  }

  .case-study-block {
    padding: 25px 0;
  }

  .case-study-block p,
  .case-study-block li {
    font-size: 13px;
    line-height: 1.75;
  }

  .case-study-cta {
    min-height: 460px;
  }

  .case-study-cta-content {
    width: calc(100% - 40px);
  }

  .case-study-cta h2 {
    font-size: 48px;
    letter-spacing: -2.5px;
  }
}


/* =========================================================
   CASE STUDY — FINAL RESPONSIVE POLISH
========================================================= */

/* TABLET / SMALL LAPTOP */
@media (max-width: 950px) {
  .case-study-hero-content {
    width: min(900px, 90%);
  }

  .case-study-hero h1 {
    max-width: 720px;
  }

  .case-study-intro {
    width: min(900px, 88%);
  }

  .case-study-list {
    width: 92%;
  }

  .case-study-content {
    padding: 44px 40px 50px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .case-study-page {
    width: 100%;
    overflow-x: hidden;
  }

  .case-study-hero {
    min-height: 500px;
  }

  .case-study-hero-image {
    background-position: center center;
  }

  .case-study-hero-content {
    width: calc(100% - 40px);
    padding: 72px 0 55px;
  }

  .case-study-label,
  .section-label {
    font-size: 10px;
    letter-spacing: 2.5px;
  }

  .case-study-hero h1 {
    max-width: 100%;
    margin-top: 20px;
    font-size: clamp(40px, 12vw, 48px);
    line-height: 0.98;
    letter-spacing: -2px;
  }

  .case-study-hero p {
    max-width: 100%;
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.7;
  }

  .case-study-breadcrumb {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    font-size: 11px;
  }

  .case-study-intro {
    width: calc(100% - 40px);
    padding: 65px 0 60px;
  }

  .case-study-intro h2 {
    max-width: 100%;
    font-size: clamp(36px, 10.5vw, 44px);
    line-height: 1;
    letter-spacing: -2px;
  }

  .case-study-intro p {
    max-width: 100%;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.75;
  }

  .case-study-list {
    width: calc(100% - 24px);
  }

  .case-study-item {
    margin-bottom: 55px;
  }

  .case-study-visual {
    height: 245px;
  }

  .case-study-number {
    left: 20px;
    top: 18px;
    font-size: 52px;
    letter-spacing: -3px;
  }

  .case-study-category {
    left: 23px;
    bottom: 19px;
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .case-study-content {
    padding: 30px 20px 34px;
  }

  .case-study-content > h2 {
    margin: 16px 0 28px;
    font-size: clamp(27px, 7.5vw, 34px);
    line-height: 1.08;
    letter-spacing: -1.2px;
  }

  .case-study-details {
    grid-template-columns: 1fr !important;
  }

  .case-study-block {
    padding: 22px 0;
    margin: 0;
    border-right: 0;
  }

  .case-study-block-heading {
    gap: 11px;
    margin-bottom: 14px;
  }

  .case-study-block-heading span {
    width: 32px;
    height: 32px;
  }

  .case-study-block-heading h3 {
    font-size: 18px;
  }

  .case-study-block p,
  .case-study-block li {
    font-size: 13px;
    line-height: 1.7;
  }

  .case-study-block li {
    margin-bottom: 9px;
  }

  .case-study-cta {
    min-height: 440px;
  }

  .case-study-cta::after {
    right: -35px;
    bottom: -35px;
    font-size: 120px;
    letter-spacing: -8px;
  }

  .case-study-cta-content {
    width: calc(100% - 40px);
  }

  .case-study-cta h2 {
    max-width: 100%;
    margin-top: 20px;
    font-size: clamp(42px, 11vw, 54px);
    line-height: 0.98;
    letter-spacing: -2.5px;
  }

  .case-study-cta p {
    max-width: 100%;
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.7;
  }

  .case-study-cta-button {
    margin-top: 28px;
    padding: 14px 20px;
    gap: 16px;
  }
}

/* VERY SMALL PHONES */
@media (max-width: 380px) {
  .case-study-hero {
    min-height: 470px;
  }

  .case-study-hero-content {
    width: calc(100% - 30px);
    padding-top: 62px;
    padding-bottom: 48px;
  }

  .case-study-hero h1 {
    font-size: 37px;
    letter-spacing: -1.8px;
  }

  .case-study-breadcrumb {
    margin-top: 24px;
    font-size: 10px;
  }

  .case-study-intro {
    width: calc(100% - 30px);
    padding: 55px 0 50px;
  }

  .case-study-intro h2 {
    font-size: 34px;
  }

  .case-study-list {
    width: calc(100% - 16px);
  }

  .case-study-visual {
    height: 215px;
  }

  .case-study-number {
    left: 17px;
    top: 16px;
    font-size: 46px;
  }

  .case-study-category {
    left: 19px;
    bottom: 17px;
    font-size: 8px;
  }

  .case-study-content {
    padding: 26px 17px 30px;
  }

  .case-study-content > h2 {
    font-size: 26px;
  }

  .case-study-block-heading h3 {
    font-size: 17px;
  }

  .case-study-cta {
    min-height: 410px;
  }

  .case-study-cta-content {
    width: calc(100% - 30px);
  }

  .case-study-cta h2 {
    font-size: 38px;
    letter-spacing: -1.8px;
  }

  .case-study-cta-button {
    width: 100%;
    justify-content: space-between;
  }
}
