﻿.cta-banner-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  overflow: hidden;
  flex-wrap: wrap;
  height: 20rem;
  background-color: #003b5c;
}

.cta-banner__text {
  display: flex;
  flex-direction: column;
  flex: 5;
  color: #ffffff;
  justify-content: center;
  align-items: center;
  padding: 0 6rem;
}

.cta-banner__text h2 {
  font-size: 2.75rem;
  font-weight: 300;
  margin-bottom: 1rem;
}
.cta-banner__text p {
  font-size: 1.25rem;
  font-weight: 600;
}
.cta-banner__text .cta-buttons {
  display: flex;
  gap: 1rem;
}

.cta-banner__text .cta-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.cta-banner__text .cta-btn.secondary {
  background: none;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.cta-btn.secondary:hover {
  color: #191919;
  background: #ffffff;
}

.cta-banner__diamondWrapper {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  background-color: #b1c4cf;
}
.cta-banner__diamondContainer {
  display: flex;
  width: 14rem;
  height: 14rem;
  transform: translateX(-50%) rotate(45deg);
}
.cta-banner__diamondContainer .diamond {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.cta-banner__diamondContainer .diamond img{
  object-fit: cover;
  transform: rotate(-45deg) scale(1.5);
}

@media screen and (max-width: 430px) {
  .cta-banner-wrapper {
    gap: 15rem;
    height: auto;
  }
  .cta-banner__text {
    padding: 2rem;
  }
  .cta-banner__text h2 {
    font-size: 2.25rem;
  }
  .cta-banner__text p {
    font-size: 1rem;
  }
  .cta-banner__text .cta-btn {
    font-size: 0.85rem;
  }
  .cta-banner__diamondWrapper {
    align-items: flex-start;
    justify-content: center;
    height: 14rem;
  }
  .cta-banner__diamondContainer {
    width: 19rem;
    height: 19rem;
    transform: translateY(-50%) rotate(45deg);
  }
}

@media screen and (min-width: 431px) and (max-width: 912px) {
  .cta-banner-wrapper {
    gap: 6.5rem;
  }
  .cta-banner__text {
    padding: 0rem 2rem;
  }
  .cta-banner__text h2 {
    font-size: 2.25rem;
  }
  .cta-banner__text p {
    font-size: 1rem;
  }
  .cta-banner__text .cta-btn {
    font-size: 0.85rem;
  }
}

@media screen and (min-width: 913px) and (max-width: 1024px){
  .cta-banner__text {
    padding: 0rem 7rem;
  }
}