/* Hero */
.insights-hero{
    background: var(--primary-2);
    padding-block: 15dvh;
}

.insights-hero>.wrapper>h1{
    align-self: end;
    margin-bottom: 1rem;
}

.insights-hero>.wrapper>.brief-text{
    align-self: start;
}

.insights-hero>.wrapper>.brief-text>p{
    margin-bottom: 1rem;
}

/* FEATURED */
.block:nth-child(odd){
    padding-block: 3rem;
    background: white;
}

.block:nth-child(even){
    padding-block: 3rem;
    background: var(--primary-1);
}

.main-title{
    margin-bottom: 1rem;
}

.gallery{
    margin-block: 1rem;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem; 
}

.news-card{
    border: 1px solid var(--primary-1);
    padding: 1rem;
}

.news-tb{
    width: 100%;
    height: max(20dvh, 200px);
    object-fit: cover;
}

.news-title{
    margin-bottom: .5rem;
}

.news-details{
    margin-block: .5rem;
    font-size: .8rem;
}

.news-overview{
    margin-top: 1rem;
}

.read-more{
    font-weight: bold;
    text-align: right;
    margin-inline: 0;
}

.read-more::after{
    content: "\27F6";
    color: var(--text-color);
    margin-left: 1rem;
    font-size: 1.8rem;
}

.categories{
    display: flex;
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.category{
    margin-right: .7rem;
    background-color: var(--accent-color-1);
    font-size: .8rem;
    padding: .2rem;
    color: white;
    text-transform: uppercase;
}

/* Call to action */

.call-to-action{
    padding-inline: 20vw;
    padding-block: 10vh;
    text-align: center;
    background: var(--primary-1);
}

.img-centered{
    margin-bottom: 5vh;
}

.img-centered>img{
    width: 9%;
}

.payoff{
    text-align: center;
    line-height: 1.7em;
    font-size: 1.3em;
    margin-bottom: 1em;
}

.cta-button{
    text-align: center;
}

.submit-button {
    background-color: var(--primary-3);;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    width: 50%;
    margin-left: 25%;
}

.submit-button:hover {
    background-color: var(--primary-3);;
}

.email-input {
    width: 50%;
    margin-left: 25%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#emailForm{
    display: grid;
    gap: 1em;
}

/* Color scheme and Dark Mode */

@media (prefers-color-scheme: dark) {
    
    .insights-hero{
        border: 1px solid white;
    }

    .block, .category{
        border: 1px solid white;
        background: var(--background-color);
    }

    .block:nth-child(odd){
        background: var(--primary-2);
    }

}

/* Responsive and mobile */

@media (max-width:1024px) {
    .gallery{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:600px) {
    .gallery{
        grid-template-columns: 1fr;
    }
}