.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 95px;
    width: auto;
    height: 300px;
    background: #ecf2f5;
    position: relative;
    overflow: hidden;
}

.gradient-icon {
    width: 220px;
    height: 220px;
    background: linear-gradient(45deg, #1e88e5, #4fc3f7, #1e88e5);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
    mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTI4LjQ2NSwzOC42MTFjMC40MTktMS4xMDUsMC42NjQtMi4zNjUsMC42NjQtMy43MTRjMC00LjEzMy0yLjIxMS03LjQ5NC00LjkyOS03LjQ5NGMtMi43NDEsMC00Ljk1MSwzLjM2MS00Ljk1MSw3LjQ5NGMwLDEuMzI2LDAuMjIxLDIuNTg2LDAuNjQxLDMuNjY5Yy05LjA0MSwwLjk1MS0xNS40MDcsNC43MzEtMTcuOTkzLDYuNDMyYzQuMzU1LTYuMjc4LDguOTA5LTEzLjYzOCwxMy4yNjItMjIuMTA1YzEuMDgzLTIuMTAxLDIuMTAxLTQuMTc4LDMuMDUtNi4yMTFjMC4zNzUsMC4yNDMsMC43NTEsMC41MDksMS4xNzEsMC43NzVjMS45NDUsMS4yMTUsMy43NTksMS44NzksNS4wODQsMi4yMzNjLTAuOTczLTAuNzMtMi4wMzMtMS42MTMtMy4xMTYtMi42OTdjLTAuODE3LTAuODE3LTEuNTQ3LTEuNjM3LTIuMTY3LTIuNDMzQzIxLjAxNiwxMC41MzgsMjIuNjA4LDYuNjY5LDI0LDNjMi4zMiw2LjE0NCw1LjIxNywxMi44NDIsOC44NDEsMTkuODkzYzIuMzQzLDQuNTMxLDQuNzMxLDguNzU0LDcuMTE3LDEyLjY0NGMtMC42ODUtMC4zNzUtMS40MzctMC43My0yLjIzMy0xLjAzOWMtMS4zNzEtMC41My0yLjY1Mi0wLjg2Mi0zLjc1OS0xLjA2YzEuNTAzLDAuNzUxLDMuMjUsMS43NDcsNS4wODQsMy4wNzNjMS4xOTQsMC44ODUsMi4yNTQsMS43NjksMy4xNjEsMi42MzFjMC4wMjEsMC4wMjEsMC4wMjEsMC4wMjEsMC4wNDUsMC4wNDVjMS4yNiwyLjA1NiwyLjU2NSwzLjk1NywzLjg0Niw1LjgxM0M0My41NjEsNDMuMzE5LDM3LjMwNiwzOS42MDUsMjguNDY1LDM4LjYxMXoiLz48L3N2Zz4=');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.arch-link {
    background: linear-gradient(45deg, #1e88e5, #4fc3f7, #1e88e5);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-decoration: none;
    font-size: 36px;
    animation: gradientFlow 3s ease infinite;
    transition: transform 0.3s;
}

.arch-link:hover {
    font-size: 37px;
    text-decoration: underline;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.news, .instructions {
    width: 100%;
    height: auto;
    position: relative;
    background: #f4f4f4;
    padding: 25px;
}

.news-block, .instructions-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.instructions {
    background: #383838;
}

.news-item {
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-image-container {
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f5f5f5;
}

.news-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.news-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 25px;
    color: #0066cc;
}

.news-text {
    font-size: 15px;
    color:#000;
}

.news-content {
    padding: 15px;
}

.news > a, .instructions > a {
    text-decoration: none;
    font-weight: bold;
    font-size: 35px;
}

.instructions > a {
    color: #eeeeee;
}

.news a, .instructions a {
    text-decoration: none;
}


@media (min-width: 1400px) and (max-width: 1700px) {
    .news-block {
        grid-template-columns: repeat(4, 1fr);
    }
    .news-item {
        height: 450px;
    }
}

@media (min-width: 1100px) and (max-width: 1400px) {
    .news-block {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-item {
        height: 450px;
    }
}

@media (min-width: 800px) and (max-width: 1100px) {
    .news-block {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-title {
        margin-bottom: 10px;
        margin-top: -15px;
    }

    .news-image-container {
        height: 240px;
        background: #fff;
    }
}

@media (min-width: 1701px) {
    .news-block {
        grid-template-columns: repeat(5, 1fr);
    }
    .news-item {
        height: 500px;
    }
}

@media (max-width: 799px) {
    .news-item {
        width: 100%;
        max-width: 500px;
        height: auto;
        margin: 0 auto 20px;
        border-radius: 8px;
    }

    .container {
        margin-top: 50px;
    }

    .news-item {
        width: 100%;
        max-width: 500px;
        height: 450px;
    }

    .news > a, .instructions > a {
        margin-top: 25px;
        margin-left: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .news-image-container {
        height: 240px;
        background: #fff;
    }

    .news-title {
        margin-bottom: 10px;
        margin-top: -15px;
    }
}

#card-area {
    margin-top: -50px;
}

.box-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.box {
    position: relative;
    overflow: hidden;
}

.box img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.overlay {
    width: 100%;
    height: 0;
    background: linear-gradient(transparent,#1c1c1c 58%);
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.overlay a {
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 45%;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: 2px;
    color: #999999;
}

.box:hover img,
.box.clicked img {
    transform: scale(1.1);
}

.box:hover .overlay,
.box.clicked .overlay {
    height: 100%;
}
