body {
    font-family: "Lato", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
}

/*HEADER*/
header {
    background-color: cadetblue;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    text-decoration: none;
    color: white;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #4f8c8c;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #4f8c8c;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* FEATURED ARTICLES */
.featured-article {
    background-color: #f0f8ff;
    padding: 2rem;
    text-align: center;
}

.featured-article-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-article-content {
    padding: 1rem;
    text-align: left;
}

.featured-article-content h3 {
    margin: 0;
}

.featured-article-content h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.featured-article-content h3 a:hover {
    color: cadetblue;
}

.featured-article-content p {
    color: #666;
}

/*ARTICLES*/
.articles-section {
    padding: 2rem;
    text-align: center;
}

.articles-section h2 {
    color: #333;
    margin-bottom: 2rem;
}

.articles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    margin: 1rem;
}

.article-card h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: cadetblue;
}

.article-card p {
    margin: 1rem;
    color: #666;
}

.article-card .read-more-btn {
    display: block;
    text-align: center;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: cadetblue;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.article-card .read-more-btn:hover {
    background-color: #4f8c8c;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* BACK TO TOP BUTTON */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: cadetblue;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #4f8c8c;
}

main{
    margin-bottom: 20px;
}