/* =========================
   INTRUDAIR BLOG CLEAN UI (2026)
   White background + brand red
   ========================= */

:root{
    --bg: #ffffff;            /* wrapper white */
    --card: #ffffff;          /* cards */
    --card2: #ffffff;         /* modal */
    --text: #111111;
    --text2:#333333;
    --muted:#6b7280;          /* modern muted */
    --border: rgba(17,17,17,.10);
    --border2: rgba(17,17,17,.14);
    --shadow: 0 18px 55px rgba(0,0,0,.12);
    --shadow2: 0 10px 28px rgba(0,0,0,.10);
    --radius: 18px;
    --radius2: 22px;
    --accent: #c22c33;        /* brand red */
    --accentHover: #d43a41;   /* lighter hover */
    --accentSoft: rgba(194,44,51,.10);
    --accentSoft2: rgba(194,44,51,.16);
    --pad: 18px;
}

body{
    background: var(--bg);
}

/* wrapper maradjon fehér */
.wrapper{
    background: #fff !important;
}

/* Hero */
.blog-hero{
    padding: 28px 0 16px;
}
.blog-title{
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: #111;
}
.blog-subtitle{
    color: #667085;
    margin: 0;
    max-width: 860px;
    line-height: 1.55;
    font-size: 14px;
}

/* Main spacing */
.blog-main{
    padding-bottom: 40px;
}

/* -------------------------
   POST CARD (list)
   ------------------------- */
.post{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 18px;
    margin: 0 0 16px;
}

/* Bootstrap row -> rugalmasabb layout a kártyán belül */
.post > .row{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Bal oldal (szöveg) */
.post .col-sm-8{
    display: flex;
    flex-direction: column;
}

/* Cím: kisebb line-height + jobb tördelés (gap érzet csökken) */
.post .post-title{
    margin: 0 0 8px;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.08;
    color: #111;
}
.post .post-title a{
    color: #111;
    text-decoration: none;
}
.post .post-title a:hover{
    color: var(--accent);
    text-decoration: none;
}

/* Meta */
.post-meta{
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Category pill -> brand red */
.badge-pill{
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: #c22c33;
    color: #ffffff;
    border: 1px solid #c22c33;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

/* Excerpt: limit + kevesebb "üres" érzés */
.post .lead{
    color: var(--text2);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: .95;
}

/* CTA alulra, hogy ne legyen random gap */
.post .col-sm-12{
    width: 100%;
}
.post .col-sm-12 p:last-child{
    margin-bottom: 0;
}

/* Image column */
.post .col-sm-4.hidden-xs{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thumb: fix arány + object-fit (szebb, kevesebb "lyuk") */
.post-thumb{
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: var(--shadow2);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    max-height: 190px;
}

/* Placeholder cover */
.placeholder-thumb{
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
    border-radius: 16px;
    border: 1px dashed rgba(0,0,0,.18);
    box-shadow: var(--shadow2);
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: 190px;
}
.placeholder-inner{
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    letter-spacing: .18em;
    font-size: 12px;
    color: rgba(0,0,0,.45);
}

/* Buttons */
.btn-clean{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(0,0,0,.02);
    color: #111;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none !important;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.btn-clean:hover{
    background: #c22c33;
    border-color: #c22c33;
    color: #ffffff !important;
}
.btn-clean.primary{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
}
.btn-clean.primary:hover{
    background: var(--accentHover);
    border-color: var(--accentHover);
    color: #fff !important;
}

/* Link hover global – ne legyen kék */
a:hover, a:focus{
    color: var(--accent) !important;
}

/* -------------------------
   SIDEBAR PANELS (light)
   ------------------------- */
.panel.panel-default{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow2);
    overflow: hidden;
    margin-bottom: 14px;
}

.panel .panel-heading{
    background: #c4c4c4 !important;
    border-bottom: 1px solid var(--border) !important;
    color: #111 !important;
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    letter-spacing: .02em;
    padding: 14px 16px;
}
.panel .panel-body{
    color: #333;
    padding: 12px 16px;
}

/* Categories list */
.list-group{
    margin: 0;
}
.list-group-item{
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid rgba(0,0,0,.06) !important;
    color: #222 !important;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.list-group-item:hover{
    /*background: rgba(194,44,51,.05) !important;*/
}
.list-group-item.active{
    background: #e6e6e6 !important;
    color: #1b1b1b !important;
    font-weight: 700;
}
.list-group-item .count{
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #898989;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    font-weight: 700;
    font-size: 12px;
}

/* Latest / Most read list */
.panel .list-unstyled{
    margin: 0;
}
.panel .list-unstyled li{
    position: relative;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.panel .list-unstyled li:last-child{
    border-bottom: 0;
}
.panel .list-unstyled a{
    color: #111;
    text-decoration: none;
}
.panel .list-unstyled a:hover{
    color: var(--accent);
}

/* clamp + badge right (views) – ne absolute “random” */
.article-text{
    display: block;
    padding-right: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    font-weight: 600;
}
.article-text-span{
    position: absolute;
    right: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border: 1px solid rgba(0,0,0,.10);
}

/* -------------------------
   PAGINATION (light)
   ------------------------- */
.pagination{
    margin-top: 10px;
}
.pagination>li>a,
.pagination>li>span{
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.14) !important;
    color: #111 !important;
    border-radius: 12px !important;
    margin: 0 4px;
    font-weight: 800;
}
.pagination>li>a:hover{
    border-color: rgba(194,44,51,.35) !important;
    color: var(--accent) !important;
}
.pagination>li.active>a{
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* -------------------------
   MODAL (clean, readable)
   ------------------------- */
.modal-backdrop.in{
    opacity: .62;
}

/* modern modal width + top space */
#blogPostModal .modal-dialog{
    margin-top: 70px;
    max-width: 980px;
    width: calc(100% - 22px);
}

#blogPostModal .modal-content{
    background: var(--card2);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 22px;
    box-shadow: 0 22px 80px rgba(0,0,0,.20);
    overflow: hidden;
}

#blogPostModal .modal-header{
    border-bottom: 1px solid rgba(0,0,0,.10);
    padding: 16px 18px;
    background: #fff;
}
#blogPostModal .modal-title{
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    color: #111;
    letter-spacing: .01em;
    line-height: 1.15;
}
#blogPostModal .close{
    color: #111;
    opacity: .65;
    text-shadow: none;
}
#blogPostModal .close:hover{
    opacity: 1;
    color: var(--accent);
}

