@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;400;700&display=swap");

/* ---------------- Blog Hero ---------------- */
.blog-hero {
  text-align: left;
  padding: 80px 5%;
  background-color: #f9fafc;
  border-bottom: 1px solid #e5e7eb;
  font-family: "Raleway", sans-serif;
}

.blog-hero h1 {
  font-family: "Raleway", sans-serif;
  font-size: 3rem;
  color: #011938;
  margin-bottom: 8px;
  font-weight: 700;
}

.breadcrumb {
  font-family: "Raleway", sans-serif;
  font-size: 1.6rem;
  color: #011938;
  margin: 5px 0 25px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb span {
  font-family: "Raleway", sans-serif;
  color: #011938;
  font-weight: 600;
}

.breadcrumb-icon {
  color: #011938;
  font-size: 0.9rem;
}

.blog-hero h2 {
  font-family: "Raleway", sans-serif;
  margin-top: 10px;
  font-size: 1.6rem;
  color: #011938;
  font-weight: 600;
}

.article-count {
  font-family: "Raleway", sans-serif;
  margin-top: 5px;
  font-size: 0.95rem;
  color: #333;
}

/* ---------------- Blog Section ---------------- */
.blog-section {
  font-family: "Raleway", sans-serif;
  padding: 50px 5%;
  display: flex;
  justify-content: center;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 100%;
  width: 100%;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.blog-card:hover .blog-title {
  color: #eda43f; /* Yellow hover color */
  transition: color 0.3s ease;
}

/* ---------- Blog Image + Tag Over Image ---------- */
.blog-image-container {
  position: relative;
  width: 100%;
  height: 250px;
}

.blog-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-image-container .tag {
  font-family: "Raleway";
  position: absolute;
  top: 12px;
  left: 12px;
  background: #eda43f;
  color: white;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ---------- Blog Content ---------- */
.blog-content {
  padding: 20px;
  font-family: "Raleway";
}

.blog-date {
  font-family: "Raleway";
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #666666;
  margin: 8px 0 12px;
}

.date-icon {
  color: #011938;
  font-size: 1rem;
}

.blog-title {
  font-family: "Raleway";
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: auto;
}

.blog-desc {
  font-family: "Raleway";
  font-size: 17px;
  color: #011938;
  margin-bottom: 15px;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.5rem;
  max-height: 3rem;
}

/* ---------- Blog Author ---------- */
.blog-author {
  font-family: "Raleway" !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.blog-author p {
  font-family: "Raleway";
  font-size: 16px;
  color: #011938;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.blog-author p b {
  color: #011938;
  font-weight: 600;
  margin-top: 3px;
}

.blog-author .arrow {
  font-size: 1rem;
  color: #011938;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 5px;
}

.blog-author .arrow:hover {
  transform: translateX(4px);
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid #011938;
  margin: 20px 0;
  opacity: 0.5;
}

/* ---------- Popup ---------- */
.blog-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.popup-content {
  background: #fff;
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 90vh;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: fadeInUp 0.4s ease;
}

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

.close-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.8rem;
  color: #011938;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: #eda43f;
}

.popup-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.popup-text {
  padding: 20px 28px 32px;
  color: #011938;
  font-family: "Raleway";
}

.popup-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.popup-date i {
  color: #eda43f;
}

.popup-author {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 10px;
}

.popup-divider {
  width: 100%;
  height: 1px;
  background: #ddd;
  margin: 15px 0;
}

.popup-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #011938;
  margin-bottom: 8px;
}

.popup-text p {
  line-height: 1.6;
  font-size: 1rem;
  color: #011938;
}

/* ---------------- Pagination ---------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto 0 auto;
  text-align: center;
  width: 100%;
  margin-bottom: 1px;
}

.pagination-btn {
  font-family: "Raleway";
  background-color: #1c2856;
  color: white;
  border: #1c2856 1px solid;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #003e99;
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#pageIndicator {
  font-family: "Raleway";
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* ---------------- Responsive ---------------- */

/* Tablet: 2 cards per row */
@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: adjustments for <768px */
@media (max-width: 768px) {
  .blog-hero {
    text-align: left;
    padding: 50px 5%;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .breadcrumb {
    justify-content: start;
    text-align: left;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 1rem;
  }

  .blog-hero h2 {
    text-align: left;
    font-size: 1.3rem;
    margin-top: 8px;
  }

  .article-count {
    text-align: left;
    font-size: 0.85rem;
    margin-top: 4px;
  }

  .blog-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-image-container {
    height: 200px;
  }

  .blog-title {
    font-size: 1.3rem;
  }
  .blog-desc {
    font-size: 0.95rem;
    line-height: 1.4rem;
    max-height: 2.8rem;
  }

  .blog-author p {
    font-size: 14px;
  }

  .blog-author .arrow {
    font-size: 0.9rem;
  }

  .pagination {
    flex-direction: row;
    gap: 10px;
    margin: 1.5rem auto 20px auto;
  }

  .pagination-btn {
    width: 120px;
    font-size: 14px;
    padding: 8px 16px;
  }
}
