/* Blog theme: copied from the main Bentil site (colors, fonts, corner rounding, nav + footer).
   To restyle the blog, change the variables below. */
@font-face { font-family: Manrope; font-weight: 200 800; font-display: swap; src: url(/blog-assets/Manrope.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/blog-assets/Inter.woff) format("woff"); }

:root {
  --accent: #bf6440;       /* orange used for headings, buttons, current page */
  --page: #efefef;         /* page background */
  --ink: #000;
  --card: #fff;
  --band: #000;            /* dark call-to-action band */
  --r-card: 16px;          /* cards */
  --r-btn: 8px;            /* buttons */
  --r-link: 4px;           /* nav links */
  --shadow: 0 8px 28px rgba(0, 0, 0, .14);
  --nav-h: 60px;
}

body.blog { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.blog *, .blog *::before, .blog *::after { box-sizing: border-box; }
:where(.blog) a { color: inherit; }
.blog [hidden] { display: none !important; }
.blog h1, .blog h2, .blog h3 { font-family: Manrope, Inter, sans-serif; }

/* ---------- Desktop nav (same as the main site) ---------- */
#nav-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 32px;
  background: transparent; box-shadow: none; will-change: transform, background-color, box-shadow;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), background-color .4s ease, box-shadow .4s ease;
}
#nav-menu.scrolled { background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
.nav-image { display: block; line-height: 0; }
.nav-image img { width: 80px; height: auto; display: block; transition: filter .4s ease; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { font-family: Manrope, sans-serif; font-size: 12px; font-weight: 500; height: 30px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--r-link); color: #fff; text-decoration: none; transition: color .4s ease, background-color .2s ease; }
.nav-links a:hover { background: rgba(255, 255, 255, .15); }
.nav-links a.active { background: var(--accent); color: #fff; }
.nav-icons { display: flex; align-items: center; gap: 16px; }
.nav-icon { display: flex; color: #fff; transition: color .3s ease-in-out; }
.nav-icon svg { width: 24px; height: 24px; display: block; }
.nav-icon.yt svg { width: 32px; height: 32px; }
.nav-icon svg path { fill: currentColor; stroke: currentColor; }
.nav-icon.lb:hover { color: #add8e6; } .nav-icon.gr:hover { color: #25d366; } .nav-icon.rd:hover { color: #f00; }
/* after the hero: white bar, dark text, dark logo */
#nav-menu.scrolled .nav-image img { filter: brightness(0); }
#nav-menu.scrolled .nav-links a:not(.active) { color: #000; }
#nav-menu.scrolled .nav-links a:not(.active):hover { background: rgba(0, 0, 0, .06); }
#nav-menu.scrolled .nav-icon { color: #000; }

/* ---------- Phone bar + menu ---------- */
.mbar, .mmenu { display: none; }
@media (max-width: 991px) {
  #nav-menu { display: none; }
  .mbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 40px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
  .mbar-logo { display: block; line-height: 0; } .mbar-logo img { height: 26px; width: auto; filter: brightness(0); }
  .mbar-btn, .mmenu-x { background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; }
  .mmenu { position: fixed; z-index: 99; top: 40px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: center; gap: 30px; padding: 36px 16px; background: rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow-y: auto; }
  .mmenu:not([hidden]) { display: flex; }
  .mmenu-x { position: absolute; top: 12px; right: 14px; }
  .mmenu-links { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 8px; }
  .mmenu-links a { color: #fff; font-family: Manrope, sans-serif; font-size: 14px; text-decoration: none; padding: 4px 12px; }
  .mmenu-links a.active { font-weight: 800; }
  .mmenu-icons { display: flex; gap: 20px; align-items: center; }
  .mmenu .nav-icon { color: #fff; }
}

/* ---------- Photo header ---------- */
.hero { position: relative; overflow: hidden; display: grid; place-items: center; height: clamp(300px, 48vh, 460px); padding: 72px 20px 48px; background: #111; color: #fff; text-align: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .52); }
.hero-in { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { display: inline-block; margin: 0; padding-bottom: 8px; border-bottom: 4px solid var(--accent); font-weight: 600; font-size: clamp(1.7rem, 4.2vw, 2.5rem); line-height: 1.2; color: #fff; text-wrap: balance; }
.hero p { margin: 18px 0 0; color: #e5e7eb; }
.hero a { color: #fff; }

/* ---------- Feed + cards ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 16px 56px; }
.card { background: var(--card); border-radius: var(--r-card); padding: 20px 20px 16px; margin-bottom: 24px; box-shadow: var(--shadow); }
.author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #000; display: grid; place-items: center; overflow: hidden; flex: none; }
.avatar img { width: 34px; height: auto; }
.who { display: flex; flex-direction: column; line-height: 1.25; }
.who strong { font-size: .95rem; font-family: Manrope, sans-serif; }
.who time { font-size: .8rem; color: #6b7280; }
.card-title { text-decoration: none; }
.card-title h2 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 8px; color: var(--accent); font-weight: 700; }
.card-title:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.card-excerpt { margin: 0 0 12px; color: #374151; }
.card-cover { display: block; margin: 0 -20px 12px; }
.card-cover img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { background: #f6efe9; color: var(--accent); text-decoration: none; font-size: .8rem; padding: 3px 10px; border-radius: var(--r-link); }
.tag:hover { background: var(--accent); color: #fff; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e5e7eb; margin-top: 14px; padding-top: 14px; font-size: .9rem; }
.share-mini { color: #6b7280; text-decoration: none; }
.share-mini:hover { color: #25d366; }
.btn { display: inline-block; background: var(--accent); color: #fff !important; font-family: Manrope, sans-serif; font-weight: 500; font-size: 14px; text-decoration: none; padding: 11px 28px; border-radius: var(--r-btn); transition: filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 8px 20px; }
.empty { text-align: center; color: #6b7280; padding: 40px 0; }
.pager { display: flex; justify-content: space-between; margin-top: 8px; }
.pager a { background: var(--accent); color: #fff; font-family: Manrope, sans-serif; font-weight: 500; font-size: 14px; text-decoration: none; padding: 10px 22px; border-radius: var(--r-btn); }

/* ---------- Single post ---------- */
.card-full { padding: 24px 24px 18px; }
.meta { color: #6b7280; font-size: .85rem; margin: 0 0 18px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid #e5e7eb; margin-top: 18px; padding-top: 14px; }
.share span { color: #6b7280; font-size: .85rem; margin-right: 4px; }
.share a, .share button { font: inherit; font-size: .85rem; background: #f3f4f6; border: 0; color: #111; text-decoration: none; padding: 7px 14px; border-radius: var(--r-link); cursor: pointer; }
.share a:hover, .share button:hover { background: #000; color: #fff; }
.share a.wa:hover { background: #25d366; }
.back { text-align: center; margin: 0; } .back a { color: #6b7280; text-decoration: none; } .back a:hover { color: var(--accent); }
.draft-banner { background: #fff3cd; color: #7a5b00; border-radius: var(--r-btn); padding: 10px 14px; margin-bottom: 16px; font-size: .9rem; text-align: center; }

/* ---------- Dark band (matches "Need A Custom Security Solution?") ---------- */
.band { background: var(--band); color: #fff; text-align: center; padding: 64px 20px 56px; }
.band h2 { margin: 0 0 28px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }

/* ---------- Footer (same as the main site) ---------- */
.bfoot { background: #efefef; color: #000; border-top: 1px solid rgba(204, 199, 201, .25); padding: 48px 64px 20px; }
.bfoot-in { display: grid; grid-template-columns: 273fr 447fr 432fr; gap: 0; align-items: start; }
.bfoot-logo img { width: 128px; height: auto; display: block; filter: brightness(0); }
.bfoot h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--accent); }
.bfoot ul { list-style: none; margin: 0; padding: 0; }
.bfoot li { font-size: 12px; line-height: 1.2; }
.bfoot li a { color: #000; text-decoration: none; }
.bfoot li a:hover { color: var(--accent); }
.bfoot-copy { text-align: center; font-size: 10px; line-height: 1.2; margin: 40px 0 0; }

@media (max-width: 991px) {
  .hero { padding-top: 80px; }
  .bfoot { padding: 28px 16px 24px; }
  .bfoot-in { grid-template-columns: 1fr; gap: 22px; }
  .bfoot-copy { text-align: left; margin-top: 24px; font-size: 12px; }
}
@media (max-width: 600px) {
  .wrap { padding-top: 28px; }
  .card { padding: 16px 16px 14px; }
  .card-cover { margin: 0 -16px 12px; }
  .card-full { padding: 18px 16px 14px; }
  .card-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { #nav-menu, .nav-links a, .nav-image img { transition: none; } }
