/* blogs.css - Blog listing page styles */

/* --- Blog Hero Section --- */
/* REMOVED: background: linear-gradient(160deg, #0058e6 0%, #002f72 100%); */
/* Background is now inherited from parent .header-content */
.blogs-hero {
  /* background: linear-gradient(160deg, #0058e6 0%, #002f72 100%); - REMOVED */
  color: white;
  padding: 100px 120px 60px;
  text-align: center;
  /* Add this to reduce the overall height */
  min-height: auto;
}

.blogs-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.blogs-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.blogs-hero-subtext {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Blogs Section --- */
.blogs-section {
  background-color: #ffffff;
  padding: 80px 120px;
}

.blogs-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured Blog */
.featured-blog-container {
  margin-bottom: 80px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 48, 142, 0.1);
}

.featured-blog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.featured-blog-image {
  background: linear-gradient(160deg, #0058e6 0%, #002f72 100%);
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.featured-blog-content {
  padding: 60px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-blog-category {
  font-size: 14px;
  color: #7a2dfd;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-blog-title {
  font-size: 32px;
  font-weight: 800;
  color: #002f72;
  line-height: 1.3;
  margin-bottom: 20px;
}

.featured-blog-excerpt {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.featured-blog-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.featured-blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-size: 14px;
  color: #666;
}

.featured-breadcrumb a {
  color: #7a2dfd;
  text-decoration: none;
}

.featured-breadcrumb a:hover {
  text-decoration: underline;
}

/* Blogs Header & Filter */
.blogs-header {
  margin-bottom: 50px;
  border-bottom: 2px solid #eef4ff;
  padding-bottom: 30px;
}

.blogs-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #002f72;
  margin-bottom: 30px;
}

.blogs-filter {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: #f7f9ff;
  border: 2px solid #e1e8ff;
  border-radius: 6px;
  color: #002f72;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #7a2dfd;
  color: #7a2dfd;
}

.filter-btn.active {
  background: #7a2dfd;
  border-color: #7a2dfd;
  color: white;
}

/* Blogs Grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.blog-card {
  background: white;
  border: 1px solid #e1e8ff;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 14px 28px rgba(0, 48, 142, 0.15);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(160deg, #0058e6 0%, #002f72 100%);
  background-size: cover;
  background-position: center;
}

.blog-card-content {
  padding: 26px;
}

.blog-card-category {
  font-size: 12px;
  color: #7a2dfd;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #002f72;
  line-height: 1.4;
  margin-bottom: 15px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.85;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-link {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: #7a2dfd;
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination-btn {
  padding: 10px 18px;
  background: #f7f9ff;
  border: 2px solid #e1e8ff;
  border-radius: 6px;
  color: #002f72;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
  border-color: #7a2dfd;
  color: #7a2dfd;
}

.pagination-btn.active {
  background: #7a2dfd;
  border-color: #7a2dfd;
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Newsletter Section */
.newsletter-section {
  background: #eef4ff;
  padding: 80px 120px;
  text-align: center;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-container h3 {
  font-size: 32px;
  font-weight: 800;
  color: #002f72;
  margin-bottom: 20px;
}

.newsletter-container p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px;
  border: 2px solid #d4e2ff;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: #7a2dfd;
}

.newsletter-form button {
  padding: 14px 32px;
  background: #7a2dfd;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background-color: #5d18d9;
}

.newsletter-note {
  font-size: 14px;
  color: #666;
  opacity: 0.8;
}

/* Loading States */
.loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  color: #002f72;
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .blogs-hero {
    padding: 80px 60px 50px;
  }
  
  .blogs-section {
    padding: 60px;
  }
  
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-blog {
    grid-template-columns: 1fr;
  }
  
  .featured-blog-image {
    min-height: 300px;
  }
  
  .newsletter-section {
    padding: 60px;
  }
}

@media (max-width: 768px) {
  .blogs-hero {
    padding: 60px 20px 40px;
  }
  
  .blogs-hero-title {
    font-size: 36px;
  }
  
  .blogs-hero-subtext {
    font-size: 16px;
  }
  
  .blogs-section {
    padding: 40px 20px;
  }
  
  .featured-blog-content {
    padding: 40px 30px;
  }
  
  .featured-blog-title {
    font-size: 28px;
  }
  
  .blogs-grid {
    grid-template-columns: 1fr;
  }
  
  .blogs-filter {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .newsletter-section {
    padding: 40px 20px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-container h3 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .featured-blog-content {
    padding: 30px 20px;
  }
  
  .featured-blog-title {
    font-size: 24px;
  }
  
  .featured-blog-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .blogs-header h2 {
    font-size: 28px;
  }
  
  .pagination-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}