/* =========================
   GENERAL
========================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5f6fa;
}

/* =========================
   HEADER + NAVBAR
========================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

/* Desktop navbar */
.navbar {
  display: flex;
  gap: 25px;
}

.navbar a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #d61a3c;
}

/* Hamburger */
.mobile-menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-icon span {
  width: 26px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  border-radius: 2px;
}

/* Offcanvas Overlay */
.offcanvas-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.offcanvas-overlay.active {
  display: block;
}

/* =========================
   OFFCANVAS (MOBILE NAV)
========================= */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 250px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 25px;
    gap: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1001;
  }

  .navbar.active {
    left: 0;
  }

  .mobile-menu-icon {
    display: flex;
  }
}

/* =========================
   POST GRID / CARD
========================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border: 1px solid #eaeaea;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Post title center aligned */
.post-card h3 {
  text-align: center;
  font-weight: 600;
  color: #000;
  margin: 12px 10px;
  font-size: 1rem;
  position: relative;
}

.post-card h3::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #007bff;
  border-radius: 2px;
}

/* Meta (Author + Date) */
.post-meta {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  padding: 8px 0 15px;
  border-top: none;
}

/* Responsive layout */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .image-wrapper {
    height: 180px;
  }
}

/* =====================
   ✅ Section Title
===================== */
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 40px 0 20px;
  position: relative;
  color: #222;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #007bff;
  border-radius: 2px;
}

/* =====================
   ✅ Pagination Style (Old look)
===================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a {
  padding: 8px 14px;
  border: 1px solid #007bff;
  color: #007bff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  font-size: 0.95rem;
}

.pagination a:hover {
  background: #007bff;
  color: #fff;
}

.pagination a.active {
  background: #007bff;
  color: #fff;
  font-weight: 600;
}

/* ✅ Text Alignment Fix for Intro Sections */
.intro-section .container p {
  text-align: justify !important;   /* Force justify */
  text-justify: inter-word !important;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #222;
  margin: 0 auto;
  max-width: 900px; /* Center width */
}

/* Center headings */
.intro-section h2 {
  text-align: center !important;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Section padding for spacing */
.intro-section {
  padding: 50px 20px;
}
