/* ATNI Opportunities Styles */

html {
  scroll-behavior: smooth;
}

/*.atni-opportunities-listing-shell {
  background: linear-gradient(180deg, #f7f7fc 0%, #ffffff 100%);
  border: 1px solid #ececf4;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}*/

.atni-opportunities-heading h3 {
text-transform: uppercase !important;
font-weight: 700 !important;
}

/* Heading */
.atni-opportunities-heading {
  text-align: center;
  margin-bottom: 32px;
}

.atni-opp-heading-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF6900;
  margin-bottom: 12px;
}

.atni-opp-heading-title {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
}

.atni-opp-heading-description {
  font-size: 16px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Filter Form */
.atni-opportunities-filter-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 120px;
  gap: 14px;
  align-items: end;
  background:#FAFAFD;
  border: #FAFAFD;
  padding: 40px;
  margin: 24px 0;
}

.atni-opportunities-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atni-opportunities-filter-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.atni-opportunities-input,
.atni-opportunities-select {
  width: 100%;
  border: 1px solid #e2e7f0; 
  padding: 12px 15px !important;
  font-size: 14px;
  color: #111827;
  background: #fff;
  font-family: inherit;
}

.atni-opportunities-input:focus,
.atni-opportunities-select:focus {
  outline: none;
  border-color: #5A2DB4;
  box-shadow: 0 0 0 3px rgba(90, 45, 180, 0.1);
}

.atni-opportunities-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}

.atni-opportunities-filter-form button {
  background: #FF6900 !important;
  color: #fff;
 
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  
}

.atni-opportunities-filter-form button:hover {
  background: #FF6900 !important;
  transform: translateY(-2px);
}

/* Results Meta */
.atni-opportunities-results-meta {
  margin: 24px 0 16px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

/* Grid */
.atni-opportunities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

/* Card */
.atni-opportunity-card {
  background: #fff;
  border: 1px solid #ececf4;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.04);
  transition: transform 0.22s cubic-bezier(.2,.9,.28,1), box-shadow 0.22s cubic-bezier(.2,.9,.28,1), border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.atni-opportunity-card:hover {
  transform: translateY(-6px) scale(1.002);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border-color: rgba(90, 45, 180, 0.12);
}

.atni-opportunity-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.atni-opportunity-dept-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* 1st, 4th, 7th... */
.atni-opportunity-card-top:nth-child(3n + 1) .atni-opportunity-dept-pill {
    color: #003C71;
    background-color: #f3eef8;
}

/* 2nd, 5th, 8th... */
.atni-opportunity-card-top:nth-child(3n + 2) .atni-opportunity-dept-pill {
    color:#FF6900;
    background-color: #fcd7b0;
}

/* 3rd, 6th, 9th... */
.atni-opportunity-card-top:nth-child(3n + 3) .atni-opportunity-dept-pill {
    color: #000;
    background-color: #DBE6F6;
}

.atni-opportunity-posted {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.atni-opportunity-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin: 0;
}

.atni-opportunity-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.atni-opportunity-divider {
  border: none;
  height: 1px;
  background: #eef2f6;
  margin: 12px 0;
}

.atni-opportunity-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f1f3f8;
}

.atni-opportunity-badges {
  display: flex;
  gap: 8px;
}

.atni-opportunity-pill {
  display: inline-block;
  background: #f8fafc;
  color: #374151;
  border: 1px solid #eef2f6;
  padding: 6px 10px;
 
  font-size: 13px;
  font-weight: 700;
}

.atni-opportunity-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;

  background: #2A353F;
  border: 1px solid #2A353F;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.atni-opportunity-card:hover .atni-opportunity-action {
  background: #2A353F;
  border-color: #2A353F;
  box-shadow: 0 12px 30px rgba(90, 45, 180, 0.1);
  transform: translateY(-2px);
}

.atni-opportunity-arrow path {
  transition: stroke .18s ease, transform .18s ease;
}

.atni-opportunity-card:hover .atni-opportunity-arrow path {
  stroke: #ffffff;
}

/* Empty State */
.atni-opportunities-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
  font-size: 16px;
}

/* Pagination */
.atni-opportunities-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.atni-opportunities-page-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4ee;

  background: #fff;
  color: #374151;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.atni-opportunities-page-btn:hover {
  border-color: #5A2DB4;
  color: #5A2DB4;
}

.atni-opportunities-page-btn.active {
  background: #5A2DB4;
  border-color: #5A2DB4;
  color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
  .atni-opportunities-filter-form {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .atni-opportunities-filter-form button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .atni-opportunities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .atni-opportunities-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .atni-opportunities-filter-form button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 575.98px) {


  .atni-opportunities-filter-form {
    grid-template-columns: 1fr;
  }

  .atni-opportunities-filter-form button {
    width: 100%;
  }

  .atni-opp-heading-title {
    font-size: 24px;
  }

  .atni-opp-heading-description {
    font-size: 14px;
  }
}
