@charset "UTF-8";

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    font-size: 0.9rem;
}

a {
    color: inherit; 
    text-decoration: none; 
    background: none; 
}

header {
    display: flex;
    justify-content: center; 
    align-items: center;    
    padding: 0;
    background-color: #333;
    color: white;
    margin: 0;
}


.hero {
    height: 80vh;
    position: relative;
    transition: background-image 1s ease-in-out; 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
    padding: 1.15rem;
}


ul {
    list-style: none;
    padding: 0; 
}

ul li {
    padding: 10px 0; 
}

ul li a {
    text-decoration: none;
    color: #333; 
    display: block; 
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px; 
    height: 8px; 
    background-color: #1a1a1a; 
}

::-webkit-scrollbar-thumb {
    border-radius: 4px; 
    background-color: #424242; 
}

::-webkit-scrollbar-thumb:hover {
    background-color: #666666; 
}

.article-list {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; 
    padding: 20px;
    gap: 15px; 
    justify-content: center; 
}


.article-item {
    display: flex;
    align-items: center; 
    background-color: #f9f9f9; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    padding: 10px;
    transition: box-shadow 0.3s;
    cursor: pointer; 
    min-width: 300px; 
    max-width: 500px; 
    box-sizing: border-box; 
    flex: 1 1 300px; 
}

.article-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
}


.article-cover {
    width: 80px; 
    height: 80px; 
    border-radius: 4px; 
    margin-right: 15px; 
}


.article-title {
    font-size: 1.2em; 
    color: #333; 
    text-align: left; 
    white-space: normal; 
    word-wrap: break-word; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}


@media (min-width: 670px) {
    .article-list {
        justify-content: flex-start; 
    }
    .article-item {
        width: calc((100% - 1 * 15px) / 2); 
    }
}


@media (min-width: 980px) {
    .article-item {
        width: calc((100% - 2 * 15px) / 3); 
    }
}


@media (min-width: 1200px) {
    .article-list {
        justify-content: center; 
    }
    .article-item {
        width: calc((100% - 2 * 15px) / 3); 
    }
}


@media (max-width: 670px) {
    .article-list {
        justify-content: center; 
    }
    .article-item {
        width: 100%; 
    }
}

.article-container {
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    background-color: #e0e0e040; 
    padding: 20px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
    box-sizing: border-box; 
}

.article-paragraph {
    
    font-size: 1rem; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    white-space: pre-wrap; 
    word-wrap: break-word; 
}

.sub-title {
    font-size: 1.1rem;
    text-align: center;
}

.article-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    gap: 15px;
    justify-content: flex-start;
}

@media (min-width: 670px) {
    .article-list {
        justify-content: center;
    }
    .article-item {
        flex: 1 1 calc((100% - 1 * 15px) / 2 - 15px);  
        margin: 0 7.5px;  
    }
}

@media (min-width: 980px) {
    .article-item {
        flex: 1 1 calc((100% - 2 * 15px) / 3 - 15px);  
        margin: 0 7.5px;  
    }
}

@media (min-width: 1200px) {
    .article-item {
        flex: 1 1 calc((100% - 2 * 15px) / 3 - 15px);  
        margin: 0 7.5px;  
    }
}

@media (max-width: 670px) {
    .article-item {
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 670px) and (max-width: 1200px) {
    .article-list {
        justify-content: center;
    }
    .article-item {
        width: calc((100% - 1 * 15px) / 2);
    }
    .article-list:has(.article-item:only-child) {
        justify-content: center;
    }
}