/* ===========================
   General Reset & Typography
=========================== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* ======================
   Hero Section & Banner
====================== */
.background-container {
  position: relative;
  width: 100%;
  background-image: url(../images/blog.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 60vh;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: none;
}

.hero-overlay {
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  z-index: 10;
}

.breadcrumb {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  opacity: 0.8;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: capitalize;
}

section.hero-banner + .about-us {
  margin-top: 20px;
}

.animate-left,
.animate-right {
  opacity: 0;
}

.animate-now.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-now.animate-right {
  animation: slideInRight 1s ease-out forwards;
}


/* ========================
   Blog Introduction
======================== */
.blog-intro {
  text-align: center;
  padding: 100px 20px;
  margin-bottom: 40px;
}

.blog-heading {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.highlight-text {
  color: #d60000;
}

.blog-description {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================
   Blog Filters & Search
======================== */
.blog-filters {
  display: flex;
  justify-content: flex-start;
  margin: 20px 0;
  padding-left: 70px;
}

.filter-dropdown {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #d02b2f;
  border-radius: 4px;
  background-color: #d02b2f;
  color: white;
}

.search-bar {
  margin: 20px 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

#searchInput {
  padding: 10px;
  font-size: 1rem;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ======================
   Blog Layout
====================== */
.blog-section-container {
  background-color: #f0f0f0;
  padding-bottom: 40px;
}

.blog-container {
  display: grid;
  grid-template-columns: 65% 30%;
  max-width: 1200px;
  margin: 40px auto;
  gap: 50px;
}

/* =======================
   Blog Posts
======================= */
.blog-posts {
  width: 100%;
}

.blog-post {
  background: white;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  height: 600px;
}

.blog-image-container {
  position: relative;
  width: 100%;
  height: 60%;
  overflow: visible;
}

.blog-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-image-container:hover .blog-image {
  transform: scale(1.1);
}

.date-box {
  position: absolute;
  left: 40px;
  top: 300px;
  background: #003366;
  color: white;
  padding: 10px 35px;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
  z-index: 10;
}

.date-day {
  font-size: 24px;
  display: block;
}

.date-month {
  font-size: 14px;
  text-transform: uppercase;
}

.blog-content {
  padding: 15px 0;
}

.blog-date {
  font-size: 14px;
  color: gray;
}

.blog-title {
  font-size: 22px;
  margin: 30px 0 10px;
  padding-left: 40px;
  font-weight: bold;
}

.blog-summary {
  font-size: 18px;
  color: #444;
  padding: 0 0 40px 40px;
}

.read-more {
  text-decoration: none;
  color: #d32f2f;
  font-weight: bold;
  padding-left: 40px;
}

.read-more .arrow {
  font-size: 14px;
}

/* ========================
   Sidebar
======================== */
.blog-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-sidebar div {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-sidebar h4 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Shared Sidebar Styles */
.search-box input,
.newsletter-box input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-box button,
.newsletter-box button {
  width: 100%;
  padding: 8px;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* =======================
   Featured Reports
======================= */
.featured-reports ul {
  list-style: none;
  padding: 0;
}

.featured-reports li {
  margin-bottom: 10px;
}

.featured-reports a {
  color: #d32f2f;
  font-weight: bold;
}

.featured-reports a:hover {
  text-decoration: underline;
}

/* ======================
   Pagination
====================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 10px;
}

.pagination-link,
.pagination-next {
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  background: #f1f1f1;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-next:hover,
.pagination-link.active {
  background: #d9534f;
  color: white;
}

/* ======================
   Blog Categories
====================== */
.blog-categories {
  text-align: center;
  margin: 40px 0;
}

.blog-categories ul {
  list-style: none;
  padding: 0;
}

.blog-categories li {
  display: inline;
  margin: 0 15px;
}

.blog-categories a {
  font-weight: bold;
}

/* ========================
   Call to Action (CTA)
======================== */
.cta {
  background: white;
  color: black;
  text-align: center;
  padding: 60px 40px;
  margin: 80px 0;
  width: 100%;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.cta p {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: #d62828;
  color: white;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease-in-out;
}

.cta-button:hover {
  background-color: #b71c1c;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background-color: #c40000;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  z-index: 1000;
}

/* =======================
   Responsive Media Queries
======================= */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-right {
  animation: slideInRight 1s ease-out forwards;
}


@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .blog-filters {
    padding-left: 20px;
  }

  .search-bar {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 200px;
  }

  .breadcrumb {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .blog-heading {
    font-size: 1.8rem;
  }

  .blog-description {
    font-size: 1rem;
  }

  .cta h2 {
    font-size: 24px;
  }

  .cta p {
    font-size: 16px;
  }

  .cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .blog-title {
    font-size: 20px;
  }

  .blog-summary {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  #searchInput {
    width: 100%;
  }

  .filter-dropdown {
    width: 100%;
  }

  .blog-filters {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
  }
}