@font-face {
    font-family: Inter-Regular;
    src: url(../assets/fonts/static/Inter-Regular.ttf) format(truetype),;
}

@font-face {
    font-family: Inter-Bold;
    src: url(../assets/fonts/static/Inter-Bold.ttf) format(truetype),;
}

@font-face {
    font-family: Inter-ExtraBold;
    src: url(../assets/fonts/static/Inter-ExtraBold.ttf) format(truetype),;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: var(--FontInterRegular);
}

:root {
    --Soft-orange: hsl(35, 77%, 62%);
    --Soft-red: hsl(5, 85%, 63%);
    --Off-white: hsl(36, 100%, 99%);
    --Grayish-blue: hsl(233, 8%, 79%);
    --Dark-grayish-blue: hsl(236, 13%, 42%);
    --Very-dark-blue: hsl(240, 100%, 5%);

    --FontInterRegular: Inter-Regular;
    --FontInterBold: Inter-Bold;
    --FontInterExtraBold: Inter-ExtraBold;

    --Font15px: .9375rem;
    --Font21px: 1.4em;
    --Font24px: 1.5rem;
    --Font32px: 2rem;
    --Font44px: 2.75rem;
    --Font56px: 3.5rem
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    font-size: var(--Font15px);
    margin: 0rem .9375rem;
    background-color: var(--Off-white);
}

.news__header {
    width: 100%;
    max-width: 1110px;
    padding: 5.5rem 0em 3.5rem;
}

.news__header,
.news__header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news__header__nav__items {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
}

.news__header__nav__item {
    color: var(--Dark-grayish-blue);
    cursor: pointer;
    transition: 0.2s ease;
}

.news__header__nav__item:hover {
    color: var(--Soft-orange);
}

.news__header__nav__item:active {
    transform: scale(0.92);
}

.news__grids {
    width: 100%;
    max-width: 1110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.news__grids__popular__container {
    width: 100%;
    max-width: 730px;
    display: flex;
    flex-direction: column;
}

.news__grids__popular__img img {
    width: 100%;
    height: 300px;
}

.news__grids__popular__txt {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.news__grids__popular__txt__t {
    font-size: var(--Font56px);
    font-family: var(--FontInterExtraBold);
    line-height: 3.5rem;
    color: var(--Very-dark-blue);
}

.news__grids__popular__txt__infos {
    max-width: 335px;
}

.news__grids__popular__txt__infos__p {
    color: var(--Dark-grayish-blue);
    line-height: 1.5rem;
}

.news__grids__popular__txt__infos__btn {
    height: 48px;
    width: 185px;
    background-color: var(--Soft-red);
    font-family: var(--FontInterBold);
    text-transform: uppercase;
    letter-spacing: .1rem;
    font-size: var(--Font15px);
    margin-top: 2rem;
    transition: 0.2s ease;
    cursor: pointer;
    position: relative;
    color: var(--Very-dark-blue)
}

.news__grids__popular__txt__infos__btn::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--Very-dark-blue);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.news__grids__popular__txt__infos__btn:hover {
    background-color: transparent;
    color: var(--Off-white);
}

.news__grids__popular__txt__infos__btn:hover::before {
    transform: scaleY(1);
}

.news__grids__popular__txt__infos__btn:not(:hover)::before {
    transform: scaleY(0);
}

.news__grids__new__container {
    background-color: var(--Very-dark-blue);
    padding: 2.4em 1.5rem;
    width: 100%;
    max-width: 351px;
}

hr {
    width: 100%;
    height: 1px;
    background-color: var(--Dark-grayish-blue);
    margin: 1.438rem 0rem;
}

.news__grids__new__t1 {
    display: block;
    color: var(--Soft-orange);
    font-size: var(--Font32px);
    margin-bottom: 2.5rem;
    font-family: var(--FontInterBold);
}

.news__grids__new__t {
    color: var(--Off-white);
    font-size: var(--Font21px);
}

.news__grids__new__p {
    color: var(--Grayish-blue);
    margin: 1rem 0 0;
    line-height: 1.5rem;
}

.news__grids__trending__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1110px;
    margin-top: 4.5rem;
    gap: 2rem;
}

.news__grids__trending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 330px;
}

.news__grids__trending__img {
    max-width: 100px;
}

.news__grids__trending__num {
    font-size: var(--Font24px);
    font-family: var(--FontInterBold);
    color: var(--Soft-red);
}

.news__grids__trending__t {
    font-family: var(--FontInterBold);
    color: var(--Very-dark-blue);
    margin: 1rem 0rem;
    font-size: 1.0625rem;
}

.news__grids__trending__p {
    color: var(--Dark-grayish-blue);
    line-height: 1.5rem;
}

.attribution {
    margin: 4em 0rem 1rem;
    color: var(--Very-dark-blue);
    text-align: center;
}

.attribution a {
    color: var(--Soft-red);
    font-family: var(--FontInterBold);
}