/* ==============================================
   RESOURCE CARD GRID MODULE
   3-column grid of content/resource cards
   Dark navy gradient background
   ============================================== */

.rcg-section {
  padding: 64px 94px;
  background: radial-gradient(97.45% 383.37% at 100% 95.96%, #F15B55 0%, #065388 34.29%, #082858 100%);
}

/* ==============================================
   GRID
   ============================================== */
.rcg-inner {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  gap: 40px 56px;
  align-items: start;
}


/* ==============================================
   CARD
   ============================================== */
.rcg-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items:center;
}

/* ==============================================
   TYPE LABEL
   ============================================== */
.rcg-type-label {
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* ==============================================
   TITLE
   ============================================== */
.rcg-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  text-decoration: none;
  display: block;
}

a.rcg-title {
  color: #5ba4f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s;
}

a.rcg-title:hover {
  color: #90c2ff;
}

.rcg-title--no-link {
  color: #fff;
}

/* ==============================================
   CTA PILL BUTTON
   ============================================== */
.rcg-card .btns a,
.rcg-card .btns button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 100px;
  padding: 10px 26px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  width: fit-content;
  min-width: 300px
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);

  font-size: 16px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.rcg-card a:hover {
  background: #f0f4ff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.rcg-lock-icon {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  width: 20px;
  height: 20px;
}

/* Both SVGs are stacked; transitions crossfade them */
.rcg-lock-icon__locked,
.rcg-lock-icon__unlocked {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Default: closed lock visible, open lock hidden */
.rcg-lock-icon__locked  { opacity: 1; }
.rcg-lock-icon__unlocked { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }

/* Unlocked state: swap */
.rcg-card--unlocked .rcg-lock-icon__locked  { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
.rcg-card--unlocked .rcg-lock-icon__unlocked { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ==============================================
   DESCRIPTION
   ============================================== */
.rcg-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

@keyframes rcg-modal-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes rcg-modal-out {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to   { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
}

@keyframes rcg-backdrop-in {
  from { background: rgba(0, 0, 0, 0); }
  to   { background: rgba(0, 0, 0, 0.55); }
}

@keyframes rcg-backdrop-out {
  from { background: rgba(0, 0, 0, 0.55); }
  to   { background: rgba(0, 0, 0, 0); }
}

.rcg-modal[open] {
  display: block;
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  width: 595px;
  /* height: 80dvh; */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  animation: rcg-modal-in 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rcg-modal[open]::backdrop {
  animation: rcg-backdrop-in 0.25s ease both;
}

.rcg-modal--closing {
  animation: rcg-modal-out 0.2s ease-in both !important;
  pointer-events: none;
}

.rcg-modal--closing::backdrop {
  animation: rcg-backdrop-out 0.2s ease-in both;
}

.rcg-modal__inner {
  width: 100%;
  /* height: 100%; */
  padding: 20px;
}

.rcg-modal__inner input[type="submit"] {
  width: 100% !important;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 1024px) {
  .rcg-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 40px;
  }
}

@media (max-width: 768px) {
  .rcg-section {
    padding: 52px 40px;
  }

  .rcg-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .rcg-card {
    text-align: center;
  }
  .rcg-cta {
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .rcg-section {
    padding: 40px 24px;
  }

  .rcg-cta-text {
    font-size: 15px;
  }

  .rcg-title {
    font-size: 16px;
  }
}
