* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    padding: 10px;
}

.container {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main"
        "footer footer";
    grid-template-columns: 1fr 3fr;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    grid-area: header;
    background-color: #333;
    color: white;
    padding: 20px 25px;
    border-radius: 4px;
}

.header h1 {
    margin-bottom: 15px;
    font-size: 24px;
}

.sidebar {
    grid-area: sidebar;
    background-color: #e9e9e9;
    padding: 20px;
    border-radius: 4px;
}

.main {
    grid-area: main;
    background-color: white;
    padding: 20px 25px;
    min-height: 530px;
    border-radius: 4px;
}

.footer {
    grid-area: footer;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 4px;
}

.footer p {
    color: white;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin-top: 0;
}

nav li {
    margin-right: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    font-weight: normal;
}

h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

.categories, .recent-articles {
    margin-bottom: 30px;
}

.categories h3, .recent-articles h3 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 0;
}

.categories ul, .recent-articles ul {
    list-style-type: none;
}

.categories li {
    padding: 8px 0;
    border-bottom: none;
}

.recent-articles li {
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

.categories a, .recent-articles a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.categories a:hover, .recent-articles a:hover {
    text-decoration: underline;
}

/* Eliminar la línea separadora solo en los elementos específicos */
.recent-articles li:nth-child(1),
.recent-articles li:nth-child(2),
.recent-articles li:nth-child(3) {
    border-bottom: none;
}
