/* =========================================================
   Font
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy.css');

/* =========================================================
   Base
   ========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #eef3f6;
  color: #002c5d;
  font-family: 'Paperlogy', sans-serif;
}

.page {
  position: relative;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 42px 74px 18px;
}

.wave {
  position: absolute;
  z-index: 0;
  top: -140px;
  left: -8%;
  width: 82%;
  height: 330px;
  border-radius: 50%;
  opacity: 0.9;
  transform: rotate(-6deg);
  background: repeating-radial-gradient(
    ellipse at 55% 80%,
    transparent 0 7px,
    rgba(50, 176, 230, 0.16) 8px 9px
  );
}

.slogan {
  position: relative;
  z-index: 2;
  width: 250px;
  height: auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  align-items: end;
  gap: 28px;
  margin-top: 26px;
}

.title-img {
  display: block;
  width: min(780px, 100%);
  height: auto;
}

.intro {
  margin: 20px 8px 32px;
  color: #073c78;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.45;
}

.notice {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(790px, 100%);
  min-height: 112px;
  padding: 18px 30px;
  border-radius: 26px;
  background: #e9f8ff;
  color: #073c78;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.45;
}

.megaphone {
  font-size: 52px;
}

.mascot {
  width: 100%;
  max-width: 470px;
  align-self: center;
  justify-self: end;
}

/* =========================================================
   Application Cards
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 0 58px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 550px;
  padding: 30px 20px 24px;
  border: 2px solid #7bd4fa;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 103, 174, 0.14);
  text-align: center;
}

.card-icon {
  display: block;
  width: 205px;
  height: 180px;
  margin-bottom: 10px;
  object-fit: contain;
}

.card h2 {
  margin: 8px 0 18px;
  color: #002c5d;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
}

.card-divider {
  width: 44px;
  margin-bottom: 18px;
  border-top: 2px solid #a9c9e0;
}

.card p {
  min-height: 100px;
  margin: 0;
  color: #666666;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 600;
}

.apply-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 20px 48px 20px 15px;
  border-radius: 999px;
  background: #38b295;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.apply-button strong {
  position: absolute;
  right: 22px;
  top: 50%;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-54%);
}

.apply-button:hover {
  opacity: 0.9;
}

.apply-button:focus-visible {
  outline: 3px solid #002c5d;
  outline-offset: 3px;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  margin: 30px 0 0;
  color: #063f83;
  font-size: 25px;
  text-align: center;
  font-weight: 700;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-right: 10px;
  border-radius: 50%;
  background: #e6f7ff;
  color: #08a8e7;
}

.contact b {
  font-weight: 800;
}

/* =========================================================
   Shops / Footer
   ========================================================= */
.shops {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 160px;
  margin-top: 0;
  overflow: hidden;
}

.shops img {
  width: 76%;
  height: auto;
  transform: translateY(34%);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 22px 55px;
  background: #08a8e7;
}

footer img {
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 800px) {
  .page {
    width: 100%;
  }

  .hero {
    padding: 24px 20px 12px;
  }

  .slogan {
    width: 160px;
  }

  .wave {
    top: -100px;
    width: 130%;
    height: 220px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .hero-copy {
    display: contents;
  }

  .title-img {
    order: 1;
    width: 88%;
  }

  .intro {
    order: 2;
    margin: 10px 2px 0;
    font-size: 17px;
  }

  .mascot {
    order: 3;
    width: 62%;
    max-width: 330px;
    margin-top: -8px;
    justify-self: center;
  }

  .notice {
    order: 4;
    min-height: 76px;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 16px;
  }

  .megaphone {
    font-size: 32px;
  }

  .desktop {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 20px;
  }

  .card {
    min-height: 0;
    padding: 22px 18px;
  }

  .card-icon {
    width: 150px;
    height: 150px;
  }

  .card h2 {
    font-size: 23px;
  }

  .card p {
    min-height: auto;
    margin-bottom: 22px;
    font-size: 17px;
  }

  .apply-button {
    padding: 16px 44px 16px 15px;
    font-size: 20px;
  }

  .contact {
    margin: 20px 10px;
    font-size: 15px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  .shops {
    height: 100px;
  }

  .shops img {
    width: 120%;
    max-width: none;
  }

  footer {
    height: 76px;
    padding: 18px 20px;
  }
}
