/* * || RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* * ||VARIABLES */

:root {
  /* * FONT */
  --FM: Helvetica, sans;
  --TOP-CONTENT-ITEM-TAG-FS: 16px;
  --TOP-CONTENT-ITEM-TAG-FW: 700;
  --TOP-CONTENT-TITLE-FS: 60px;
  --TOP-CONTENT-DATE-FS: 18px;
  --TOP-CONTENT-DATE-FW: 500;
  --TOP-CONTENT-BTN-SPAN-FS: 17px;

  --BOTTOM-ITEM-S-FS: 12px;
  --BOTTOM-ITEM-M-FS: 14px;
  --BOTTOM-ITEM-H-FW: 700;
  --BOTTOM-ITEM-L-FW: 400;

  /* * ICON SIZE */
  --ICON-NORMAL: 28px;

  /* * COLOR */
  --NAV-MID-BG-COLOR: #000f1e66;
  --NAV-MID-LINK-HOVER-BG-COLOR: rgba(51, 51, 51, 0.7);
  --NAV-MID-LINK-COLOR: #fff;
  --TOP-CONTENT__BTN-BG-COLOR: hsl(344, 91%, 45%);
  --TOP-CONTENT-BTN-SPAN-COLOR: #fff;
  --BOTTOM-ITEM-BG-COLOR: #fff;
  --BOTTOM-ITEM-INFO-COLOR: rgba(0, 15, 30, 0.6);
  --BOTTOM-ITEM-TITLE-COLOR: #000F1E;
  --FOOTER-BG-COLOR: #00162b;

  /* * MARGIN */
  --TOP-CONTENT-MARGIN-LEFT: 3rem;

  /* * HEIGHT AND WIDTH */
  --BOTTOM-ITEM-WIDTH: 447.6px;
  --BOTTOM-ITEM-HEIGHT: 596.9px;
  --BOTTOM-IMG-CONTAINER-WIDTH: 28rem;
  --BOTTOM-IMG-CONTAINER-HEIGHT: 25.1rem;

  /* * BORDER */
  --NAV-MID-BORDER: 1px solid #fff3;
  --TOP-CONTENT__BTN-BORDER: 1.6px solid rgb(219, 10, 64);

  /* * TRANSITION */
  --BOTTOM-ITEM-IMG-SCALE-ON-HOVER: opacity, transform 1s cubic-bezier(0, 0.32, 0.32, 1);

  /* * ANIMATION */

  --TOP-IMG-SCALING-ANIMATION: top__image-zoom 3.7s cubic-bezier(0.45, 0.05, 0.5, 0.95) 1 forwards;
  --NAV-HOVER-BG-ANIMATION: increase-size 1s ease-in-out 5 forwards;
  --FADE-IN-BUTTON-ANIMATION: fade-in-to-left 0.38s cubic-bezier(0.2, 0.32, 0, 0.87) forwards;
}


/* * || ANIMATIONS */

@keyframes increase-size {
  0% {
    padding: 0.1rem 0.2rem;
  }

  10% {
    padding: 0.1rem 0.4rem;

  }

  20% {
    padding: 0.2rem 0.6rem;
  }

  100% {
    padding: 0.3rem 0.8rem;

  }
}


/* * image animations  */
@keyframes top__image-zoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.03);
  }
}

