/* ==========================================================================
   GAR Link Card
   Styling ported from the Health Watch Monthly Report design.
   Namespaced with gc- so it never collides with Avada or other theme classes.
   ========================================================================== */

.gc-grid,
.gc-card {
  --gc-white: #ffffff;
  --gc-blue-500: #1571ba;
  --gc-blue-400: #2a7de0;
  --gc-gray-blue-700: #45505a;
  --gc-green-500: #2e8b57;
  --gc-near-black-900: #191d21;
  --gc-border-1: #d2dbe2;
  --gc-r-1: 2px;
  --gc-r-2: 3px;
  --gc-shadow-1: 0 1px 2px rgba(25, 29, 33, 0.06), 0 1px 1px rgba(25, 29, 33, 0.04);
  --gc-shadow-2: 0 4px 12px rgba(25, 29, 33, 0.08), 0 1px 2px rgba(25, 29, 33, 0.04);
  --gc-font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --gc-font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gc-t-base: 200ms;
  --gc-t-slow: 360ms;
}

/* Grid wrapper: two up on desktop, single column on mobile. */
.gc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 30px 0 8px;
}

@media (max-width: 600px) {
  .gc-grid { grid-template-columns: 1fr; }
}

.gc-card {
  display: flex;
  flex-direction: column;
  background: var(--gc-white);
  border: 1px solid var(--gc-border-1);
  border-radius: var(--gc-r-2);
  overflow: hidden;
  box-shadow: var(--gc-shadow-1);
  transition: box-shadow var(--gc-t-base) var(--gc-ease-out), transform var(--gc-t-base) var(--gc-ease-out);
  font-family: var(--gc-font-body);
}

.gc-card:hover {
  box-shadow: var(--gc-shadow-2);
  transform: translateY(-2px);
}

.gc-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }

.gc-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--gc-t-slow) var(--gc-ease-out);
}

.gc-card:hover .gc-card__thumb img { transform: scale(1.03); }

.gc-card__cat {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-family: var(--gc-font-display);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 10px; font-weight: 600; color: #fff;
  background: rgba(21, 113, 186, 0.92);
  padding: 4px 9px; border-radius: var(--gc-r-1);
}

.gc-card__type {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--gc-font-display);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 10px; font-weight: 600; color: #fff;
  background: rgba(15, 19, 22, 0.7);
  padding: 4px 8px; border-radius: var(--gc-r-1);
}

/* Image optional placeholder */
.gc-card__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; }

.gc-card__ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(42, 125, 224, 0.22) 0%, rgba(42, 125, 224, 0) 60%);
}

.gc-card__phlabel {
  position: relative; z-index: 1; padding: 16px 18px;
  font-family: var(--gc-font-display);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 13px; font-weight: 600; line-height: 1.2;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.gc-t-navy  { background: linear-gradient(135deg, #1b2733 0%, #0f1316 100%); }
.gc-t-blue  { background: linear-gradient(135deg, #15406e 0%, #0f2336 100%); }
.gc-t-steel { background: linear-gradient(135deg, #2c3a47 0%, #161d24 100%); }
.gc-t-teal  { background: linear-gradient(135deg, #143b40 0%, #0e1f24 100%); }
.gc-t-slate { background: linear-gradient(135deg, #34414e 0%, #1c252e 100%); }
.gc-t-ink   { background: linear-gradient(135deg, #232a30 0%, #0f1316 100%); }

.gc-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.gc-card__body h4 {
  font-family: var(--gc-font-display);
  font-weight: 600; text-transform: none; letter-spacing: 0;
  font-size: 19px; line-height: 1.18; margin: 0 0 10px;
  color: var(--gc-near-black-900);
}

.gc-card__body p {
  font-size: 14.5px; line-height: 1.65; margin: 0 0 16px;
  color: var(--gc-gray-blue-700);
}

.gc-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.gc-card__src {
  font-family: var(--gc-font-display);
  text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 10.5px; font-weight: 600; color: var(--gc-green-500);
}

.gc-card__btn {
  font-family: var(--gc-font-display);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 11px; color: #fff; background: var(--gc-near-black-900);
  padding: 9px 14px; border-radius: var(--gc-r-2);
  display: inline-flex; align-items: center; gap: 7px;
  transition: background var(--gc-t-base) var(--gc-ease-out);
  white-space: nowrap; text-decoration: none;
}

.gc-card__btn:hover { background: var(--gc-blue-500); color: #fff; }

/* ==========================================================================
   FEATURED CARD
   Spans both columns and lays out horizontally on larger screens, with a gold
   FEATURED badge on the photo. Stacks on mobile.
   ========================================================================== */

.gc-card--featured { grid-column: 1 / -1; }

.gc-card__featured {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--gc-font-display);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 10px; font-weight: 600; color: #fff;
  background: #c79b3b;
  padding: 5px 11px; border-radius: var(--gc-r-1);
  box-shadow: 0 2px 10px rgba(199, 155, 59, 0.5);
}

.gc-card__featured svg { width: 11px; height: 11px; display: block; }

@media (min-width: 781px) {
  .gc-card--featured { flex-direction: row; align-items: stretch; }
  .gc-card--featured .gc-card__thumb { width: 56%; flex: 0 0 56%; }
  .gc-card--featured .gc-card__body { width: 44%; flex: 1; justify-content: center; padding: 34px 38px; }
  .gc-card--featured .gc-card__body h4 { font-size: 27px; line-height: 1.14; margin-bottom: 14px; }
  .gc-card--featured .gc-card__body p { font-size: 16px; margin-bottom: 20px; }
  .gc-card--featured .gc-card__phlabel { font-size: 16px; }
}
