/* BLOG HERO */

.blog-hero {
  background-image: url('../img/blog-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 267px;
  position: relative;
  display: flex;
  align-items: center;
}

.category-card:hover span {
  color: #000;
}

/* .blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
} */

.blog-hero .container {
  position: relative;
  z-index: 2;
}

.blog-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.blog-subtitle {
  font-size: 18px;
  color: #fff;
  opacity: 0.9;
  max-width: 600px;
  margin: auto;
}

/* RESPONSIVE */

@media (max-width:991px) {

  .blog-title {
    font-size: 40px;
  }

}

@media (max-width:768px) {

  .blog-hero {
    padding: 90px 0;
  }

  .blog-title {
    font-size: 34px;
  }

  .blog-subtitle {
    font-size: 16px;
  }

}

@media (max-width:480px) {

  .blog-hero {
    padding: 70px 0;
  }

  .blog-title {
    font-size: 28px;
  }

  .blog-subtitle {
    font-size: 15px;
  }

}

@media (max-width:320px) {

  .blog-title {
    font-size: 24px;
  }

  .blog-subtitle {
    font-size: 14px;
  }

}


/* FEATURED SECTION */

.featured-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

/* IMAGES */

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* HEIGHTS */

.featured-big {
  height: 585px;
}

.featured-small {
  height: 283px;
}

/* RIGHT SIDE SPACING */

.featured-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

/* GRADIENT OVERLAY */

.featured-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 40%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.4),
      transparent);
      z-index: 9;
}

/* CONTENT */

.card-overlay {
position: absolute;
  bottom: -90px;
  left: 20px;
  right: 20px;
  z-index: 9;
  transition: all .35s ease;
}

.featured-card:hover .card-overlay {
  bottom: 20px;
}

.meta {
  margin-bottom: 15px;
}

/* CATEGORY */

.category {
  display: inline-block;
  background: #e10600;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* TITLES */

.featured-big h3 {
  font-size: 38.6px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  text-decoration: underline;
}

.featured-small h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #fff;
  text-decoration: underline;

}

/* META */

.meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #ddd;
}

/* RESPONSIVE */

@media (max-width:991px) {

  .featured-big {
    height: 360px;
    margin-bottom: 30px !important;
  }

}

@media (max-width:768px) {

  .featured-big {
    height: 300px;
  }

  .featured-small {
    height: 180px;
  }

}

@media (max-width:576px) {

  .featured-big {
    height: 260px;
  }

  .featured-small {
    height: 160px;
  }

  .featured-big h3 {
    font-size: 22px;
  }

  .featured-small h4 {
    font-size: 16px;
  }

}

@media (max-width:320px) {

  .featured-big {
    height: 220px;
  }

  .featured-small {
    height: 140px;
  }

}

/* FEATURED CARD HOVER EFFECT */

.featured-card {
  transition: all .35s ease;
}

.featured-card img {
  transition: transform .6s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* IMAGE ZOOM */

.featured-card:hover img {
  transform: scale(1.06);
}

/* TITLE ANIMATION */

.featured-big h3,
.featured-small h4 {
  transition: color .3s ease;
  color: #ffffff;

}

.featured-card:hover h3,
.featured-card:hover h4 {
  color: #ffffff;
}

/* CATEGORY TAG ANIMATION */

.category {
  transition: all .3s ease;
  color: #ffffff;

}

.featured-card:hover .category {
  background: #ff2a1f;
}

/* META FADE */

.meta {
  transition: opacity .3s ease;
}

.featured-card:hover .meta {
  opacity: 0.9;
}


/* BLOG ADVERTISEMENT */

.blog-ad-section {
  margin-top: 10px;
}

.blog-ad {
  border-radius: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #555;
}

/* responsive */

@media (max-width:768px) {

  .blog-ad {
    padding: 30px 15px;
    font-size: 20px;
  }

}

@media (max-width:480px) {

  .blog-ad {
    padding: 25px 10px;
    font-size: 18px;
  }

}


.latest-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
}

.blog-grid {
  row-gap: 40px;
}

.blog-card {
  display: block;
  text-decoration: none;
  color: #111;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  min-height: 450px;
}

.blog-card:hover {
  text-decoration: none;
}

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

.blog-card h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.blog-card p {
  font-size: 14px;
  color: #000;
  margin-bottom: 10px;
}

.blog-meta {
  font-size: 13px;
  color: #000;
  display: flex;
  gap: 14px;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 30px;
}

.load-btn {
  border: none;
  background: #e9e9e9;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
}


/* SIDEBAR */

.sidebar-ad {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
}

.category-box {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #ddd;
}

.category-box h4 {
  font-size: 18px;
  margin-bottom: 18px;
}

.category-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-box li {
  padding: 0px 0;
}

