/* =========================
   HERO IMAGE
========================= */
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  display: block;
}

.hero {
  position: relative;
  width: 100%;
  height: 50vh !important;
  overflow: hidden;
}

/* =========================
   HERO CONTENT (FIXED)
========================= */
.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-20%);
  text-align: center;

  margin: 0 auto;
  margin-left: 20px !important;
  max-width: 80%;
  width: 100%;

  z-index: 2;
  color: white;
}

/* Heading */
.hero-content h1 {
  font-size: 2.3rem !important;
  line-height: 1.2;
  margin: 0 auto;
  text-wrap: balance;
}

/* Meta */
.info-by {
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.6)
  );
  z-index: 1;
}

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

.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2b2b2b;
}

.post-content p {
      margin-bottom: 1.5rem;
}





/* =========================
   TABLET
========================= */
@media (max-width: 991px) {

  .hero {
    height: 45vh;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .info-by {
    font-size: 0.9rem;
  }
  
  .author-box {
      margin-bottom: 20px !important;
  }
}

/* =========================
   MOBILE (editorial style)
========================= */
@media (max-width: 576px) {

  .hero {
    height: 40vh !important;
  }

  .hero-content {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin-left: 0px !important;
    transform: none;
    text-align: left;

    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .info-by {
    font-size: 0.8rem;
  }
}

/* =========================
   POST CONTENT
========================= */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* =========================
   SIDEBAR GAP
========================= */
@media (min-width: 992px) {
  .post-content {
    padding-right: 25px;
  }

  .sidebar-col {
    padding-left: 25px;
  }
}

/* =========================
   SIDEBAR STYLING
========================= */
.sidebar-section {
  border-top: 2px solid #eee;
  padding-top: 1rem;
}

.sidebar-title {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.sidebar-card {
  transition: transform 0.2s ease;
  padding: 10px;
  background-color: #FFF;
  gap: 0.5rem;
}

.sidebar-card:hover {
  transform: translateY(-2px);
}

.sidebar-img {
  width: 75px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.sidebar-text {
  font-size: 0.85rem;
  color: #111;
}

.sidebar-date {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 5px !important;
}

/* =========================
   AUTHOR BOX
========================= */
.author-box {
  border-top: 2px solid #eee;
  padding-top: 1rem;
}

.author-box .d-flex {
  align-items: flex-start;
  gap: 12px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.author-bio {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Tablet */
@media (max-width: 991px) {
  .author-avatar {
    width: 55px;
    height: 55px;
  }

  .author-bio {
    font-size: 0.83rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .author-box .d-flex {
    align-items: center;
    gap: 10px;
  }

  .author-avatar {
    width: 50px;
    height: 50px;
  }

  .author-box h6 {
    font-size: 0.9rem;
  }

  .author-bio {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {

    .post-content figure[style*="float"] {
        float: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 20px 0 !important;
    }

    .post-content figure img {
        width: 100% !important;
        height: auto;
    }
}