/* Dual Section Layout - Side by Side Certifications & Blogs */
.dual-section-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.dual-section-box {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 0;
  transition: all 0.3s ease;
}

.dual-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.dual-section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.dual-section-content {
  padding: 0;
}

.dual-section-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.dual-section-item:last-child {
  border-bottom: none;
}

.dual-section-item:hover {
  background-color: var(--hover-bg);
}

.item-content {
  flex: 1;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  line-height: 1.4;
}

.item-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.item-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-left: 1rem;
}

.no-items {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-all-link:hover {
  gap: 0.5rem;
}

.view-all-link i {
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .dual-section-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .dual-section-header {
    padding: 1rem;
  }

  .dual-section-header h2 {
    font-size: 1.25rem;
  }

  .dual-section-item {
    flex-direction: column;
    padding: 1rem;
  }

  .item-date {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Dark Mode Compatibility */
:root {
  --hover-bg: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] {
  --hover-bg: rgba(255, 255, 255, 0.05);
}
