/* =========================================================
   casestudy1 page styles.
   Loaded after styles/global.css on casestudy1.html only.
   ========================================================= */

.bg-darkorange {
  background-color: var(--orange);
}

.btn-center {
  justify-content: center;
}

.MODButton {
  margin-left: 0 !important;
  background-color: transparent;
}

.MOD-card {
  padding: 20px !important;
  display: flex;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 20px;
  background: var(--light-blue-grad);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 32, 92, 0.15);
}

/* ================= MOD TIMELINE ================= */
.mod-timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  padding: 50px 0 20px;
  cursor: grab;
}

.mod-timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 10px;
}

/* FIREFOX */
.mod-timeline-scroll {
  scrollbar-color: var(--orange) transparent;
}

/* BADGE */
.mod-event-date {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.mod-timeline-scroll {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: grab;
}

.mod-timeline-scroll:active {
  cursor: grabbing;
}

/* ===============================
   CASE STUDY PAGE
   ================================= */
/* Define colours for site*/
:root {
  --bs-body-font-family: "Poppins", sans-serif;
  --orange: #ff8f00;
  --blue: #00205c;
  --light-orange: #ff8f0033;
  --light-blue-grad: linear-gradient( 135deg, rgba(92, 125, 184, 0.10), rgba(92, 125, 184, 0.01) );
  --side-left: clamp(80px, 10vw, 100px);
  --page-margin: 88px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (max-width: 1599px) and (min-width: 992px) {
  :root {
    --page-margin: 40px!important;
  }
}

.btn-light-blue {
  background: rgb(239, 242, 248);
  color: var(--blue);
}

.timeline-card span {
  display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--light-blue-grad);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 25px;
}

.casehead-image {
  width: 150%;
  overflow: hidden;
  min-height: 650px;
  height: 60vh;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  position: relative;
  left: -130px;
  z-index: 1;
}

/* ===============================
   CASE STUDY PAGE
   ================================= */
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fb;
  overflow-x: hidden;
}

/* SECTION */
.case-section {
  padding: 110px 0;
}

.case-title {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  color: #071c2f;
  line-height: 1.1;
}

.case-text {
  font-size: 1.05rem;
  line-height: 2;
  color: #4d5b6b;
}

.solution-card {
  background: white;
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

/* TIMELINE */
.timeline-section {
  background: linear-gradient(135deg, var(--blue), #001122);
  padding: 30px 0;
}

.timeline-section .case-title,
.timeline-section .timeline-intro {
  color: white;
}

.timeline-intro {
  margin: auto;
  opacity: .8;
}

.mod-timeline-scroll {
  overflow-x: auto;
  cursor: grab;
  padding-bottom: 20px;
}

.mod-timeline-scroll::-webkit-scrollbar {
  height: 8px;
}

.mod-timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 100px;
}

.mod-horizontal-timeline {
  display: flex;
  gap: 30px;
  width: max-content;
}

.timeline-card {
  width: 320px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 35px;
  color: white;
}

.timeline-card span {
  display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #ff8c00;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 25px;
}

.timeline-card h4 {
  font-weight: 700;
  margin-bottom: 20px;
}

.timeline-card p {
  opacity: .8;
  line-height: 1.8;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #ff8c00, #ff9d24);
  padding: 110px 0;
}

.mod-card-icon {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.MOD-card h3 {
  margin-bottom: 1rem;
}

.MOD-card p,
.MOD-card li {
  line-height: 1.7;
}

/* CHALLENGE SECTION */
.challenge-section {
  position: relative;
  overflow: hidden;
}

.challenge-image-wrap {
  position: relative;
}

.challenge-image {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  min-height: 620px;
  max-height: 760px;
  box-shadow: 0 25px 60px rgba(0, 32, 92, 0.18);
}

/* TESTIMONIAL CARD */
.challenge-testimonial {
  position: relative;
  padding: 2.2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 35px rgba(0, 32, 92, 0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}

.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.22;
  position: absolute;
  top: 0.7rem;
  left: 1.5rem;
  font-weight: 700;
}

.challenge-testimonial h5 {
  position: relative;
  z-index: 2;
  line-height: 1.8;
  margin-bottom: 0;
}

.testimonial-author {
  font-weight: 600;
  color: var(--blue);
}

@media (max-width: 991px) {
  /* MOBILE */
  .challenge-image {
    min-height: auto;
    max-height: 480px;
  }

  .challenge-testimonial {
    padding: 1.8rem;
  }

  .quote-mark {
    font-size: 4rem;
  }

  .casehead-image {
    display: none;
  }

  .start {
    padding-top: 75px!important;
  }
}

.start {
  padding-top: 150px!important;
}

/* OUTCOME GLASS CARD */
.outcome-glass-card {
  position: relative;
  padding: 3rem;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 25px 60px rgba(0, 32, 92, 0.10), inset 0 1px 0 rgba(255,255,255,0.45);
  overflow: hidden;
}

/* OPTIONAL LIGHT GLOW */
.outcome-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.45), transparent 45%);
  pointer-events: none;
}

.outcome-image-wrap {
  position: relative;
}

.outcome-image {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 32, 92, 0.16);
}

@media (max-width: 991px) {
  /* MOBILE */
  .outcome-glass-card {
    padding: 2rem;
    border-radius: 28px;
  }

  .outcome-image {
    min-height: 320px;
  }
}
