/* =========================
   Home Banner (Screenshot style)
========================= */
/* .gh-home-banner{ padding: 1.25rem 0 1rem; } */

.gh-banner-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.25rem;
  align-items: stretch;
}

/* Left Trending panel */
.gh-trending {
  background: #fff;
  border-radius: var(--gh-radius, 12px);
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.gh-trending__title {
  margin: 0 0 .9rem;
  font-size: 1.05rem;
  font-family: var(--gh-font-heading, system-ui);
  padding-bottom: .65rem;
  border-bottom: 2px solid rgba(0, 0, 0, .08);
}

.gh-trending__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.gh-trending__item {
  position: relative;
  padding-left: 1.25rem;
}

.gh-trending__rail {
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -18px;
  width: 2px;
  background: rgba(0, 0, 0, .10);
}

.gh-trending__item:last-child .gh-trending__rail {
  display: none;
}

.gh-trending__dot {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gh-primary, #0b57d0);
  box-shadow: 0 0 0 4px rgba(11, 87, 208, .12);
}

.gh-trending__date {
  display: block;
  font-size: .86rem;
  opacity: .75;
  margin: .25rem 0;
}

.gh-trending__link {
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  line-height: 1.25;
  display: inline;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gh-trending__link:hover {
  color: var(--gh-link, #0b57d0);
}

.gh-featured {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Slider */
.gh-featured .gh-slider {
  position: relative;
  background: #fff;
  border-radius: var(--gh-radius, 16px);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  min-height: 420px;
  display: grid;
  grid-template-areas: "overlay";
}

.gh-slide {
  grid-area: overlay;
  opacity: 0;
  visibility: hidden;
  position: relative;
}

/* Instant visibility for the very first slide on load to fix LCP */
.gh-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: none !important;
  z-index: 2;
}

.gh-slide.is-active .gh-slide__title,
.gh-slide.is-active .gh-slide__top,
.gh-slide.is-active .gh-slide__byline {
  opacity: 1;
  transform: none;
  transition: none !important;
}

.gh-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.gh-slide__link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  height: 100%;
}

.gh-slide__media {
  position: relative;
  height: 460px;
  overflow: hidden;
}

.gh-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.gh-slide.is-active .gh-slide__media img {
  transform: scale(1.15);
}

.gh-slide__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

.gh-slide__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.5rem 1.5rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .4) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 3;
}

.gh-slide__top {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .65rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease-out 0.2s;
}

.gh-badge {
  display: inline-block;
  background: var(--gh-primary, #0b57d0);
  color: #fff !important;
  font-weight: 800;
  font-size: .72rem;
  padding: .3rem .6rem;
  border-radius: var(--gh-radius, 8px);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none !important;
  background-image: none !important;
  /* Disable global sliding underline */
  transition: all 0.3s ease;
  line-height: 1;
}

.gh-badge:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.25);
}

.gh-slide__date {
  font-size: .92rem;
  opacity: .9;
}

.gh-slide__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  font-family: var(--gh-font-heading, system-ui);
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s;
}

.gh-slide__byline {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-out 0.4s;
}

.gh-slide.is-active .gh-slide__top,
.gh-slide.is-active .gh-slide__title,
.gh-slide.is-active .gh-slide__byline {
  opacity: 1;
  transform: translateY(0);
}

.gh-dot {
  opacity: .85;
}

/* Dots top-right */
.gh-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gh-dotbtn {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gh-dotbtn.is-active {
  background: #fff;
  width: 24px;
}

/* Bottom cards */
.gh-banner-bottom {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gh-mini-card {
  background: #fff;
  border-radius: var(--gh-radius, 14px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.gh-mini-card__link {
  display: flex;
  gap: .85rem;
  padding: .95rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.gh-mini-card__thumb img,
.gh-mini-card__ph {
  width: 66px;
  height: 66px;
  border-radius: var(--gh-radius, 12px);
  object-fit: cover;
  display: block;
  background: #e5e7eb;
  flex: 0 0 auto;
}

.gh-mini-card__title {
  margin: 0 0 .35rem;
  font-size: .98rem;
  line-height: 1.2;
  font-weight: 900;
}

.gh-mini-card__date {
  font-size: .9rem;
  opacity: .75;
}

/* Responsive like screenshot */
@media (max-width: 980px) {
  .gh-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gh-slide__media {
    height: 380px;
  }

  .gh-slide__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .gh-banner-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .gh-banner-bottom {
    grid-template-columns: 1fr;
  }

  .gh-slide__media {
    height: 300px;
  }

  .gh-slide__overlay {
    padding: 1.5rem 1rem 1.25rem;
  }

  .gh-slide__title {
    font-size: 1.5rem;
  }
}

/* Latest Grid Section */
.gh-latest-grid {
  padding: 4rem 0;
  background: #fff;
}

.gh-section-title {
  font-family: var(--gh-font-heading, system-ui);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 2.5rem;
  color: #111;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gh-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
}

.gh-main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

.gh-main-layout.no-sidebar {
  grid-template-columns: 1fr;
}

@media (max-width: 1120px) {
  .gh-main-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .gh-latest-grid {
    padding: 2.5rem 0;
  }

  .gh-section-title {
    font-size: 1.55rem;
    margin-bottom: 2rem;
  }

  .gh-main-layout {
    gap: 2.5rem;
  }
}

.gh-load-more {
  margin: 3rem 0;
  text-align: center;
}

#gh-load-more-btn {
  color: var(--gh-text);
  padding: 0.9rem 2.5rem;
  font-weight: 500;
  border-radius: var(--gh-radius, 12px);
  cursor: pointer;
  transition: all 0.3s ease;
}

#gh-load-more-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

#gh-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 430px) {
  .gh-main-layout {
    display: flex;
    flex-direction: column;
  }

  .gh-main-layout .sidebar {
    width: 100%;
  }
}