#blogPostModal .modal-body{
    padding: 18px;
    color: #222;
}

.blog-modal-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #667085;
    font-size: 13px;
    margin-bottom: 12px;
}
.blog-modal-meta .label{
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
}

/* footer buttons */
#blogPostModal .modal-footer{
    border-top: 1px solid rgba(0,0,0,.10);
    padding: 12px 18px;
    background: #fff;
}
#blogPostModal .btn{
    border-radius: 12px;
    font-weight: 900;
    letter-spacing: .01em;
    padding: 10px 14px;
}
#blogPostModal .btn-default{
    background: #111;
    border: 1px solid #111;
    color: #fff;
}
#blogPostModal .btn-default:hover{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Post content inside modal */
.post-content{
    max-width: 860px;
}
.post-content p,
.post-content li{
    color: #222;
    line-height: 1.78;
    font-size: 15px;
    color: #222;
    line-height: 1.3;
    font-size: 20px;
}
.post-content h1,.post-content h2,.post-content h3{
    color: #111;
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    margin-top: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.post-content a{
    color: var(--accent);
    text-decoration: underline;
    font-weight: 800;
}
.post-content a:hover{
    color: var(--accentHover);
}
.blog-modal-content img,
.post-content img{
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: var(--shadow2);
    margin: 10px 0;
}

/* -------------------------
   RESPONSIVE (2026)
   ------------------------- */
@media (max-width: 991px){
    .post{
        padding: 16px;
    }
    .post-thumb,
    .placeholder-thumb{
        max-height: 170px;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 767px){
    .blog-hero{
        padding: 22px 0 10px;
    }
    .blog-title{
        font-size: 22px;
    }

    .post > .row{
        display: block; /* stack */
    }
    .post .col-sm-4.hidden-xs{
        display: block !important;
        margin-top: 12px;
    }
    .post-thumb,
    .placeholder-thumb{
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    #blogPostModal .modal-dialog{
        margin-top: 10px;
        width: calc(100% - 12px);
    }
    #blogPostModal .modal-content{
        border-radius: 16px;
    }
    #blogPostModal .modal-body{
        padding: 14px;
    }
}