/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --insur-base:     #1e2f45;
  --headerBG:       #1e2f45;
  --footerBG:       #1e2f45;
  --mobileHeaderBG: #1e2f45;
  --navy:           #1d2f45;
  --navy-dk:        #152333;
  --navy-md:        #253c55;
  --gold:           #c8a000;
  --gold-lt:        #e2c040;
  --cream:          #f5f1ea;
  --border:         #ddd5c4;
  --text:           #333;
  --text-mid:       #555;
  --text-lt:        #888;
  --white:          #fff;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}
a { text-decoration: none; }

/* ── Mobile nav background ── */
.mobile-nav__content { background-color: var(--mobileHeaderBG) !important; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 11px 20px;
  font-size: 13px;
  color: var(--text-lt);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--navy); }
.breadcrumb span { color: var(--text-lt); }

/* ── BLOG HERO ── */
.blog-hero {
  background: var(--navy);
  padding: 56px 20px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://ik.imagekit.io/egroup/legal/assets2/images/banner-home_35a535a093.jpg') center/cover no-repeat;
  opacity: .12;
}
.blog-hero-inner { position: relative; }
.blog-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  border: 1px solid rgba(200,160,0,.45);
  padding: 5px 16px;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.blog-hero p {
  color: rgba(255,255,255,.65);
  max-width: 500px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 300;
}
.separator { display: block; margin: 18px auto; max-width: 220px; }

/* ── CATEGORY TABS ── */
.cat-tabs {
  background: #f9f6f1;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  white-space: nowrap;
}
.cat-tab {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  font-family: 'Lato', sans-serif;
}
.cat-tab:hover { color: var(--navy); }
.cat-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ── BLOG LAYOUT ── */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}

/* ── FEATURED POST ── */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 44px;
  min-height: 320px;
  transition: box-shadow .25s;
}
.featured:hover { box-shadow: 0 10px 36px rgba(29,47,69,.22); }
.featured-img { position: relative; overflow: hidden; min-height: 260px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: transform .4s, opacity .3s; }
.featured:hover .featured-img img { transform: scale(1.04); opacity: .85; }
.featured-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: var(--navy-dk);
  font-size: 10px; font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 12px;
}
.featured-body {
  padding: 36px 30px;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-cat {
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin-bottom: 14px;
}
.featured-body h2 {
  font-size: 1.55rem; font-weight: 900;
  color: #fff; line-height: 1.25; margin-bottom: 12px;
}
.featured-body p { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.65; margin-bottom: 22px; font-weight: 300; }
.btn-read {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  transition: gap .2s;
}
.btn-read:hover { gap: 14px; }
.btn-read::after { content: '→'; }

/* ── SECTION HEADING ── */
.sec-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.sec-head h3 { font-size: 1.2rem; font-weight: 900; color: var(--navy); white-space: nowrap; }
.sec-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── CARD GRID ── */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 44px; }
.card {
  border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  color: inherit;
}
.card:hover { box-shadow: 0 6px 24px rgba(29,47,69,.12); transform: translateY(-2px); }
.card-img { height: 170px; overflow: hidden; position: relative; background: #e8e2d9; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-label {
  position: absolute; bottom: 0; left: 0;
  background: var(--navy); color: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 12px;
}
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 11px; color: var(--text-lt); margin-bottom: 8px; }
.card-body h4 { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 8px; flex: 1; }
.card-body p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; font-weight: 300; }
.card-link {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
  align-self: flex-start; transition: color .2s;
}
.card-link:hover { color: var(--gold); }

/* ── LIST POSTS ── */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.post-row:last-child { border-bottom: none; }
.post-thumb { width: 90px; height: 65px; overflow: hidden; border-radius: 1px; background: #e8e2d9; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-cat { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.post-info h5 { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 3px; }
.post-info h5 a { color: inherit; }
.post-date { font-size: 11px; color: var(--text-lt); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pg-btn {
  width: 36px; height: 36px; border: 1px solid var(--border);
  background: none; cursor: pointer; font-size: 13px; font-weight: 700;
  font-family: 'Lato', sans-serif; color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.pg-btn.active, .pg-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pg-btn.wide { width: auto; padding: 0 14px; font-size: 12px; letter-spacing: .07em; }

/* ── NO RESULTS ── */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-lt);
}
.no-results p { font-size: 15px; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 90px; }
.widget {
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  background: var(--cream);
  padding: 24px; margin-bottom: 24px; border-radius: 1px;
}
.widget-title {
  font-size: 14px; font-weight: 900; color: var(--navy);
  letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.search-row { display: flex; border: 1px solid var(--border); overflow: hidden; }
.search-row input {
  flex: 1; padding: 9px 12px; border: none; background: #fff;
  font-family: 'Lato', sans-serif; font-size: 13px; outline: none; color: var(--text);
}
.search-row button {
  background: var(--navy); border: none; padding: 9px 14px;
  cursor: pointer; color: #fff; font-size: 15px;
  transition: background .2s;
}
.search-row button:hover { background: var(--navy-md); }
.cat-widget-list { list-style: none; }
.cat-widget-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.cat-widget-list li:last-child { border: none; }
.cat-widget-list a { color: var(--text-mid); transition: color .2s; cursor: pointer; }
.cat-widget-list a:hover, .cat-widget-list a.active { color: var(--navy); font-weight: 700; }
.cat-cnt {
  background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.cta-widget {
  border-left: 4px solid var(--gold);
  background: #ede9e0; border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px; margin-bottom: 24px;
}
.cta-widget .widget-title { border-color: var(--border); }
.cta-widget p { font-size: 13px; color: var(--text-mid); margin-bottom: 14px; line-height: 1.6; font-weight: 300; }
.cta-widget a {
  display: block; text-align: center;
  background: var(--navy); color: #fff;
  padding: 11px 20px; font-size: 11px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 1px; transition: background .2s;
}
.cta-widget a:hover { background: var(--navy-md); }

/* ── POST PAGE ── */
.post-hero {
  background: var(--navy);
  padding: 52px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://ik.imagekit.io/egroup/legal/assets2/images/banner-home_35a535a093.jpg') center/cover no-repeat;
  opacity: .10;
}
.post-hero-inner { position: relative; }
.post-hero-cat {
  display: inline-block;
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700;
  border: 1px solid rgba(200,160,0,.4);
  padding: 4px 14px;
  margin-bottom: 16px;
}
.post-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.post-hero-meta { color: rgba(255,255,255,.5); font-size: 13px; }
.meta-sep { margin: 0 8px; }

.post-layout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}
.post-feat-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  margin-bottom: 36px;
  border-radius: 2px;
}
.post-article h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--navy);
  margin: 34px 0 14px;
  line-height: 1.25;
}
.post-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 10px;
}
.post-article p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 15px;
}
.post-article ul, .post-article ol {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 20px 22px;
}
.post-article li { margin-bottom: 6px; }
.post-article blockquote {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 16px 22px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-mid);
}
.post-article blockquote p { margin-bottom: 0; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  margin-bottom: 36px;
  transition: color .2s;
}
.post-back::before { content: '←'; }
.post-back:hover { color: var(--gold); }
.post-cta-box {
  background: var(--navy);
  padding: 28px 30px;
  margin-top: 40px;
  border-radius: 2px;
}
.post-cta-box h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
  margin-top: 0;
}
.post-cta-box p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin-bottom: 16px;
}
.post-cta-box a {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dk) !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 1px;
  transition: background .2s;
}
.post-cta-box a:hover { background: var(--gold-lt); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 700px) {
  .featured { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .post-feat-img { height: 240px; }
}
