/* ===== CERTIFICATES SECTION ===== */

.certificates-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.certificates-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.certificates-title .highlight {
  background: linear-gradient(135deg, #6FC0F2 0%, #5494BD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.certificates-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

/* ===== SEARCH BAR ===== */

.certificates-search-container {
  margin-bottom: var(--space-5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid rgba(99, 146, 185, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
  border-color: #6FC0F2;
  box-shadow: 0 4px 16px rgba(111, 192, 242, 0.25);
  transform: translateY(-2px);
}

.search-icon {
  color: #6FC0F2;
  font-size: 1rem;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
  color: #5494BD;
  transform: scale(1.1);
}

.certificates-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: transparent;
  font-family: 'Inter', sans-serif;
}

.certificates-search-input::placeholder {
  color: #A0AEC0;
  font-size: 0.875rem;
}

.clear-search-btn {
  background: rgba(99, 146, 185, 0.1);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #718096;
  margin-left: 0.5rem;
}

.clear-search-btn:hover {
  background: rgba(99, 146, 185, 0.2);
  color: #5494BD;
  transform: scale(1.1);
}

.search-results-count {
  text-align: center;
  font-size: 0.8125rem;
  color: #718096;
  margin-top: var(--space-2);
  font-weight: 500;
}

.search-results-count.has-results {
  color: #5494BD;
}

/* Certificate item hidden state */
.certificate-item.hidden {
  display: none;
}

/* No results message */
.no-results-message {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-secondary);
}

.no-results-message i {
  font-size: 3rem;
  color: rgba(99, 146, 185, 0.3);
  margin-bottom: var(--space-3);
}

.no-results-message h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.no-results-message p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ===== CERTIFICATES GRID ===== */

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-5);
  padding: var(--space-4) 0;
}

.certificate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: var(--space-3);
  border-radius: 10px;
  background: #F8F8F8;
  border: 1px solid rgba(99, 146, 185, 0.15);
  box-shadow: 0 3px 10px rgba(111, 192, 242, 0.25);
}

/* Strategy Management tab - specific background */
#strategy-management .certificate-item {
  background: #FEFBF4;
}

/* Program Management tab - same background as Strategy */
#program-management .certificate-item {
  background: #FEFBF4;
}

/* Transformation Management tab - same background as Strategy */
#transformation-management .certificate-item {
  background: #FEFBF4;
}

.certificate-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(230, 81, 0, 0.25);
  border: 2px solid #E65100;
  background: #F8F4F2;
}

.certificate-item:hover .school-logo {
  transform: scale(1.05);
}

.certificate-item:hover .certificate-title {
  font-size: 0.8125rem;
  color: #E65100;
  font-weight: 700;
  font-family: 'Tahoma', sans-serif;
}

/* School logo */
.school-logo {
  width: 90px;
  height: 60px;
  object-fit: contain;
  margin-bottom: var(--space-2);
  transition: all 0.3s ease;
}

/* Certificate title */
.certificate-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2D3748;
  margin-bottom: var(--space-1);
  line-height: 1.3;
  min-height: 2.6em;
}

/* Certificate school */
.certificate-school {
  font-size: 0.6875rem;
  color: #5494BD;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

/* Certificate year */
.certificate-year {
  font-size: 0.625rem;
  color: #718096;
  font-weight: 500;
  background: rgba(99, 146, 185, 0.1);
  padding: 0.1875rem 0.625rem;
  border-radius: 10px;
  display: inline-block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .certificates-header {
    margin-bottom: var(--space-6);
  }

  .certificates-title {
    font-size: var(--text-2xl);
  }
}
