.resources-section {
  padding-top: 140px;
  padding-bottom: 130px; /* larger outer padding (top/bottom and horizontal) */
  color: #111;
  background: #FFE7E7;
  box-sizing: border-box;
  overflow: hidden;
}
.resources__inner {
  display: grid;
  /* keep the text column width stable and reserve a fixed right column for the visual container */
  grid-template-columns: 1fr 560px;
  gap: 1rem; /* reduce gap so image is closer to text */
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem; /* move content closer to the right */
  box-sizing: border-box;
  position: relative; /* enable absolutely positioned image inside */
  overflow: visible;
}
.resources__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #3a144a;
  margin-bottom: 2.25rem;
}
.resources__title--accent {
  color: #11184F;
  font-family: 'Gotham', var(--font-system);
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
}
.resources__title--main {
  color: #702672;
  font-family: 'Gotham', var(--font-system);
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
}
.resources__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2.5rem; /* increased vertical spacing between rows */
  align-items: start;
  justify-items: start; /* align items to the left */
}
.resource-card {
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: 420px; /* reduce max width for better balance */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
   /* reduced gap between title and desc */
  padding-top: 6px;
}
.resource-card__icon {
  width: 38px;
  height: 38px;
  display: block;
  margin-bottom: .5rem;
  margin-top: 0;
}
.resource-card__title {
  color: #1E0013;
  font-family: 'Gotham', var(--font-system);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  margin: 0 0 .10rem 0; /* smaller spacing below title */
  padding-top: 10px;
  padding-bottom: 10px;
}
.resource-card__desc {
  color: #000;
  font-family: 'Gotham', var(--font-system);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0 0 .25rem 0;
  padding-bottom: 5px;
}
.resource-card .btn {
  padding: 0;
  font-size: .90rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 38px;
  min-width: 0;
  align-self: flex-start;
  border-radius: 0;
  box-sizing: border-box;
  justify-self: start;
}
.resources__right { display: flex; align-items: center; justify-content: flex-end; position: relative; overflow: visible; min-width: 560px; }
.resources__device {
  padding-top: 200px;
  position: absolute;
  right: -40px; /* allow image to visually overlap/approach text without affecting grid flow */
  width: 800px; /* visual size larger than column */
  max-width: none;
  height: auto;
  object-fit: contain;
  padding-left: 50px;
}

@media (min-width: 768px) {
  /* 2x2 grid — make rows equal height so cards align as a matrix */
  .resources__grid {
    grid-auto-rows: 1fr;
  }
  .resource-card { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
}

@media (max-width: 767px) {
  .resources__inner { grid-template-columns: 1fr; }
  .resources__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .resources__inner { grid-template-columns: 1fr; }
  .resources__right { order: 2; margin-top: 1rem; display: block; justify-content: center; }
  /* Center titles and resource cards on mobile */
  .resources__title, .resources__title--accent, .resources__title--main { text-align: center; margin-left: auto; margin-right: auto; }
  .resources__grid { justify-items: center; text-align: center; }
  .resource-card { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
  .resource-card .btn { align-self: center; justify-self: center; }
}

