/**
 * Opportunities Grid Block Styles
 * Updated to "What's Next" Cards - Subtle Professional Style
 */

.opportunities-grid-block {
  margin: 6rem auto; /* Consistent spacing */
  max-width: 1200px;
  padding: 0 1.5rem;
}

.opportunities-grid-block .opportunities-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3rem;
  line-height: 1.2;
  text-align: center; /* Usually centered for these section headers */
}

@media (min-width: 768px) {
  .opportunities-grid-block .opportunities-section-title {
    text-align: center; /* Left align on desktop if that's the preference */
  }
}

.opportunities-grid-block .opportunities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .opportunities-grid-block .opportunities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.opportunities-grid-block .opportunity-card {
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.03); /* Subtle border for definition */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.opportunities-grid-block .opportunity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Specific Card Colors - Subtle Pastels */
.opportunities-grid-block .opportunity-card:nth-child(3n + 1) {
  background-color: #e0f7fa; /* Light Teal (Cyan 50) - Replaces Purple */
}

.opportunities-grid-block .opportunity-card:nth-child(3n + 2) {
  background-color: #f1f8e9; /* Very Light Green (Light Green 50) */
}

.opportunities-grid-block .opportunity-card:nth-child(3n + 3) {
  background-color: #fff8e1; /* Very Light Beige (Amber 50) - Matches other sections */
}

.opportunities-grid-block .opportunity-header {
  margin-bottom: 2rem;
}

.opportunities-grid-block .opportunity-label {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(58, 58, 58, 0.2); /* Softer border */
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #3a3a3a;
  background-color: rgba(255, 255, 255, 0.5); /* Subtle highlight */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.opportunities-grid-block .opportunity-title {
  color: #0f172a; /* Brand Navy */
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.opportunities-grid-block .opportunity-description {
  color: #3a3a3a;
  font-size: 1rem;
  line-height: 1.6;
}

.opportunities-grid-block .opportunity-image-wrapper {
  border-radius: 0.75rem;
  overflow: hidden;
  width: 100%;
  height: 200px;
  margin-top: auto; /* Push to bottom */
}

.opportunities-grid-block .opportunity-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.opportunities-grid-block .opportunity-card:hover .opportunity-image {
  transform: scale(1.05); /* Subtle zoom on hover */
}

/* CTA Button - After Image - Clean Outline Style */
.opportunities-grid-block .opportunity-cta {
  display: block; /* Full width to match image */
  width: 100%;
  background-color: transparent;
  color: #0f172a; /* Navy Text to match Title */
  border: 2px solid #0f172a; /* Navy Border */
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
  box-shadow: none; /* Remove shadow for clean flat look */
}

.opportunities-grid-block .opportunity-cta:hover {
  background-color: #0f172a; /* Fill with Navy */
  color: #ffffff; /* White text */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); /* Soft navy shadow */
}
