.pyramid-section {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  overflow: visible;
  background-size: cover; 
  background-position: top center;
  background-repeat: no-repeat;
}

.pyramid-section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px; 
    background: linear-gradient(
        to top,
        #161E69 0%,        
        rgba(22, 30, 105, 0.95) 20%,  
        rgba(22, 30, 105, 0.6) 50%,   
        rgba(22, 30, 105, 0.3) 75%,  
        transparent 100%             
    );
    pointer-events: none;
    z-index: 2;
}

.pyramid-bg-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.pyramid-row {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.pyramid-item {
  background: rgb(113 0 85 / 60%);
  border: 1px solid #F20FEF;
  border-radius: 12px;
  padding: 15px 10px;
  width: 450px;
  max-width: 100%;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.3);
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease;
  z-index: 3;
}

.pyramid-item:hover {
  transform: translateY(-10px);
}

.pyramid-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #fff;
}

.pyramid-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
}
.pyramid-description a {
  color: white;
  text-decoration: underline;
}

/* 🔹 Large screens (Desktop pyramid shape) */
@media (min-width: 1025px) {
  .pyramid-container {
    flex-direction: column;
    align-items: center;
  }

  .pyramid-row {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .pyramid-item {
    width: 450px;
  }
}

/* 🔹 Tablet and below: 2 items per row */
@media (max-width: 1024px) {
  .pyramid-section {
    background-size: 245% !important;
    background-repeat: no-repeat;
    background-position: top center;
  }
   .pyramid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px !important;
    justify-items: center;
    align-items: normal;
  }

  .pyramid-row {
    display: contents !important;
  }

  .pyramid-item {
    width: 100% !important;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .pyramid-section {
    background-size: 245% !important;
    background-repeat: no-repeat;
    background-position: top center;
  }

  .pyramid-item {
    flex: 0 0 calc(50% - 10px);
    padding: 12px 8px;
  }

  .pyramid-title {
    font-size: 1rem;
  }

  .pyramid-description {
    font-size: 0.9rem;
  }
  .wp-block-acf-header-banner .banner-content p:nth-child(1) {
    width: 100%;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .pyramid-item {
    width: 350px;
  }
  .pyramid-row {
    gap: 40px;
  }
}

@media (min-width: 1024px) and (max-width: 1199.99px) {
  .pyramid-row {
    gap: 40px;
  }
  .pyramid-item {
    width: 294px;
  }
}
