/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* Categories */
.categories {
  background: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
}

.categories h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-pill {
  padding: 0.5rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  background: white;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

/* Featured Post */
.featured-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1f2937;
}

.featured-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
}

.featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-block;
  background: #f97316;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

.featured-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
  line-height: 1.3;
}

.featured-excerpt {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  width: fit-content;
}

.read-more:hover {
  background: #1d4ed8;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-category {
  display: inline-block;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.post-title, .post-title a {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
    line-height: 1.4;
    text-decoration: none;
}

.post-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.post-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.post-read-time {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subscribe-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.subscribe-button {
  width: 100%;
  background: #2563eb;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe-button:hover {
  background: #1d4ed8;
}

.popular-post {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.popular-post:last-child {
  border-bottom: none;
}

.popular-post a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  transition: color 0.3s;
}

.popular-post a:hover {
  color: #2563eb;
}

.popular-post-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.category-list {
  list-style: none;
}

.category-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  color: #4b5563;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.category-list a:hover {
  color: #2563eb;
}

.category-count {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin: 3rem 0;
}

.cta-banner h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  background: white;
  color: #2563eb;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}

.cta-primary:hover {
  transform: scale(1.05);
}

.cta-secondary {
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border: 2px solid white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Load More */
.load-more {
  text-align: center;
  margin: 3rem 0;
}

.load-more-button {
  background: white;
  color: #2563eb;
  padding: 1rem 3rem;
  border: 2px solid #2563eb;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.load-more-button:hover {
  background: #2563eb;
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-post {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-content h2 {
    font-size: 1.5rem;
  }
}
