/* hero */
.hero {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
    background: url(../assets/images/img_hero_background.jpg) no-repeat;
    background-size: cover;
    background-position: 65%;
    color: white;
}

.hero--text {
    height: 100%;
    width: 70%;
    display: flex;
    gap: 1em;
    flex-direction: column;
    justify-content: center;
    font-size: var(--fs-400);
}

.hero--title {
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    font-size: clamp(54px, 4.5vw + 0.5em, 80px);
}

.hero--subtitle {
    font-style: italic;
    color: white;
    width: 85%;
}

@media only screen and (min-width: 769px) {
    .hero--text {margin-inline: auto 15vw;}

    .hero--subtitle {
        max-width: 70%;
        font-size: calc(var(--fs-500) - 5px);
        font-weight: var(--fw-300);
    }
}
/**/

/* slider posts */
.section--recent-posts {max-width: 1800px;}

.slider-container {
    position: relative;
    padding-inline: 2px /* fixes "stripe" appearing before fade elements */
}
.posts--slider::-webkit-scrollbar, 
.posts--editors-pick__slider::-webkit-scrollbar {
    display: none;
}

.posts--slider {
    display: flex;
    gap: 1rem;
    padding-inline: 3rem;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline:1em ;
}

.slider--post {
    width: clamp(250px, calc(100vw - 4rem), 500px);
    height: 500px;
    scroll-snap-align: center;
    background: var(--clr-primary-700);
    display: flex;
    flex-direction: column;
}

.slider--post[data-slider="editors-pick-posts"] {
    min-width: min(100vw, 300px);
    max-width: 500px;
}

.slider--post__img {
    width: 100%;
    flex: 1;
    background-size: cover;
    background-position: 50% 50%;
}

.slider--post__text {
    color: white;
    padding: 2rem;
}

.slider--post__text h3 {font-size: clamp(32px, 1.5vw + 0.5em, 50px);}

.slider-arrows--container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.container-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.25em;
    margin-top: 0.75em;
}

.slider-indicator {
    width: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--clr-primary-700);
    background-color: white;
    transition: background-color 125ms ease-in;
}

.slider-indicator--active {background-color: var(--clr-primary-700);}

/* editors-pick slider */
.section--editors-pick-posts {
    flex: 1;
    overflow-x: hidden;
}

.slider--fade::before, .slider--fade::after {
    content: "";
    top: 0;
    position: absolute;
    height: 100%;
    width: 30px;
    opacity: 0.6;
}

.slider--fade::before {
    left: -1px;
    background: linear-gradient(to right, var(--clr-secondary-100) 0%, transparent 100%);
}

.slider--fade::after {
    background: linear-gradient(to left, var(--clr-secondary-100) 0%, transparent 100%);
    right: -1px;
}

/**/

/* fun fact */
.fun-fact {
    padding: 5rem 2rem;
    background: var(--clr-secondary-1000);
    color: var(--clr-primary-200);
}

.fun-fact__text p {
    color: white;
    line-height: 1.3;
    font-size: larger;
}

@media only screen and (min-width: 769px){
    .fun-fact {
        padding: 5rem;
        background-size: 100%, 75%;
        background-repeat: no-repeat;
        background-position: 0%, 100% 70%;
        color: var(--clr-primary-200);
    }
    
    .fun-fact__text p {
        max-width: 500px;
        color: white;
        line-height: 1.3;
        font-size: larger;
    }
}
/**/

/*check out topics*/
.topics-section {flex: 1;}

.topics-section ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5em;
}

.topics-section ul > li > a {
    display: flex;
    align-items: center;
    gap: 1em;
}

.topics-section__img {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: grey;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.topics-section__title {flex: 3;} 