/* Base styles for news section */

.gigtest-news-header-title {
    font-weight: 700;
    font-size: 32px;
    line-height: 35px;
    line-height: 100%;
    text-align: center;
    color: #35495D;
}

.gigtest-grid-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gigtest-element-news {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gigtest-element-news:nth-child(-n+3), .gigtest-element-news:nth-child(n+7):nth-child(-n+9)  {
    animation: slow-left-slide 0.9s;
}

.gigtest-element-news:nth-child(n+4):nth-child(-n+6)  {
    animation: slow-right-slide 0.9s;
}

.gigtest-element-news:hover, .gigtest-element-news:focus, .gigtest-element-news:active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.gigtest-news-image-block {
    height: 225px;
    overflow: hidden;
}

.gigtest-articles-image-block {
    height: 235px;
    overflow: hidden;
}

.gigtest-element-news img, .gigtest-articles-detail-image-block img {
    max-width: 100%;
    height: 100%;
    object-fit: fill;
    width: 100%;
}

.gigtest-news-text-block {
    padding: 30px 20px;
    border: 2px solid #E6EBEF;
    border-top: 0px;
    border-radius: 0 0 20px 20px;
    height: 225px;
}

.gigtest-news-date {
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #35495D;
    margin-bottom: 10px;
}

.gigtest-news-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 21px;
    color: #35495D;
    margin-bottom: 10px;
}

.gigtest-news-description {
    color: #35495D;
}

/* Base style for news details section*/

.gigtest-news-detail-container {
    margin: 0 200px;
}

.gigtest-news-detail-title-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
}

.gigtest-news-detail-date {
    font-weight: 600;
    font-size: 32px;
    line-height: 35px;
    line-height: 34px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: #466482;
    margin-bottom: 0px;
}

.gigtest-news-detail-title {
    margin-bottom: 0px;
    font-weight: 600;
    font-size: 32px;
    line-height: 35px;
    color: #35495D;
}

.gigtest-articles-detail-title {
    margin-bottom: 0px;
    font-weight: 600;
    font-size: 32px;
    line-height: 35px;
    color: #35495D;
    text-align: center;
    text-wrap: balance;
}

.gigtest-news-detail-image-block {
    margin-bottom: 30px;
    height: fit-content;
}

.gigtest-articles-detail-image-block {
    height: auto;
    margin-bottom: 30px;
    border-radius: 20px;
}

.gigtest-news-detail-image-block img, .gigtest-articles-detail-image-block img {
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.gigtest-news-detail-content-block {
    font-weight: 400;
    font-size: 18px;
    line-height: 21px;
    color:#35495D;
}

.gigtest-news-detail-content-block p {
    margin-bottom: 15px;
}

.gigtest-news-detail-content-block ul {
    margin-bottom: 10px;
}

.row {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    max-width: 1300px;
}

video {
    width: 100%;
}

/* Animation styles */
@keyframes slow-left-slide {
    from { left: -3000px; transform: translateX(20px); }
    to { left: 0; transform: translateX(0); }
}

@keyframes slow-right-slide {
    from { right: -3000px; transform: translateX(20px); }
    to { right: 0; transform: translateX(0); }
}

@media (max-width: 1439px) {
    .gigtest-news-detail-content-block {
        font-size: 14px;
        line-height: 17px;
    }

    .gigtest-news-image-block {
        height: 265px;
    }

    .gigtest-news-detail-container {
        margin: 0 100px;
    }

    .gigtest-grid-block {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .gigtest-articles-image-block {
        height: 335px;
        overflow: hidden;
    }
}

@media (max-width: 1345px) {
    .gigtest-articles-image-block {
        height: 275px;
        overflow: hidden;
    }
}

@media (max-width: 1023px) {
    .gigtest-grid-block {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gigtest-news-detail-title, .gigtest-news-detail-date {
        font-size: 20px;
        line-height: 23px;
    }

    .gigtest-news-detail-container {
        margin: 0 50px;
    }

    .gigtest-news-image-block {
        height: 225px;
    }

    .gigtest-articles-image-block {
        height: 205px;
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .gigtest-news-detail-title-block {
        flex-direction: column;
        row-gap: 10px;
    }

    .gigtest-news-detail-title {
        text-align: center;
    }

    .gigtest-news-image-block {
        height: 315px;
    }

    .gigtest-news-detail-container {
        margin: 0;
    }

    .gigtest-grid-block {
        grid-template-columns: repeat(1, 1fr);
    }

    .gigtest-articles-image-block {
        height: 315px;
        overflow: hidden;
    }
}

@media (max-width: 650px) {
    .gigtest-articles-image-block {
        height: 245px;
    }
}

@media (max-width: 525px) {
    .gigtest-news-image-block {
        height: 235px;
    }

    .gigtest-articles-image-block {
        height: 205px;
        overflow: hidden;
    }
}

@media (max-width: 381px) {
    .gigtest-articles-image-block {
        height: 155px;
        overflow: hidden;
    }
}