* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
}

header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #444;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap; 
    gap: 1rem;
    text-align: center;
}

.header-content h1 {
    color: #66ff99;
    font-size: 1.5rem;    
    line-height: 1.3;     
    flex: 1 1 100%;       
    margin: 0;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    width: 100%;          
    justify-content: center;
}

.search-bar {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid #555;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.search-btn {
    padding: 0.5rem 1rem;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #388e3c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.sidebar {
    width: 250px;
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar h3 {
    border-bottom: 2px solid #28a745;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.sidebar ul {
    list-style: none;
    margin-bottom: 1rem;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: #28a745;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
    text-align: center;
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-article {
    background: #0b2c11;
    padding: 1rem;
    border-left: 4px solid #0e8736;
    margin: 1rem 0;
}

.recent-list {
    list-style: none;
}

.recent-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

li a {
    color: #4CAF50;
    text-decoration: none; 
    font-weight: bold; 
}

li a:hover {
    color: #080a08; 
    text-decoration: underline; 
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 1rem;
    }

    .header-content h1 {
        font-size: 1.25rem; 
        text-align: center;
    }

    .search-container {
        width: 100%;
    }

    .search-bar {
        flex: 1;
        max-width: none;
    }

    .container {
        flex-direction: column;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .content {
        padding: 1rem;
        text-align: left; 
    }
}

article {
    text-align: left;
    line-height: 1.7;
    color: #e0e0e0;
    font-size: 1rem;
}

article h1 {
    color: #66ff99;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px rgba(102, 255, 153, 0.5);
}

article h2 {
    color: #4caf50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #4caf50;
    padding-left: 0.75rem;
    font-size: 1.4rem;
}

article p {
    margin-bottom: 1rem;
}

article ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

article li {
    margin: 0.3rem 0;
}

article hr {
    border: none;
    border-top: 1px solid #444;
    margin: 2rem 0;
    opacity: 0.6;
}

article em {
    color: #9be6b3;
}

article strong {
    color: #aaffcc;
}

article a {
    color: #66ff99;
    text-decoration: underline;
}

article a:hover {
    color: #99ffcc;
}

article h2:nth-of-type(odd),
article h2:nth-of-type(even) {
    background: linear-gradient(to right, #243424, transparent);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.content {
    flex: 1;
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}
.hidden {
    display: none;
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem; 
    }

    .header-content h1 {
        font-size: 1rem;
    }

    .search-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    article h1 {
        font-size: 1.5rem;
    }

    article h2 {
        font-size: 1.2rem;
    }

    article {
        font-size: 0.95rem;
    }
}