:is(.category-carousel, .magazine-section) .carousel-btn {
  top: calc(50% + 40px);
}

/* ==================== */
/* =   Hero section   = */
/* ==================== */
.hero {
  --_shadow-color: rgb(0 0 0 / .25);
}

.hero .section__inner {
  position: relative;
  display: grid;
}

.hero__banner-wrapper {
  display: block;
}

.hero__tabs {
  background-color: #fff;
}

.hero__tabs .tabs-nav__item, .hero__tabs .tabs-nav__item a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .625rem;
}

.hero__tabs .tabs-nav__list {
  margin-bottom: 0;
}

.hero__tabs .tabs-nav__item {
  cursor: pointer;
  margin-bottom: 0;
  color: #2f2f3f;
}

.hero__tabs .tabs-nav__item a {
  color: inherit;
}

.hero__form {
  margin-bottom: 0;
}

.hero__form :where(fieldset, input, button, label) {
  margin: 0;
  font-size: clamp(.875rem, 1.5cqi, 1rem);
}

.hero__form fieldset {
  display: none
}

.hero__form .required {
  color: crimson;
}

.hero__form input[type=text] {
  border: unset;
  box-shadow: unset;
  padding-inline: 0 .875rem;
}

.hero__form input[type=text]:focus-visible {
  box-shadow: unset;
}

.search-form__submit-btn {
  width: 100%;
  border-radius: .3125rem;
  line-height: 1;
  color: #fff;
  background-color: var(--primary-medium);
}

.search-form__submit-btn:disabled {
  background-color: var(--gray-lighter);
}

.hero__popup-title {
  margin-bottom: 0;
}

@container content (width <=850px) {
  .hero .section__inner {
    grid-template-areas: 'hero-stack';
  }

  .hero__banner-wrapper {
    aspect-ratio: 4/5;
  }

  .hero__banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__banner-wrapper, .hero__tabs {
    grid-area: hero-stack;
  }

  .hero__popup-header {
    display: flex;
    border-bottom: .0625rem solid var(--gray-lighter);
    margin-bottom: 1.25rem;
  }

  .hero__close-btn {
    margin: 0;
    min-height: auto;
    line-height: 1;
  }

  .hero__tabs {
    align-self: center;
    justify-self: center;
    width: min(80%, 31.25rem);
    padding: .625rem;
    border-radius: .3125rem;
    box-shadow: 0 0 3.125rem var(--_shadow-color), 0 0 1rem var(--_shadow-color);
  }

  .hero__tabs .tabs-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 0;
  }

  .hero__tabs .tabs-nav__item, .hero__tabs .tabs-nav__item a {
    flex-direction: column;
    gap: 0;
  }

  .hero__tabs .tabs-nav__item {
    --_tab-item-border-radius: .25rem;
    padding-block: 1rem;
    background-color: var(--gray-lightest);
    font-weight: 700;
  }

  .hero__tabs .tabs-nav__item:nth-child(odd) {
    position: relative;
    border-radius: var(--_tab-item-border-radius) 0 0 var(--_tab-item-border-radius);
  }

  .hero__tabs .tabs-nav__item:nth-child(odd):after {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    content: '';
    display: block;
    height: 50%;
    width: .0625rem;
    background-color: #fff;
  }

  .hero__tabs .tabs-nav__item:nth-child(even) {
    border-radius: 0 var(--_tab-item-border-radius) var(--_tab-item-border-radius) 0;
  }

  .hero__form-wrapper {
    position: fixed;
    z-index: 100;
    inset: 12.5rem 0 0 0;
    width: 100%;
    transform: translate(0, 100%);
    background-color: #fff;
    padding: 1.25rem .625rem;
    border-radius: 1.25rem 1.25rem 0 0;

    transition: transform 300ms;
  }

  .hero__form-wrapper.active {
    transform: translate(0, 0);
  }
}

@container content (width > 850px) {
  .hero__tabs {
    margin-top: -4rem;
    width: min(var(--screen-md), 100%);
    margin-inline: auto;
    border-radius: 1.25rem;
    box-shadow: 0 .125rem .3125rem var(--_shadow-color), 0 .3125rem 1.25rem var(--_shadow-color);
    padding: 1.25rem 1.875rem;
  }

  .hero__tabs .tabs-nav__list {
    display: flex;
    list-style: none;
    border-bottom: .125rem solid var(--gray-lightest);
  }

  .hero__tabs .tabs-nav__item {
    flex: 1 0 auto;
    padding-bottom: .625rem;
  }

  .hero__tabs .tabs-nav__item[aria-selected=true] {
    border-bottom: .1875rem solid var(--primary-medium);
    color: var(--secondary-darker)
  }

  .hero__tabs .tabs-nav__item:hover {
    color: var(--secondary-darker)
  }

  .hero__popup-header {
    display: none;
  }

  .hero__form {
    display: flex;
    gap: 1.25rem;
    padding-top: .625rem;
  }

  .search-form__control-group:has([name='keyword']) {
    flex: 1 0 auto;
  }

  .search-form__control-group:has(button) {
    flex: 0 0 6.25rem;
  }

  .search-form__submit-btn {
    height: 100%;
  }
}

