/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* GLOBAL */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

/* HEADER */
.blog-header {
    background: #f4d600;
    padding: 60px 20px;
    text-align: center;
}

.blog-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* SEARCH */
.search-box input {
    padding: 12px 15px;
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    border: none;
    outline: none;
}

/* GRID */
.blog-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
}

/* IMAGE */
.thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* CONTENT */
.card-content {
    padding: 15px;
}

.card-content h2 {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.4;
}

.meta {
    font-size: 12px;
    color: #777;
}

/* =========================
   📱 TABLET (<= 1024px)
========================= */
@media (max-width: 1024px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-header h1 {
        font-size: 28px;
    }

    .thumb img {
        height: 160px;
    }
}

/* =========================
   📱 MOBILE (<= 768px)
========================= */
@media (max-width: 768px) {

    .blog-header {
        padding: 40px 15px;
    }

    .blog-header h1 {
        font-size: 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .thumb img {
        height: 200px;
    }

    .card-content h2 {
        font-size: 15px;
    }
}

/* =========================
   📱 SMALL MOBILE (<= 480px)
========================= */
@media (max-width: 480px) {
	.blog-header {
		margin-top: 30px!important;
	}
    .blog-header h1 {
        font-size: 20px;
    }

    .search-box input {
        max-width: 100%;
    }

    .thumb img {
        height: 180px;
    }
}

/* WRAPPER */
.search-box {
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

/* FORM */
.search-form {
    display: flex;
    align-items: center;
    //width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* INPUT */
.search-field {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* BUTTON */
.search-submit {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ICON */
.search-submit svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

/* HOVER */
.search-form:focus-within {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* =========================
   📱 MOBILE
========================= */
@media (max-width: 768px) {

    .search-form {
        max-width: 100%;
    }

    .search-field {
        font-size: 16px; /* biar ga zoom di iOS */
        padding: 14px;
    }

    .search-submit {
        padding: 0 12px;
    }
}