/* Category listing pages: gradient header + plain article cards. Scoped under .category-page */

.category-page *,
.category-page *::before,
.category-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.category-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header: gradient block */
.category-page .category-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.category-page .category-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-page .category-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured section */
.category-page .featured-section {
  margin-bottom: 4rem;
}

.category-page .featured-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.category-page .featured-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.category-page .featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-page .featured-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.category-page .featured-image img {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.category-page .featured-image img[src*="business-initiative-full-logo"] {
  object-fit: contain;
  background: #f8f9fa;
  padding: 2rem;
}

.category-page .featured-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.category-page .featured-content h3 a {
  color: #333;
  text-decoration: none;
}

.category-page .featured-content h3 a:hover {
  color: #0056b3;
}

.category-page .featured-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.category-page .featured-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #888;
}

.category-page .read-more {
  display: inline-block;
  background: #0056b3;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.category-page .read-more:hover {
  background: #003d82;
}

/* Services section */
.category-page .services-section {
  margin-bottom: 4rem;
  text-align: center;
}

.category-page .services-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  position: relative;
}

.category-page .services-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.category-page .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.category-page .service-button {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.category-page .service-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.category-page .service-button.business-formation {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.category-page .service-button.business-formation:hover {
  box-shadow: 0 12px 40px rgba(240, 147, 251, 0.4);
}

.category-page .service-icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.category-page .service-content {
  flex: 1;
  text-align: left;
}

.category-page .service-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: white;
}

.category-page .service-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.category-page .service-arrow {
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 0.8rem;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.category-page .service-button:hover .service-arrow {
  transform: translateX(4px);
}

/* Articles section: plain cards */
.category-page .articles-section {
  margin-bottom: 4rem;
}

.category-page .articles-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

.category-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  width: 100%;
}

.category-page .article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.category-page .article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-page .article-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.category-page .article-image img {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.category-page .article-image img[src*="business-initiative-full-logo"] {
  object-fit: contain;
  background: #f8f9fa;
  padding: 2rem;
}

.category-page .article-content {
  padding: 1.5rem;
}

.category-page .article-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.category-page .article-content h3 a {
  color: #333;
  text-decoration: none;
}

.category-page .article-content h3 a:hover {
  color: #0056b3;
}

.category-page .article-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-page .article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.category-page .article-card .read-more {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Category navigation */
.category-page .category-navigation {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.category-page .category-navigation h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.category-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-page .nav-link {
  background: white;
  color: #333;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.category-page .nav-link:hover {
  background: #0056b3;
  color: white;
}

@media (max-width: 768px) {
  .category-page .featured-article {
    grid-template-columns: 1fr;
  }

  .category-page .articles-grid {
    grid-template-columns: 1fr;
  }

  .category-page .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-page .service-button {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .category-page .service-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .category-page .service-content {
    text-align: center;
    margin-bottom: 1rem;
  }

  .category-page .service-arrow {
    margin-left: 0;
  }

  .category-page .nav-links {
    flex-direction: column;
    align-items: center;
  }
}
