.header {
      background: #172443;
      color: white;
      padding: 40px 0;
      text-align: center;
      display: flex;
      height: 25vh;
      margin: 5pc 0px 0px 0px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      justify-content: center;
      align-items: center;
    }
    .header h1 {
        font-family: Georgia, 'Times New Roman', Times, serif;
        margin: 0;
        font-size: 56px;
        color: #fff;
    }

    .main-content {
      display: flex;
      max-width: 1200px;
      margin: 40px auto;
      gap: 30px;
      padding: 0 20px;
      flex-grow: 1;
    }

    /* ===== Sidebar ===== */
    .sidebar {
      width: 240px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
      padding: 20px;
      height: fit-content;
      position: sticky;
      top: 30px;
    }

    .sidebar h3 {
      color: #172443;
      margin-bottom: 20px;
      font-size: 18px;
      border-bottom: 2px solid #cb982b;
      padding-bottom: 10px;
    }

    .sidebar a {
      display: block;
      padding: 12px 15px;
      border-radius: 8px;
      text-decoration: none;
      color: #172443;
      margin-bottom: 10px;
      font-weight: 500;
      background: #f7f9fc;
      transition: all 0.3s ease;
    }

    .sidebar a:hover,
    .sidebar a.active {
      background: #cb982b;
      color: #fff;
    }

    /* ===== Blog Section ===== */
    .blogs-container {
      flex: 1;
    }

    .section-title {
      font-size: 22px;
      color: #172443;
      margin-bottom: 20px;
      border-left: 4px solid #cb982b;
      padding-left: 10px;
    }

    .blog-section {
      display: block;
      animation: fadeIn 0.4s ease;
    }

    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 20px;
    }


    .blog-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .blog-card:hover {
      transform: translateY(-5px);
    }

    .blog-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .blog-content {
      padding: 15px;
    }

    .blog-content h3 {
      margin: 0 0 10px;
      color: #172443;
      font-size: 18px;
    }

    .blog-content p {
      color: #555;
      font-size: 14px;
      line-height: 1.5;
    }

    .blog-meta {
      font-size: 13px;
      color: #777;
      margin-top: 8px;
    }

    .no-blogs {
      text-align: center;
      color: #555;
      font-size: 18px;
      margin-top: 60px;
      padding: 20px;
      border-radius: 10px;
      width: fit-content;
      margin-left: auto;
      margin-right: auto;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .no-blogs::before {
      content: "😔";
      display: block;
      font-size: 40px;
      margin-bottom: 10px;
    }


    /* Pagination */
    .pagination {
      text-align: center;
      margin: 30px 0;
    }

    .pagination a {
      display: inline-block;
      padding: 8px 12px;
      margin: 0 5px;
      border-radius: 5px;
      background: #f7f9fc;
      color: #172443;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s;
    }

    .pagination a:hover,
    .pagination a.active {
      background: #cb982b;
      color: #fff;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

  
/* ============================================================
   🖥️ LARGE SCREENS (1440px and up)
   ============================================================ */
@media (min-width: 1440px) {
  .main-content {
    max-width: 1400px;
    gap: 40px;
  }
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   💻 LAPTOP / DESKTOP (1025px–1439px)
   ============================================================ */
@media (min-width: 1025px) and (max-width: 1439px) {
  .main-content {
    max-width: 1200px;
    gap: 30px;
  }
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   📱 TABLET LANDSCAPE / PORTRAIT (769px–1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    flex-direction: row;
    padding: 0 40px;
  }
  .sidebar {
    width: auto;
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .header {
    height: 15vh;
    padding: 30px 0;
    margin-top: 4pc;
  }
}

/* ============================================================
   📱 MOBILE (481px–768px)
   ============================================================ */
@media (min-width: 481px) and (max-width: 768px) {
  .main-content {
    flex-direction: column;
    gap: 20px;
  }
  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .header {
    height: auto;
    padding: 30px 10px;
  }
}

/* ============================================================
   📞 SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (min-width: 300px) and (max-width: 480px) {
  .main-content {
    flex-direction: column;
    padding: 0 15px;
  }
  .sidebar {
    width: auto;
        margin-bottom: 20px;
        position: static;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .header {
    padding: 25px 10px;
    font-size: 14px;
    height: auto;
  }
  .blog-card img {
    height: 160px;
  }
  .blog-content h3 {
    font-size: 16px;
  }
  .sidebar h3 {
    font-size: 16px;
  }
}