.custom-module-section {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at top, rgba(0, 91, 255, 0.22), transparent 28%),
    radial-gradient(
      circle at bottom left,
      rgba(0, 91, 255, 0.12),
      transparent 26%
    ),
    linear-gradient(135deg, #020b25 0%, #061d49 52%, #020b25 100%);
  color: #ffffff;
}

.custom-module-head {
  max-width: 1120px;
}

.custom-module-kicker {
  color: #ff7a00;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.custom-module-kicker span {
  width: 54px;
  height: 2px;
  display: block;
  background: currentColor;
}

.custom-module-head h2 {
  color: #ffffff;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.custom-module-head p {
  max-width: 960px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.45;
}

/* Flow */
.custom-module-flow {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.custom-module-requirement,
.custom-module-core,
.custom-module-card {
  border: 1px solid rgba(46, 139, 255, 0.75);
  background: rgba(5, 31, 80, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.custom-module-requirement {
  max-width: 680px;
}

.custom-module-core {
  max-width: 720px;
}

.custom-module-flow-icon,
.custom-module-drupal-icon {
  width: 92px;
  min-width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 46px;
  background: linear-gradient(135deg, #0d6efd, #004ed9);
}

.custom-module-drupal-icon {
  font-size: 54px;
}

.custom-module-requirement h3,
.custom-module-core h3 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.custom-module-requirement h3 {
  color: #53e4ff;
}

.custom-module-core h3 {
  color: #ffffff;
}

.custom-module-core h4 {
  margin: 0 0 8px;
  color: #53e4ff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.custom-module-requirement p,
.custom-module-core p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.45;
}

.custom-module-code {
  color: #167cff;
  font-size: 46px;
}

.custom-module-down {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-top: -2px;
  margin-bottom: -2px;
  border-radius: 50%;
  background: #0d6efd;
  color: #ffffff;
  font-size: 30px;
  position: relative;
  z-index: 2;
}

/* Branch Design */
.custom-module-branch-wrapper {
  position: relative;
  width: 100%;
  height: 78px;
  margin-top: -1px;
  margin-bottom: -46px;
  z-index: 2;
}

/* center vertical line from Custom Drupal Module box */
.custom-module-branch-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 38px;
  background: rgba(22, 119, 255, 0.9);
  transform: translateX(-50%);
}

/* center dot */
.custom-module-branch-wrapper::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #1677ff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px #061d49;
  z-index: 4;
}

/* horizontal branch line */
.custom-module-branch-line {
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(22, 119, 255, 0.9);
}

/* Cards */
.custom-module-grid {
  position: relative;
  z-index: 3;
}

.custom-module-grid > .custom-module-grid-branch {
  position: relative;
}

/* vertical line to first 4 cards */
.custom-module-grid > .custom-module-grid-branch::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: rgba(22, 119, 255, 0.9);
  transform: translateX(-50%);
  z-index: 1;
}

/* dot above first 4 cards */
.custom-module-grid > .custom-module-grid-branch::after {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #1677ff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px #061d49;
  z-index: 4;
}

.custom-module-card {
  position: relative;
  z-index: 2;
  min-height: 250px;
}

.custom-module-no {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #0d6efd, #004ed9);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.custom-module-card-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  font-size: 46px;
  background-color: transparent !important;
}

.custom-module-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.custom-module-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.38;
}

/* Icon Colors */
.custom-module-card-icon.icon-blue,
.icon-blue {
  color: #1687ff;
}

.custom-module-card-icon.icon-teal,
.custom-module-card-icon.icon-cyan,
.icon-teal,
.icon-cyan {
  color: #18d7e5;
}

.custom-module-card-icon.icon-purple,
.icon-purple {
  color: #b06cff;
}

.custom-module-card-icon.icon-yellow,
.icon-yellow {
  color: #ffc107;
}

.custom-module-card-icon.icon-green,
.icon-green {
  color: #5ed34f;
}

.custom-module-card-icon.icon-orange,
.icon-orange {
  color: #ff8a00;
}

/* CTA */
.custom-module-cta {
  background: #f4f9ff;
  color: #071333;
  border: 1px solid #cfe1fa;
}

.custom-module-cta-img {
  width: 340px;
  max-width: 100%;
}

.custom-module-cta-img img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}

.custom-module-cta-content {
  border-left: 1px dashed #9cc7ff;
}

.custom-module-cta h3 {
  margin: 0 0 10px;
  color: #071333;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.custom-module-cta p {
  max-width: 620px;
  margin: 0 0 20px;
  color: #071333;
  font-size: 18px;
  line-height: 1.45;
}

