body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.topic {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.topic:hover {
    transform: translateY(-5px);
    background-color: #e6e6e6;
}

.topic svg {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    fill: #007BFF;
    border-radius: 8px;
}

.topic span {
    font-weight: 600;
    color: #333;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item a {
    text-decoration: none;
    color: #007BFF;
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news-item h3 {
    margin: 0;
    font-size: 18px;
}

.news-item p {
    color: #555;
    margin: 0;
    margin-top: 10px;
}

.article-view {
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-view img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.article-view h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.article-view p {
    color: #555;
    margin-top: 10px;
}