/* * text animation */
@keyframes fade-in-to-left {
  0% {
    opacity: 0;
  }

  80% {
    opacity: 1;
  }

  0% {
    transform: translateX(200px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes fill {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}


@keyframes fade-in {
  0% {
    transform: translate(-100%);
    opacity: 0;
  }

  100% {
    transform: translate(0);
    opacity: 1;
    background-color: #db0a40;
  }
}

/* * bg animations */


/* * || UTILITY */

.nowrap {
  white-space: nowrap;
}

/* * || BODY AND HTML */

html {
  font-family: var(--FM);
}

body {
  width: 100vw;
  min-height: 100vh;
  max-height: fit-content;
  overflow-y: scroll;
  overflow-x: hidden;

}



/* * || HEADER */

.header {
  position: fixed;
  width: 100vw;
  z-index: 10;
  background-color: var(--FOOTER-BG-COLOR);
  transition: all 0.3s ease-in-out;
}

.header-transparent {
  background-color: transparent;
}

.header-hide {
  top: -100px;
}

/* * || NAV */


.nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: transparent;
}

.nav i svg {
  width: var(--ICON-NORMAL);
  height: var(--ICON-NORMAL);
  color: #f8f8f8;
}

.nav i {
  position: relative;
  padding: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav i::after {
  content: "";
  border-radius: 50%;
  height: 44px;
  opacity: 0;
  position: absolute;
  transform: scale(.8);
  transition: all .3s cubic-bezier(.35, 0, 0, 1);
  transition-property: opacity, transform;
  width: 44px;
  z-index: -1;
}

.nav i:hover::after,
.nav i:focus-within::after {
  background-color: var(--NAV-MID-LINK-HOVER-BG-COLOR);
  opacity: 1;
  transform: scale(1);
}

.nav__redbull-logo {
  width: 178px;
  height: 36px;
}

.nav__start,
.nav__end {
  display: flex;
  gap: 1rem;
}

.nav__mid-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10rem;
}

.nav__mid {
  background-color: var(--NAV-MID-BG-COLOR);
  border: var(--NAV-MID-BORDER);
  border-radius: 20px;
  display: flex;

  gap: 2rem;
  padding: 0.1rem 2rem;
}

.nav__mid a {
  position: relative;
  text-decoration: none;
  color: var(--NAV-MID-LINK-COLOR);
  text-transform: capitalize;
  font-weight: 500;
  font-size: 17px;
  padding: 0.4rem 0;
}

.nav__mid a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -16px;
  width: calc(100% + 32px);
  height: 36px;
  background-color: #000f1e66;
  border-radius: 22px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.35, 0, 0, 1);
  z-index: -1;
}

.nav__mid a:hover::after,
.nav__mid a:focus-within::after {
  background-color: var(--NAV-MID-LINK-HOVER-BG-COLOR);
  opacity: 1;
  transform: scale(1);
}

.nav__mid a:first-child {
  text-transform: uppercase;
}

/* * || MAIN */
.main {
  display: block;
}

/* * || CONTENT TOP */

.top-container {
  height: 100vh;
}

.top {
  position: absolute;
  top: 0;
  z-index: 5;
  max-height: 100vh;
  max-width: 100vw;
}

/* * top image  */

.top__img-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.top__img-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  animation: var(--TOP-IMG-SCALING-ANIMATION);

  /* animation-name: top__image-zoom;
  animation-duration: 3.7s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(.45, .05, .5, .95); */

}

/* * top content */
.top__content {
  display: grid;
  gap: 0.8rem;
  color: #fff;
  padding: 0 1rem;
  text-transform: capitalize;
  position: absolute;
  bottom: 15%;
  margin-left: var(--TOP-CONTENT-MARGIN-LEFT);
}

.top__content-item-tag {
  font-size: var(--TOP-CONTENT-DATE-FS);
  font-weight: var(--TOP-CONTENT-ITEM-TAG-FW);
  text-transform: uppercase;
  width: 100%;

  animation: var(--FADE-IN-BUTTON-ANIMATION);
  animation-duration: 1s;
}

.top__content-title {
  width: 90%;
  font-size: var(--TOP-CONTENT-TITLE-FS);
  font-weight: var(--TOP-CONTENT-ITEM-TAG-FW);
  cursor: pointer;

  animation: var(--FADE-IN-BUTTON-ANIMATION);
  animation-duration: 0.8s;
}

.top__content-date {
  font-size: var(--TOP-CONTENT-DATE-FS);
  font-weight: var(--TOP-CONTENT-DATE-FW);
  line-height: 20px;

  animation: var(--FADE-IN-BUTTON-ANIMATION);
  animation-duration: 0.6s;
}

.top__content-btn {
  width: fit-content;
  padding: 1rem;
  background-color: var(--TOP-CONTENT__BTN-BG-COLOR);
  border: var(--TOP-CONTENT__BTN-BORDER);
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;

  animation: var(--FADE-IN-BUTTON-ANIMATION);
}

.top__content-btn span {
  font-weight: var(--TOP-CONTENT-DATE-FW);
  font-size: var(--TOP-CONTENT-BTN-SPAN-FS);
  color: var(--TOP-CONTENT-BTN-SPAN-COLOR);
  text-transform: capitalize;
}


.top__menu {
  position: absolute;
  display: flex;
  bottom: 2.1rem;
  padding-left: 1rem;
  margin-left: var(--TOP-CONTENT-MARGIN-LEFT);
}

.top__menu-item {
  display: flex;
  flex-direction: column;
  justify-content: start;
  width: 12rem;
  height: 3rem;
  padding: 0 0.3rem;
  cursor: pointer;
}

