/* =========================================================
   Maktech Blog  (loaded only on blog.html / blog-post.html)
   Uses site palette: blue #209edd / #288feb, green #26c281,
   dark #17232f, fonts Poppins + Raleway
   ========================================================= */
:root {
    --mk-blue: #209edd;
    --mk-blue-dark: #288feb;
    --mk-green: #26c281;
    --mk-orange: #ff9f43;
    --mk-purple: #7c4dff;
    --mk-dark: #17232f;
    --mk-text: #5b6773;
    --mk-line: #e6ebf0;
    --mk-soft: #f5f9fc;
}

.mkb-section { padding: 60px 0 70px; background: #fff; }
.mkb-section.soft { background: var(--mk-soft); }

/* ---------- Intro ---------- */
.mkb-intro { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.mkb-intro h2 { font-family: Poppins, sans-serif; font-weight: 600; color: var(--mk-dark); margin: 0 0 12px; font-size: 32px; }
.mkb-intro h2 span { color: var(--mk-blue); }
.mkb-intro p { color: var(--mk-text); font-size: 16px; line-height: 1.8; margin: 0; }

/* ---------- Featured ---------- */
.mkb-featured { display: flex; flex-wrap: wrap; background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 18px 45px rgba(23, 35, 47, .12); margin-bottom: 50px; }
.mkb-featured .mkb-featured-img { flex: 1 1 54%; min-height: 340px; background: #209edd; position: relative; overflow: hidden; }
.mkb-featured .mkb-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mkb-featured:hover .mkb-featured-img img { transform: scale(1.04); }
.mkb-featured .mkb-featured-body { flex: 1 1 46%; padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.mkb-flag { position: absolute; top: 18px; left: 18px; background: var(--mk-dark); color: #fff; font: 600 12px Poppins, sans-serif;
    letter-spacing: .6px; text-transform: uppercase; padding: 7px 14px; border-radius: 30px; }
.mkb-featured h3 { font-size: 26px; line-height: 1.35; font-weight: 600; margin: 14px 0 14px; }
.mkb-featured h3 a { color: var(--mk-dark); }
.mkb-featured h3 a:hover { color: var(--mk-blue); text-decoration: none; }
.mkb-featured p { color: var(--mk-text); line-height: 1.8; margin-bottom: 22px; }

/* ---------- Category chips ---------- */
.mkb-filter { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mkb-filter button { border: 1px solid var(--mk-line); background: #fff; color: var(--mk-dark); font: 500 14px Poppins, sans-serif;
    padding: 9px 22px; border-radius: 30px; cursor: pointer; transition: all .25s ease; outline: none; }
.mkb-filter button:hover { border-color: var(--mk-blue); color: var(--mk-blue); }
.mkb-filter button.active { background: var(--mk-blue); border-color: var(--mk-blue); color: #fff; box-shadow: 0 8px 18px rgba(32, 158, 221, .35); }

/* ---------- Card grid ---------- */
.mkb-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.mkb-grid::before, .mkb-grid::after { display: none; }
.mkb-col { width: 33.3333%; padding: 0 15px; margin-bottom: 30px; display: flex; }
.mkb-card { background: #fff; border-radius: 12px; overflow: hidden; width: 100%; display: flex; flex-direction: column;
    border: 1px solid var(--mk-line); transition: transform .3s ease, box-shadow .3s ease; }
.mkb-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(23, 35, 47, .13); }
.mkb-card .mkb-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #dbe9f4; }
.mkb-card .mkb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mkb-card:hover .mkb-thumb img { transform: scale(1.06); }
.mkb-cat { display: inline-block; font: 600 11px Poppins, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: #fff;
    background: var(--mk-blue); padding: 6px 13px; border-radius: 30px; }
.mkb-thumb .mkb-cat { position: absolute; left: 14px; bottom: 14px; }
.mkb-cat.software { background: var(--mk-blue); }
.mkb-cat.web { background: var(--mk-orange); }
.mkb-cat.marketing { background: var(--mk-green); }
.mkb-cat.finance { background: var(--mk-purple); }
.mkb-card .mkb-body { padding: 22px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.mkb-meta { font: 400 13px Poppins, sans-serif; color: #8896a4; margin-bottom: 10px; }
.mkb-meta i { color: var(--mk-blue); margin-right: 5px; }
.mkb-meta span + span::before { content: "\2022"; margin: 0 9px; color: #c3ccd5; }
.mkb-card h4 { font-size: 18px; line-height: 1.5; font-weight: 600; margin: 0 0 10px; }
.mkb-card h4 a { color: var(--mk-dark); }
.mkb-card h4 a:hover { color: var(--mk-blue); text-decoration: none; }
.mkb-card p { color: var(--mk-text); font-size: 14.5px; line-height: 1.75; margin: 0 0 18px; }
.mkb-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--mk-line); padding-top: 14px; }
.mkb-author { display: flex; align-items: center; font: 500 13px Poppins, sans-serif; color: var(--mk-dark); }
.mkb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--mk-blue); color: #fff; font: 600 12px Poppins, sans-serif;
    display: inline-flex; align-items: center; justify-content: center; margin-right: 9px; }
.mkb-more { font: 500 13.5px Poppins, sans-serif; color: var(--mk-blue); }
.mkb-more i { margin-left: 5px; transition: margin .25s ease; }
.mkb-more:hover { color: var(--mk-blue-dark); text-decoration: none; }
.mkb-more:hover i { margin-left: 10px; }
.mkb-empty { display: none; text-align: center; color: var(--mk-text); padding: 30px 0; }

/* ---------- CTA band ---------- */
.mkb-cta { background: linear-gradient(120deg, #209edd 0%, #1b6fc4 100%); padding: 55px 0; color: #fff; position: relative; overflow: hidden; }
.mkb-cta::after { content: ""; position: absolute; right: -80px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.mkb-cta h3 { color: #fff; font-weight: 600; font-size: 28px; margin: 0 0 8px; }
.mkb-cta p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; }
.mkb-cta .btn { margin: 6px 6px 6px 0; position: relative; z-index: 1; }
.mkb-cta .btn.light { background: #fff; color: var(--mk-blue); border-color: #fff; }

/* ---------- Single post ---------- */
.mkb-post-head { margin-bottom: 26px; }
.mkb-post-head h1 { font: 600 34px/1.35 Poppins, sans-serif; color: var(--mk-dark); margin: 14px 0 14px; }
.mkb-post-hero { border-radius: 14px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 16px 38px rgba(23, 35, 47, .14); }
.mkb-post-hero img { width: 100%; display: block; aspect-ratio: 16 / 8; object-fit: cover; }
.mkb-article { color: #3f4b57; font-size: 16.5px; line-height: 1.9; }
.mkb-article h2 { font: 600 24px Poppins, sans-serif; color: var(--mk-dark); margin: 38px 0 14px; }
.mkb-article p { margin: 0 0 18px; }
.mkb-article ul { padding-left: 0; list-style: none; margin: 0 0 22px; }
.mkb-article ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.mkb-article ul li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 0; color: var(--mk-green); }
.mkb-article blockquote { border: 0; border-left: 4px solid var(--mk-blue); background: var(--mk-soft); border-radius: 0 12px 12px 0;
    padding: 22px 26px; margin: 28px 0; font: italic 500 18px/1.7 Poppins, sans-serif; color: var(--mk-dark); }
.mkb-tags { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--mk-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mkb-tags strong { font: 600 14px Poppins, sans-serif; color: var(--mk-dark); margin-right: 6px; }
.mkb-tag { display: inline-block; font: 500 13px Poppins, sans-serif; color: var(--mk-text); background: var(--mk-soft); border: 1px solid var(--mk-line);
    padding: 6px 15px; border-radius: 30px; transition: all .25s ease; }
.mkb-tag:hover { background: var(--mk-blue); border-color: var(--mk-blue); color: #fff; text-decoration: none; }
.mkb-share { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.mkb-share strong { font: 600 14px Poppins, sans-serif; color: var(--mk-dark); }
.mkb-share a { width: 38px; height: 38px; border-radius: 50%; background: var(--mk-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .25s ease; }
.mkb-share a:hover { background: var(--mk-blue); text-decoration: none; }
.mkb-authorbox { display: flex; gap: 18px; background: var(--mk-soft); border-radius: 14px; padding: 24px; margin-top: 32px; }
.mkb-authorbox .mkb-avatar { width: 62px; height: 62px; font-size: 20px; flex: none; margin: 0; }
.mkb-authorbox h5 { margin: 2px 0 6px; font-weight: 600; font-size: 17px; }
.mkb-authorbox p { margin: 0; color: var(--mk-text); font-size: 14.5px; line-height: 1.75; }

/* ---------- Sidebar ---------- */
.mkb-side .mkb-widget { background: #fff; border: 1px solid var(--mk-line); border-radius: 14px; padding: 24px; margin-bottom: 26px; }
.mkb-side h5 { font: 600 17px Poppins, sans-serif; color: var(--mk-dark); margin: 0 0 18px; padding-bottom: 12px; position: relative; }
.mkb-side h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--mk-blue); }
.mkb-side ul { list-style: none; padding: 0; margin: 0; }
.mkb-recent li { display: flex; gap: 14px; margin-bottom: 16px; }
.mkb-recent li:last-child { margin-bottom: 0; }
.mkb-recent img { width: 78px; height: 62px; object-fit: cover; border-radius: 8px; flex: none; }
.mkb-recent a { font: 500 14px/1.5 Poppins, sans-serif; color: var(--mk-dark); display: block; }
.mkb-recent a:hover { color: var(--mk-blue); text-decoration: none; }
.mkb-recent small { color: #8896a4; font-size: 12px; }
.mkb-cats li a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--mk-line); color: var(--mk-text); font: 400 14.5px Poppins, sans-serif; }
.mkb-cats li:last-child a { border-bottom: 0; }
.mkb-cats li a:hover { color: var(--mk-blue); text-decoration: none; }
.mkb-cats li a span { background: var(--mk-soft); color: var(--mk-blue); border-radius: 30px; padding: 0 10px; font-size: 12px; line-height: 22px; }
.mkb-widget.dark { background: linear-gradient(150deg, #17232f, #1f3a52); border: 0; color: #fff; text-align: center; }
.mkb-widget.dark h5 { color: #fff; }
.mkb-widget.dark h5::after { left: 50%; margin-left: -22px; background: var(--mk-green); }
.mkb-widget.dark p { color: rgba(255, 255, 255, .8); font-size: 14.5px; line-height: 1.75; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .mkb-col { width: 50%; }
    .mkb-featured .mkb-featured-img, .mkb-featured .mkb-featured-body { flex-basis: 100%; }
    .mkb-featured .mkb-featured-img { min-height: 260px; }
    .mkb-side { margin-top: 40px; }
}
@media (max-width: 600px) {
    .mkb-col { width: 100%; }
    .mkb-section { padding: 40px 0 50px; }
    .mkb-intro h2 { font-size: 26px; }
    .mkb-featured .mkb-featured-body { padding: 26px 22px; }
    .mkb-featured h3 { font-size: 22px; }
    .mkb-post-head h1 { font-size: 26px; }
    .mkb-cta { text-align: center; }
}
