/* ============================================
   Opportunities Page Styles
   ============================================ */

/* Opportunities Page Styles */
.opportunities-container {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.opportunities-bg {
  width: 100%;
  height: 100%;
  background-image: url("../img/home-hero-bg_default.1d91ad7d7bfd.jpg");
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 240px;
  z-index: 0;
  opacity: 0.2;
}

.opportunities-content {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 100%;
}

.opportunities-heading {
  color: var(--color-dark)
}


/* Container */
.opportunities-wrapper {
  padding: 2rem 0;
  min-height: 60vh;
}


/* ============================================
   Opportunities Grid - Listing Page
   ============================================ */

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Opportunity Card */
.opportunity-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.opportunity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.opportunity-card__link {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.opportunity-card__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
}

.opportunity-card__content {
  flex: 1;
  min-width: 0;
}

.opportunity-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.opportunity-card__header {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.opportunity-card__excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.opportunity-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.opportunity-card__date,
.opportunity-card__file {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.opportunity-card__file {
  color: #3b82f6;
  font-weight: 500;
}

.opportunity-card__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.3s ease;
}

.opportunity-card:hover .opportunity-card__arrow {
  background: #3b82f6;
  color: #fff;
  transform: translateX(4px);
}

/* Empty State */
.opportunities-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #f9fafb;
  border-radius: 12px;
  margin-top: 2rem;
}

.opportunities-empty__icon {
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.opportunities-empty__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 0.75rem 0;
}

.opportunities-empty__text {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

/* ============================================
   Opportunity Detail Page
   ============================================ */

.opportunity-detail {
  padding: 0;
}

.opportunity-wrapper {
  max-width: 900px;
  margin: 0 auto;
}


/* Header */
.opportunity-header {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.opportunity-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.opportunity-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.opportunity-meta__date,
.opportunity-meta__updated {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


/* Download Card */
.opportunity-download {
  margin-bottom: 2.5rem;
}

.opportunity-download__card {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--colour-secondary-dark);
}

.opportunity-download__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.opportunity-download__info {
  flex: 1;
}


.opportunities-badge {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--colour-secondary-light) 0%, var(--colour-secondary-dark) 100%);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.opportunities-button {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, var(--colour-secondary-light) 0%, var(--colour-secondary-dark) 100%);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.opportunities-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--colour-secondary-dark) 0%, var(--colour-secondary-light) 100%);
}

.opportunity-download__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.opportunity-download__text {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.opportunity-download__button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: #fff;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.opportunity-download__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f9fafb;
}

/* Content */
.opportunity-content {
  margin-bottom: 0.5rem;
}

.opportunity-excerpt {
  font-size: 1.05rem;
  line-height: 1.8;
  padding: 1rem 0;
}

.opportunity-excerpt p {
  margin: 0 0 1rem 0;
}

.opportunity-excerpt p:last-child {
  margin-bottom: 0;
}

.opportunity-excerpt ul,
.opportunity-excerpt ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.opportunity-excerpt li {
  margin-bottom: 0.5rem;
}

.opportunity-excerpt strong {
  color: #111827;
  font-weight: 600;
}

/* Info Card */
.opportunity-info {
  margin-bottom: 2.5rem;
}

.opportunity-info__card {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 1.5rem;
}

.opportunity-info__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 1rem 0;
}

.opportunity-info__title i {
  color: #fbbf24;
}

.opportunity-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opportunity-info__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: #78350f;
  line-height: 1.6;
}

.opportunity-info__list li:last-child {
  margin-bottom: 0;
}

.opportunity-info__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fbbf24;
  font-weight: 700;
}

/* Footer Navigation */
.opportunity-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.opportunity-footer__back,
.opportunity-footer__download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.opportunity-footer__back {
  background: #f3f4f6;
  color: #374151;
}

.opportunity-footer__back:hover {
  background: #e5e7eb;
  color: #111827;
}

.opportunity-footer__download {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.opportunity-footer__download:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .opportunities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .opportunity-card__link {
    flex-direction: column;
  }

  .opportunity-card__arrow {
    align-self: flex-end;
  }

  .opportunity-title {
    font-size: 1.75rem;
  }

  .opportunity-subtitle {
    font-size: 1.25rem;
  }

  .opportunity-download__card {
    flex-direction: column;
    text-align: center;
  }

  .opportunity-download__button {
    width: 100%;
    justify-content: center;
  }

  .opportunity-footer {
    flex-direction: column;
  }

  .opportunity-footer__back,
  .opportunity-footer__download {
    width: 100%;
    justify-content: center;
  }

  .opportunity-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .opportunity-card__icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .opportunity-card__title {
    font-size: 1.1rem;
  }

  .opportunity-title {
    font-size: 1.5rem;
  }

  .opportunity-download__icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {

  .opportunity-breadcrumb,
  .opportunity-download,
  .opportunity-footer {
    display: none;
  }

  .opportunity-wrapper {
    max-width: 100%;
  }
}
