/*                                                                      _   _                                        */
/*                                                                     | \ | | _____      _____                      */
/*                                                                     |  \| |/ _ \ \ /\ / / __|                     */
/*                                                                     | |\  |  __/\ V  V /\__ \                     */
/*                                                                     |_| \_|\___| \_/\_/ |___/                     */

/* ------------------------------------------------------------------------- News text ----------------------------- */
#news_text {
    grid-row: 2/11;
    grid-column: 1/2;
}

#news_text > div {
    background-color: transparent;

    display: flex;
    justify-content: center;
    align-items: center;
}

#information_text_vertical {
    grid-row: 2/11;
    height: auto;
}








/* ----------------------------------------------------------------------- News section ---------------------------- */
#news {
    grid-row: 2/11;
    grid-column: 2/11;
}

#news > div {
    display: flex;
    padding: 20px;
    padding-right: 0;

    background-color: var(--green);
}

.news_container {
    width: 100%;
    overflow: auto;

    border-radius: 20px;
}

.news_box {
    position: relative;
    padding: 40px;
    margin-bottom: max(5vh, 50px);

    display: grid;
    grid-template-columns: 10% 80% 10%;

    background-color: var(--white);
    border-radius: 20px;

    overflow: hidden;
}

.news_box:has(div:nth-of-type(2)) {
    grid-template-rows: 40vh auto;
}








/* ------------------------------------------------------------------------- img show style + container of img, btn ----------------------------------- */
.preview_container {
    width: 100%;
    height: 100%;

    border-radius: 10px;
    overflow: hidden;
}

.foto_box {
    width: 100%;
    height: 90%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.foto_box img {
    max-width: 100%;
    max-height: 100%;

    cursor: pointer;
    border-radius: 5px;
}

.article_btn {
    display: flex;
    align-items: center;
    justify-content: center;
}









/* ------------------------------------------------------------------------- Text of .news_box ----------------------------------- */
.news_text {
    grid-column: 1/3;
}

.news_text h3 {
    color: var(--green_darker);
    font-size: var(--font_l);
    font-weight: 500;

    margin-top: 20px;
    margin-bottom: 20px;
}

.news_text p {
    color: var(--black);
    letter-spacing: 1px;
    line-height: 140%;

    margin-bottom: 15px;
}

.news_text small {
    color: var(--green);
}

.news_box svg {
    width: 15px;
}

.news_box path {
    fill: var(--green) !important;
}
















/*                                                                   ____       _                                   */
/*                                                                  / ___| __ _| | ___ _ __ _   _                   */
/*                                                                 | |  _ / _` | |/ _ \ '__| | | |                  */
/*                                                                 | |_| | (_| | |  __/ |  | |_| |                  */
/*                                                                  \____|\__,_|_|\___|_|   \__, |                  */
/*                                                                                          |___/                   */

/* ---------------------------------------------------------------------- Galery globaly -------------------------- */
.hide {
    display: none;
    cursor: pointer;
}








.pagination_container {
    display: flex;
    width: 6%;
    padding-left: 1%;
}





/* ------------------------------------------------------------------------ Tablets --------------------------- */
@media screen and (min-width: 801px)  and (max-width: 1024px) and (orientation: portrait) {
    main {
        grid-template-columns: repeat(10, 10%);
        grid-template-rows: auto repeat(8, 10%) 1fr;
    }

    #information_text_vertical :is(h1, h2, h3) {
        font-size: calc(var(--vh) * 5);
        letter-spacing: 4px;
    }

    #news > div {
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .news_box:has(div:nth-of-type(2)) {
        grid-template-rows: 20vh auto;
    }

    .dots_box {
        height: 15px;
    }

    .news_container {
        width: 100%;
        height: 95%;
    }

    .news_box {
        border-radius: 30px;
    }

    .news_text h3 {
        font-size: var(--font_m);
    }

    .news_text p {
        font-size: var(--font_s);
        line-height: 120%;
    }

    .pagination_container {
        width: 100%;
        height: 5%;
        padding-top: 2%;
    }

    .page_box {
        width: 100%;

        justify-content: center;
    }

    .page {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .pagination_container p {
        margin-bottom: 0;
    }

    .page p {
        width: 2.5vw;
        height: 2.5vw;
    }
}

@media screen and (min-width: 951px) and (max-width: 1368px) and (orientation: landscape) {
    .page p {
        width: 2vw;
        height: 2vw;
    }
}




/* ------------------------------------------------------------------------ Mobile --------------------------- */
@media screen and (max-width: 800px) and (orientation: portrait) {
    main {
        overflow: hidden;
    }

    #information_text_vertical :is(h1, h2, h3) {
        font-size: calc(var(--vh) * 5);
        letter-spacing: 4px;
    }

    #news {
        grid-row: 2/10;
        grid-column: 2/11;
    }

    #news > div {
        padding: 0;
        padding-right: 0;

        background-color: transparent;

        display: flex;
        flex-direction: column;
    }

    .news_box:has(div:nth-of-type(2)) {
        grid-template-rows: 25vh auto;
    }

    .news_container {
        width: 100%;
        height: 89%;
    }

    .news_text p {
        font-size: var(--font_s);
    }

    .pagination_container {
        width: 100%;
        height: 13%;
        padding-top: 2%;
    }

    .page p {
        background-color: var(--green_light);
        color: var(--green_darker);
    }
    .page .active {
        background-color: var(--green_darker);
        color: var(--white);
    }
}

@media screen and (max-width: 950px) and (orientation: landscape) {
    main {
        grid-template-columns: 5% 15% repeat(3, 10%) 15% 5% repeat(3, 10%);
        grid-template-rows: auto repeat(8, 10%) 1fr;
    }

    #information_text_vertical :is(h1, h2, h3) {
        font-size: calc(var(--vh) * 5);
        letter-spacing: 2px;
    }

    #news > div {
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .news_box:has(div:nth-of-type(2)) {
        grid-template-rows: auto auto;
    }

    .dots_box {
        height: 15px;
    }

    .news_container {
        width: 100%;
        height: 85%;
    }

    .news_box {
        border-radius: 30px;
    }

    .news_text h3 {
        font-size: var(--font_m);
    }

    .news_text p {
        font-size: var(--font_s);
        line-height: 120%;
    }

    .pagination_container {
        width: 100%;
        height: 15%;
        padding-top: 2%;
    }

    .pagination_container p {
        margin-bottom: 0;
    }

    .page p {
        width: 2.5vw;
        height: 2.5vw;
    }
}