/* Awards Gallery Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Main Section */
.awards-section {
  max-width: 1250px;
  margin: 10px auto;
  padding: 18px 22px 26px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.awards-header {
  margin-bottom: 18px;
}

.awards-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
}

.awards-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* Filters wrapper -> looks like segmented control container */
.awards-filters-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
}

.awards-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: #f3f4f6;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

/* Filter Buttons: minimal, different from badges */
.filter-btn {
  border: none;
  background: transparent;
  color: #4b5563;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.filter-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.filter-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

/* Awards Grid */
.awards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: min-content;
  align-items: start;
}

/* Award Wrapper for Load More functionality */
.award-wrapper {
  display: block;
  width: 100%;
}

.award-wrapper.award-hidden {
  display: none;
}

/* Card */
.award-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
}

.award-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

/* Image Wrapper */
.award-image-wrapper {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
  background: #f9fafb;
}

.award-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.award-card:hover .award-image-wrapper img {
  transform: scale(1.05);
}

/* Brand Badge - dark & distinct from filters */
.award-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(15,23,42,0.88));
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #f9fafb;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.award-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
}

/* Body */
.award-body {
  padding: 14px 16px 16px;
}

.award-title {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 10px;
  text-transform: none;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Meta (only year now) */
.award-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Year badge - light, outline, different from brand & filter */
.award-year-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  background: #f9fafb;
  color: #374151;
  font-weight: 500;
  font-size: 11px;
}

.award-year-pill span.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: #9ca3af;
}

/* Show More Button */
.awards-footer {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.show-more-btn {
  background: #111827;
  color: white;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.show-more-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.show-more-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Loading Spinner */
.ag-load-more-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: ag-spin 1s ease-in-out infinite;
  margin-left: 8px;
}

@keyframes ag-spin {
  to { transform: rotate(360deg); }
}

/* No Results */
.ag-no-results {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  padding: 60px 20px;
  grid-column: 1 / -1;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
  margin: 20px 0;
}

.ag-no-results::before {
  content: "🔍";
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .awards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .awards-section {
    padding: 16px;
  }

  .awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .awards-filters {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .awards-filters::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .awards-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .awards-section {
    padding: 12px;
  }
  
  .award-title {
    font-size: 13px;
  }
  
  .award-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
}