/* Add spacing above post sections */
.latest-posts-section,
.all-posts-section {
  margin-top: 40px;
}
/* Categories Section */
.categories-section {
  margin: 48px 0 40px 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.category-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(75,108,183,0.08);
  padding: 28px 18px 18px 18px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.category-card:hover {
  box-shadow: 0 6px 24px rgba(75,108,183,0.16);
  transform: translateY(-4px) scale(1.03);
}
.category-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.category-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}
.category-card p {
  font-size: 0.98rem;
  color: #6b7280;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #fff;
  border-radius: 24px;
  margin: 48px 0 0 0;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 28px;
  color: #e0f7fa;
}
.cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Search Section */
.search-section {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.search-form {
  display: flex;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(75,108,183,0.08);
  padding: 6px 12px;
  align-items: center;
  width: 100%;
  max-width: 480px;
}
.search-input {
  border: none;
  outline: none;
  font-size: 1.1rem;
  padding: 12px 16px;
  border-radius: 32px;
  flex: 1;
  background: transparent;
}
.search-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-left: 8px;
  transition: background 0.2s;
}
.search-btn:hover {
  background: #128134;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-all {
  color: #4bb75d;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.view-all:hover {
  color: #18482a;
}

/* Posts Grid & Card Styles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.post-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(75,108,183,0.08);
  padding: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(75,108,183,0.16);
  transform: translateY(-4px) scale(1.02);
}
.post-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #e0e7ff;
  margin-bottom: 12px;
}
.post-content {
  padding: 0 18px;
}
.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}
.post-meta {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 8px;
}
.post-excerpt {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}
.post-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.post-tag {
  background: #4adfb8;
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
  padding: 2px 10px;
  margin-right: 4px;
}
.post-date {
  font-size: 0.9rem;
  color: #4bb774;
}
@media (max-width: 700px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* Modern Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px 32px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  gap: 40px;
}
.hero-content {
  max-width: 520px;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
}
.hero-content .highlight {
  color: #4adfb8;
  position: relative;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: #e0f7fa;
}
.hero-actions {
  display: flex;
  gap: 18px;
}
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  width: 340px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 32px 10px;
    gap: 24px;
  }
  .hero-visual {
    width: 100%;
  }
  .hero-image {
    width: 90vw;
    max-width: 340px;
  }
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 15px;
}

.pagination-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background-color: var(--primary-color-light);
}

.pagination-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-num {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: var(--bg-color-light);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-num:hover {
  background-color: var(--hover-color);
}

.pagination-num.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-ellipsis {
  font-size: 16px;
  color: var(--text-color-light);
  padding: 0 5px;
}
