/* ===============================================
   Blog Page Styles - Savvy Ecommerce Theme
   =============================================== */

/* Page Title Section - Matching About Us Page */
.page-title-section {
  position: relative;
  padding: 80px 0;
  background-color: #002045;
  background: linear-gradient(135deg, rgba(0, 38, 116, 0.9) 0%, rgba(0, 20, 64, 0.95) 100%);
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
  overflow: hidden;
}

.page-title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.page-title-wrapper {
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.1;
  animation: titleZoomIn 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
  opacity: 0;
  transform-origin: center;
}

/* Blog Section */
.blog-section {
  padding: 0px;
  background-color: #ffffff;
}

/* Blog Card */
.blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
}

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

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

.blog-card-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #002674;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 1;
}

.blog-card-date .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.blog-card-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

.blog-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 0.85rem;
}

.blog-card-meta i {
  color: #002674;
  margin-right: 5px;
}

.blog-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.3;
  font-family: var(--font-primary);
  color: var(--color-primary, #002674);
}

.blog-card-title a {
  color: var(--color-primary, #002674);
  text-decoration: none;
  transition: color 0.3s;
  text-align: center;
  font-family: var(--font-secondary);
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

.blog-card-excerpt {
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
  font-family: var(--font-secondary);
}

.read-more-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: auto;
  font-family: var(--font-primary);
}

.read-more-link i {
  margin-left: 5px;
  transition: transform 0.3s;
  font-size: 0.8em;
}

.read-more-link:hover {
  color: var(--color-primary-hover);
}

.read-more-link:hover i {
  transform: translateX(5px);
}

/* Blog Card Read More Button - Centered */
.blog-card-read-more {
  text-align: center;
  margin-top: auto;
  padding-top: 15px;
}

.btn-read-more {
  display: inline-block;
  color: var(--color-primary, #002674) !important;
  font-family: var(--font-primary, 'Poppins', sans-serif) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 2px solid var(--color-primary, #002674);
  border-radius: 25px;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-read-more:hover {
  background: var(--color-primary, #002674) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 38, 116, 0.2);
}

.btn-read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

.btn-read-more:hover i {
  transform: translateX(3px);
}

/* Pagination */
.pagination-wrapper {
  margin-top: 50px;
  text-align: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.pagination-wrapper .page-numbers li {
  display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination-wrapper .page-numbers a:hover {
  background-color: #e9ecef;
}

.pagination-wrapper .page-numbers .current {
  background-color: #002674;
  color: #fff;
}

/* No Posts Found */
.no-posts-found {
  text-align: center;
  padding: 50px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-posts-found h2 {
  color: var(--color-heading);
  margin-bottom: 15px;
  font-family: var(--font-primary);
}

.no-posts-found p {
  color: var(--color-text);
  font-family: var(--font-secondary);
}

/* Social Media Section */
.social-section {
  padding: 80px 0;
  background-color: var(--color-background-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.social-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.social-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary, #002674);
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.social-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
}

.social-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleZoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .page-title {
    font-size: 2.8rem;
  }
  
  .blog-card-image img {
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  .page-title {
    font-size: 2.2rem;
  }
  
  .blog-section {
    padding: 40px 0 60px;
  }
  
  .blog-card-title {
    font-size: 1.2rem;
  }
  
  .blog-card-image img {
    height: 200px;
  }
  
  .pagination-wrapper .page-numbers a,
  .pagination-wrapper .page-numbers span {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 575.98px) {
  .page-title-section {
    padding: 60px 0;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .blog-card-image img {
    height: 180px;
  }
  
  .blog-card-content {
    padding: 20px;
  }
  
  .blog-card-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .pagination-wrapper .page-numbers a,
  .pagination-wrapper .page-numbers span {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}
