/* Basic Reset & Box Sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #F8F8F8; /* Light Gray Background */
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer sticks to bottom */
    position: relative;
}

/* Header */
.header {
    background-color: #eef0f6; /* Very Light Blue */
    padding: 15px 30px;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Limit content width */
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.2em;
    color: #007BFF; /* Accent color */
}

.site-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
}

.header-right .fas {
    font-size: 1.2em;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-right .fas:hover {
    color: #007BFF;
}

/* Main Content Area */
.main-content {
    flex-grow: 1; /* Allows main content to take up available space */
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    gap: 30px; /* Space between sections */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
}

.section-group {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden; /* For scrollable link container */
    display: flex; /* Flex container for header and link-container */
    flex-direction: column;
    padding-bottom: 10px;
}

.section-header {
    transition: background-color .6s ease-in-out;
    padding: 15px 20px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    background-color: #e1eaff; /* Slightly different background for header */
}

.section-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0; /* Override default h2 margin */
    display: flex;
    align-items: center;
}

.section-icon {
    color: #007BFF; /* Accent color for section icons */
    margin-right: 10px;
    font-size: 1.1em;
}

.link-container {
    padding: 15px 20px;
    max-height: 400px; /* Max height before scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between link cards */
    transition: height .3s , max-height .3s;
}

/* Custom Scrollbar */
.link-container::-webkit-scrollbar {
    width: 8px;
}

.link-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.link-container::-webkit-scrollbar-thumb {
    background: #B0B0B0;
    border-radius: 10px;
}

.link-container::-webkit-scrollbar-thumb:hover {
    background: #888;
}


/* Link Card */
.link-card {
    display: flex;
    align-items: center;
    background-color: #F8F8F8; /* Card background */
    padding: 12px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #333333;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #E0E0E0; /* Subtle border */
}

.link-card:hover {
    background-color: #E6F0FF; /* Lighter accent on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.link-card.clicked-feedback {
    background-color: #C0DFFF; /* A bit darker accent on click */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.link-icon {
    color: #007BFF; /* Accent color for link icons */
    margin-right: 12px;
    font-size: 1.1em;
    min-width: 20px; /* Ensure consistent alignment */
    text-align: center;
}

.link-name {
    font-weight: 500;
    font-size: .9em;
}

/* Footer */
.footer {
    background-color: #EEF2F6; /* Same as header */
    padding: 15px 30px;
    border-top: 1px solid #E0E0E0;
    text-align: center;
    margin-top: 20px; /* Space above footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #666666;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        margin-top: 10px;
        font-size: 1.5em;
    }

    .header-right {
        margin-top: 10px;
    }

    .main-content {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        padding: 0 15px;
        margin: 15px auto;
    }

    .link-container {
        max-height: 350px; /* Adjust max height for smaller screens */
    }

    .section-group {
        margin-bottom: 20px;
    }

    .footer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.3em;
    }

    .section-title {
        font-size: 1.2em;
    }

    .link-card {
        padding: 10px;
    }

    .link-icon {
        margin-right: 10px;
        font-size: 1em;
    }
}

.section-header:hover{
    transition: background-color .2s ease-in-out;
    cursor: pointer;
    background-color: rgb(198, 212, 255);
}

.link-container.active{
    max-height: 400px!important;
}

        .new-thing {
            /* position: absolute;
            transform: rotate(45deg); */
            font-weight: bold;
            font-size: 1.5vh;
            animation: colorBlink 1.5s infinite;
        }


        /* modal news 2 */
        
        .wrap-news-aside.active {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            background-color: rgba(35, 32, 48, 0.64);
        }

        .wrap-news-aside .img-news-aside {
            position: absolute;
            top: 30%;
            left: -100%;
            transform: translate(-50%, -50%);
            height: 200vh;
            transition: left .4s ease-out;
            width: fit-content;
            height: fit-content;
            object-fit: cover;
        }

        .wrap-news-aside .img-news-aside.active {
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            object-fit: contain;
            /* width: 100%;
            height: 100%; */
            /*  border: solid 10px red; */
            width: fit-content;
            height: 85%;
        }

        .wrap-news-aside .img-news-aside img {
            height: 100%;
            width: 100%;
        }

        .wrap-news-aside .img-news-aside.news-aside-mobile {
            height: 85% !important;
            width: 90% !important;

        }

        .button-vimi:hover{
            cursor: pointer;
        }