/* =======================
   HERO SLIDER (FULL WIDTH)
======================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 100%;
  opacity: 0;
  transition: all 1.5s ease-in-out;
}
.hero-slide.active {
  left: 0;
  opacity: 1;
  z-index: 2;
}
.hero-slide.prev {
  left: -100%;
  opacity: 0;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}
.hero-slide .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3rem;
  width: 100%;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.hero-slide h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-slide p {
  font-size: 1rem;
  opacity: 0.9;
}

/* =======================
   EXPLORE TOPICS (ICONS)
======================= */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}
.topic-tile {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}
.topic-tile:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-5px);
}
.topic-tile i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #007bff;
  transition: all 0.3s ease;
}
.topic-tile:hover i {
  color: #fff;
}
.topic-tile span {
  display: block;
  font-weight: 600;
}

/* =======================
   CATEGORY SECTIONS
======================= */
.category-section {
  margin-top: 4rem;
}
.category-section h3 {
  font-weight: 700;
  border-bottom: 2px solid #007bff;
  display: inline-block;
  padding-bottom: .4rem;
  margin-bottom: 1.5rem;
}
.masonry {
  column-count: 3;
  column-gap: 1.5rem;
  background: #ffffff;
}
.masonry .post {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}
.masonry .post img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.masonry .post h5 {
  margin-top: .7rem;
}
.masonry .post a {
  text-decoration: none;
  color: #111;
}
.masonry .post a:hover {
  color: #007bff;
}

/* Responsive */
@media (max-width: 992px) {
  .masonry { column-count: 2; 
      background: #ffffff;
  }
 
}
@media (max-width: 600px) {
  .hero-slider { height: 400px; }
  .masonry { column-count: 1; 
  background: #ffffff;
  }
}