/* =========================================================================
   Iron Dome Security Solutions — Blog & Article styles
   Hand-authored, build-free. Enqueued after main.css in lib/assets.php.
   Brand tokens mirror assets/styles/common/_variables.scss.
   ========================================================================= */

:root {
  --idome-red: #BE252D;
  --idome-red-dark: #9d1d24;
  --idome-black: #0F151D;
  --idome-blue: #669BB8;
  --idome-dark-blue: #313B49;
  --idome-gray: #888888;
  --idome-ink: #1d2733;
  --idome-muted: #5b6675;
  --idome-line: #e7eaee;
  --idome-bg: #f6f8fa;
  --idome-card: #ffffff;
  --idome-radius: 14px;
  --idome-shadow: 0 1px 2px rgba(15,21,29,.04), 0 12px 32px rgba(15,21,29,.08);
  --idome-shadow-hover: 0 2px 4px rgba(15,21,29,.06), 0 22px 48px rgba(15,21,29,.16);
  --idome-display: 'Antonio', arial, sans-serif;
  --idome-body: 'Roboto', helvetica, sans-serif;
  --idome-maxw: 760px;
}

/* ---- Shared container helper ------------------------------------------- */
.container--narrow {
  max-width: 820px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =========================================================================
   Blog hero / page header
   ========================================================================= */
.blog-hero {
  background: var(--idome-black);
  background-image:
    radial-gradient(1200px 400px at 80% -10%, rgba(102,155,184,.22), transparent 60%),
    linear-gradient(180deg, #11171f 0%, #0c1117 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.blog-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--idome-blue);
  margin: 0 0 14px;
}
.blog-hero__title {
  font-family: var(--idome-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 auto 18px;
  max-width: 16ch;
  color: #fff;
}
.blog-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 62ch;
  margin: 0 auto;
}
.blog-hero--archive { padding: 56px 0 48px; }
.blog-hero .breadcrumbs {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 18px;
}
.blog-hero .breadcrumbs a { color: rgba(255,255,255,.85); }
.blog-hero .breadcrumbs a:hover { color: #fff; }

/* =========================================================================
   Listing layout: main + sidebar
   ========================================================================= */
.blog-wrapper { background: var(--idome-bg); padding: 56px 0 72px; }
.blog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 991px) {
  .blog-shell { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Post grid + cards -------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 575px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--idome-card);
  border: 1px solid var(--idome-line);
  border-radius: var(--idome-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--idome-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--idome-shadow-hover); }

.post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--idome-dark-blue);
}
.post-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.post-card:hover .post-card__image { transform: scale(1.05); }
.post-card__image--placeholder {
  background:
    radial-gradient(600px 200px at 70% 0%, rgba(102,155,184,.35), transparent 60%),
    linear-gradient(135deg, #2a3543, #0f151d);
}
.post-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(15,21,29,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.post-card__badge--featured { background: var(--idome-red); }

.post-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__kicker {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  font-weight: 700;
  color: var(--idome-red);
  margin-bottom: 10px;
}
.post-card__kicker:hover { color: var(--idome-red-dark); }
.post-card__title {
  font-family: var(--idome-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.post-card__title a { color: var(--idome-black); }
.post-card__title a:hover { color: var(--idome-red); }
.post-card__excerpt {
  color: var(--idome-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--idome-gray);
  margin-top: auto;
}
.post-card__cta {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--idome-red);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-card__cta:hover { color: var(--idome-red-dark); }

/* ---- Featured card (spans full width on page 1) ------------------------- */
.post-card--featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .post-card--featured { flex-direction: row; }
  .post-card--featured .post-card__media { flex: 1 1 55%; aspect-ratio: auto; min-height: 340px; }
  .post-card--featured .post-card__body { flex: 1 1 45%; justify-content: center; padding: 40px; }
  .post-card--featured .post-card__title { font-size: 30px; }
  .post-card--featured .post-card__excerpt { font-size: 16px; }
}

.post-grid--related { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 767px) { .post-grid--related { grid-template-columns: 1fr; } }

/* ---- Empty state -------------------------------------------------------- */
.blog-empty {
  background: var(--idome-card);
  border: 1px solid var(--idome-line);
  border-radius: var(--idome-radius);
  padding: 56px 32px;
  text-align: center;
}
.blog-empty h2 { font-family: var(--idome-display); color: var(--idome-black); }
.blog-empty a { color: var(--idome-red); font-weight: 700; }

/* =========================================================================
   Pagination
   ========================================================================= */
.blog-pagination { margin-top: 44px; }
.blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0; margin: 0;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--idome-line);
  background: #fff;
  color: var(--idome-ink);
  font-weight: 600;
  text-decoration: none;
}
.blog-pagination a:hover { border-color: var(--idome-blue); color: var(--idome-blue); }
.blog-pagination .current {
  background: var(--idome-red);
  border-color: var(--idome-red);
  color: #fff;
}

/* =========================================================================
   Sidebar widgets
   ========================================================================= */
.blog-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 991px) { .blog-sidebar { position: static; } }

