#index_page h1, #index_page h2, #index_page h3, #index_page p {
    margin: 0;
}

/* Hero */
#hero_section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px;
    background-color: var(--less-dark-color);
    border: 1px solid var(--less-dark-color);
    border-radius: 10px;
    margin-top: 180px;
    position: relative;
}

#hero_text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 320px; /* width of the image */
}

#hero_text h1 {
    color: var(--secondary-background);
    font-size: 36px;
}

#hero_text p {
    color: var(--secondary-background);
    font-size: 18px;
    line-height: 1.6rem;
}

#hero_image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    position: absolute;
      right: 0;
      bottom: 0;
}
#hero_image img {
    width: 290px;
  height: auto;
  margin-bottom: -4px;
}
#hero_image_mobile {
    display: none;
}

/* Lists preview */
#lists_preview {
    padding: 30px 0;
}

#lists_preview h2 {
    color: var(--dark-color);
    font-size: 24px;
    margin-bottom: 14px;
}

#lists_cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Blog teasers */
#blog_teasers {
    padding: 10px 0 40px 0;
}

#blog_teasers h2 {
    color: var(--dark-color);
    font-size: 24px;
    margin-bottom: 14px;
}

#blog_teasers_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Mission and Contact */
#contact_section {
    padding: 60px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
    margin: 50px auto;
    border: 1px solid var(--border-color);
}

#contact_section h2 {
    color: var(--dark-color);
    font-size: 32px;
    margin-bottom: 20px;
}

#contact_section p {
    color: var(--less-dark-color);
    font-size: 18px;
    line-height: 1.8rem;
    margin-bottom: 16px;
}

#contact_section p strong {
    color: var(--dark-color);
}

@media (max-width: 991px) {
    #blog_teasers_list {
        grid-template-columns: repeat(2, 1fr);
    }
    #hero_image_mobile {
        display: inherit;
    }
    #hero_image_mobile img {
        width: 100%;
        height: auto;
    }
    #hero_image {
        display: none;
    }
    #hero_section {
        display: inherit;
        align-items: inherit;
        justify-content: inherit;
        gap: inherit;
        padding: 0;
        background-color: var(--less-dark-color);
        border: 1px solid var(--less-dark-color);
        border-radius: 3px;
        margin-top: 50px;
        position: inherit;
    }
    #hero_text {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 14px;
    }
}

@media (max-width: 567px) {
    #blog_teasers_list {
        grid-template-columns: 1fr;
    }
}