.custom-module-btn {
  min-height: 58px;
  padding: 0 28px;
  background: linear-gradient(135deg, #ff7a00, #ff4d00);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 90, 0, 0.25);
}

.custom-module-btn:hover {
  color: #ffffff;
}

/* CTA Points */
.custom-module-points {
  grid-template-columns: repeat(4, 1fr);
  padding-top: 20px;
  border-top: 1px solid #cfe1fa;
}

.custom-module-point {
  color: #071333;
  font-size: 16px;
  font-weight: 800;
  border-right: 1px solid #cfe1fa;
}

.custom-module-point i {
  color: #0d6efd;
  font-size: 26px;
}

/* =========================================================
   Custom Module Development Responsive
   ========================================================= */

@media (max-width: 1600px) {
  .custom-module-kicker {
    font-size: 14px;
  }

  .custom-module-head h2 {
    font-size: 32px;
  }

  .custom-module-head p {
    font-size: 15px;
  }

  .custom-module-requirement h3,
  .custom-module-core h3 {
    font-size: 22px;
  }

  .custom-module-core h4 {
    font-size: 15px;
  }

  .custom-module-requirement p,
  .custom-module-core p,
  .custom-module-card p,
  .custom-module-btn,
  .custom-module-point {
    font-size: 14px;
  }

  .custom-module-card h3,
  .custom-module-cta h3 {
    font-size: 22px;
  }

  .custom-module-cta p {
    font-size: 14px;
  }

  .custom-module-no {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .custom-module-flow-icon,
  .custom-module-drupal-icon {
    width: 78px;
    min-width: 78px;
    height: 78px;
    font-size: 38px;
  }

  .custom-module-drupal-icon {
    font-size: 44px;
  }

  .custom-module-card {
    min-height: 230px;
  }

  .custom-module-card-icon {
    width: 76px;
    height: 76px;
    font-size: 40px;
  }
}

@media (max-width: 1200px) {
  .custom-module-branch-wrapper,
  .custom-module-grid > .custom-module-grid-branch::before,
  .custom-module-grid > .custom-module-grid-branch::after {
    display: none;
  }

  .custom-module-grid {
    margin-top: 1.5rem !important;
  }
}

@media (max-width: 991px) {
  .custom-module-cta-img {
    margin: 0 auto;
  }

  .custom-module-cta-content {
    border-left: 0;
    padding-left: 0 !important;
    text-align: center;
  }

  .custom-module-cta p {
    margin-left: auto;
    margin-right: auto;
  }

  .custom-module-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .custom-module-point {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  .custom-module-kicker {
    font-size: 13px;
  }

  .custom-module-kicker span {
    width: 34px;
  }

  .custom-module-head h2 {
    font-size: 22px;
  }

  .custom-module-head p {
    font-size: 15px;
  }

  .custom-module-requirement,
  .custom-module-core {
    align-items: flex-start !important;
  }

  .custom-module-requirement h3,
  .custom-module-core h3 {
    font-size: 16px;
  }

  .custom-module-core h4 {
    font-size: 16px;
  }
  .custom-module-core p {
    font-size: 13px;
  }

  .custom-module-requirement p,
  .custom-module-core p,
  .custom-module-card p,
  .custom-module-cta p {
    font-size: 14px;
  }

  .custom-module-card h3,
  .custom-module-cta h3 {
    font-size: 18px;
  }

  .custom-module-flow-icon,
  .custom-module-drupal-icon {
    width: 68px;
    min-width: 68px;
    height: 68px;
    font-size: 34px;
  }

  .custom-module-drupal-icon {
    font-size: 38px;
  }

  .custom-module-card {
    min-height: auto;
  }

  .custom-module-card-icon {
    width: 72px;
    height: 72px;
    font-size: 38px;
  }

  .custom-module-btn,
  .custom-module-point {
    font-size: 14px;
  }

  .custom-module-btn {
    width: 100%;
    padding: 0 18px;
  }

  .custom-module-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .custom-module-requirement,
  .custom-module-core {
    flex-direction: column;
    text-align: center;
  }

  .custom-module-flow-icon,
  .custom-module-drupal-icon {
    margin: 0 auto;
  }

  .custom-module-no {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .custom-module-card-icon {
    width: 68px;
    height: 68px;
    font-size: 34px;
  }

  .custom-module-cta-img img {
    height: 150px;
  }
}

/* base styles */
h2 {
  font-size: 44px !important;
}

@media (max-width: 1599.98px) {
  h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 1399.98px) {
  h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 1199.98px) {
  h2 {
    font-size: 28px !important;
  }
}

@media (max-width: 991.98px) {
  h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 767.98px) {
  h2 {
    font-size: 22px !important;
  }
}

@media (max-width: 575.98px) {
  h2 {
    font-size: 21px !important;
  }
}

@media (max-width: 374.98px) {
  h2 {
    font-size: 20px !important;
  }
}