/* 
====================
=  FEATURED POSTS  =
====================
*/
.feature-posts-section {
  padding-top: 3em;
}

.feature-posts.default {
  --feature-gap: 1.5em;
  display: grid;
  grid-template-columns: calc(25% - var(--feature-gap)) 45% calc(30% - var(--feature-gap));
  justify-content: space-between;
}

.feature-posts .feature-post__image {
  display: block;
  aspect-ratio: 4/3;
}

.feature-posts .feature-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-posts .feature-post__title {
  font-weight: 700;
}

.feature-posts.default > :is(.feature-posts__left, .feature-posts__right) {
  display: grid;
}

.feature-posts.default > .feature-posts__left {
  gap: .625em;
}

.feature-posts.default > .feature-posts__left > .feature-post {
  display: flex;
  max-width: 100%;
  gap: .625em;
}

.feature-posts.default > .feature-posts__left .feature-post__image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
}

.feature-posts.default > .feature-posts__left .feature-post__title {
  display: block;
  font-size: .9em;
  line-height: 1.2;
}

.feature-posts.default > .feature-posts__center > .feature-post {
  display: grid;
  gap: .625em;
}

.feature-posts.default > .feature-posts__center .feature-post__title {
  font-size: 1.3em;
}

.feature-posts.default > .feature-posts__right .feature-post__image img {
  width: 100%;
}

/* LAYOUT 2 */
.popular-category-section {
  padding-block: 3em 0;
}

.feature-posts.layout-2 {
  --feature-gap: 1.5em;
  display: grid;
  grid-template-columns: 45% calc(30% - var(--feature-gap)) calc(25% - var(--feature-gap));
  gap: var(--feature-gap);
}

.feature-posts.layout-2 .feature-posts__title {
  grid-column: 1 / span 3;
  position: relative;
}

.feature-posts.layout-2 > :not(.feature-posts__title, .feature-posts__right) > .feature-post {
  display: grid;
  gap: .625em;
}

.feature-posts.layout-2 > .feature-posts__center {
  display: grid;
  gap: .625em;
}

.feature-posts.layout-2 > .feature-posts__right .feature-post {
  display: flex;
  align-items: flex-start;
  gap: .625em;

  &:not(:last-child) {
    padding-bottom: .625em;
    border-bottom: 1px solid var(--gray-lightest);
  }

  &:not(:first-child) {
    padding-top: .625em;
  }
}

.feature-posts.layout-2 > .feature-posts__right .feature-post__image {
  flex: 0 0 30%;
  height: auto;
  order: 2;
  aspect-ratio: 1/1;
  border-radius: .625em;
  overflow: hidden;
}

.feature-posts.layout-2 > .feature-posts__right .feature-post__content {
  flex: 1;
  order: 1;
}

.feature-posts.layout-2 > .feature-posts__right .feature-post__title {
  font-size: .9em;
}

.feature-posts.layout-2 .feature-post__meta {
  display: flex;
  gap: 1em;
  font-size: .8em;
}

.feature-posts.layout-2 .feature-post__category {
  color: var(--gray-darker);
  text-transform: uppercase;
}

@container content (width >=850px) {
  .feature-posts.layout-2 .feature-post__meta {
    display: none;
  }
}

@container content (width < 850px) {
  .feature-posts.default {
    grid-template-columns: calc(60% - var(--feature-gap)) 40%;
    grid-template-rows: auto auto;
  }

  .feature-posts.default > .feature-posts__center {
    grid-column: 1;
    grid-row: 1;
  }

  .feature-posts.default > .feature-posts__left {
    grid-column: 2;
    grid-row: 1/ span 2;
    height: fit-content;
  }

  .feature-posts.default > .feature-posts__right {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, 1fr);
    gap: .625em;
  }

  .feature-posts.layout-2 {
    grid-template-columns: calc(60% - var(--feature-gap)) 40%;
    grid-template-rows: repeat(3, auto);
  }

  .feature-posts.layout-2 > .feature-posts__title {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .feature-posts.layout-2 > .feature-posts__left {
    grid-column: 1;
    grid-row: 2;
  }

  .feature-posts.layout-2 > .feature-posts__center {
    grid-column: 2;
    grid-row: 2;
  }

  .feature-posts.layout-2 > .feature-posts__right {
    grid-column: 1 / span 2;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1em;
  }

  .feature-posts.layout-2 > .feature-posts__right .feature-post {
    &:last-child {
      display: none;
    }

    &:nth-child(n + 3) {
      border-bottom-width: 0;
    }
  }
}

