/* =========================================================
   CASE STUDIES BANNER
   ========================================================= */

.case-study-banner-section {
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 40px;
  color: #ffffff;

  background:
    radial-gradient(
      circle at 78% 25%,
      rgba(20, 88, 200, 0.15),
      transparent 30%
    ),
    radial-gradient(circle at 20% 80%, rgba(0, 76, 190, 0.12), transparent 30%),
    linear-gradient(135deg, #010a1d 0%, #031934 52%, #020c21 100%);
}

/* =========================================================
   Decorative Background
   ========================================================= */

.case-study-banner-section::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: 150px;

  width: 720px;
  height: 220px;

  opacity: 0.12;
  pointer-events: none;

  background: repeating-radial-gradient(
    ellipse at center,
    transparent 0 11px,
    #166ce1 12px 13px,
    transparent 14px 20px
  );
}

.case-study-banner-section::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 20px;

  width: 110px;
  height: 115px;

  opacity: 0.3;
  pointer-events: none;

  background-image: radial-gradient(circle, #6f3bd6 2px, transparent 2.5px);

  background-size: 17px 17px;
}

/* =========================================================
   Main
   ========================================================= */

.case-study-banner-main {
  position: relative;
  z-index: 3;
}

/* =========================================================
   Left Content
   ========================================================= */

.case-study-banner-content {
  max-width: 720px;
}

.case-study-banner-kicker {
  color: #ff6200;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-study-banner-line {
  position: relative;

  width: 33px;
  height: 2px;

  flex-shrink: 0;

  background: #ff6200;
}

.case-study-banner-line::before,
.case-study-banner-line::after {
  content: "";
  position: absolute;
  top: 50%;

  width: 4px;
  height: 4px;

  border-radius: 50%;
  background: #ff6200;

  transform: translateY(-50%);
}

.case-study-banner-line::before {
  left: 0;
}

.case-study-banner-line::after {
  right: 0;
}

/* =========================================================
   Heading
   ========================================================= */

.case-study-banner-content h1 {
  margin: 0;

  color: #ffffff;

  font-size: 55px;
  line-height: 1.06;
  font-weight: 900;

  letter-spacing: -0.045em;
}

.case-study-banner-content h1 span {
  color: #ff5a00;
}

/* =========================================================
   Description
   ========================================================= */

.case-study-banner-description {
  max-width: 650px;

  color: #cad3e4 !important;

  font-size: 18px;
  line-height: 1.65;
}

.case-study-banner-description p {
  margin-bottom: 0;

  color: #cad3e4 !important;

  font-size: inherit;
  line-height: inherit;
}

/* =========================================================
   Right Visual
   IMPORTANT:
   uploaded image already contains ALL mockups/cards.
   ========================================================= */

.case-study-banner-visual {
  position: relative;

  width: 100%;
  max-width: 760px;

  min-height: 0;

  margin-right: auto;
  margin-left: auto;
}

/* =========================================================
   Main Uploaded Image Wrapper
   ========================================================= */

.case-study-desktop-card {
  position: relative;

  top: auto;
  right: auto;

  width: 100%;
  height: auto;

  margin: 0;

  overflow: visible;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;

  transform: none;
}

/* =========================================================
   Image
   ========================================================= */

.case-study-desktop-image {
  position: relative;
  inset: auto;

  width: 100%;
  height: auto;
}

.case-study-desktop-image::after {
  display: none;
}

.case-study-desktop-image img {
  width: 100%;
  max-width: 100%;
  height: auto;

  display: block;

  object-fit: contain;
  object-position: center;

  border: 0;
  border-radius: 0;
}

/* =========================================================
   IMPORTANT
   Disable old internally-created mockup elements
   because uploaded image already includes them.
   ========================================================= */

.case-study-browser-top,
.case-study-browser-brand,
.case-study-browser-nav,
.case-study-mobile-card,
.case-study-mobile-top,
.case-study-mobile-content,
.case-study-mobile-btn,
.case-study-mobile-image,
.case-study-feature-card {
  display: none !important;
}