.blog-widget {
  background: var(--idome-card);
  border: 1px solid var(--idome-line);
  border-radius: var(--idome-radius);
  padding: 24px;
  box-shadow: var(--idome-shadow);
}
.blog-widget__title {
  font-family: var(--idome-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--idome-black);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--idome-line);
}

.blog-search { display: flex; }
.blog-search__input {
  flex: 1;
  border: 1px solid var(--idome-line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  padding: 0 14px;
  height: 46px;
  font-family: var(--idome-body);
  font-size: 14px;
}
.blog-search__input:focus { outline: none; border-color: var(--idome-blue); }
.blog-search__btn {
  border: 0;
  background: var(--idome-red);
  color: #fff;
  width: 50px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
}
.blog-search__btn:hover { background: var(--idome-red-dark); }

.blog-widget__list { list-style: none; margin: 0; padding: 0; }
.blog-widget__list li { border-bottom: 1px solid var(--idome-line); }
.blog-widget__list li:last-child { border-bottom: 0; }
.blog-widget__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  color: var(--idome-ink);
  font-weight: 500;
}
.blog-widget__list a:hover { color: var(--idome-red); }
.blog-widget__count {
  background: var(--idome-bg);
  color: var(--idome-gray);
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  padding: 3px 10px;
}

.blog-widget__recent { list-style: none; margin: 0; padding: 0; }
.blog-widget__recent li { padding: 12px 0; border-bottom: 1px solid var(--idome-line); }
.blog-widget__recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.blog-widget__recent a { display: flex; gap: 12px; align-items: center; }
.blog-widget__recent-img {
  width: 64px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-widget__recent-img--placeholder { background: linear-gradient(135deg, #2a3543, #0f151d); display: block; }
.blog-widget__recent-text { display: flex; flex-direction: column; }
.blog-widget__recent-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--idome-black);
}
.blog-widget__recent a:hover .blog-widget__recent-title { color: var(--idome-red); }
.blog-widget__recent-date { font-size: 12px; color: var(--idome-gray); margin-top: 4px; }

.blog-widget--cta {
  background: var(--idome-black);
  background-image: radial-gradient(600px 200px at 100% 0%, rgba(102,155,184,.25), transparent 60%);
  color: #fff;
  text-align: center;
  border: 0;
}
.blog-widget__cta-title {
  font-family: var(--idome-display);
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 12px;
  color: #fff;
}
.blog-widget--cta p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.blog-widget--cta .btn-block { display: block; width: 100%; }
.blog-widget__phone {
  display: inline-block;
  margin-top: 14px;
  color: var(--idome-blue);
  font-weight: 700;
}
.blog-widget__phone:hover { color: #fff; }

/* =========================================================================
   Single article
   ========================================================================= */
.article-hero {
  background: var(--idome-black);
  background-image:
    radial-gradient(1000px 360px at 85% -10%, rgba(102,155,184,.20), transparent 60%),
    linear-gradient(180deg, #11171f, #0c1117);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.article-hero .breadcrumbs { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.article-hero .breadcrumbs a { color: rgba(255,255,255,.85); }
.article-hero .breadcrumbs a:hover { color: #fff; }
.article-hero__kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--idome-red);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.article-hero__title {
  font-family: var(--idome-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  margin: 0 auto 22px;
  max-width: 22ch;
  color: #fff;
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}
.article-hero__meta a { color: #fff; font-weight: 600; }
.article-hero__author { display: inline-flex; align-items: center; gap: 10px; }
.article-hero__avatar { border-radius: 50%; width: 36px; height: 36px; }
.article-hero__dot { opacity: .5; }

/* ---- Featured image (overlaps hero) ------------------------------------ */
.article-featured { margin: -40px 0 0; }
.article-featured__image {
  width: 100%;
  height: auto;
  border-radius: var(--idome-radius);
  box-shadow: var(--idome-shadow-hover);
  display: block;
}

/* ---- Article body ------------------------------------------------------- */
.article-wrapper { background: #fff; padding: 48px 0 8px; }
.article-layout { position: relative; }

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--idome-line);
}
.article-share__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--idome-gray);
  margin-right: 4px;
}
.article-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--idome-bg);
  color: var(--idome-dark-blue);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.article-share__btn:hover { background: var(--idome-red); color: #fff; transform: translateY(-2px); }

/* Prose */
.article-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--idome-ink);
}
.article-body > * { max-width: var(--idome-maxw); margin-left: auto; margin-right: auto; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
  font-family: var(--idome-display);
  font-size: 30px;
  line-height: 1.15;
  color: var(--idome-black);
  margin: 1.8em auto .6em;
  scroll-margin-top: 90px;
}
.article-body h3 {
  font-family: var(--idome-display);
  font-size: 23px;
  color: var(--idome-black);
  margin: 1.5em auto .5em;
  scroll-margin-top: 90px;
}
.article-body h4 { font-size: 19px; font-weight: 700; margin: 1.4em auto .4em; }
.article-body a { color: var(--idome-red); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--idome-red-dark); }
.article-body ul, .article-body ol { margin: 0 auto 1.4em; padding-left: 1.4em; }
.article-body li { margin-bottom: .5em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--idome-radius); margin: 1.5em auto; display: block; }
.article-body figure { margin: 1.8em auto; }
.article-body figcaption { font-size: 14px; color: var(--idome-gray); text-align: center; margin-top: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--idome-red);
  background: var(--idome-bg);
  padding: 18px 24px;
  margin: 1.6em auto;
  border-radius: 0 10px 10px 0;
  font-size: 20px;
  font-style: italic;
  color: var(--idome-dark-blue);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em auto; font-size: 16px; }