@container content (width < 550px) {
  .feature-posts.default {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    row-gap: 1.5em;
  }

  .feature-posts.default > .feature-posts__center {
    grid-column: 1;
    grid-row: 1;
  }

  .feature-posts.default > .feature-posts__left {
    grid-column: 1;
    grid-row: 3;
  }

  .feature-posts.default > .feature-posts__right {
    grid-column: 1;
    grid-row: 2;
  }

  .feature-posts.default > .feature-posts__left > .feature-post {
    grid-template-columns: 30% calc(70% - .625em);
  }

  .feature-posts.layout-2 {
    grid-template-columns: 1fr;
  }

  .feature-posts.layout-2 > :is(.feature-posts__title, .feature-posts__left, .feature-posts__center, .feature-posts__right) {
    grid-column: 1;
    grid-row: auto;
  }

  .feature-posts.layout-2 > .feature-posts__center {
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: .625em;
  }

  .feature-posts.layout-2 > .feature-posts__center > .feature-post {
    grid-template-rows: subgrid;
    grid-row: 1 / 3;
  }

  .feature-posts.layout-2 > .feature-posts__right {
    grid-template-columns: 1fr;
  }

  .feature-posts.layout-2 > .feature-posts__right .feature-post {
    &:last-child {
      display: flex;
    }

    &:nth-child(n + 3) {
      border-bottom-width: 1px;
    }
  }

  .feature-posts.layout-2 > .feature-posts__right .feature-post__image {
    flex: 0 0 20%;
  }
}

/* 
=====================
= CATEGORY CAROUSEL =
=====================
*/
.category-carousel-section {
  padding-block: 3em;
}

.category-carousel {
  position: relative;
}

.category-carousel__posts .category-carousel__post {
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: .3125em;
  overflow: hidden;
}

.category-carousel__post img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

.category-carousel__post-title {
  font-weight: 700;
  margin-bottom: 0;
  padding: .625em;
  -webkit-line-clamp: 2;
  overflow: hidden;
  border-color: var(--gray-lightest);
  border-style: solid;
  border-width: 0 1px 1px;
  border-radius: 0 0 .3125em .3125em;
  flex: 1;
}

/* =================== */
/* =  Hotel carousel = */
/* =================== */
.hotel-carousel {
  padding-block: 3rem;
}

.hotel-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.25rem;
}

.hotel-carousel__header .section__title {
  margin-bottom: 0;
}

.hotel-carousel__shop-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.hotel-carousel__swiper-wrapper {
  --_slides-per-view: 1.5;
  --_space-between: 1.25rem;
  position: relative;
}

.hotel-carousel__swiper-wrapper .swiper-slide {
  width: calc((100% - var(--_space-between) * (var(--_slides-per-view) - 1)) / var(--_slides-per-view));
  margin-right: var(--_space-between);
}

.hotel-carousel .product {
  padding: 0;
}

@container content (width > 550px) {
  .hotel-carousel__swiper-wrapper {
    --_slides-per-view: 2;
  }
}

@container content (width > 850px) {
  .hotel-carousel__swiper-wrapper {
    --_slides-per-view: 4;
  }
}

/* 
====================
=   LATEST NEWS    =
====================
*/
.latest-news-section {
  padding-block: 3em 0;
}

.latest-news {
  display: grid;
  grid-template-columns: calc(70% - 2em) 30%;
  gap: 2em;
}

.latest-news__post {
  display: grid;
  grid-template-columns: 30% calc(70% - 1em);
  column-gap: 1em;
  padding-top: 1em;

  &:not(:last-child) {
    padding-bottom: 1em;
    border-bottom: 1px solid var(--gray-lightest);
  }
}

.latest-news__post-image {
  display: block;
  grid-row: span 2;
}

.latest-news__post-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.latest-new__header {
  height: fit-content;
}

.latest-news__post-title {
  font-weight: 700;
  font-size: 1.2em;
}

