* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #fff;
    color: #000;
    line-height: 1.6;
}

header {
    background-color: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-width: 200px;
    height: auto;
}

nav a {
    color: #000;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

nav a:hover {
    color: #ff4d4d;
}

.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post {
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post:hover {
    transform: scale(1.02);
}

/* ================== FIXED IMAGE STYLING ================== */
.post img,
.post-grid .post img {
    width: 100% !important;
    height: 320px !important;           /* You can change this number */
    object-fit: contain !important;     /* Shows full image without cropping */
    object-position: center !important;
    background-color: #f5f5f5 !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    border-radius: 4px;
}

.post-content {
    padding: 1.2rem;
}

.post-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    color: #000;
}

.post-content p {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-content a {
    color: #ff4d4d;
    text-decoration: none;
    font-weight: bold;
}

.post-content a:hover {
    text-decoration: underline;
}

footer {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #ccc;
    margin-top: 3rem;
}

footer p {
    color: #333;
    font-size: 0.9rem;
}

footer a {
    color: #ff4d4d;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav a {
        margin: 0.5rem 0;
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
}
