:root {
  --fobs-purple: #7a5a72;
  --fobs-red: #f04e3a;
  --fobs-green: #2ab567;
  --fobs-cream: #f7f2e8;
  --fobs-text: #243b53;
  --fobs-muted: #667085;
  --fobs-white: #ffffff;
}

/* Generic card */
.fobs-card {
  background: var(--fobs-white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* =========================
   FOBS EVENTS GRID
   ========================= */

.fobs-events-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: stretch;
}

.fobs-events-grid > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.fobs-events-grid * {
  box-sizing: border-box;
}

.fobs-events-grid > *,
.fobs-events-grid .fobs-event-card,
.fobs-events-grid .pods-item,
.fobs-events-grid .pods-list-item {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* =========================
   EVENT CARD
   ========================= */

.fobs-event-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;

  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  color: #243b53;
  text-decoration: none !important;

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fobs-event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* =========================
   IMAGE
   ========================= */

.fobs-event-image {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.fobs-event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* =========================
   BODY
   ========================= */

.fobs-event-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* =========================
   DATE + DETAILS ROW
   ========================= */

.fobs-event-meta-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

/* =========================
   DATE BADGE
   ========================= */

.fobs-date-badge {
  width: 72px;
  background: #fff3ed;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-sizing: border-box;
}

.fobs-date-badge p {
  margin: 0 !important;
  line-height: 1 !important;
}

.fobs-date-badge p:first-child {
  color: #d44d57;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

.fobs-date-badge p:last-child {
  color: #d44d57;
  font-size: 40px;
  font-weight: 800;
}

/* =========================
   EVENT DETAILS
   ========================= */

.fobs-event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  min-height: 120px;
}

.fobs-event-details h3,
.fobs-event-details p {
  margin: 0 !important;
}

.fobs-event-details h3 {
  color: #243b53;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.fobs-event-time,
.fobs-event-location {
  color: #667085;
  font-size: 16px;
  line-height: 1.35;
}

/* =========================
   DESCRIPTION
   ========================= */

.fobs-event-description {
  margin-top: auto !important;
  color: #243b53;
  font-size: 18px;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

@media (max-width: 1100px) {
  .fobs-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .fobs-events-grid {
    grid-template-columns: 1fr;
  }

  .fobs-event-image {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }
}

/* Stats cards / stats bar */
.fobs-stat-card {
  background: var(--fobs-cream);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
}

.fobs-stat-card strong,
.fobs-stat-card .fobs-stat-number {
  display: block;
  color: var(--fobs-purple);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.fobs-stat-card p {
  margin: 0;
  color: var(--fobs-muted);
  font-weight: 600;
}

/* CTA banner */
.fobs-cta-banner {
  background: var(--fobs-purple);
  color: var(--fobs-white);
  border-radius: 32px;
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}

.fobs-cta-banner h2,
.fobs-cta-banner h3,
.fobs-cta-banner p {
  color: var(--fobs-white);
}

.fobs-cta-banner .wp-block-button__link {
  border-radius: 999px;
  font-weight: 700;
}

/* Icon cards */
.fobs-icon-card {
  background: var(--fobs-white);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.fobs-icon-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 16px;
}

.fobs-icon-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--fobs-purple);
}

.fobs-icon-card p {
  margin: 0;
  color: var(--fobs-muted);
}

/* Buttons */
.fobs-primary-button .wp-block-button__link,
.wp-block-button.fobs-primary-button .wp-block-button__link {
  background: var(--fobs-red);
  color: white;
  border-radius: 999px;
  font-weight: 700;
}

.fobs-secondary-button .wp-block-button__link,
.wp-block-button.fobs-secondary-button .wp-block-button__link {
  background: white;
  color: var(--fobs-red);
  border: 2px solid var(--fobs-red);
  border-radius: 999px;
  font-weight: 700;
}

/* Section wrapper */
.fobs-section {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

/* Soft background section */
.fobs-soft-section {
  background: var(--fobs-cream);
  border-radius: 32px;
  padding: clamp(32px, 6vw, 64px);
}