body {
  background: #dee8fd;
}

.select-page {
  position: relative;
  width: 100%;
  aspect-ratio: 1728 / 1024;
  max-height: 100vh;
  min-height: auto;
  background-image: url("../images/index-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  * {
    box-sizing: border-box;
  }
}

/* Top linear gradient overlay: 180deg, #FFFFFF to rgba(255, 255, 255, 0) */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 396px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Top Header & Main Logo (always at top of select-page) */
.page-header {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10vh;
}

.main-logo {
  height: auto;
  margin-bottom: 16px;
  display: block;
}

/* Page Title */
.page-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #011f59;
  text-align: center;
  margin: 0;
  letter-spacing: -0.2px;
}

/* Main Content Container (pinned to bottom of select-page) */
.page-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1728px;
  padding: 0 80px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Services Cards Section */
.services-cards {
  width: 100%;
  max-width: 1568px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

/* Individual Service Card */
.service-card {
  flex: 1 1 0;
  max-width: 774px;
  min-height: 513px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 60px 49px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(1, 48, 140, 0.06);
}

/* Card Header & Logo */
.card-header {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-logo {
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Card Body Content */
.card-body {
  margin: 70px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f1f1f;
  margin: 0;
}

.card-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: #1f1f1f;
  margin: 0;
}

/* Explore CTA Button */
.card-action {
  width: 100%;
}

.explore-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;
  background-color: #01308c;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08px;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.explore-btn:hover {
  background-color: #01246b;
  box-shadow: 0 6px 18px rgba(1, 48, 140, 0.28);
}

.explore-btn:active {
  transform: scale(0.99);
}

footer {
  background: #dee8fd;

  .logo {
    img {
      width: 275px;
    }
  }
}

/* Responsive Breakpoints */

/* Scale cards proportionally between mobile screen and 1400px */
@media screen and (max-width: 1400px) {
  .page-container {
    padding: 20px 24px 40px;
  }

  .services-cards {
    gap: clamp(12px, 1.5vw, 20px);
  }

  .service-card {
    padding: clamp(24px, 3.5vw, 48px) clamp(20px, 2.8vw, 36px);
    min-height: auto;
    border-radius: clamp(16px, 2vw, 24px);
  }

  .card-header {
    height: clamp(45px, 5vw, 65px);
  }

  .card-logo {
    max-height: clamp(45px, 5vw, 65px);
    max-width: 100%;
  }

  .card-body {
    margin: clamp(16px, 2.5vw, 32px) 0 clamp(20px, 2.8vw, 36px);
    gap: clamp(8px, 1vw, 14px);
  }

  .card-title {
    font-size: clamp(16px, 1.6vw, 22px);
  }

  .card-desc {
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.4;
  }

  .explore-btn {
    height: clamp(48px, 5vw, 68px);
    font-size: clamp(13px, 1.1vw, 16px);
  }
}

/* Mobile Devices under 768px - switch to vertical stacked mobile mode */
@media screen and (max-width: 768px) {
  .select-page {
    aspect-ratio: auto;
    max-height: none;
    min-height: auto;
  }

  .page-container {
    padding: 44px 16px 40px;
  }

  .services-cards {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .service-card {
    flex: none;
    width: 100%;
    max-width: 480px;
    padding: 32px 20px;
    border-radius: 20px;
  }

  .gradient-overlay {
    height: 320px;
  }

  .page-header {
    padding-top: 50px;
  }

  .main-logo {
    width: 200px;
    margin-bottom: 44px;
  }

  .page-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
  }

  .card-header {
    height: 55px;
  }

  .card-logo {
    max-height: 55px;
    max-width: 220px;
  }

  .card-body {
    margin: 20px 0 28px;
    gap: 10px;
  }

  .card-title {
    font-size: 19px;
  }

  .card-desc {
    font-size: 15px;
    line-height: 1.4;
  }

  .explore-btn {
    height: 60px;
    font-size: 15px;
  }
}
