/* General styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(to right, #f5f5f5, #e0e0e0);
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* Header styles */
header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    text-align: center;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
}

/* Main content styles */
main {
    padding: 40px 0;
}

/* Article Grid */
.article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

article {
    background: #fff;
    flex: 1;
    min-width: calc(50% - 20px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

article img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

article h3 {
    margin-top: 0;
    font-size: 1.8em;
}

article p {
    line-height: 1.6;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    transition: color 0.3s, border-color 0.3s;
}

.read-more:hover {
    color: #2980b9;
    border-color: #2980b9;
}

/* Category Grid */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category {
    background: #fff;
    flex: 1;
    min-width: calc(50% - 20px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.category:hover::before {
    opacity: 1;
}

.category-content {
    position: relative;
    z-index: 1;
}

.category h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.category p {
    color: #666;
}

/* Footer styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}
