/* SET BASE */
* {
    margin: 0;
    padding: 0;
    outline: none;
    border: 0;
    box-sizing: border-box;
}
body {
    font: 14px Roboto, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #fff;
    min-height: 100vh;
    width: 100%;
    font-weight: 300;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover, a:focus {
    color: #e60023;
}
h1, h2, h3 {
    font-weight: 500;
    font-size: 20px;
}
img {
    max-width: 100%;
    height: auto;
}
.clr {
    clear: both;
}
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* BASIC GRID */
.wrap {
    min-width: 320px;
    overflow: hidden;
}
.wrap-container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}
.topper {
    background: #fff;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.content {
    min-height: 80vh;
    padding: 20px 0;
}
.bottomer {
    background: #f5f5f5;
    padding: 20px 15px;
    margin-top: 40px;
    text-align: center;
}

/* HEADER */
.logo {
    display: block;
    height: 50px;
    width: 150px;
    flex-shrink: 0;
}
.logo img {
    height: 100%;
    width: auto;
    display: block;
}
.hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: #e60023;
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}
.search-box {
    flex-grow: 1;
    margin: 0 10px;
    max-width: 300px;
}
.search-input {
    position: relative;
    width: 100%;
}
.search-input input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 15px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
}
.search-input input:focus {
    background: #eee;
}
.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: transparent !important;
    color: #333 !important;
    font-size: 18px;
}

/* MOBILE MENU */
.bochello-panel {
    width: 260px;
    height: 100%;
    background: #fff;
    padding: 15px;
    position: fixed;
    left: -260px;
    top: 0;
    transition: left 0.4s;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}
.bochello-panel.active {
    left: 0;
}
.close-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    display: none;
}
.close-overlay.active {
    display: block;
}
.bochello-panel a {
    display: block;
    padding: 10px;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}
.bochello-panel a:hover {
    background: #f5f5f5;
    color: #e60023;
}
.topper-menu li {
    margin-bottom: 5px;
}

/* MASONRY GRID */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 7.5px;
}
.float {
    break-inside: avoid;
    padding: 7.5px;
}
.float-inner {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.float-inner:hover {
    transform: translateY(-5px);
}
.float-inner a {
    display: block;
}
.float-inner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
}

/* TAGS */
.tags-box {
    margin: 20px 0;
}
.tags-box h3 {
    margin-bottom: 10px;
}
.tags-box a {
    display: inline-block;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 0 5px 10px 0;
    color: #28a745;
    font-size: 14px;
}
.tags-box a:hover {
    background: #28a745;
    color: #fff;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin: 30px 0;
}
.pagination-in > a, .pagination-in > span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
}
.pagination-in > span:not(.nav_ext) {
    background: #e60023;
    color: #fff;
    border-color: #e60023;
}

/* FOOTER */
.bottomer p, .bottomer a {
    font-size: 14px;
    color: #666;
}
.bottomer a {
    margin: 0 10px;
}
.bottomer-agree {
    margin-top: 10px;
    font-size: 12px;
}

/* ADAPTIVE */
@media screen and (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .search-box {
        max-width: 200px;
    }
    .logo {
        width: 120px;
    }
    .hamburger-menu {
        margin-left: 10px;
    }
}
@media screen and (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .search-box {
        max-width: 150px;
    }
    .logo {
        width: 100px;
    }
    .topper {
        flex-wrap: wrap;
    }
    .search-box {
        margin: 10px 0;
        max-width: 100%;
    }
}