/* Bola.com-inspired homepage sections */
.site-home {
  font-family: "PT Sans", Arial, sans-serif;
  color: #333;
  background: #fff;
}

.site-home .container-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* Tags box */
.tags--box {
  margin: 20px 0;
}

.tags--box__container {
  position: relative;
  background: #f5f5f5;
  border-radius: 2px;
  padding: 10px 40px;
}

.tags--box--pager__prev,
.tags--box--pager__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #666;
  z-index: 2;
}

.tags--box--pager__prev {
  left: 6px;
}

.tags--box--pager__next {
  right: 6px;
}

.tags--box--list {
  display: flex;
  gap: 10px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.tags--box--item__link {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tags--box--item__link:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

/* Headline row — container-article + container-aside */
.site-headline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: stretch;
  margin: 16px 0 28px;
}

.container-article {
  min-width: 0;
}

.inner-container-article .main {
  margin: 0;
}

.headline {
  width: 100%;
}

/* Headline main — gambar atas, teks di bawah */
.headline--main {
  margin: 0;
  padding: 0;
  border: 0;
}

.headline--main__image-wrapper {
  margin: 0;
  overflow: hidden;
  background: #f0f0f0;
  line-height: 0;
}

.headline--main__image-link {
  display: block;
}

.headline--main__image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 640 / 358;
  object-fit: cover;
}

.headline--main__wrapper {
  padding: 14px 0 0;
  width: 100%;
}

.headline--main__timestamp {
  margin-bottom: 8px;
}

.headline--main__timeago {
  font-size: 12px;
  color: #888;
  font-family: "PT Sans", Arial, sans-serif;
}

.headline--main__title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.headline--main__title-link:hover .headline--main__title {
  color: var(--site-accent);
}

.headline--main__title {
  margin: 0;
  font-family: Montserrat, "PT Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.28;
  color: #1a1a1a;
}

.headline--main__short-desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #555;
}

/* Bottom slider — sibling headline--main di dalam .headline */
.headline .headline--bottom-slider {
  margin-top: 22px;
  padding-top: 0;
  border: 0;
}

.headline--bottom-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.headline--bottom-slider__title {
  margin: 0;
  font-family: Montserrat, "PT Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.headline--bottom-slider__navs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.headline--bottom-slider__wrapper {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.headline--bottom-slider__list {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  cursor: grab;
  padding-bottom: 2px;
}

.headline--bottom-slider__list::-webkit-scrollbar {
  display: none;
}

.headline--bottom-slider__list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.headline--bottom-slider__list.is-dragging a {
  pointer-events: none;
}

.headline--bottom-slider__item {
  flex: 0 0 190px;
  width: 190px;
  scroll-snap-align: start;
}

.headline--bottom-slider__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.headline--bottom-slider__item_thumbnail {
  overflow: hidden;
  background: #e8e8e8;
  line-height: 0;
}

.headline--bottom-slider__item_thumbnail .small-img {
  width: 190px;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.headline--bottom-slider__link:hover .small-img {
  transform: scale(1.04);
}

.headline--bottom-slider__item_header {
  padding-top: 8px;
}

.headline--bottom-slider__item_timestamp {
  display: block;
  font-size: 11px;
  color: #888;
  line-height: 1.3;
  font-family: "PT Sans", Arial, sans-serif;
}

.headline--bottom-slider__item_title {
  margin-top: 5px;
  font-family: Montserrat, "PT Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
}

.headline--bottom-slider__link:hover .headline--bottom-slider__item_title {
  color: var(--site-accent);
}

.headline--bottom-slider__nav {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.headline--bottom-slider__nav:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.headline--bottom-slider__nav[hidden],
.headline--bottom-slider__nav:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* Main grid — 2×2 kategori */
.site-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  margin-top: 8px;
}

.site-cat-section {
  min-width: 0;
}

.site-cat-section .heading-bar {
  margin-top: 0;
}

/* Tulisan terkini — di bawah headline / bottom slider */
.headline .site-home-feed {
  margin-top: 8px;
}

.headline .site-home-feed .heading-bar {
  margin-top: 24px;
}

/* Category sections */
.heading-bar {
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--site-accent);
}

.heading-bar h2,
.heading-bar h3 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.heading-bar a {
  color: inherit;
  text-decoration: none;
}

.heading-bar a:hover {
  color: var(--site-accent);
}

.site-cat-featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.site-cat-featured__main {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  color: inherit;
}

.site-cat-featured__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
}

.site-cat-featured__main-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
  color: #fff;
}

.site-cat-featured__main-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.site-cat-featured__main:hover .site-cat-featured__main-title {
  color: var(--site-accent-soft);
}

.site-cat-side-list {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}

.site-cat-side-list__item {
  border-bottom: 1px solid #ececec;
  padding: 10px 0;
}

.site-cat-side-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.site-cat-side-list__article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.site-cat-side-list__thumb {
  margin: 0;
  line-height: 0;
}

.site-cat-side-list__thumb-link {
  display: block;
  overflow: hidden;
  background: #f0f0f0;
}

.site-cat-side-list__thumb img {
  width: 96px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

.site-cat-side-list__body {
  min-width: 0;
}

.site-cat-side-list__link {
  display: block;
  text-decoration: none;
  color: inherit;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.site-cat-side-list__link:hover {
  color: var(--site-accent);
}

.site-cat-side-list__time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #888;
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
}

/* Feed list */
.articles--iridescent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.articles--iridescent-list--item {
  border-bottom: 1px solid #e8e8e8;
  padding: 18px 0;
}

.articles--iridescent-list--text-item__link {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.articles--iridescent-list--text-item__category {
  font-size: 11px;
  font-weight: 700;
  color: var(--site-accent);
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
}

.articles--iridescent-list--text-item__title {
  margin: 8px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.articles--iridescent-list--text-item__excerpt {
  margin: 8px 0 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.articles--iridescent-list--text-item__meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
}

.articles--iridescent-list--text-item__figure-thumbnail img {
  width: 140px;
  height: 94px;
  object-fit: cover;
  display: block;
}

.articles--iridescent-list--text-item__link:hover .articles--iridescent-list--text-item__title {
  color: var(--site-accent);
}

.site-feed-more {
  text-align: center;
  margin-top: 24px;
}

.site-feed-more__link {
  display: inline-block;
  background: var(--site-accent);
  color: #fff;
  padding: 12px 28px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
}

.site-feed-more__link:hover {
  background: var(--site-accent-hover);
}

.site-empty-note {
  padding: 24px;
  text-align: center;
  color: #888;
  font-size: 14px;
  background: #f9f9f9;
  border: 1px dashed #ddd;
}

@media (max-width: 991px) {
  .site-headline-row {
    grid-template-columns: 1fr;
  }

  .site-home__grid {
    grid-template-columns: 1fr;
  }

  .headline--main__title {
    font-size: 22px;
  }

  .headline--bottom-slider__item {
    flex: 0 0 170px;
    width: 170px;
  }

  .headline--bottom-slider__item_thumbnail .small-img {
    width: 170px;
    height: 98px;
  }

  .site-cat-featured__main-title {
    font-size: 14px;
  }

  .articles--iridescent-list--text-item__link {
    grid-template-columns: 1fr;
  }

  .articles--iridescent-list--text-item__figure-thumbnail {
    order: -1;
  }

  .articles--iridescent-list--text-item__figure-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 575px) {
  .headline--main__title {
    font-size: 20px;
  }

  .headline--bottom-slider__item {
    flex: 0 0 155px;
    width: 155px;
  }

  .headline--bottom-slider__item_thumbnail .small-img {
    width: 155px;
    height: 90px;
  }
}
