﻿:root {
    --menu-color: rgba(64, 102, 112, 0.47);
    --primary-color: #00A6FF;
    --primary-light-color: #43b9f8;
    --secondary-color: #de6210;
    --text-color: #032f4d;
    --color-white: #fff;
    --box-shadow: 0 0 40px 5px rgba(0 0 0 / 5%);
    --cell-padding: 0.5rem;
    --section-padding: 0.5rem;
    --header-height: 5rem;
    --base-transition: all 0.3s ease-in-out;
    --primary-text-color: #25242e;
    --primary-header-color: #55555b;
    --secondary-header-color: antiquewhite;
}

html,
body {
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    color: var(--text-color);
    font-family: "Roboto Flex", serif;
    font-optical-sizing: auto;
    font-style: normal;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

    ::-webkit-scrollbar-thumb:hover {
        background: #577f9b;
    }

.material-symbols-outlined {}

.loader-hidden {
    width: 0;
    display: none !important;
}

.loader-box {
    z-index: 99999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 166, 255, 0.22);
    overflow: hidden;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.page-container {
    opacity: 0;
    transition: opacity 1s;
}

.page-container-loaded {
    opacity: 1;
}

a,
a:active,
a:focus,
a:hover {
    outline: none;
    -webkit-transition: all 0.3s ease-out 0s;
    -moz-transition: all 0.3s ease-out 0s;
    -o-transition: all 0.3s ease-out 0s;
    -ms-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    text-decoration: none;
}

img {
    width: 100%;
}

ul {
    list-style: none;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: var(--header-height);
    z-index: 999;
    color: #fff;
}

main {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    margin-top: calc(var(--header-height) + 1rem);
}

aside {
    width: 15%;
    height: 100%;
}

.banner-box {
    width: 100%;
    height: 700px;
    background-image: url("https://tnwebsitedevstoragepub.blob.core.windows.net/images/banner-grid.webp");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    transition: all .4s ease;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    padding-top: 2rem;
    box-shadow: 0 15px 12px -2px antiquewhite;
    text-align: center;
}

.banner-box {
    background: linear-gradient(
    to bottom,
    rgba(0,0,0, 0),
    #011b26
  ),url(https://tnwebsitedevstoragepub.blob.core.windows.net/images/banner-grid.webp);
    
    
}

.banner-box__top {
    display: flex;
    flex-flow: column nowrap;
    gap: 1.6rem;
}

.banner-box__logo {
    width: 20%;
}

.banner-box__logo img{
    width: 80%;
}

.banner-box__bottom {
    background-color: #011b26;
    background: linear-gradient( to bottom, #011b26, #051b20 );
    padding: 1rem;
    width: 100%;
}


.content-box {
   width: 100%;
}

.content-box__inner {
    background: linear-gradient(-45deg, #054b69c4, #044858, rgb(44, 182, 182), #0f427d);
    background-size: 400% 400%;
    /*animation: content-box-gradient 15s ease infinite;*/
    width: 100%;
    padding: 3rem 2rem;
    color: antiquewhite;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.3rem;
}

h3.content-header {
    font-size: 2rem;
    text-align: center;
}

h4.header-text {
    font-size: 1.6rem;
    text-align: center;
    color: burlywood;
    text-transform: uppercase;
}

p.content-header__text {
    font-size: 1.5rem;
    line-height: 2.3rem;
    color: burlywood;
}

p.content-header__text strong {
    color: antiquewhite;
}


@keyframes content-box-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


    .banner-box h1 {
        color: burlywood;
        font-size: 2.2rem;
    }

    .banner-box h4 {
        color: antiquewhite;
        font-size: 2rem;
    }

footer {
    width: 100%;
    background-color: var(--primary-color);
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: #fff;
}

    footer p {
        color: #fff;
    }

.footer-med-col {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.main-box {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    padding: 1rem;
    background-color: none;
}

.hero-box {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 70%;
    border-radius: 5px;
}

.grid-hero {
    padding: 0.5rem;
    width: 100%;
    display: grid;
    grid: auto-flow / repeat(auto-fit, minmax(350px, 1fr));
    gap: 0.5rem;
    justify-content: start;
}

.cell {
    display: flex;
    flex-flow: column nowrap;
    min-height: 200px;
    justify-content: space-between;
    height: 100%;
}

.section-header {
    display: flex;
    width: 100%;
    color: var(--secondary-color);
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-family: "Freeman", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .2rem;
    border-top: 1px solid var(--secondary-color);
}

.section-header h1 {
    font-size: 1.6rem;
    text-transform: uppercase;
}

.section-header__read-more {
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    padding: 0 .3rem;
    border-radius: 7px;
    transition: all .1s ease-in;
}

    .section-header__read-more a {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1rem;
    }

        .section-header__read-more a p {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            color: #fff;
            transition: all .1s ease-in;
        }

    .section-header__read-more:hover {
        transition: all .1s ease-in;
    }

.section-header__read-more span {
    transition: all .1s ease-in;
    margin-left: 0;
}

.section-header__read-more:hover span {
    transition: all .1s ease-in;
    margin-left: 5px;
}

.article-card {
    display: flex;
    justify-content: space-between;
    flex-flow: column nowrap;
    align-items: center;
    gap: .5rem;
    margin: .3rem;
    box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    transition: all .5s ease-in;
    height: 100%;
    overflow: hidden;
}

    .article-card:hover {
        transition: all .5s ease-in;
        box-shadow: 0 0 40px 5px rgb(0 0 0 / 15%);
    }

.article-card h1 {
    font-size: 1.2rem;
    text-align: center;
    padding: .5rem;
}

.article-description-box {
    width: 100%; 
    height: 100px; 
    overflow: hidden; 
    position: relative; 
}

.article-card p.article-description {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    margin: 0;
    font-size: .9rem;
    letter-spacing: 0;
}

.article-description-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px; /* Wysokość gradientu */
    background: linear-gradient(to bottom, transparent, white); /* Gradient od przezroczystego do białego */
}

.article-card__image {
    overflow: hidden;
}

.article-card img {
    border-radius: 3px;
    transition: all 3s ease-in-out;
}

    .article-card:hover .article-card__arrow {
        transition: all .5s ease-in;
        opacity: 1;
        transform: translate(0, 50%);
    }

.article-card:hover img {
    transition: all 3s ease-in-out;
    transform: scale(1.1);
}

.article-card__arrow {
    position: absolute;
    left: calc(100% - 8.2rem);
    top: 0;
    width: 8rem;
    height: 1.6rem;
    background-color: var(--secondary-color);
    border-radius: 5px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    opacity: 0;
    z-index: 99;
    transition: all .5s ease-in-out;
    box-shadow: 0 0 1px 2px #ffffff;
}

    .article-card__arrow a {
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        width: 100%;
        height: 100%;
        color: #fff;
    }

.article-card__title a {
    color: var(--secondary-color);
    transition: all .5s ease-in;
    text-align: justify;
}

.article-card:hover .article-card__title a {
    transition: all .5s ease-in;
    opacity: .7;
}

.article-card__title-meta {
    width: 100%;
    padding: .3rem;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    font-size: .9rem;
}

.icon-box {
}

img.icon {
    width: 2rem;
    height: 2rem;
    background-color: #fff;
}

.main-article-box {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: .2rem;
    background-color: var(--secondary-header-color);
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.main-article-box__image {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-flow: column nowrap;
}

.main-article-box__content {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    width: 100%;
}

.main-article-box__content h1 {
    color: var(--secondary-color);
}

    .main-article-box__image-desc {
        background-color: var(--primary-color);
        display: flex;
        flex-flow: row nowrap;
        width: 100%;
        padding: 2px 4px;
        justify-content: flex-start;
        color: #fff;
    }

.main-article-box__image-desc p {
    color: #fff;
    font-size: 13px;
}

.main-article-box__content-meta {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

a.main-article-box__content__title h1{
    font-size: 1.2rem;
    font-weight: 600;
}

.main-article-box__content__read-more {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 100%;
    align-items: center;
    padding: 2px 1rem;
    background-color: var(--primary-color);
    border-radius: 5px;
    height: 2rem;
    transition: var(--base-transition);
}

    .main-article-box__content__read-more:hover {
        background-color: var(--secondary-color);
        transition: var(--base-transition);
    }

.main-article-box__content__read-more strong {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 100%;
    align-items: center;
    padding: 2px 1rem;
    border-radius: 5px;
    height: 2rem;
    color: #fff;
}

.h-side-card {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    background-color: var(--primary-color);
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.h-side-card a h1 {
    color: #fff;
    font-size: 1rem;
    transition: var(--base-transition);
    padding: .3rem;
}

.h-side-card:hover a {
    color: antiquewhite;
    transition: var(--base-transition);
    text-decoration: underline;
}

    .h-side-card p {
        font-size: 13px;
        text-align: center;
        color: antiquewhite;
        padding: .3rem;
    }

.h-side-card__meta {
    width: 100%;
    background-color: var(--text-color);
}

.related-box {
    display: flex;
    width: 100%;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.related-box h2 {
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template: repeat(auto-fit, minmax(min-content, 30%)) / repeat(auto-fit, minmax(min-content, 30%));
    gap: 1rem;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
}

.related-card {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: .4rem;
    background-color: antiquewhite;
}

.related-card h3 {
    color: #d6e8f2;
}

    .related-card a h4 {
        font-weight: normal;
        font-size: .8rem;
        color: var(--secondary-color);
        transition: var(--base-transition);
        text-align: left;
    }

.related-card a h4:hover {
    color: var(--primary-color);
    transition: var(--base-transition);
}

    .related-card a {
        color: var(--secondary-color);
        text-decoration: underline;
        transition: var(--base-transition);
    }

        .related-card a:hover {
            color: var(--primary-color);
            transition: var(--base-transition);
        }

.tags-box {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(min-content, 20%));
    grid-template-columns: repeat(auto-fit, minmax(min-content, 20%));
    width: 100%;
    justify-content: center;
    background-color: var(--primary-light-color);
}

.tag-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: .3rem;
    background-color: var(--primary-light-color);
    color: #fff;
    transition: var(--base-transition);
    text-transform: uppercase;
    font-weight: 700;
    font-size: .9rem;
}

    .tag-link:hover {
        background-color: var(--secondary-color);
        transition: var(--base-transition);
        color: var(--secondary-header-color);
    }

.free-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

.logo-footer-box {
    width: 150px;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

.policy-box {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 10%;
}

.nothing {}



/*MEDIA QUERIES*/
@media (300px <= width <= 480px) {
    .grid-hero {
        grid: auto-flow / repeat(auto-fit, minmax(250px, 1fr));
        justify-content: center;
    }

.main-box {
    width: 100%;
    flex-flow: column nowrap;
}

aside {
    width: 100%;
    height: auto;
}

.hero-box {
    width: 100%;
}

    footer {
        flex-flow: column nowrap;
        gap: 1rem;
    }

    .related-grid {
        grid-template: repeat(auto-fit, minmax(min-content, 100%)) / repeat(auto-fit, minmax(min-content, 100%));
        
    }

    .free-grid {
        gap: .5rem;
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }

    .tags-box {
        grid-template-rows: repeat(auto-fit, minmax(min-content, 20%));
        grid-template-columns: 1fr 1fr;
    }

    .tag-link {
        font-size: 10px;
    }

    .content-box__inner  {
        padding: 1rem;
    }

    .content-box__inner h1,h2,h3,h4 {
        font-size: 1.5rem;
        line-height: normal;
    }

    .content-box__inner p {
        font-size: 1rem;
        line-height: normal;
    }

    .banner-box {
        padding-top: 1rem;
        flex-flow: column;
        height: 600px;
    }

    .banner-box__top h1 {
        font-size: 1.5rem;
    }

    .banner-box h4 {
        font-size: 1.3rem;
    }

    h4.header-text {
        font-size: 1.6rem;
    }
}

@media (481px <= width <= 576px) {

.grid-hero {
    grid: auto-flow / repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
}

.main-box {
    width: 100%;
    flex-flow: column nowrap;
}

aside {
    width: 100%;
    height: auto;
}

.hero-box {
    width: 100%;
}

    .free-grid {
        gap: .5rem;
        grid-template-columns: repeat(auto-fit, minmax(35%, 1fr));
    }

    .banner-box {
        padding-top: 1rem;
        flex-flow: column;
        
    }

    .banner-box__top h1 {
        font-size: 1.5rem;
    }

    .banner-box h4 {
        font-size: 1.3rem;
    }

    h4.header-text {
        font-size: 1.4rem;
    }
}


    @media (577px <= width <= 767px) {

        .main-box {
            width: 100%;
            flex-flow: column nowrap;
        }

        aside {
            width: 100%;
            height: auto;
        }

        .hero-box {
            width: 100%;
        }
        .free-grid {
            display: grid;
            gap: .5rem;
            grid-template-columns: repeat(auto-fit, minmax(35%, 1fr));
        }

        .banner-box {
            padding-top: 1rem;
            flex-flow: column;
            height: 600px;
        }

        .banner-box__top h1 {
            font-size: 1.5rem;
        }

        .banner-box h4 {
            font-size: 1.3rem;
        }
        
    }

    @media (768px <= width <= 991px) {

        .main-box {
            width: 100%;
            flex-flow: column nowrap;
        }

        aside {
            width: 100%;
            height: auto;
        }

        .hero-box {
            width: 100%;
        }

        .banner-box{
            padding-top: 1rem;
            flex-flow: column;
        }

        .banner-box__top h1 {
            font-size: 1.5rem;
        }

        .banner-box h4 {
            font-size: 1.3rem;
        }
    }

    @media (992px <= width <= 1199px) {
        
    }
