/* Hero Section Rules */

.home-container .hero-container {
    position: relative;
}

.home-container .hero-container .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--glue-blue-500);
    overflow: hidden;
}

.home-container .hero-container .background img {
    position: absolute;
    max-width: 50%;
    max-height: 50%;
}

/* Top right corner */
.home-container .hero-container .background img.top-right {
    top: 0px;
    right: 13.62px;
}

/* Bottom left corner */
.home-container .hero-container .background img.bottom-left {
    bottom: 0;
    left: 0;
}

.home-container .hero-container .hero-content {
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.home-container .hero-container .hero-content .carousel-container {
    margin-bottom: 40px;
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel {
    border: 1px solid var(--glue-grey-300);
    background-color: white;
    border-radius: 8px;
    height: 100%;
    margin: 0;
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .main-headline {
    padding: 32px 32px 0 32px;
}
.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__button {
    background-color: white;
    opacity: 1;
    border: 1px solid var(--glue-grey-300);
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item {
    text-decoration: none;
    color: inherit;
    padding: 0 16px 16px 16px;
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item:hover,
.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item:focus {
    background-color: transparent;
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item picture img {
    width: 100%;
    max-height: 409px;
    object-fit: cover;
    border-radius: 8px;
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item .article__content .tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item .article__content .tags .glue-label {
    color: var(--glue-blue-700)
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-card:focus,
.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-card:hover {
        box-shadow: none;
}

.home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item:focus .glue-headline {
    outline: var(--glue-blue-500) auto 1px;
}

.home-container .hero-container .hero-content .posts-container {
    width: 100%;
    position: relative;
}

.home-container .hero-container .hero-content .posts-container .posts-container-wrapper {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    height: 100%;
}

.home-container .hero-container .hero-content .posts-container .latest-posts {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 32px 0 32px;
}

.home-container .hero-container .hero-content .posts-container .latest-posts .post-item .post-item__top {
    display: flex;
    flex-direction: row;
    gap: 4px;
    color: var(--glue-grey-700);
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.25px; 
}

.home-container .hero-container .hero-content .posts-container .latest-posts .post-item .post-item__top .published-date {
    flex-shrink: 0; 
}

.home-container .hero-container .hero-content .posts-container .latest-posts .post-item .tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 0;
}

.home-container .hero-container .hero-content .posts-container .latest-posts .post-item .post-item__link {
    width: 100%;
    display: inline-block;
    text-decoration: none;
    margin-top: 8px;
    padding-bottom: 16px;
    color: var(--glue-grey-900);
    border-radius: 0;
}

.home-container .hero-container .hero-content .posts-container .latest-posts .post-item .post-item__link:hover,
.home-container .hero-container .hero-content .posts-container .latest-posts .post-item .post-item__link:focus {
    background-color: transparent;
}

.home-container .hero-container .hero-content .posts-container .latest-posts .post-item:not(:last-child) .post-item__link {
    border-bottom: 1px solid var(--glue-grey-300);
}

.home-container .hero-container .hero-content .posts-container .latest-posts .post-item .post-item__link .glue-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.home-container .hero-container .hero-content .posts-container .search {
    background: var(--glue-grey-50);
    padding: 14px 11px 8px 17px;
}

.home-container .hero-container .hero-content .posts-container .search .search-content {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 12px 21px 12px 15px;
}

.home-container .hero-container .hero-content .posts-container .search .search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.home-container .hero-container .hero-content .posts-container .search .search-input-wrapper input[type="text"] {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--glue-grey-300);
    padding: 6px 6px 6px 40px;
}

.home-container .hero-container .hero-content .posts-container .search .glue-button {
    border-radius: 4px;
    border: 1px solid var(--glue-grey-300);
    min-height: 36px;
    margin: 0;
    padding: 0;
}

.home-container .hero-container .hero-content .posts-container .search .glue-button:hover {
   background-color: var(--glue-blue-50);
}

.home-container .hero-container .hero-content .posts-container .search .glue-button:focus {
    border-color: var(--glue-grey-0);
    box-shadow: 0 0 0 2px var(--glue-blue-800);
}

.home-container .hero-container .hero-content .posts-container .search .search-input-wrapper .search-icon {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 24px;
    height: 24px;
    fill: var(--glue-grey-700);
}

@media (min-width: 600px) {
    .home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__navigation {
        margin-bottom: 20px;
    }
}

@media (min-width: 1024px) {
    .home-container .hero-container .hero-content {
        padding-bottom: 40px;
    }

    .home-container .hero-container .background {
        height: 80%;
    }

    .home-container .hero-container .hero-content .carousel-container {
        max-width: 784px;
        margin-bottom: 0;
    }

    .home-container .hero-container .hero-content .carousel-container .glue-carousel {
        border-radius: 10px;
    }

    .home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item {
        padding: 0 32px 32px 32px;
    }

    .home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__item picture img {
        border-radius: 10px;
    }

    .home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__button.glue-carousel__button--prev {
        inset-inline-start: -38px;
    }
    
    .home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__button.glue-carousel__button--next {
        inset-inline-end: -38px;
    }

    .home-container .hero-container .hero-content .carousel-container .glue-carousel .glue-carousel__navigation {
        position: absolute;
        bottom: -40px;
        margin: 0;
    }

    .home-container .hero-container .hero-content .posts-container {
        border-radius: 10px;
    }

    .home-container .hero-container .hero-content .posts-container .posts-container-wrapper .latest-posts {
        padding: 32px 32px 0 32px;
    }

    .home-container .hero-container .hero-content .posts-container .posts-container-wrapper .search {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}