/**
 * @file
 * Block Styles
 */
/* ===== BASIC BLOCK TYPE STYLES ===== */
.block-content-basic {
  position: relative;
  z-index: 5;
}

.block-content-basic .field--name-body {
  padding: 1rem;
}

.block-content-basic.no-padding .field--name-body {
  padding: 0;
}

.block-content-basic .field--name-body h2 {
  font-size: 2rem;
  margin: 0;
}

.block-content-basic .field--name-body h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #000000;
  margin: 0;
}

.block-content-basic .field--name-body p:last-child {
  margin: 0;
}

.block-content-basic .field--name-body p,
.block-content-basic .field--name-body ul li,
.block-content-basic .field--name-body ol li {
  font-size: 15px;
}

.block-content-basic .field--name-body ul,
.block-content-basic .field--name-body ol {
  padding: 0.5rem 0 0.5rem 1rem;
}

/* Ensure embedded iframes (e.g., videos) are responsive */
.block-content-basic iframe,
.block-content-basic iframe p {
  width: 100%;
  margin: 0;
}

.block-views {
  position: relative;
}

/* ===== CALL-TO-ACTION BANNER BLOCK TYPE STYLES ===== */
.block-content-call_to_action_banner_block {
  position: relative;
  z-index: 5;
}

/* Add Margin Bottom */
.margin-botton.block-content-call_to_action_banner_block {
  margin: 0 0 2rem 0;
}

.cta-banner-wrapper {
  position: relative;
  z-index: 1;
  margin: 0;
}

.cta-banner-image {
  position: relative;
  z-index: 1;
}

.cta-banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 40vw;
  padding: 2rem 3rem;
}

@media only screen and (max-width: 768px) {
  .cta-banner-content {
    width: 60vw;
  }
}

@media only screen and (max-width: 600px) {
  .cta-banner-content {
    width: 70vw;
    padding: 2rem;
  }
}

.cta-banner-content h2 {
  color: #fff;
  font-size: 4vw;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

@media only screen and (max-width: 768px) {
  .cta-banner-content h2 {
    font-size: 5.5vw;
    margin-bottom: 0.5rem;
  }
}

.cta-banner-content p {
  font-family: "Lora", "Times New Roman", Times, serif;
  color: #fff;
  font-size: 1.25vw;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

@media only screen and (max-width: 768px) {
  .cta-banner-content p {
    font-size: 1.75vw;
    margin-bottom: 1rem;
  }
}

@media only screen and (max-width: 600px) {
  .cta-banner-content .cta-banner-desc {
    display: none;
  }
}

/* ===== GREEN BAR STYLES ===== */
.green-stats-bar {
  position: relative;
  z-index: 10;
  background: #67921f;
  background: linear-gradient(
    270deg,
    rgba(103, 146, 31, 1) 0%,
    rgba(24, 63, 2, 1) 100%
  );
  border-top: 1px solid #183f02;
  border-bottom: 1px solid #183f02;
}

.green-stats-bar .field ul {
  display: flex;
  padding: 0;
}

@media only screen and (max-width: 768px) {
  .green-stats-bar .field ul {
    display: block;
  }
}

.green-stats-bar .field ul li {
  font-family: "Lora", "Times New Roman", Times, serif;
  position: relative;
  width: 25%;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  padding: 0;
  margin: 1.5rem;
  list-style: none;
  background: none;
  border-right: 1px solid #90970b;
}

@media only screen and (max-width: 768px) {
  .green-stats-bar .field ul li {
    width: auto;
    border-right: none;
    margin: 0 3rem;
    padding: 1rem;
    border-bottom: 1px solid #90970b;
  }
}

.green-stats-bar .field ul li:last-child {
  border-right: none;
}

@media only screen and (max-width: 768px) {
  .green-stats-bar .field ul li:last-child {
    border-bottom: none;
    padding: 1rem 1rem 0 1rem;
  }
}

.green-stats-bar .field ul li strong {
  display: block;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #e0eb22;
}

/* ===== SOCIAL SHARE BLOCK BUTTON STYLES ===== */
.social-share-container {
  padding: 1rem 0;
  background-color: #dedede;
  background-image: url(../../images/bg-green-grass.png);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: contain;
}

.social-share-container .social-sharing-buttons {
  align-items: flex-start;
  justify-content: normal;
  margin: 0 0 0 -1rem;
}

.social-share-container .social-sharing-buttons svg use {
  fill: #093000;
}

/* Twitter/X button default is a bit too large */
.social-share-container .social-sharing-buttons .share-x svg {
  width: 35px;
  height: 50px;
}

.social-share-container .social-sharing-buttons .share-email svg {
  position: relative;
  border-radius: 3px;
  left: -5px;
  top: 3px;
}

/* ===== VIDEO BLOCK (RIGHT COLUMN) STYLES ===== */
.block-content-video_block {
  position: relative;
}

.block-content-video_block .field--name-field-video-embed-code p {
  margin: 0;
}

.block-content-video_block iframe,
.block-content-video_block video {
  display: block;
  width: 100%;
  height: auto;
}

.block-content-video_block iframe {
  aspect-ratio: 16 / 9;
}

.block-content-video_block .field--name-field-video-description {
  padding: 1rem;
}

.block-content-video_block .field--name-field-video-description p {
  margin: 0;
}

.below-content-blocks .block-views {
  background-color: #dedede;
}

.page-node-type-project
  .below-content-blocks
  .block-views-blockprojects-block-2 {
  padding: 0 0 6rem 0;
  background-color: transparent;
  background-image: url("../../images/bg-green-grass.png");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: contain;
}
