/* ============ RizeUp Global — Resources page ============ */

/* ---------- Hero with email capture ---------- */
.res-hero { background: var(--indigo); color: #ffffff; position: relative; overflow: hidden; }
.res-hero::before {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%; background: #6C4AC9; opacity: .55;
}
.res-hero::after {
  content: ""; position: absolute; bottom: -90px; left: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: #4A3DD1; opacity: .5;
}
.res-hero__inner {
  max-width: 760px; margin: 0 auto; padding: 40px 32px 72px;
  text-align: center; position: relative; z-index: 1;
}
.res-hero__back {
  display: inline-block; margin-bottom: 24px;
  font-size: 14px; font-weight: 700; color: #ffffff; opacity: .9;
}
.res-hero__back:hover { color: var(--yellow); opacity: 1; }
.res-hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.14); color: #ffffff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 16px; margin-bottom: 18px;
}
.res-hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 46px;
  color: #ffffff; margin: 0 0 16px; line-height: 1.1;
}
.res-hero h1 em { font-style: normal; color: var(--yellow); }
.res-hero__lede {
  color: #CBC6F6; font-size: 16.5px; line-height: 1.65;
  max-width: 560px; margin: 0 auto 30px; text-wrap: pretty;
}

.res-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  background: #ffffff; padding: 8px; border-radius: 999px;
  box-shadow: 0 16px 40px rgba(23, 16, 64, .25);
}
.res-form input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 12px 18px; font-size: 15px; font-family: 'DM Sans', sans-serif; color: var(--ink);
}
.res-form button {
  flex: none; border: none; cursor: pointer;
  background: var(--indigo); color: #ffffff;
  border-radius: 999px; padding: 12px 24px;
  font-size: 15px; font-weight: 700; font-family: 'DM Sans', sans-serif;
}
.res-form button:hover { background: var(--indigo-dark); }
.res-form button:disabled { opacity: .7; cursor: default; }
.res-hero__status { min-height: 1.2em; margin: 14px 0 0; font-size: 14px; color: #FFE9A8; }
.res-hero__status.ok { color: #B9F5D2; }
.res-hero__fineprint { margin: 12px 0 0; font-size: 12.5px; color: #A9A3E8; }

/* ---------- Resource / article cards ---------- */
.res-section { max-width: 1200px; margin: 0 auto; padding: 72px 32px 40px; }
.res-section__head { text-align: center; margin-bottom: 44px; }
.res-section__head h2 { font-weight: 800; font-size: 34px; margin: 0 0 12px; }
.res-section__head h2 em { font-style: normal; color: var(--indigo); }
.res-section__head p { color: var(--muted); font-size: 15.5px; max-width: 560px; margin: 0 auto; line-height: 1.6; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card {
  display: flex; flex-direction: column;
  border: 1px solid #EFEDF6; border-radius: 18px; background: #ffffff;
  padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.res-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23,16,64,.08); border-color: #DAD5F5; }
.res-card__icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.res-card__tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}
.res-card__title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.res-card__desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; flex: 1; }
.res-card__btn {
  align-self: flex-start; background: none; border: none; cursor: pointer;
  color: var(--indigo); font-size: 14.5px; font-weight: 700;
  font-family: 'DM Sans', sans-serif; padding: 0;
}
.res-card__btn:hover { color: var(--indigo-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px)  { .res-hero h1 { font-size: 36px; } .res-section__head h2 { font-size: 28px; } }
@media (max-width: 620px) {
  .res-grid { grid-template-columns: 1fr; }
  .res-hero__inner, .res-section { padding-left: 20px; padding-right: 20px; }
  .res-hero h1 { font-size: 30px; }
  .res-form { flex-direction: column; border-radius: 20px; background: transparent; box-shadow: none; padding: 0; gap: 10px; }
  .res-form input { background: #ffffff; border-radius: 999px; padding: 15px 20px; }
  .res-form button { border-radius: 999px; padding: 15px; background: var(--yellow); color: var(--ink); }
  .res-form button:hover { background: var(--yellow-dark); }
}