.article-body th, .article-body td { border: 1px solid var(--idome-line); padding: 12px 14px; text-align: left; }
.article-body th { background: var(--idome-bg); font-weight: 700; }
.article-body pre { background: var(--idome-black); color: #f3f5f7; padding: 18px; border-radius: 10px; overflow: auto; }
.article-body code { background: var(--idome-bg); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.article-body pre code { background: none; padding: 0; }

/* Tags */
.article-tags { max-width: var(--idome-maxw); margin: 32px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-tags__label { font-weight: 700; color: var(--idome-gray); font-size: 14px; }
.article-tags a {
  display: inline-block;
  background: var(--idome-bg);
  color: var(--idome-dark-blue);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 100px;
}
.article-tags a:hover { background: var(--idome-red); color: #fff; }

/* Author box */
.article-author {
  max-width: var(--idome-maxw);
  margin: 44px auto 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--idome-bg);
  border: 1px solid var(--idome-line);
  border-radius: var(--idome-radius);
  padding: 26px;
}
.article-author__avatar { border-radius: 50%; width: 72px; height: 72px; flex-shrink: 0; }
.article-author__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--idome-gray); font-weight: 700; }
.article-author__name { font-family: var(--idome-display); font-size: 22px; margin: 4px 0 8px; }
.article-author__name a { color: var(--idome-black); }
.article-author__name a:hover { color: var(--idome-red); }
.article-author__bio { color: var(--idome-muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Inline CTA */
.article-cta {
  max-width: var(--idome-maxw);
  margin: 44px auto 8px;
  background: var(--idome-black);
  background-image: radial-gradient(700px 240px at 90% 0%, rgba(190,37,45,.35), transparent 60%);
  color: #fff;
  border-radius: var(--idome-radius);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-cta__text h2 { font-family: var(--idome-display); font-size: 26px; margin: 0 0 8px; color: #fff; }
.article-cta__text p { color: rgba(255,255,255,.8); margin: 0; max-width: 48ch; font-size: 15px; }
.article-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.article-cta__phone { color: var(--idome-blue); font-weight: 700; }
.article-cta__phone:hover { color: #fff; }

/* Related + comments */
.related-posts { background: var(--idome-bg); padding: 64px 0; margin-top: 48px; }
.related-posts__title {
  font-family: var(--idome-display);
  text-transform: uppercase;
  text-align: center;
  font-size: 30px;
  color: var(--idome-black);
  margin: 0 0 36px;
}
.article-comments { background: #fff; padding: 16px 0 64px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card__image, .article-share__btn { transition: none; }
}