.top__menu-item .line {
  position: relative;
  height: 2px;
  z-index: 4;
  margin-bottom: 0.5rem;
  border-radius: 15px;
  background-color: #fff;
  opacity: 0.4;
}

.top__menu-item p {
  font-size: 13px;
  font-weight: var(--TOP-CONTENT-ITEM-TAG-FW);
  padding: 0.2rem 0;
  color: #fff;
  opacity: 0.4;
}

/* * top menu active */

.top__menu-item-active .line::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 5;
  margin-bottom: 0.5rem;
  border-radius: 15px;
  background-color: #db0a40;
  animation: fill 3.7s ease-in forwards
}

.top__menu-item-active .line {
  background-color: #fff;
  opacity: 1;
}



.top__menu-item-active p {
  opacity: 1;
}


/* * inside main */
/* * CONTENT BOTTOM  */


.bottom {
  padding: 4rem 4rem;
  width: calc(99.99% -128px);
  background-color: #f8f8f8;
}

.bottom__title {
  font-size: 40px;
  font-weight: 700;
  color: rgb(26, 25, 25);
}


.bottom__items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0;
}

.bottom__item {
  position: relative;
  width: var(--BOTTOM-ITEM-WIDTH);
  height: var(--BOTTOM-ITEM-HEIGHT);
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--BOTTOM-ITEM-BG-COLOR);
  cursor: pointer;

}

.bottom__item:nth-child(4) .bottom__img-container {
  height: auto;
}

.bottom__img-container {
  position: relative;
  width: var(--BOTTOM-IMG-CONTAINER-WIDTH);
  height: var(--BOTTOM-IMG-CONTAINER-HEIGHT);
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.bottom__star-icon {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 15, 30, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  transition: background-color .3s cubic-bezier(.35, 0, 0, 1);
  opacity: 0;
}

.bottom__star-icon svg {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.bottom__star-icon:is(:hover, :focus-within) {
  background-color: rgba(0, 15, 30, 0.8);
}


.bottom__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--BOTTOM-ITEM-IMG-SCALE-ON-HOVER);
}

.bottom__item:is(:hover, :focus-within) .bottom__item-img {
  opacity: 1;
  transform: scale(1.1);
}

.bottom__item:is(:hover, :focus-within) .bottom__star-icon {
  opacity: 1;
}

.bottom__item-details {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.5rem;
  gap: 0.5rem;

}

.bottom__item-title {
  flex: wrap;
  color: var(--BOTTOM-ITEM-TITLE-COLOR);
  font-weight: var(--BOTTOM-ITEM-H-FW);
  line-height: 2rem;
}

.bottom__item-info {
  color: var(--BOTTOM-ITEM-INFO-COLOR);
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.bottom__item-moreinfo {
  position: absolute;
  bottom: 1.4rem;

  width: 95%;
  color: var(--BOTTOM-ITEM-INFO-COLOR);
  display: flex;
  justify-content: space-between;

}

.bottom__item-moreinfo .item-type {
  text-transform: uppercase;
  font-weight: var(--BOTTOM-ITEM-H-FW);
  font-size: var(--BOTTOM-ITEM-S-FS);
}


.bottom__item-moreinfo .read-time {
  font-weight: var(--BOTTOM-ITEM-L-FW);
  font-size: var(--BOTTOM-ITEM-M-FS);
  line-height: 17px;
}



/* * LOAD MORE BTN */

.menu__load-more-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  background-color: #f8f8f8;
  ;
}

.menu__load-more-btn {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 1rem;
  height: 40px;
  border-radius: 18px;
  border: 1px solid #000f1e33;
}

.menu__load-more-btn:is(:hover, :focus-within) {
  background-color: #000f1e1a;
  border-color: #000f1e33;
}

.menu__load-more-icon svg {
  color: #000;
  width: 1.2rem;
  height: 1.2rem;
}

.menu__load-more-btn span {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}


/* * FOOTER */
.footer {
  background-color: var(--FOOTER-BG-COLOR);

}

.footer__items-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 3rem;
}

.footer__item {
  display: grid;
  gap: 1rem;
}

.footer__item a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  text-transform: capitalize;
}

.footer__item:last-child p {
  color: hsl(0, 0%, 100%, 0.5);
  font-size: 18px;
  font-weight: 400;
  text-wrap: nowrap;
  text-transform: capitalize;
}