/* =========================
   BASE
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

a {
    color: inherit;
}

/* =========================
   LAYOUT CONTAINER
========================= */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 15px;
}

/* =========================
   HEADER
========================= */
.header {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.menu-btn {
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu {
    display: none;
    background: #222;
}

.mobile-menu.active {
    display: block;
}

.menu-inner {
    display: flex;
    flex-direction: column;
}

.menu-inner a {
    padding: 12px 0;
    border-top: 1px solid #333;
    text-decoration: none;
    color: white;
}

/* =========================
   CARD GRID
========================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* =========================
   CARD
========================= */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover lift */
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* image container */
.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* image zoom */
.post-card:hover .card-image img {
    transform: scale(1.05);
}

/* title overlay */
.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;

    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* =========================
   CONTENT AREA
========================= */
.content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .card-image {
        height: 200px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* disable hover on mobile */
@media (hover: none) {
    .post-card:hover {
        transform: none;
        box-shadow: none;
    }
}