/* Home - Latest approved pool quizzes (scoped) */

.oe-latest-section {
  width: 100%;
  padding: 72px 20px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  font-family: Inter, Arial, sans-serif;
  color: #101936;
}

.oe-latest-section * { box-sizing: border-box; }
.oe-latest-section a { text-decoration: none; color: inherit; }

.oe-latest-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #dfe8f7;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.oe-latest-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.oe-latest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1769e8;
  font-size: 15px;
  font-weight: 850;
}

.oe-latest-badge span { font-size: 16px; }

.oe-latest-header h2 {
  margin: 18px 0 10px;
  color: #081334;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.oe-latest-header p {
  max-width: 720px;
  margin: 0;
  color: #516079;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 520;
}

.oe-latest-empty {
  margin: 0;
  color: #516079;
  font-size: 9px;
  line-height: 1.6;
  font-weight: 600;
}

.oe-latest-view-all {
  min-width: 132px;
  min-height: 48px;
  margin-top: 48px;
  padding: 0 20px;
  border: 1px solid #1769e8;
  border-radius: 999px;
  background: #fff;
  color: #1769e8 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 850;
  transition: 0.2s ease;
  cursor: default;
  user-select: none;
}

.oe-latest-view-all:hover {
  background: #1769e8;
  color: #fff !important;
  transform: translateY(-2px);
}

.oe-latest-view-all span { font-size: 23px; line-height: 1; }

.oe-latest-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.oe-latest-filter {
  height: 48px;
  padding: 0 22px;
  border: 1px solid #dde6f3;
  border-radius: 999px;
  background: #fff;
  color: #26344d;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
  transition: 0.18s ease;
}

.oe-latest-filter span { font-size: 17px; }

.oe-latest-filter:hover {
  border-color: #1769e8;
  color: #1769e8;
  transform: translateY(-1px);
}

.oe-latest-filter.is-active {
  background: #1769e8;
  border-color: #1769e8;
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 105, 232, 0.25);
}

.oe-latest-layout {
  display: grid;
  grid-template-columns: 1.15fr 2.35fr;
  gap: 18px;
}

.oe-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.oe-latest-card {
  overflow: hidden;
  border: 1px solid #dde6f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oe-latest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.oe-latest-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  background: #eef4ff;
}

.oe-latest-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.oe-latest-card:hover .oe-latest-card__image img { transform: scale(1.035); }

.oe-latest-imgPlaceholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #eef5ff, #f1f5f9);
  color: #334155;
}

.oe-latest-card__body { padding: 16px; }
.oe-latest-card--featured .oe-latest-card__body { padding: 18px 18px 20px; }

.oe-latest-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.oe-latest-type {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.oe-latest-type--contest { background: #f3ecff; color: #6d28d9; }
.oe-latest-type--game { background: #eaf3ff; color: #1769e8; }

.oe-latest-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #536179;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.oe-latest-date i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
}

.oe-latest-card h3 {
  margin: 0 0 12px;
  color: #0c1638;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.oe-latest-card--featured h3 { font-size: 24px; }
.oe-latest-card h3 a:hover { color: #1769e8; }

.oe-latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  color: #536179;
  font-size: 12px;
  font-weight: 750;
}

.oe-latest-card--featured .oe-latest-meta { font-size: 13px; }

.oe-latest-card--featured p {
  margin: 18px 0 18px;
  color: #536179;
  font-size: 15px;
  line-height: 1.55;
}

.oe-latest-primary-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #1769e8;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(23, 105, 232, 0.28);
  transition: 0.18s ease;
}

.oe-latest-primary-btn:hover { background: #0f55c4; transform: translateY(-2px); }
.oe-latest-primary-btn span { font-size: 28px; line-height: 1; }

.oe-latest-cta {
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid #dbe6f5;
  border-radius: 18px;
  background: linear-gradient(90deg, #f4f9ff 0%, #ffffff 55%, #f4f9ff 100%);
  display: flex;
  align-items: center;
  gap: 20px;
}

.oe-latest-cta__icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1769e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.oe-latest-cta__text { flex: 1; min-width: 0; }

.oe-latest-cta__text strong {
  display: block;
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.oe-latest-cta__text span {
  display: block;
  margin-top: 4px;
  color: #536179;
  font-size: 14px;
  font-weight: 600;
}

.oe-latest-cta__btn {
  min-width: 178px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: #1769e8;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(23, 105, 232, 0.24);
}

.oe-latest-cta__btn:hover { background: #0f55c4; }
.oe-latest-cta__btn span { font-size: 24px; line-height: 1; }

@media (max-width: 1100px) {
  .oe-latest-layout { grid-template-columns: 1fr; }
  .oe-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oe-latest-card--featured { display: grid; grid-template-columns: 1fr 1fr; }
  .oe-latest-card--featured .oe-latest-card__image img { height: 100%; min-height: 280px; }
}

@media (max-width: 760px) {
  .oe-latest-section { padding: 42px 14px; }
  .oe-latest-container { padding: 20px; border-radius: 22px; }
  .oe-latest-header { flex-direction: column; }
  .oe-latest-view-all { margin-top: 0; }
  .oe-latest-grid { grid-template-columns: 1fr; }
  .oe-latest-card--featured { display: block; }
  .oe-latest-card--featured .oe-latest-card__image img { min-height: 0; }
  .oe-latest-cta { flex-direction: column; align-items: flex-start; }
  .oe-latest-cta__btn { width: 100%; }
}

@media (max-width: 480px) {
  .oe-latest-header h2 { font-size: 20px; }
  .oe-latest-filter { width: 100%; justify-content: center; }
  .oe-latest-card--featured h3 { font-size: 21px; }
}

