/* =====================================================
   M2NICE HOMEPAGE - NOTJUSTOK STYLE 
   ===================================================== */

.m2n-njok-post{
    display:flex;
    gap:15px;
    background:#fff;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ececec;
    border-radius:8px;
    width:100%;
    box-sizing:border-box;
    transition:all .2s ease;
}

.m2n-njok-post:hover{
    border-color:#ddd;
    box-shadow:0 3px 12px rgba(0,0,0,.05);
}

/* =====================================================
   IMAGE
   ===================================================== */

.m2n-njok-thumb{
    width:45%;
    flex:0 0 45%;
    display:block;
}

.m2n-njok-thumb img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:6px;
    display:block;
}

/* =====================================================
   CONTENT
   ===================================================== */

.m2n-njok-content{
    flex:1;
    min-width:0;
}

/* =====================================================
   META
   ===================================================== */

.m2n-njok-meta{
    margin-bottom:6px;
    font-size:12px;
    line-height:1.3;
}

.m2n-njok-category{
    color:#c14141;
    font-weight:700;
    margin-right:8px;
}

.m2n-njok-time{
    color:#888;
}

.m2n-njok-brand{
    color:#999;
    margin-left:5px;
}

/* =====================================================
   TITLE
   ===================================================== */

.m2n-njok-title{
    margin:0 0 8px;
    font-size:20px;
    line-height:1.4;
    font-weight:700;
}

.m2n-njok-title a{
    color:#111;
    text-decoration:none;
}

.m2n-njok-title a:hover{
    color:#c14141;
}

/* =====================================================
   EXCERPT
   ===================================================== */

.m2n-njok-excerpt{
    margin:0;
    color:#666;
    font-size:14px;
    line-height:1.6;
}

/* =====================================================
   CATEGORY PAGE / HOMEPAGE 300x250 AD
   ===================================================== */

.m2n-category-ad{
    width:100% !important;
    flex:0 0 100% !important;
    max-width:100% !important;
    box-sizing:border-box;
    clear:both;
}

.ad-300x250{
    width:100%;
    max-width:300px;
    min-height:250px;
    margin:30px auto;
    text-align:center;
    overflow:hidden;
    clear:both;
    position:relative;
    z-index:1;
}

/* =====================================================
   BELOW 800px
   ===================================================== */

@media(max-width:799px){
    .blog-entries > .main-content{ width:100% !important; flex:0 0 100% !important; max-width:100% !important; }
    .blog-entries > .sidebar{ width:100% !important; flex:0 0 100% !important; max-width:100% !important; }
    .main-content > .row{ display:flex; flex-wrap:wrap; width:100%; margin-left:0 !important; margin-right:0 !important; }
    .main-content .m2n-post-column{ width:100% !important; flex:0 0 100% !important; max-width:100% !important; box-sizing:border-box; padding-left:0 !important; padding-right:0 !important; }
    .m2n-njok-post{ display:flex; flex-direction:row; align-items:flex-start; gap:10px; padding:10px; margin-bottom:12px; border-radius:7px; width:100%; box-sizing:border-box; }
    .m2n-njok-thumb{ width:45%; min-width:45%; flex:0 0 45%; }
    .m2n-njok-thumb img{ width:100%; height:90px; object-fit:cover; border-radius:5px; }
    .m2n-njok-content{ flex:1; min-width:0; }
    .m2n-njok-meta{ font-size:10px; margin-bottom:4px; line-height:1.2; }
    .m2n-njok-brand{ display:none; }
    .m2n-njok-title{ font-size:15px; line-height:1.4; margin:0; font-weight:700; }
    .m2n-njok-excerpt{ display:none; }
}

/* =====================================================
   SMALL PHONES
   ===================================================== */

@media(max-width:380px){
    .m2n-njok-post{ gap:9px; padding:9px; }
    .m2n-njok-thumb{ width:45%; min-width:45%; flex:0 0 45%; }
    .m2n-njok-thumb img{ width:100%; height:82px; object-fit:cover; }
    .m2n-njok-title{ font-size:14px; line-height:1.35; }
    .m2n-njok-meta{ font-size:9px; }
}

/* =====================================================
   800px AND ABOVE
   ===================================================== */

@media(min-width:800px){
    .blog-entries{ display:flex !important; flex-wrap:wrap !important; align-items:flex-start; }
    .blog-entries > .main-content{ width:66.66666667% !important; flex:0 0 66.66667% !important; max-width:66.66666667% !important; box-sizing:border-box; }
    .blog-entries > .sidebar{ width:33.33333% !important; flex:0 0 33.33333% !important; max-width:33.33333% !important; box-sizing:border-box; }
    .main-content > .row{ display:flex !important; flex-wrap:wrap !important; width:100%; margin-left:0 !important; margin-right:0 !important; }
    .main-content .m2n-post-column{ width:50% !important; flex:0 0 50% !important; max-width:50% !important; box-sizing:border-box; padding-left:0 !important; padding-right:0 !important; }
    .main-content .m2n-category-ad{ width:50% !important; flex:0 0 50% !important; max-width:50% !important; box-sizing:border-box; clear:none !important; padding-left:0 !important; padding-right:0 !important; }
    .main-content .m2n-category-ad .ad-300x250{ width:100%; max-width:300px; min-height:250px; margin:30px auto; text-align:center; overflow:hidden; clear:both; position:relative; z-index:1; }
    .m2n-njok-post{ display:flex; flex-direction:row; gap:10px; padding:10px; width:100%; box-sizing:border-box; }
    .m2n-njok-thumb{ width:45%; min-width:45%; flex:0 0 45%; }
    .m2n-njok-thumb img{ width:100%; height:100px; object-fit:cover; border-radius:5px; }
    .m2n-njok-content{ flex:1; min-width:0; }
    .m2n-njok-meta{ font-size:10px; margin-bottom:4px; line-height:1.2; }
    .m2n-njok-brand{ display:none; }
    .m2n-njok-title{ font-size:16px; line-height:1.35; margin:0; font-weight:700; }
    .m2n-njok-excerpt{ display:none; }
}

/* =====================================================
   MOBILE AD = FULL WIDTH
   ===================================================== */

@media(max-width:799px){
    .main-content .m2n-category-ad{ width:100% !important; flex:0 0 100% !important; max-width:100% !important; box-sizing:border-box; clear:both !important; padding-left:0 !important; padding-right:0 !important; }
    .main-content .m2n-category-ad .ad-300x250{ width:100%; max-width:300px; min-height:250px; margin:30px auto; text-align:center; overflow:hidden; clear:both; position:relative; z-index:1; }
}
/* =====================================================
   LAZY AD PLACEHOLDER
   ===================================================== */
.ad-300x250{
    width:100%;
    max-width:300px;
    min-height:250px;
    margin:30px auto;
    text-align:center;
    overflow:hidden;
    clear:both;
    position:relative;
    z-index:1;
    background:#f3f3f3; /* grey placeholder to prevent CLS */
    border-radius:6px;
}
.ad-300x250.loading::after{
    content:"Loading Ad...";
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:12px;
    color:#999;
    font-family:'Inter',sans-serif;
}