.paragraph--type--diagonal-cta {
  position: relative;
  z-index: 0;
  background-color: #232D4B;
  color: #fff;
  padding: 4.6875em 1.875em !important;
  overflow: hidden;
}

.paragraph--type--diagonal-cta .container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Hide link text but preserve graphic */
.paragraph--type--diagonal-cta .field-field_cta a {
  font-size: 0;
  line-height: 0;
  color: transparent;
  display: inline-block;
  width: 70px;
  height: 50px;
  background-image: url('/sites/astronomy.as.virginia.edu/files/2025-07/triple-chevron-orange.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.6s ease, transform 0.3s ease;
}

/* Hover state */
.paragraph--type--diagonal-cta .field-field_cta a:hover {
  background-image: url('/sites/astronomy.as.virginia.edu/files/2025-07/triple-chevron-white.png');
  transform: scale(1.15);
}

/* Responsive layout */
.diagonal-cta-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.diagonal-cta-text {
  flex: 1 1 60%;
  text-align: left;
}

/* Headline + body */
.paragraph--type--diagonal-cta .field-field_headline {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.paragraph--type--diagonal-cta .field-field_intro {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Diagonal dots background */
.paragraph--type--diagonal-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('/sites/astronomy.as.virginia.edu/files/2025-07/diagonal-cta-background.png');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

/* Decorative white skewed blocks */
.design-element {
  transform: skew(-20deg);
  background-color: #fff;
  height: 30px;
  position: absolute;
  z-index: 5;
}

.element-1 {
  right: 10px;
  top: 0px;
  width: 150px;
}

.element-2 {
  bottom:0;
  left: 50px;
  width: 50px;
}

.element-3 {
  bottom: 0;
  left: 200px;
  width: 100px;
}

/* Responsive behavior */
@media screen and (max-width: 768px) {
  .diagonal-cta-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .diagonal-cta-text {
    flex: 1 1 100%;
    text-align: left;
  }

  .field-field_cta {
    margin-left: auto;
    align-self: flex-end;
  }

  .design-element {
    display: none;
  }
}