/* =========================================================
   Stats Strip
   ========================================================= */

.case-study-banner-stats {
  position: relative;
  z-index: 5;

  margin-top: 30px;
  padding: 28px 0;

  border-top: 1px solid rgba(180, 199, 230, 0.38);
}

/* =========================================================
   Trust Heading
   ========================================================= */

.case-study-trust-heading {
  padding-right: 25px;

  color: #ffffff;

  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;

  border-right: 1px solid rgba(180, 199, 230, 0.3);
}

/* =========================================================
   Stats
   ========================================================= */

.case-study-banner-stat {
  min-height: 80px;

  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 16px;
}

/* =========================================================
   Stat Icon
   ========================================================= */

.case-study-stat-icon {
  position: relative;

  width: 62px;
  min-width: 62px;
  height: 62px;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex-shrink: 0;

  overflow: hidden;

  border-radius: 50%;

  color: #ffffff;

  font-size: 24px;
  line-height: 1;
}

.case-study-stat-icon i {
  position: static !important;

  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  width: auto !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  display: inline-block !important;

  color: #ffffff !important;

  font-size: 24px !important;
  line-height: 1 !important;

  transform: none !important;
}

/* =========================================================
   Stat Colors
   ========================================================= */

.case-study-stat-orange {
  background: linear-gradient(145deg, #c9530b, #7c2900);
}

.case-study-stat-purple {
  background: linear-gradient(145deg, #6532b6, #35166d);
}

.case-study-stat-green {
  background: linear-gradient(145deg, #16834d, #07502d);
}

.case-study-stat-blue {
  background: linear-gradient(145deg, #2867d4, #12418c);
}

/* =========================================================
   Stat Content
   ========================================================= */

.case-study-banner-stat > div {
  min-width: 0;
}

.case-study-banner-stat strong {
  display: block;

  margin: 0;

  color: #ffffff;

  font-size: 29px;
  line-height: 1.05;
  font-weight: 500;
}

.case-study-banner-stat > div > span {
  display: block;

  margin-top: 6px;

  color: #b9c3d3;

  font-size: 13px;
  line-height: 1.3;
}

/* =========================================================
   Responsive - 1600
   ========================================================= */

@media (max-width: 1599.98px) {
  .case-study-banner-content h1 {
    font-size: 48px;
  }

  .case-study-banner-description,
  .case-study-banner-description p {
    font-size: 16px;
  }

  .case-study-banner-visual {
    max-width: 700px;
  }
}

/* =========================================================
   Responsive - 1400
   ========================================================= */

@media (max-width: 1600px) {
  .case-study-banner-section {
    padding-top: 50px;
    padding-bottom: 35px;
  }

  .case-study-banner-kicker {
    font-size: 13px;
  }

  .case-study-banner-content h1 {
    font-size: 40px;
  }

  .case-study-banner-description,
  .case-study-banner-description p {
    font-size: 15px;
  }

  .case-study-banner-visual {
    max-width: 640px;
  }

  .case-study-trust-heading {
    font-size: 16px;
  }

  .case-study-banner-stat {
    padding: 0 16px;
    gap: 14px;
  }

  .case-study-stat-icon {
    width: 56px;
    min-width: 56px;
    height: 56px;
  }

  .case-study-stat-icon i {
    font-size: 22px !important;
  }

  .case-study-banner-stat strong {
    font-size: 24px;
  }

  .case-study-banner-stat > div > span {
    font-size: 12px;
  }
}

/* =========================================================
   Responsive - 1200
   ========================================================= */

@media (max-width: 1199.98px) {
  .case-study-banner-content {
    max-width: 100%;
  }

  .case-study-banner-description {
    max-width: 780px;
  }

  .case-study-banner-visual {
    width: 100%;
    max-width: 850px;

    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
  }

  .case-study-desktop-card {
    width: 100%;
  }
  .banner-heading br {
    display: none !important;
  }

  .case-study-desktop-image img {
    width: 100%;
    height: auto;
  }

  .case-study-banner-stats {
    margin-top: 35px;
  }

  .case-study-trust-heading {
    padding: 20px;

    border-right: 0;
    border-bottom: 1px solid rgba(180, 199, 230, 0.25);

    text-align: center;
  }
}

/* =========================================================
   Responsive - 992
   ========================================================= */

@media (max-width: 991.98px) {
  .case-study-banner-visual {
    max-width: 760px;
  }

  .case-study-banner-stat {
    padding: 18px;
  }
}

/* =========================================================
   Responsive - 768
   ========================================================= */

@media (max-width: 767.98px) {
  .case-study-banner-section {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .case-study-trust-heading {
    font-size: 15px;
  }

  .case-study-banner-content h1 {
    font-size: 32px;
  }

  .case-study-banner-description,
  .case-study-banner-description p {
    font-size: 16px;
  }

  .case-study-banner-visual {
    width: 100%;
    max-width: 100%;

    margin-top: 10px;
  }
  .case-study-banner-description,
  .case-study-banner-description p {
    font-size: 15px !important;
  }

  .case-study-desktop-card {
    width: 100%;
  }

  .case-study-desktop-image {
    width: 100%;
  }

  .case-study-desktop-image img {
    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: contain;
  }

  .case-study-banner-stat {
    min-height: 95px;

    padding: 16px 20px;

    justify-content: flex-start !important;
  }

  .case-study-stat-icon {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .case-study-stat-icon i {
    font-size: 20px !important;
  }

  .case-study-banner-stats .row {
    justify-content: center;
  }

  .case-study-banner-stats .col-sm-6 {
    width: 100%;
  }

  .case-study-banner-stat {
    width: 220px;
    margin: 0 auto;
    justify-content: flex-start !important;
  }

  .case-study-banner-stat .stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .case-study-banner-stat .stat-content {
    flex: 1;
    text-align: left;
  }

  .case-study-banner-stat .stat-content h3 {
    margin: 0 0 2px;
  }

  .case-study-banner-stat .stat-content p {
    margin: 0;
  }
}

/* =========================================================
   Responsive - 576
   ========================================================= */

@media (max-width: 575.98px) {
  .case-study-banner-section {
    padding-top: 32px;
    padding-bottom: 25px;
  }

  .case-study-banner-content h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .case-study-banner-description,
  .case-study-banner-description p {
    font-size: 15px;
    line-height: 1.6;
  }

  .case-study-banner-visual {
    margin-top: 5px;
  }

  .case-study-desktop-image img {
    width: 100%;
    height: auto;
  }

  .case-study-banner-stats {
    margin-top: 25px;
    padding: 20px 0;
  }

  .case-study-banner-stat {
    min-height: 85px;
  }
}

/* =========================================================
   Very Small Mobile
   ========================================================= */

@media (max-width: 399.98px) {
  .case-study-banner-content h1 {
    font-size: 27px;
  }

  .case-study-banner-description,
  .case-study-banner-description p {
    font-size: 14px;
  }

  .case-study-stat-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .case-study-stat-icon i {
    font-size: 18px !important;
  }

  .case-study-banner-stat strong {
    font-size: 21px;
  }
}

/* base styles */
h2 {
  font-size: 44px !important;
}

@media (max-width: 1599.98px) {
  h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 1399.98px) {
  h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 1199.98px) {
  h2 {
    font-size: 28px !important;
  }
}

@media (max-width: 991.98px) {
  h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 767.98px) {
  h2 {
    font-size: 22px !important;
  }
}

@media (max-width: 575.98px) {
  h2 {
    font-size: 21px !important;
  }
}

@media (max-width: 374.98px) {
  h2 {
    font-size: 20px !important;
  }
}
