/* =========================================================
   ILTS — Blog Page Styles (blog.css)
   ========================================================= */

/* ---- PAGE HERO ---- */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  display: block;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.page-hero:hover .page-hero-img { transform: scale(1); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(21,32,51,0.5) 0%, rgba(21,32,51,0.82) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: 50px;
  display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.page-hero-content .section-label { color: var(--gold-lt, #ddb96e); margin-bottom: 10px; }
.page-hero-content .section-label::before { background: var(--gold-lt, #ddb96e); }
.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 900; color: #ffffff;
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1; margin-bottom: 10px;
}
.page-hero-accent { color: transparent; -webkit-text-stroke: 2px #ffffff; }
.page-hero-sub { font-size: 16px; color: rgba(255,255,255,0.75); }
.page-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.page-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb i { font-size: 10px; color: var(--gold); }
.page-breadcrumb span { color: #ffffff; }

/* ---- BLOG MAIN ---- */
.blog-main { background: var(--off-white); }

/* ---- LAYOUT: posts + sidebar ---- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ---- FEATURED POST ---- */
.blog-featured {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray);
  box-shadow: 0 4px 24px rgba(21,32,51,0.07);
  margin-bottom: 36px;
  transition: box-shadow 0.35s, transform 0.35s;
}
.blog-featured:hover {
  box-shadow: 0 20px 50px rgba(21,32,51,0.12);
  transform: translateY(-4px);
}
.blog-featured-img-wrap {
  position: relative;
  display: block;
  height: 380px;
  overflow: hidden;
}
.blog-featured-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-featured:hover .blog-featured-img { transform: scale(1.04); }

.blog-featured-body {
  padding: 34px 38px 36px;
}
.blog-featured-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.blog-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-featured-title a:hover { color: var(--gold); }
.blog-featured-excerpt {
  font-size: 15px;
  color: var(--text-lt);
  line-height: 1.8;
  margin-bottom: 22px;
}

/* ---- CATEGORY TAG (on images) ---- */
.blog-cat-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--navy);
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  z-index: 2;
  border-left: 3px solid var(--gold);
}

/* ---- META ---- */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-lt);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-meta i { color: var(--gold); font-size: 11px; }

/* ---- READ MORE LINK ---- */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.25s, gap 0.25s;
}
.blog-read-more:hover { color: var(--gold); gap: 12px; }
.blog-read-more i { font-size: 11px; }

/* ---- FILTER TABS ---- */
.blog-filter-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.blog-filter-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lt);
  white-space: nowrap;
}
.blog-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lt);
  background: #ffffff;
  border: 1.5px solid var(--gray);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* ---- BLOG GRID ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- BLOG CARD ---- */
.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray);
  box-shadow: 0 2px 16px rgba(21,32,51,0.06);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(21,32,51,0.12);
  border-color: transparent;
}
.blog-card.hidden { display: none; }

.blog-card-img-wrap {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
}
.blog-card-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.06); }

.blog-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.blog-card-title a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-lt);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
  margin-top: auto;
}
.blog-card-link:hover { color: var(--gold); gap: 10px; }
.blog-card-link i { font-size: 10px; }

/* ---- NO RESULTS ---- */
.blog-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-lt);
}
.blog-no-results i { font-size: 36px; color: var(--gray); margin-bottom: 14px; display: block; }
.blog-no-results p { font-size: 16px; }

/* ---- SIDEBAR ---- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 24px;
  border: 1px solid var(--gray);
  box-shadow: 0 2px 16px rgba(21,32,51,0.05);
}

.sidebar-widget-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* Search */
.sidebar-search {
  display: flex;
  border: 1.5px solid var(--gray);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.sidebar-search:focus-within { border-color: var(--navy); }
.sidebar-search input {
  flex: 1;
  padding: 10px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--text);
  border: none;
  outline: none;
  background: transparent;
}
.sidebar-search button {
  width: 42px;
  background: var(--navy);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.25s;
}
.sidebar-search button:hover { background: var(--gold); }

/* Categories */
.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-lt);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.cat-link i { color: var(--gold); font-size: 12px; margin-right: 8px; width: 14px; }
.cat-link span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: var(--off-white);
  color: var(--text-lt);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
}
.cat-link:hover, .cat-link.active {
  background: var(--off-white);
  color: var(--navy);
}
.cat-link.active { font-weight: 700; color: var(--navy); }
.cat-link.active span { background: var(--navy); color: #ffffff; }

/* Popular posts */
.sidebar-popular {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.popular-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.popular-post:hover { opacity: 0.8; }
.popular-post img {
  width: 64px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.popular-post div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.popular-post span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.popular-post small {
  font-size: 11px;
  color: var(--text-lt);
  display: flex;
  align-items: center;
  gap: 4px;
}
.popular-post small i { color: var(--gold); }

/* CTA Widget */
.sidebar-cta-widget { background: var(--navy); border-color: var(--navy); }
.sidebar-cta { text-align: center; }
.sidebar-cta-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 22px;
  margin: 0 auto 14px;
}
.sidebar-cta h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 900;
  color: #ffffff; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 18px;
}
.sidebar-cta-btn {
  display: block;
  background: var(--gold);
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.25s, transform 0.2s;
}
.sidebar-cta-btn:hover { background: #b8892e; transform: translateY(-2px); }
.sidebar-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.sidebar-cta-call:hover { color: #ffffff; }
.sidebar-cta-call i { color: var(--gold); }

/* Tags */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 5px 12px;
  background: var(--off-white);
  border: 1.5px solid var(--gray);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-lt);
  text-decoration: none;
  transition: all 0.25s;
  letter-spacing: 0.04em;
}
.tag-pill:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* ---- CTA SECTION ---- */
.sd-cta {
  background: var(--navy); padding: 70px 0;
  position: relative; overflow: hidden;
}
.sd-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sd-cta-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.sd-cta-text .section-label { color: var(--gold-lt, #ddb96e); margin-bottom: 10px; }
.sd-cta-text .section-label::before { background: var(--gold-lt, #ddb96e); }
.sd-cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 900;
  color: #ffffff; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.05; margin-bottom: 8px;
}
.sd-cta-sub { font-size: 15px; color: rgba(255,255,255,0.65); }
.sd-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-featured-img-wrap { height: 260px; }
  .blog-featured-body { padding: 24px 22px; }
  .blog-featured-title { font-size: 22px; }
  .page-hero { height: 320px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .blog-filter-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero { height: 260px; }
  .page-hero-title { font-size: 42px; }
  .sd-cta-inner { flex-direction: column; align-items: flex-start; }
  .sd-cta-actions { width: 100%; }
  .sd-cta-actions a { flex: 1; justify-content: center; }
}