/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Header Styles */
header {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
}

/* Article Grid Layout */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.article-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h2 {
    padding: 1rem;
    font-size: 1.2rem;
}

/* Slideshow Page Styles */
.slide-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.slide-image {
    width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
}

.slide-caption {
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.pagination {
    text-align: center;
    color: #666;
    margin: 1rem 0;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    gap: 1rem;
}

.nav-buttons a {
    padding: 0.8rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-buttons a:hover {
    background: #0056b3;
}

.nav-buttons a.disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .nav-buttons a {
        text-align: center;
    }
}
