/* INDEX HOME PAGE STYLES */

/* Global */
body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Section Wrapper */
.trending-section {
  padding: 44px 20px 34px;
  background: radial-gradient(circle at top, #faf5f3 0, #f5f5f5 40%, #f5f5f5 100%);
  text-align: center;
}

/* Section Headings */
.section-title {
  font-size: 32px;
  color: #111822;
  margin-bottom: 26px;
  font-weight: 700;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 34, 0.03);
  border: 1px solid rgba(17, 24, 34, 0.08);
}

.section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b41f24, #f58a3b);
  box-shadow: 0 0 0 4px rgba(180, 31, 36, 0.15);
}

.section-title::after {
  content: "";
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b41f24, #f58a3b);
}

/* Grid Layout */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto 20px;
}

/* Post Card */
.post-card {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  padding-bottom: 14px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* Small colored line on top */
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, #b41f24, #f58a3b);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Card hover */
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.14);
  background: #ffffff;
}

.post-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Images */
.post-card-image {
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.post-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* Titles */
.post-card h3 {
  margin: 14px 14px 4px;
  font-size: 18px;
  color: #111822;
  line-height: 1.4;
  font-weight: 600;
}

/* Links in cards */
.post-card a {
  color: #111822;
  text-decoration: none;
}

.post-card:hover h3 {
  text-decoration: underline;
}

/* Read More Button (shared) */
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: #111822;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  gap: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease,
    border-color 0.25s ease;
}

/* Position “More in …” below grid, centered */
.read-more-right {
  display: inline-flex;
  margin-top: 8px;
  margin-bottom: 40px;
  margin-right: 0;
  float: none;
}

/* Arrow indicator */
.read-more-right::after {
  content: "→";
  font-size: 14px;
}

/* Button hover */
.read-more:hover {
  background: linear-gradient(135deg, #b41f24, #f58a3b);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Center the read-more inside section */
.trending-section {
  /* keep your existing padding/background etc. plus: */
  text-align: center;
}

/* Remove the clearfix now that we don't float */
.trending-section::after {
  content: "";
  display: block;
  clear: none;
}


/* Spacing Between Sections (if used) */
.section-spacing {
  margin-top: 60px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .section-title {
    font-size: 28px;
    padding: 6px 14px 9px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
  }

  .post-card img {
    height: 170px;
  }

  .read-more-right {
    margin-right: 0;
    float: none;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 22px;
  }

  .post-card h3 {
    font-size: 16px;
  }

  .trending-grid {
    gap: 18px;
  }
}
