.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: #eaeaea;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content .date {
    font-size: 0.8rem;
    color: #95a5a6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.card-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.post-article {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-header .date {
    display: block;
    font-size: 0.9rem;
    color: #95a5a6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.post-header h1 {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

.post-img-main {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    background-color: #eaeaea;
}

.post-content p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.back-link:hover {
    border-color: var(--accent-green);
    color: var(--text-main);
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-main);
}

.contact-form button {
    padding: 12px 24px;
    background-color: var(--accent-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #2c3e50;
}

@media (max-width: 768px) {
    .post-article {
        padding: 2rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}