* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
}

.success-head {
  font-size: 70px;
  width: 100%;
  margin-left: 0;
  line-height: 44px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  line-height: 74px;
  flex: none;
  order: 0;
  flex-grow: 0
}


.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.main-container {
  /* background: #f8fafc; */
  padding: 40px 0;
}

.search-container {
  background: white;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  padding: 4px 20px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 16px;
  background: transparent;
}

.search-input::placeholder {
  color: #9ca3af;
}

.filter-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.filter-dropdown {
  position: relative;
  min-width: 250px;
}

.dropdown-button {
  width: 100%;
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #6b7280;
}

.dropdown-button:hover {
  border-color: #9ca3af;
}

.dropdown-button.active {
  border-color: #3b82f6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

.clear-filters {
  color: #8d3e89;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* .clear-filters:hover {
  color: #2563eb;
  text-decoration: underline;
} */

.show-all-dropdown {
  position: relative;
  min-width: 150px;
}

.show-all-button {
  padding: 8px 16px;
  background: #8d3e89;
  color: white;
  border: none;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

/* .show-all-button:hover {
  background: #2563eb;
} */

.show-all-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
  display: none;
}

.show-all-menu.show {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
}

.top-reads-header {
  color: #8d3e89;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}


.results-count {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.story-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 140px;
}

.story-card:hover {
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
  border-color: #d1d5db;
}

.company-logo {
  width: 255px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); */
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.2s ease;
}

/* .story-card:hover .company-logo img {
  transform: scale(1.05);
} */

.card-content {
  flex: 1;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industry-tag {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-year {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  margin-top: auto;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #d1d5db;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 0;
}

.pagination-success {
  display: flex !important;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-item:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  text-decoration: none;
}

.pagination-item.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  color: #6b7280;
  font-size: 14px;
}

.items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.items-per-page label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.divider {
  height: 200px;
  background-color: #ddd;
  margin: 8px 0;
  width: 1px;
}


.items-per-page select {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #374151;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .filter-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-left {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-dropdown {
    min-width: auto;
  }

  .story-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .company-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pagination-container {
    flex-direction: column;
    gap: 12px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination-item {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

.loading {
  opacity: 0.5;
  pointer-events: none;
}


@media (max-width: 768px) {
  .divider {
    display: none;
  }
} 