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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
header {
    background-color: #1A685B;
    color: #fff;
    padding: 1rem 0;
}

header h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    padding-top: 30px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

.filters input,
.filters select {
    padding: 0.5rem;
    font-size: 1rem;
}

/* Posts */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
    transition: transform 0.3s;
}

.post:hover {
    transform: translateY(-5px);
}

.post h3 {
    margin-bottom: 0.5rem;
}

.date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.description {
    margin-top: 0.5rem;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
}


.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
}

.prev { left: 10px; }
.next { right: 10px; }

.overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.85rem;
}
