/* =============================================================================
   COSECURE Affiliations Widget — affiliations.css
   ============================================================================= */

.aff-section {
  --aff-bg: #f8f8f8;
  --aff-card: #ffffff;
  --aff-border: #e5e7eb;
  --aff-ink: #0f1820;
  --aff-muted: #5a6b7a;
  --aff-primary: #0f7c7b;
  --aff-primary-glow: #4fb8b3;
  --aff-shadow: 0 10px 30px -10px rgba(15, 124, 123, 0.25);
  --aff-shadow-hover: 0 20px 50px -15px rgba(15, 124, 123, 0.35);

  background: var(--aff-bg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding: 1.5rem 1.5rem 3.5rem;
  box-sizing: border-box;
  color: var(--aff-ink);
}

.aff-section *,
.aff-section *::before,
.aff-section *::after {
  box-sizing: border-box;
}

.aff-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */

.aff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .aff-section {
    padding: 2.5rem 2.5rem 5rem;
  }
}

@media (min-width: 1024px) {
  .aff-section {
    padding: 3.5rem 3.5rem 6rem;
  }
}

/* ── Card ──────────────────────────────────────────────────────────────────── */

.aff-card {
  position: relative;
  overflow: hidden;
  background: var(--aff-card);
  border: 1px solid var(--aff-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;

  /* Animate-in: start hidden */
  opacity: 0;
  transform: translateY(20px);
}

.aff-card.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.35s ease;
}

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

/* Soft glow orb behind content */
.aff-card::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  height: 12rem;
  width: 12rem;
  border-radius: 9999px;
  background: rgba(15, 124, 123, 0.05);
  filter: blur(40px);
  transition: background 0.4s ease;
  pointer-events: none;
}

.aff-card:hover::before {
  background: rgba(15, 124, 123, 0.15);
}

/* ── Card inner layout ─────────────────────────────────────────────────────── */

.aff-card-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* ── Icon ──────────────────────────────────────────────────────────────────── */

.aff-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--aff-primary), var(--aff-primary-glow));
  color: #fff;
  box-shadow: var(--aff-shadow);
}

.aff-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Typography ────────────────────────────────────────────────────────────── */

.aff-title {
  margin: 0;
  font-family: 'League Spartan', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--aff-ink);
}

.aff-desc {
  margin: 0.5rem 0 0;
  color: var(--aff-muted);
  line-height: 1.65;
  font-size: 1rem;
}
