/* ========================================= */
/* BENEFITS SECTION */
/* ========================================= */

.benefits-section {
  width: 100%;
  max-width: 1240px;

  margin: 100px auto;

  padding: 0 24px;

  text-align: center;

  position: relative;

  overflow: hidden;

  animation:
    fadeUp 0.9s ease;
}

/* glow */

.benefits-section::before {
  content: "";

  width: 520px;
  height: 520px;

  border-radius: 50%;

  background:
    radial-gradient(
      rgba(227,6,19,0.05),
      transparent 70%
    );

  position: absolute;

  top: -180px;
  left: -180px;

  z-index: -1;

  pointer-events: none;
}

/* ========================================= */
/* TITLE */
/* ========================================= */

.benefits-section h2 {
  font-size: 32px;
  font-weight: 700;

  color: #10264a;

  margin-bottom: 55px;

  position: relative;

  display: inline-block;

  letter-spacing: -0.5px;

  line-height: 1.2;

  animation:
    fadeUp 0.8s ease;
}

/* underline */

.benefits-section h2::after {
  content: "";

  width: 60px;
  height: 4px;

  background: #e30613;

  border-radius: 100px;

  position: absolute;

  left: 50%;
  bottom: -16px;

  transform: translateX(-50%);
}

/* ========================================= */
/* IMAGES */
/* ========================================= */

.benefit-images {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

  margin-bottom: 35px;

  animation:
    fadeUp 1s ease;
}

/* ========================================= */
/* IMAGE */
/* ========================================= */

