
.ione-port,
.ione-port *,
.ione-port *::before,
.ione-port *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ione-port {
  --ion-navy-950: #0f1e2e;
  --ion-navy-800: #182d43;
  --ion-amber-700: #7a4014;
  --ion-amber-500: #e6a23c;
  --ion-amber-300: #f4c77a;
  --ion-white: #ffffff;
  --ion-sun-cream: #fbefdd;
  --ion-cream: #faf6ef;
  --ion-warm-panel: #f3ece0;
  --ion-text-body: #2c3540;
  --ion-text-muted: #66707c;
  --ion-border: rgba(24,45,67,0.12);
  --ion-sage-700: #3e5147;
  --ion-sky-500: #9fb6c9;
  --ip-radius: 24px;
  --ip-font: "Barlow Semi Condensed", "Prompt", sans-serif;

  position: relative;
  overflow: hidden;
  padding: 72px 24px 78px;
  font-family: var(--ip-font);
  color: var(--ion-text-body);
  background:
    linear-gradient(180deg, var(--ion-warm-panel) 0, transparent 96px),
    radial-gradient(circle at 88% 12%, rgba(230,162,60,0.18) 0%, rgba(230,162,60,0) 32%),
    linear-gradient(180deg, var(--ion-cream) 0%, var(--ion-warm-panel) 100%);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.ione-port__inner {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
}

.ione-port__header {
  text-align: center;
  margin-bottom: 46px;
}

.ione-port__h2 {
  display: inline-block;
  max-width: 100%;
  font-family: var(--ip-font);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  color: var(--ion-navy-800);
  line-height: 1.35;
  letter-spacing: -0.025em;
  white-space: normal;
}

.ione-port__rule {
  width: 92px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ion-amber-500), var(--ion-amber-300), transparent);
  box-shadow: 0 0 16px rgba(230,162,60,0.18);
}

/* Desktop Premium Bento Layout */
.ione-port__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 265px 265px 250px;
  grid-template-areas:
    "feature feature small-a small-b"
    "feature feature wide wide"
    "card5 card6 card7 card8";
  gap: 18px;
  margin-bottom: 44px;
}

.ione-port__card:nth-child(1) { grid-area: feature; }
.ione-port__card:nth-child(2) { grid-area: small-a; }
.ione-port__card:nth-child(3) { grid-area: small-b; }
.ione-port__card:nth-child(4) { grid-area: wide; }
.ione-port__card:nth-child(5) { grid-area: card5; }
.ione-port__card:nth-child(6) { grid-area: card6; }
.ione-port__card:nth-child(7) { grid-area: card7; }
.ione-port__card:nth-child(8) { grid-area: card8; }

.ione-port__card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 240px;
  border-radius: var(--ip-radius);
  border: 1px solid var(--ion-border);
  background: var(--ion-white);
  box-shadow:
    0 14px 34px rgba(15,30,46,0.10),
    inset 0 1px 0 rgba(255,255,255,0.70);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}

.ione-port__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  z-index: 3;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ion-amber-500), transparent);
  pointer-events: none;
}

.ione-port__card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.ione-port__card--feature img {
  object-position: center center;
}

.ione-port__card--wide img {
  object-position: center 42%;
}

.ione-port__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(15,30,46,0.97) 0%,
      rgba(15,30,46,0.74) 35%,
      rgba(15,30,46,0.22) 68%,
      rgba(15,30,46,0.04) 100%
    );
  transition: background 0.25s ease;
}

.ione-port__card--feature .ione-port__overlay {
  background:
    linear-gradient(
      to top,
      rgba(15,30,46,0.98) 0%,
      rgba(15,30,46,0.72) 34%,
      rgba(15,30,46,0.16) 70%,
      rgba(15,30,46,0.02) 100%
    );
}

.ione-port__card:hover img {
  transform: scale(1.055);
}

.ione-port__card:hover .ione-port__overlay {
  background:
    linear-gradient(
      to top,
      rgba(15,30,46,0.99) 0%,
      rgba(15,30,46,0.76) 38%,
      rgba(230,162,60,0.12) 100%
    );
}

.ione-port__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--ip-font);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ion-white);
  background: var(--ion-sage-700);
  border: 1px solid var(--ion-sage-700);
  box-shadow: 0 8px 20px rgba(15,30,46,0.18);
}

.ione-port__badge--blue {
  background: var(--ion-sky-500);
  border-color: var(--ion-sky-500);

  color: var(--ion-navy-950);}

.ione-port__badge--cyan {
  background: var(--ion-amber-500);
  border-color: var(--ion-amber-500);

  color: var(--ion-navy-950);}

.ione-port__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: block;
  padding: 22px;
}

.ione-port__card--feature .ione-port__content {
  padding: 28px;
}

.ione-port__title {
  display: block;
  font-family: var(--ip-font);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 700;
  color: var(--ion-white);
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.ione-port__card--feature .ione-port__title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.ione-port__card--wide .ione-port__title {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
}

.ione-port__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-family: var(--ip-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ion-amber-300);
  opacity: 0.95;
}

.ione-port__footer {
  text-align: center;
}

.ione-port__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 42px;
  border-radius: 999px;
  font-family: var(--ip-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ion-navy-950);
  text-decoration: none;
  background: var(--ion-amber-500);
  border: 1px solid var(--ion-amber-700);
  box-shadow:
    0 12px 28px rgba(122,64,20,0.18),
    inset 0 1px 0 rgba(255,255,255,0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ione-port__btn:hover,
.ione-port__btn:focus {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(122,64,20,0.24),
    inset 0 1px 0 rgba(255,255,255,0.42);
}

@media (max-width: 1024px) {
  .ione-port {
    padding: 66px 22px 74px;
  }

  .ione-port__h2 {
    white-space: normal;
  }

  .ione-port__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 16px;
  }

  .ione-port__card,
  .ione-port__card:nth-child(1),
  .ione-port__card:nth-child(2),
  .ione-port__card:nth-child(3),
  .ione-port__card:nth-child(4),
  .ione-port__card:nth-child(5),
  .ione-port__card:nth-child(6),
  .ione-port__card:nth-child(7),
  .ione-port__card:nth-child(8) {
    grid-area: auto;
    min-height: 280px;
  }

  .ione-port__card--feature .ione-port__content {
    padding: 22px;
  }

  .ione-port__card--feature .ione-port__title,
  .ione-port__card--wide .ione-port__title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }
}

@media (max-width: 640px) {
  .ione-port {
    padding: 56px 18px 62px;
  }

  .ione-port__header {
    margin-bottom: 36px;
  }

  .ione-port__h2 {
    font-size: clamp(1.5rem, 7vw, 1.95rem);
    line-height: 1.4;
  }

  .ione-port__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
  }

  .ione-port__card,
  .ione-port__card:nth-child(1),
  .ione-port__card:nth-child(2),
  .ione-port__card:nth-child(3),
  .ione-port__card:nth-child(4),
  .ione-port__card:nth-child(5),
  .ione-port__card:nth-child(6),
  .ione-port__card:nth-child(7),
  .ione-port__card:nth-child(8) {
    min-height: 245px;
    border-radius: 20px;
  }

  .ione-port__content {
    padding: 20px;
  }

  .ione-port__btn {
    width: 100%;
    padding: 14px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ione-port__card img,
  .ione-port__overlay,
  .ione-port__btn {
    transition: none;
  }

  .ione-port__card:hover img,
  .ione-port__btn:hover,
  .ione-port__btn:focus {
    transform: none;
  }
}
