/* Design tokens from dana.id/personal/dana-traveler/explore-indonesia */

.dana-blog-banner,
.dana-blog-search,
.dana-blog-search-results,
.dana-blog-grid,
.dana-blog-card,
.dana-blog-pagination,
.dana-blog-empty {
  font-family: Montserrat, sans-serif;
}

/* Banner carousel */

.dana-blog-banner {
  overflow: hidden;
  padding-bottom: 8px;
}

.dana-blog-banner .swiper {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.dana-blog-banner .swiper-wrapper {
  box-sizing: content-box;
  display: flex;
  position: relative;
  transition-property: transform;
  width: 100%;
}

.dana-blog-banner .swiper-slide {
  flex-shrink: 0;
  position: relative;
}

.dana-blog-banner__slide {
  box-sizing: border-box;
  padding: 0 6px;
  width: 1092px;
}

.dana-blog-banner__card {
  border-radius: 24px;
  display: block;
  height: var(--dana-banner-height, 596px);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 1080px;
  max-width: 100%;
  background: #052d4a;
}

.dana-blog-banner__card::before {
  background: linear-gradient(0deg, rgb(5 45 74 / 82%) 0%, rgb(5 45 74 / 0%) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.dana-blog-banner__card--flat::before {
  content: none;
}

.dana-blog-banner__card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  max-width: none;
}

.dana-blog-banner__overlay {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  inset: 0;
  justify-content: center;
  padding: 48px;
  position: absolute;
  text-align: center;
  z-index: 2;
}

.dana-blog-banner__date {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 140%;
}

.dana-blog-banner__title {
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  line-height: 140%;
  margin: 0;
  max-width: 760px;
}

.dana-blog-banner__button {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #108ee9;
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  gap: 8px;
  line-height: 120%;
  padding: 12px 24px;
}

.dana-blog-banner .swiper-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  position: static;
}

.dana-blog-banner .swiper-pagination-bullet {
  background: #cfd3d8;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  height: 12px;
  opacity: 1;
  width: 12px;
}

.dana-blog-banner .swiper-pagination-bullet-active {
  background: #108ee9;
}

/* Search section */

.dana-blog-search__head {
  margin-bottom: 24px;
}

.dana-blog-search__head h1 {
  color: #313131;
  font-size: 33px;
  font-weight: 700;
  line-height: 120%;
  margin: 0 0 8px;
}

.dana-blog-search__head p {
  color: #727272;
  font-size: 21px;
  font-weight: 500;
  line-height: 140%;
  margin: 0;
}

.dana-blog-search__filters {
  display: flex;
  gap: 16px;
}

.dana-blog-search__select-wrap {
  max-width: 280px;
  position: relative;
  width: 100%;
}

/* Custom dropdown, mirrors the rc-select design on dana.id */

.dana-blog-select {
  position: relative;
}

.dana-blog-select__trigger {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #313131;
  cursor: pointer;
  display: flex;
  font-family: Montserrat, sans-serif;
  font-size: 17px;
  font-weight: 500;
  gap: 12px;
  justify-content: space-between;
  min-height: 56px;
  outline: 0;
  padding: 0 20px;
  text-align: left;
  width: 100%;
}

.dana-blog-select.is-open .dana-blog-select__trigger,
.dana-blog-select__trigger:focus-visible {
  background: #e3e3e3;
}

.dana-blog-select__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dana-blog-select__chevron {
  color: #a4a4a4;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dana-blog-select.is-open .dana-blog-select__chevron {
  transform: rotate(180deg);
}

.dana-blog-select__dropdown {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 24px;
  display: none;
  left: 0;
  list-style: none;
  margin: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 99;
}

.dana-blog-select.is-open .dana-blog-select__dropdown {
  animation: danaBlogSelectIn 0.2s ease;
  display: block;
  transform-origin: top;
}

@keyframes danaBlogSelectIn {
  from {
    opacity: 0;
    transform: scaleY(0.9);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.dana-blog-select__option {
  border-bottom: 1px solid #e3e3e3;
  border-radius: 12px;
  color: #313131;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px;
}

.dana-blog-select__option:last-child {
  border-bottom: 0;
}

.dana-blog-select__option:hover,
.dana-blog-select__option.is-highlighted {
  background: #f5f5f5;
}

.dana-blog-select__option.is-selected {
  color: #108ee9;
  font-weight: 700;
}

.dana-blog-search__input-wrap {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  display: flex;
  flex: 1;
  min-height: 56px;
  padding: 0 20px;
}

.dana-blog-search__icon {
  color: #a4a4a4;
  flex-shrink: 0;
  margin-right: 12px;
}

.dana-blog-search__input-wrap input {
  background: transparent;
  border: 0;
  color: #313131;
  font-family: Montserrat, sans-serif;
  font-size: 17px;
  font-weight: 500;
  outline: 0;
  width: 100%;
}

.dana-blog-search__input-wrap input::placeholder {
  color: #a4a4a4;
}

.dana-blog-search__button {
  background: #108ee9;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 120%;
  min-width: 128px;
  padding: 0 24px;
}

/* Search results */

.dana-blog-search-results__head {
  margin-bottom: 24px;
}

.dana-blog-search-results__head h2 {
  color: #313131;
  font-size: 33px;
  font-weight: 700;
  line-height: 120%;
  margin: 0 0 8px;
}

.dana-blog-search-results__query {
  color: #108ee9;
}

.dana-blog-search-results__count {
  color: #727272;
  font-size: 17px;
  font-weight: 500;
  line-height: 140%;
  margin: 0;
}

.dana-blog-empty__reset {
  color: #108ee9;
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  margin-top: 16px;
  text-decoration: none;
}

/* Article grid */

.dana-blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dana-blog-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 414px;
  overflow: hidden;
  padding-bottom: 16px;
}

.dana-blog-card__image {
  background: #f0f0f0;
  display: block;
  height: 205px;
  overflow: hidden;
}

.dana-blog-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dana-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
}

.dana-blog-card__date {
  color: #727272;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
}

.dana-blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 140%;
  margin: 0;
}