.benefit-images img {
  width: 100%;

  height: 240px;

  object-fit: cover;

  cursor: pointer;

  opacity: 0.55;

  border-radius: 22px;

  display: block;

  box-shadow:
    0 14px 36px rgba(0,0,0,0.08);

  transform: scale(1);

  transition:
    transform 0.5s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

/* hover */

.benefit-images img:hover {
  opacity: 0.85;

  transform:
    translateY(-4px);

  box-shadow:
    0 22px 44px rgba(0,0,0,0.12);
}

/* active */

.benefit-images img.active {
  opacity: 1;

  transform:
    scale(1.02);

  box-shadow:
    0 28px 52px rgba(0,0,0,0.14);

  filter:
    brightness(1.03);
}

/* ========================================= */
/* CONTENT BOX */
/* ========================================= */

.benefit-content {
  width: 100%;

  background:
    rgba(255,255,255,0.78);

  backdrop-filter: blur(14px);

  padding: 50px;

  text-align: left;

  border-radius: 30px;

  box-shadow:
    0 18px 50px rgba(0,0,0,0.06);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;

  overflow-wrap: break-word;

  animation:
    fadeUp 1.2s ease;
}

/* hover */

.benefit-content:hover {
  transform:
    translateY(-5px);

  box-shadow:
    0 26px 60px rgba(0,0,0,0.10);
}

/* ========================================= */
/* CONTENT TITLE */
/* ========================================= */

.benefit-content h3 {
  font-size: 26px;

  color: #10264a;

  margin-bottom: 16px;

  line-height: 1.3;

  letter-spacing: -0.5px;
}

/* ========================================= */
/* TEXT */
/* ========================================= */

.benefit-content p {
  color: #555;

  line-height: 1.8;

  margin-bottom: 24px;

  font-size: 17px;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.benefit-content p:hover {
  color: #222;

  transform:
    translateX(2px);
}

/* ========================================= */
/* BUTTON */
/* ========================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 170px;
  min-height: 54px;

  padding: 14px 28px;

  border: none;

  background:
    linear-gradient(
      135deg,
      #10264a 0%,
      #0b1830 100%
    );

  color: #ffffff;

  cursor: pointer;

  border-radius: 100px;

  font-size: 15px;
  font-weight: 700;

  letter-spacing: 0.3px;

  text-align: center;

  box-shadow:
    0 12px 28px rgba(16,38,74,0.18);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  word-break: break-word;
}

/* hover */

.btn:hover {
  transform:
    translateY(-3px);

  box-shadow:
    0 18px 36px rgba(16,38,74,0.24);

  color: #ffffff;
}

/* ========================================= */
/* MODAL */
/* ========================================= */

.modal {
  display: none;

  position: fixed;

  inset: 0;

  background:
    rgba(0,0,0,0.68);

  backdrop-filter: blur(8px);

  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 9999;
}

/* show */

.modal.show {
  display: flex;
}

/* ========================================= */
/* MODAL BOX */
/* ========================================= */

.modal-box {
  background:
    rgba(255,255,255,0.95);

  backdrop-filter: blur(16px);

  width: 100%;
  max-width: 650px;

  max-height: 90vh;

  overflow-y: auto;

  padding: 40px;

  border-radius: 30px;

  position: relative;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.24);

  animation:
    modalFade 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================= */
/* CLOSE */
/* ========================================= */

.close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: bold;

  border-radius: 50%;

  cursor: pointer;

  color: #10264a;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

/* hover */

.close:hover {
  background:
    rgba(16,38,74,0.08);

  transform:
    rotate(90deg);
}

/* ========================================= */
/* MODAL TITLE */
/* ========================================= */

.modal-box h3 {
  font-size: 28px;

  color: #10264a;

  margin-bottom: 18px;

  line-height: 1.3;
}

/* ========================================= */
/* MODAL TEXT */
/* ========================================= */

.modal-box p {
  color: #555;

  line-height: 1.8;

  font-size: 17px;

  overflow-wrap: break-word;
}

/* ========================================= */
/* ANIMATIONS */
/* ========================================= */

@keyframes modalFade {

  from {
    transform:
      translateY(30px)
      scale(0.95);

    opacity: 0;
  }

  to {
    transform:
      translateY(0)
      scale(1);

    opacity: 1;
  }

}

@keyframes fadeUp {

  from {
    opacity: 0;

    transform:
      translateY(40px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}

/* ========================================= */
/* LARGE TABLET */
/* ========================================= */

@media (max-width: 992px) {

  .benefits-section {
    margin: 90px auto;
  }

  .benefit-images img {
    height: 220px;
  }

  .benefit-content {
    padding: 40px;
  }

}

/* ========================================= */
/* TABLET */
/* ========================================= */

@media (max-width: 768px) {

  .benefits-section {
    margin: 70px auto;

    padding: 0 20px;
  }

  .benefits-section h2 {
    font-size: 26px;

    margin-bottom: 42px;
  }

  /* fully responsive grid */

  .benefit-images {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .benefit-images img {
    height: auto;

    min-height: 180px;
    max-height: 260px;

    border-radius: 18px;
  }

  .benefit-content {
    padding: 28px;

    border-radius: 22px;
  }

  .benefit-content h3 {
    font-size: 24px;
  }

  .benefit-content p {
    font-size: 16px;

    line-height: 1.7;
  }

  .modal-box {
    padding: 28px 22px;

    border-radius: 22px;
  }

  .modal-box h3 {
    font-size: 22px;
  }

}

/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 480px) {

  .benefits-section {
    margin: 60px auto;

    padding: 0 16px;
  }

  .benefits-section h2 {
    font-size: 24px;

    line-height: 1.3;
  }

  .benefit-images {
    gap: 16px;
  }

  .benefit-images img {
    min-height: 160px;

    border-radius: 16px;
  }

  .benefit-content {
    padding: 22px;

    border-radius: 18px;
  }

  .benefit-content h3 {
    font-size: 21px;

    line-height: 1.4;
  }

  .benefit-content p {
    font-size: 15px;

    line-height: 1.7;
  }

  .btn {
    width: 100%;
  }

  .modal {
    padding: 14px;
  }

  .modal-box {
    padding: 24px 18px;

    border-radius: 18px;
  }

  .modal-box h3 {
    font-size: 20px;
  }

  .modal-box p {
    font-size: 15px;
  }

}