.category-box .cat-count {
  background: #e2e2e2;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}


.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.category-list a:hover {
  text-decoration: none;
}

.cat-count {
  background: #e2e2e2;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.category-list a:hover {
  color: #000;
}


/* POPULAR CATEGORIES */

.popular-categories {

  background: url('https://fastly.picsum.photos/id/289/900/600.jpg?hmac=ALBB0kOJSbuuo0Qz0gusHWvIvOAPNvRfY-qOig17nq8') center/cover no-repeat;

  padding: 60px 0px 25px;

  position: relative;

}

/* dark overlay */

.popular-categories::before {

  content: "";

  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.85);

}

.popular-categories .container {

  position: relative;

  z-index: 2;

}

/* LEFT TEXT */

.category-info h3 {

  color: #fff;

  font-size: 26px;

  font-weight: 700;

  margin-bottom: 12px;

}

.category-info p {

  color: #d0d0d0;

  font-size: 14px;

}

/* CARD */

.category-card {

  display: block;

  background: #fff;

  border-radius: 12px;

  overflow: hidden;

  text-align: center;

  text-decoration: none;

  color: #000;

  transition: all .35s ease;
  margin-bottom: 30px;

}

/* IMAGE */

.category-card img {

  width: 100%;
  height: 163px;
  object-fit: cover;
  transition: transform .4s ease;

}

/* TITLE */

.category-card span {

  display: block;

  padding: 10px 5px;

  font-size: 14px;

  font-weight: 600;

}

/* HOVER ANIMATION */

.category-card:hover {

  transform: translateY(-6px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  text-decoration: none;

}

.category-card:hover img {

  transform: scale(1.08);

}

/* REMOVE LINK UNDERLINE */

a {

  text-decoration: none;

}

/* RESPONSIVE */

@media(max-width:768px) {

  .category-card img {

    height: 110px;

  }

}

@media(max-width:480px) {

  .category-card img {

    height: 100px;

  }

}

/* POPULAR BLOGS */

.popular-blog-card {

  display: block;

  border: 1px solid #e5e5e5;

  border-radius: 12px;

  padding: 15px;

  text-decoration: none;

  color: #000;

  transition: .35s ease;

  background: #fff;
  min-height: 340px;
  margin-bottom: 25px;

}

.popular-blog-card:hover {
  text-decoration: none;
}

.popular-blog-card img {

  width: 100%;

  height: 248px;

  object-fit: cover;

  border-radius: 10px;

  margin-bottom: 12px;

  transition: transform .4s ease;

}

.popular-blog-card h5 {

  font-size: 20px;

  font-weight: 700;

  margin-bottom: 6px;

  color: #000;

}

.popular-blog-card p {

  font-size: 16px;

  color: #000;

  margin-bottom: 10px;

}

.popular-blog-card .blog-meta {

  font-size: 13px;

  color: #000;

  display: flex;

  gap: 15px;

}

/* HOVER */

.popular-blog-card:hover {

  transform: translateY(-6px);

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);

}

.popular-blog-card:hover img {

  transform: scale(1.05);

}


.blog-card:hover {

  transform: translateY(-6px);

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);

}

.blog-card img {
  transition: transform .4s ease;
}

.blog-card:hover img {

  transform: scale(1.05);

}

/* SHARE STORY */

.share-story-section {
  padding: 0px;
}

.share-story-box {

  background: #e9e9e9;

  padding: 40px 30px;

  border-radius: 12px;

  text-align: center;


  margin: auto;

}

.share-story-box h3 {

  font-size: 24px;

  font-weight: 700;

  margin-bottom: 10px;

}

.share-story-box p {

  font-size: 14px;

  color: #666;

  margin-bottom: 20px;

}

.story-buttons {

  display: flex;

  justify-content: center;

  gap: 15px;

  flex-wrap: wrap;

}

/* BUTTONS */

.btn-write {

  background: #000;

  color: #fff;

  padding: 10px 20px;

  border-radius: 6px;

  text-decoration: none;

  font-size: 14px;

}

.btn-community {

  background: #000;

  color: #fff;

  padding: 10px 20px;

  border-radius: 6px;

  text-decoration: none;

  font-size: 14px;

}

/* HOVER */

.btn-write:hover,
.btn-community:hover {

  background: #222;

}

/* MOBILE */

@media(max-width:576px) {

  .share-story-box {

    padding: 30px 20px;

  }

}

.page-item.active .page-link {
  background-color: #e10600 !important;
  border-color: #e10600 !important;
  color: #fff !important;
}

.page-link {
  color: #000 !important;
}

.btn-write:hover,
.btn-community:hover {
  color: #fff !important;
  text-decoration: none !important;
}



.featured-section {
  background-image: url('../img/blogbg.png');
  background-size: cover;
}

.story-buttons a img {
  margin-right: 3px;
  vertical-align: sub;
}

.card-overlay p {
  color: #fff;
}