/* Competition Resources section */
.resources {
  padding: 40px 0;
}

.resources .section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.resources .container {
  max-width: 1500px;
  border-radius: 50px;
  background: linear-gradient(338deg, #0089ffad 0%, #f59e0bd9 100%);
  padding: 24px 24px 32px 24px;
  box-sizing: border-box;
}

.resources .resources-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.resources .resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(12, 35, 64, 0.25);
  background: #ffffffff;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.resources .resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.1);
}

.resources .resource-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.resources .resource-icon i {
  font-size: 1.2rem;
}

/* Colorful icons similar to Key Evaluation Points */
.resources .resource-card:nth-child(1) .resource-icon i {
  color: #fbbf24;
  text-shadow: 0 2px 6px rgba(251, 191, 36, 0.6);
}

.resources .resource-card:nth-child(2) .resource-icon i {
  color: #38bdf8;
  text-shadow: 0 2px 6px rgba(56, 189, 248, 0.6);
}

.resources .resource-card:nth-child(3) .resource-icon i {
  color: #34d399;
  text-shadow: 0 2px 6px rgba(52, 211, 153, 0.6);
}

.resources .resource-card:nth-child(4) .resource-icon i {
  color: #a855f7;
  text-shadow: 0 2px 6px rgba(168, 85, 247, 0.6);
}

.resources .resource-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f59e0b;
}

.resources .resource-content p {
  margin: 4px 0 0;
  color: #000000;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.resources .resource-action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tg-pine);
  font-weight: 700;
}

.resources .resource-action i {
  color: var(--tg-beer);
}

@media (min-width: 576px) {
  .resources .resources-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .resources .resources-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 777px) {
  .resources .container {
    padding: 20px 16px 28px 16px;
  }
}

/* Ultra-small devices: prevent horizontal overflow below 370px */
@media (max-width: 370px) {
  .resources .resources-showcase { gap: 12px; }
  .resources .resource-card {
    padding: 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .resources .resource-icon {
    width: 46px;
    height: 46px;
  }
  .resources .resource-content { min-width: 0; flex: 1 1 100%; }
  .resources .resource-action {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}