.dana-blog-card__title a {
  color: #313131;
  text-decoration: none;
}

.dana-blog-card__desc {
  -webkit-box-orient: vertical;
  color: #727272;
  display: -webkit-box;
  font-size: 14px;
  font-weight: 400;
  -webkit-line-clamp: 3;
  line-height: 140%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dana-blog-card__action {
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.dana-blog-card__button {
  align-items: center;
  background: #fff;
  border-radius: 40px;
  color: #108ee9;
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  justify-content: center;
  line-height: 120%;
  min-height: 48px;
  min-width: 146px;
  padding: 12px 24px;
  text-decoration: none;
}

/* Pagination */

.dana-blog-pagination {
  border: 0;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.dana-blog-pagination ul.page-numbers {
  align-items: center;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dana-blog-pagination li {
  line-height: 0;
  list-style: none;
  margin: 0;
}

.dana-blog-pagination .page-numbers {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #727272;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  line-height: 120%;
  min-width: 32px;
  padding: 0 8px;
  text-decoration: none;
}

.dana-blog-pagination a.page-numbers:hover {
  color: #108ee9;
}

.dana-blog-pagination .page-numbers.current {
  background: #108ee9;
  color: #fff;
}

.dana-blog-pagination .page-numbers.dots {
  background: transparent;
  min-width: 20px;
  padding: 0 2px;
}

.dana-blog-pagination .page-numbers.is-disabled {
  cursor: default;
  opacity: 0.4;
  pointer-events: none;
}

.dana-blog-empty {
  background: #fff;
  border-radius: 24px;
  color: #727272;
  font-size: 21px;
  padding: 80px 24px;
  text-align: center;
}

@media (max-width: 1024px) {
  .dana-blog-banner__slide {
    width: 676px;
  }

  .dana-blog-banner__card {
    height: var(--dana-banner-height, 480px);
    width: 664px;
  }

  .dana-blog-search__filters {
    flex-wrap: wrap;
  }

  .dana-blog-search__select-wrap,
  .dana-blog-search__button {
    max-width: none;
    width: 100%;
  }

  .dana-blog-search__input-wrap {
    flex-basis: 100%;
  }

  .dana-blog-search__button {
    min-height: 56px;
  }

  .dana-blog-select__trigger,
  .dana-blog-search__input-wrap input {
    font-size: 14px;
    font-weight: 400;
  }

  .dana-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 767px matches Elementor's default mobile breakpoint, so the device
   switcher previews what the stylesheet actually does */
@media (max-width: 767px) {
  .dana-blog-banner__slide {
    padding: 0;
    width: 100vw;
  }

  .dana-blog-banner__card {
    border-radius: 0;
    height: var(--dana-banner-height, 554px);
    width: 100vw;
  }

  .dana-blog-banner__overlay {
    padding: 24px;
  }

  .dana-blog-banner__date {
    font-size: 11px;
    font-weight: 400;
    line-height: 120%;
  }

  .dana-blog-banner__title {
    font-size: 21px;
  }

  .dana-blog-search__head h1,
  .dana-blog-search-results__head h2 {
    font-size: 27px;
  }

  .dana-blog-search__head p {
    font-size: 17px;
  }

  .dana-blog-grid {
    grid-template-columns: 1fr;
  }
}
