
.az-maroonstructure-section {
  width: 100%;
  padding: 30px 20px;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.az-maroonstructure-section *,
.az-maroonstructure-section *::before,
.az-maroonstructure-section *::after {
  box-sizing: border-box;
}

.az-maroonstructure-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.az-maroonstructure-heading {
  max-width: 900px;
  margin: 0 auto 43px;
  text-align: center;
}

.az-maroonstructure-heading > span {
  display: inline-block;
  margin-bottom: 12px;
  color: #162a9f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
}

.az-maroonstructure-heading h2 {
  margin: 0 0 15px;
  color: #0d164e;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.az-maroonstructure-heading p {
  margin: 0;
  color: #5b6684;
  font-size: 16px;
  line-height: 1.75;
}

.az-maroonstructure-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.az-maroonstructure-card {
  --layer-color: #4d6dff;

  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  min-height: 190px;
  padding: 27px 24px 25px 29px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(22, 42, 159, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(13, 22, 78, 0.08);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.az-maroonstructure-card:nth-child(1),
.az-maroonstructure-card:nth-child(2),
.az-maroonstructure-card:nth-child(3) {
  grid-column: span 2;
}

.az-maroonstructure-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.az-maroonstructure-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.az-maroonstructure-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--layer-color);
}

.az-maroonstructure-card::after {
  content: "";
  position: absolute;
  top: -65px;
  right: -65px;
  width: 155px;
  height: 155px;
  background: var(--layer-color);
  border-radius: 50%;
  opacity: 0.06;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.az-maroonstructure-card:hover {
  border-color: rgba(22, 42, 159, 0.32);
  box-shadow: 0 22px 45px rgba(13, 22, 78, 0.14);
  transform: translateY(-6px);
}

.az-maroonstructure-card:hover::after {
  opacity: 0.13;
  transform: scale(1.18);
}

.az-maroonstructure-card.layer-one {
  --layer-color: #3275e5;
}

.az-maroonstructure-card.layer-two {
  --layer-color: #d29325;
}

.az-maroonstructure-card.layer-three {
  --layer-color: #7452d4;
}

.az-maroonstructure-card.layer-four {
  --layer-color: #18a9cb;
}

.az-maroonstructure-card.layer-five {
  --layer-color: #18a66d;
}

.az-maroonstructure-number {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, #4d6dff, #162a9f);
  border-radius: 14px;
  box-shadow: 0 9px 19px rgba(22, 42, 159, 0.22);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transition:
    border-radius 0.3s ease,
    transform 0.3s ease;
}

.az-maroonstructure-card:hover .az-maroonstructure-number {
  border-radius: 50%;
  transform: rotate(-7deg) scale(1.07);
}

.az-maroonstructure-card > div {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.az-maroonstructure-card h3 {
  margin: 2px 0 10px;
  color: #0d164e;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.az-maroonstructure-card p {
  margin: 0;
  color: #5b6684;
  font-size: 14px;
  line-height: 1.7;
}

.az-maroonstructure-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
  padding: 24px 26px;
  color: #fff;
  background:
    radial-gradient(
      circle at top right,
      rgba(77, 109, 255, 0.62),
      transparent 35%
    ),
    linear-gradient(135deg, #0d164e, #162a9f);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(13, 22, 78, 0.18);
}

.az-maroonstructure-notice > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 42px;
  color: #162a9f;
  background: #fff;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.az-maroonstructure-notice strong {
  display: block;
  margin: 2px 0 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.az-maroonstructure-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .az-maroonstructure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .az-maroonstructure-card:nth-child(n) {
    grid-column: auto;
  }

  .az-maroonstructure-card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .az-maroonstructure-section {
    padding: 40px 16px;
  }

  .az-maroonstructure-heading {
    margin-bottom: 31px;
  }

  .az-maroonstructure-heading h2 {
    font-size: 29px;
  }

  .az-maroonstructure-heading p {
    font-size: 15px;
  }

  .az-maroonstructure-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .az-maroonstructure-card:nth-child(n) {
    grid-column: auto;
  }

  .az-maroonstructure-card {
    min-height: 0;
    gap: 14px;
    padding: 23px 19px 23px 24px;
    border-radius: 17px;
  }

  .az-maroonstructure-card:hover {
    transform: none;
  }

  .az-maroonstructure-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .az-maroonstructure-card h3 {
    font-size: 16px;
  }

  .az-maroonstructure-card p {
    font-size: 13.5px;
  }

  .az-maroonstructure-notice {
    padding: 20px 17px;
  }

  .az-maroonstructure-notice p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .az-maroonstructure-card,
  .az-maroonstructure-card::after,
  .az-maroonstructure-number {
    transition: none;
  }
}
