body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

/* HEADER */
.header {
  background-color: #3b1f0b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: sticky;
  top: 0;
}


/* Logo Link Reset */
.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 50px;        /* Adjust as needed */
  width: auto;
  transition: transform 0.2s ease-in-out;
}

.logo a:hover img {
  transform: scale(1.05);
}


.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav ul li {
  margin: 0 15px;
}

.nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.burger {
  display: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

/* MAIN CONTENT */
.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.blog-section {
  flex: 3;
  min-width: 60%;
}

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

/* BLOG CARD */
.blog-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card h2 {
  font-size: 20px;
  color: #222;
  margin-bottom: 10px;
}

.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
}

.read-btn {
  background-color: #007bff;
  color: white;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.read-btn:hover {
  background-color: #005fcc;
}

/* SIDEBAR */
.sidebar {
  flex: 1;
  min-width: 250px;
  margin-left: 20px;
}

/* Inner card for recent posts */
.recent-posts-wrapper {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recent-posts-wrapper h3 {
  color: #222;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: left;
}

/* Compact recent post item */
.recent-post {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.recent-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-post:hover {
  background-color: #fafafa;
  border-radius: 6px;
}

.recent-post img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}

.recent-post div {
  flex: 1;
}

.recent-post strong {
  display: block;
  font-size: 14px;
  color: #111;
  margin-bottom: 3px;
  font-weight: 600;
}

.recent-post p {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.3;
}


/* Sidebar Recent Post Title Links */
.recent-post-title {
  text-decoration: none;
  color: #222;               /* neutral dark text */
  display: inline-block;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.recent-post-title strong {
  font-weight: 600;
}

.recent-post-title:hover {
  color: #007bff;            /* blue hover to match Read More buttons */
  text-decoration: none;
}


/* FOOTER */
.footer {
  background-color: #222;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
}

.footer-links a:hover {
  text-decoration: underline;
}

  .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
  }

  .page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f1f1;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  .page-btn:hover {
    background: #ddd;
    transform: translateY(-1px);
  }

  .page-btn.active {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 5px rgba(0,124,186,0.3);
  }
 .content1 {
      flex: 3;
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .content1 h1 {
      font-size: 2rem;
      color: #222;
      margin-bottom: 15px;
    }

    .content1 img {
      width: 100%;
      max-height: 500px;
      object-fit: cover;
      border-radius: 10px;
      margin-bottom: 20px;
    }

    .content1 h2 {
      margin-top: 25px;
      font-size: 1.4rem;
      color: #333;
    }

    .content1 p {
      line-height: 1.8;
      color: #444;
      margin-bottom: 15px;
      text-align: justify;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    background: #3b1f0b;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav ul.nav-active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .content-container {
    flex-direction: column;
  }

  .sidebar {
    margin: 20px 0 0;
    order: 2;
  }
 .content1 {
        order: 1;
      }
}

