/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.blog-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.blog-hero-content {
  animation: fadeInLeft 0.8s ease-out;
}

.blog-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blog-hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
}

.blog-hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Blog hero image styles removed - using centered text-only layout */

/* Blog Posts Section */
.blog-posts {
  padding: 80px 0;
  background: #f8f9fa;
  margin-bottom: 150px;
}

.blog-posts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Featured Post */
.featured-post-section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.5rem;
  color: #0a1a4a;
  margin-bottom: 40px;
  font-weight: 700;
  text-align: center;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.featured-post-image {
  position: relative;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-image img {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-post-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

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

.featured-post-title {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.featured-post-title a {
  color: #0a1a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post-title a:hover {
  color: #d4af37;
}

.featured-post-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(10, 26, 74, 0.3);
}

/* Blog Posts Grid */
.blog-posts-grid-section {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

.blog-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-family: 'Poppins', sans-serif;
}

.filter-btn {
  background: white;
  border: 2px solid #e5e7eb;
  color: #666;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  border-color: transparent;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-post-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.post-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .post-image img {
  transform: scale(1.1);
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 26, 74, 0.8) 0%, rgba(30, 58, 138, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-post-card:hover .post-overlay {
  opacity: 1;
}

.post-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 25px;
  border: 2px solid white;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.post-link:hover {
  background: white;
  color: #0a1a4a;
}

.post-content {
  padding: 25px;
}

.post-content .post-meta {
  justify-content: space-between;
  margin-bottom: 15px;
}

.post-content .post-category {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date {
  color: #999;
  font-size: 0.85rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-title a {
  color: #0a1a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #d4af37;
}

.post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.post-author {
  color: #999;
  font-size: 0.9rem;
}

.read-more {
  color: #0a1a4a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #d4af37;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 50px;
}

.load-more-btn {
  background: white;
  border: 2px solid #0a1a4a;
  color: #0a1a4a;
  padding: 15px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
}

/* Newsletter Section */
.blog-newsletter {
  background: linear-gradient(135deg, #0a1a4a 0%, #1e3a8a 100%);
  color: white;
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.blog-newsletter h3 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.blog-newsletter p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
  background: #d4af37;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .blog-hero-title {
    font-size: 2.5rem;
  }
  
  .blog-hero-stats {
    justify-content: center;
    gap: 30px;
  }
  
  .featured-post {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .featured-post-content {
    padding: 30px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .blog-filters {
    justify-content: center;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .blog-newsletter {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 80px 0 60px;
  }
  
  .blog-hero-title {
    font-size: 2rem;
  }
  
  .blog-hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .featured-post-content {
    padding: 25px;
  }
  
  .featured-post-title {
    font-size: 1.5rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* No Posts Message */
.no-posts-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.no-posts-content h3 {
  font-size: 2rem;
  color: #0a1a4a;
  margin-bottom: 15px;
  font-weight: 700;
}

.no-posts-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}
