.blog-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #1FA6A8, #1F5DAA);
  color: var(--white);
  text-align: center;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-container {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 63, 99, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1FA6A8, #3C4DB3);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15, 63, 99, 0.15);
}

.blog-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #1FA6A8 0%, #7B3CB4 100%);
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 63, 99, 0.1);
  pointer-events: none;
}

.blog-content {
  padding: 1.8rem;
}

.blog-meta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-content h3 {
  color: #1F5DAA;
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-weight: 700;
}

.blog-content p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.read-more {
  color: #1FA6A8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.read-more:hover {
  gap: 0.8rem;
  color: #1F5DAA;
}

/* Blog Detail Modal */
.blog-detail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s;
}

.blog-detail.active {
  display: flex;
}

.blog-detail-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-detail-header {
  position: relative;
  height: 350px;
  background: linear-gradient(135deg, #1FA6A8 0%, #7B3CB4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.blog-detail-header h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  z-index: 1;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1F5DAA;
  transition: all 0.3s;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
  transform: rotate(90deg);
  background: var(--white);
}

.blog-detail-body {
  padding: 3rem;
}

.blog-detail-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-bg);
  color: #888;
  font-weight: 500;
}

.blog-detail-body h3 {
  color: #1F5DAA;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.blog-detail-body p {
  color: var(--dark-text);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.blog-detail-body ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-detail-body li {
  color: var(--dark-text);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem 0;
}

.pagination-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #1FA6A8, #1F5DAA);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(31, 166, 168, 0.3);
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 166, 168, 0.4);
}

.pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.page-info {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1F5DAA;
}

/* Blog Modal Styles */
.blog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s;
}

.blog-modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  color: #1F5DAA;
  transition: all 0.3s;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--white);
}

.modal-header {
  background: linear-gradient(135deg, #1FA6A8 0%, #7B3CB4 100%);
  padding: 3rem 2rem 2rem;
  color: var(--white);
  border-radius: 20px 20px 0 0;
}

.modal-header h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.modal-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body {
  padding: 3rem;
}

.modal-body h3 {
  color: #1F5DAA;
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
}

.modal-body p {
  color: var(--dark-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.modal-body strong {
  color: #1F5DAA;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-detail {
    padding: 1rem;
  }

  .blog-detail-header {
    height: 250px;
  }

  .blog-detail-header h2 {
    font-size: 1.8rem;
  }

  .blog-detail-body {
    padding: 2rem 1.5rem;
  }

  .blog-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-modal {
    padding: 1rem;
  }

  .modal-header {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 2rem 1.5rem;
  }

  .modal-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    top: 1rem;
    right: 1rem;
  }
}