/* SIDEBAR */
.latest-news__side-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.side-bar__inner {
  position: sticky;
  top: 80px;
}

.side-bar__most-read {
  padding: 1.25em;
  border: 1px solid var(--gray-lightest);
}

.sidebar__title {
  font-size: 1.2em;
  font-weight: 700;
}

.most-read__list {
  display: grid;
  gap: .625em;
}

.most-read__item {
  --category-font-size: .8em;
  display: grid;
  grid-template-columns: 30% calc(70% - 1em);
  grid-template-rows: calc(var(--category-font-size) * 1.5) auto;
  gap: 0 1em;
}

.most-read__image {
  display: block;
  grid-row: span 2;
  border-radius: .3125em;
  overflow: hidden;
}

.most-read__category {
  font-size: var(--category-font-size);
  text-transform: uppercase;
  height: fit-content;
}

.most-read__title {
  font-weight: 700;
}

.side-bar__podcast {
  padding: 1.25em;
  background: linear-gradient(180deg, rgba(47, 47, 63, 0.5) 0%, #2f2f3f 100%);
  background-repeat: no-repeat;
}

.side-bar__podcast .sidebar__title {
  text-align: center;
  color: #fff;
}

.podcast__item--big {
  display: grid;
  gap: .625em;

  & img {
    width: 100%;
  }
}

.podcast__item {
  padding-block: .625em;

  &:not(:last-child) {
    border-bottom: 1px solid var(--gray-dark);
  }
}

.podcast__item:not(.podcast__item--big) {
  display: grid;
  grid-template-columns: 30% calc(70% - 1em);
  gap: 1em;
}

.podcast__title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0;
}

@container content (width < 850px) {
  .latest-news {
    grid-template-columns: 1fr;
  }

  .latest-news__side-bar {
    display: none;
  }
}

/* 
====================
=  ENTERTAINMENT   =
====================
*/
.entertainment-section {
  padding-block: 3em;
}

.entertainment-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  position: relative;

  &:before {
    content: '';
    position: absolute;
    inset: -1em 0 auto 0;
    height: .2em;
    background-color: var(--gray-darkest);
  }
}

.entertainment__post {
  padding-top: .625em;
  display: flex;
  align-items: flex-start;
  gap: .625em;
  font-size: .9em;

  & .entertainment__post-image {
    flex: 0 0 30%;
  }

  & .entertainment__post-title {
    font-weight: 700;
  }

  &:first-child {
    display: grid;
    gap: .625em;
  }


  &:not(:last-child) {
    padding-bottom: .625em;
    border-bottom: 1px solid var(--gray-lightest);
  }
}

.entertainment__post-image {
  display: block;
  aspect-ratio: 4/3;
}

.entertainment__post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@container content (width < 850px) {
  .entertainment-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .entertainment__post:first-child {
    display: flex;
  }

  .entertainment__post-title {
    font-weight: 700;
  }
}

@container content ( width < 550px ) {
  .entertainment-categories {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* 
====================
=    MAGAZINES     =
====================
*/
.magazine-section {
  padding-block: 3em;
  /* background-color: var(--gray-lightest); */
}

.magazines {
  position: relative;
}

.magazine__post.swiper-slide {
  height: auto;
  position: relative;
  border-radius: .25em;
  overflow: hidden;
}

.magazine__image {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 3/4;
}

.magazine__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 100%);
}

.magazine__category {
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  padding: .3125em .625em;
  font-size: .8em;
  background-color: var(--secondary-medium);
  color: var(--gray-darker);
  border-radius: 0 0 .3125em .3125em;
  margin-inline: auto;
  width: fit-content;
}

.magazine__title {
  font-weight: 700;
  text-align: center;
  position: relative;
  top: 33%;
  padding-inline: 1em;
  color: #fff;
  transition: color 300ms;

  &::before {
    position: absolute;
    content: '';
    top: -1em;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 3em;
    height: .3125em;
    background-color: var(--secondary-medium);
  }
}

.magazine__content .material-symbols-outlined {
  position: absolute;
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
  padding: .5em;
  background-color: black;
  text-align: center;
  color: var(--secondary-medium);
  border-radius: 50%;
  transition: background-color 300ms, color 300ms;
}

.magazine__post:hover {
  cursor: pointer;

  & .magazine__title {
    color: var(--secondary-medium);
  }

  & .magazine__content .material-symbols-outlined {
    background-color: var(--secondary-medium);
    color: #000;
  }
}

@container content (width < 550px) {
  .magazine__title {
    top: 25%;
  }
}