/* ==========================
   Blog Page CSS
========================== */

/* Hero Section */
.blog-hero {
  height: 100vh;
  min-height: 600px;
  background: url('../images/blog-hero.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 0;
}

.blog-hero h1,
.blog-hero p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
}

/* Accent line under the heading */
.blog-hero h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #f0a500;
  border-radius: 2px;
}

.blog-hero p {
  font-size: 1.2rem;
  color: #fff;
  max-width: 600px;
}

.intro-section {
  background-color: #f9f9f9;
}

.intro-section h2 {
    font-size: 2.5rem;
    color: #f0a500;
    position: relative;
    display: inline-block;
}

.intro-section h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f0a500;
    border-radius: 2px;
}


.intro-section p {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================
   Blog Posts Section
========================== */
.blog-main {
  padding: 50px 3%;
  background-color: #ffffff;
  color: #333;
}

/* TEXT SIDE */
.blog-text {
  flex: 1 1 50%;
  position: relative;
  z-index: 1;
}

/* Floating shapes behind text */
.blog-text::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 200px;
  height: 200px;
  background: rgba(240, 165, 0, 0.15);
  border-radius: 50%;
  transform: rotate(15deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

.blog-text::after {
  content: "";
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 150px;
  height: 150px;
  background: rgba(240, 165, 0, 0.1);
  border-radius: 50%;
  transform: rotate(-10deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

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

.blog-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  cursor: pointer;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.blog-content {
  padding: 20px;
}

.blog-content h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #030303;
}

.blog-content p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  font-weight: 500;
  color: #f0a500;
  border: 2px solid #f0a500;
  border-radius: 30px;
  padding: 7px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more:hover {
  background-color: #f0a500;
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================
   Updated Filter Buttons
========================== */
.blog-filters {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.blog-filters .btn {
  position: relative;
  overflow: hidden;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  border: 2px solid #f0a500;
  background: #fff;
  border-radius: 30px;
  transition: all 0.35s ease;
  letter-spacing: 0.3px;
}

.blog-filters .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f0a500;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
  border-radius: 30px;
}

.blog-filters .btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.blog-filters .btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(240, 165, 0, 0.3);
}

.blog-filters .btn.active {
  background: #f0a500;
  color: #fff;
  box-shadow: 0 6px 15px rgba(240, 165, 0, 0.3);
}

/* Dynamic Blog Pagination */
#blogPagination {
  margin-top: 40px;
}

#blogPagination .page-link {
  color: #222;
  border: none;
  margin: 0 5px;
  border-radius: 30px;
  padding: 10px 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #f1f1f1;
}

#blogPagination .page-item.active .page-link {
  background-color: #ffc107;
  color: #fff;
  border: none;
}

#blogPagination .page-link:hover {
  background-color: #222;
  color: #fff;
  transform: translateY(-2px);
}

#blogPagination .page-link.pill-btn {
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  background-color: #f1f1f1;
  color: #222;
  transition: all 0.3s ease;
}

#blogPagination .page-link.pill-btn:hover {
  background-color: #f0a500;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(240, 165, 0, 0.3);
}

/* ==========================
   Responsive Design
========================== */
@media (max-width: 992px) {
  .blog-content h2 {
    font-size: 1.3rem;
  }
  .blog-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  .blog-content h2 {
    font-size: 1.2rem;
  }
  .blog-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-card img {
    height: 180px;
  }
  .blog-content h2 {
    font-size: 1.1rem;
  }
  .blog-content p {
    font-size: 0.85rem;
  }
  .read-more {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
}


