/* ================================================================
   Sync Inn Digital — Blog Page
   Sections: Banner (dark) · Featured (dark) · All Articles (white)
   Colors, fonts, and variables follow the global theme pattern.
   ================================================================ */

/* ── Nav spacer (sits behind the fixed header) ───────────────── */

.sid-blog-banner__nav-spacer {
  height: 80px;
  background: var(--sid-black, #000);
}

/* ── Banner ───────────────────────────────────────────────────── */

.sid-blog-banner {
  background: var(--sid-black, #000);
  padding: 0;
  text-align: center;
}

.sid-blog-banner__inner {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 110px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Override global .sid-section-label__text (which is black) to white on dark banner */
.sid-blog-banner .sid-section-label__text {
  color: var(--sid-white, #fff);
}

/* Matches hero heading exactly */
.sid-blog-banner__heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 70px;
  font-weight: 700;
  line-height: 88px;
  color: var(--sid-white, #fff);
  margin: 0;
  max-width: 900px;
  word-break: break-word;
}

/* Blue gradient on highlighted word — matches hero section pattern */
.sid-blog-banner__highlight {
  background: linear-gradient(to bottom, #0047D8 0%, #32CCFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sid-blog-banner__desc {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 0;
  max-width: 600px;
}

/* Responsive heading — mirrors hero.css breakpoints */
@media (max-width: 1279px) {
  .sid-blog-banner__heading {
    font-size: 56px;
    line-height: 68px;
  }
}

@media (max-width: 767px) {
  .sid-blog-banner__inner {
    padding: 60px 20px;
  }
  .sid-blog-banner__heading {
    font-size: 42px;
    line-height: 52px;
  }
}

@media (max-width: 479px) {
  .sid-blog-banner__heading {
    font-size: 32px;
    line-height: 44px;
  }
}

/* ── Featured Section ─────────────────────────────────────────── */

.sid-blog-featured {
  background: var(--sid-black, #000);
  padding: 0;
}

.sid-blog-featured__inner {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 0 20px 110px;
}

.sid-blog-featured__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 28px;
}

.sid-blog-featured__heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--sid-white, #fff);
  margin: 0;
}

/* Prev / Next arrow buttons */
.sid-blog-featured__nav {
  display: flex;
  gap: 10px;
}

.sid-blog-feat-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* On hover: white bg, black icon — matches site's button hover pattern */
.sid-blog-feat-nav-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.sid-blog-feat-nav-btn svg {
  width: 18px;
  height: auto;
}

.sid-blog-feat-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Carousel wrapper — clips overflow so only 2 cards show */
.sid-blog-featured__slider-wrap {
  overflow: hidden;
}

/* Flex strip — all cards in a row, JS translates to slide */
.sid-blog-featured__grid {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
}

/* Each card: half width (2 per view) minus half the gap */
.sid-blog-feat-card {
  flex: 0 0 calc(50% - 12px);
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}

.sid-blog-feat-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

/* ── Upper wrapper: grey background ─────────────────────────── */

.sid-blog-feat-card__upper {
  flex-shrink: 0;
}

/* ── Top row: tagline+category  │  author image ─────────────── */

.sid-blog-feat-card__top {
  position: relative;
  height: 200px;
  background: var(--sid-grey, #F0F2F5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 10px;
  border-radius: 20px;
  overflow: hidden;
}

.sid-blog-feat-card__meta {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.sid-blog-feat-card__tagline {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
}

.sid-blog-feat-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ── Bottom: date · title · desc · CTA ─────────────────────── */

.sid-blog-feat-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sid-blog-feat-card__date {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 12px;
  color: #000;
}

.sid-blog-feat-card__title {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--sid-black, #000);
  line-height: 1.3;
  margin: 0;
}

.sid-blog-feat-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sid-blog-feat-card__title a:hover {
  color: inherit;
}

.sid-blog-feat-card__excerpt {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 18px;
  color: #000;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured section CTA — standard button style */
.sid-blog-feat-card__cta {
  align-self: flex-start;
  font-size: 13px !important;
  padding: 10px 18px !important;
  margin-top: 10px;
}

/* Article section CTA — standalone class, no global button styles */
.sid-blog-article-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--sid-black, #000);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sid-blog-article-cta::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='5 5 19 5 19 19'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  transform: rotate(45deg);
}

.sid-blog-article-cta:hover {
  text-decoration: underline;
  color: var(--sid-black, #000);
}

/* Mobile: 1 card per view */
@media (max-width: 768px) {
  .sid-blog-feat-card {
    flex: 0 0 100%;
  }
  .sid-blog-featured__inner {
    padding: 0 20px 60px;
  }
  .sid-blog-featured__header {
    align-items: flex-start;
    gap: 12px;
  }
  .sid-blog-feat-card__top {
    height: 160px;
  }
  .sid-blog-feat-card__tagline {
    font-size: 22px;
  }
}

/* ── Categories Block ─────────────────────────────────────────── */

.sid-blog-cats {
  padding-bottom: 56px;
}

.sid-blog-cats__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}

.sid-blog-cats__heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--sid-black, #000);
  margin: 0;
}

.sid-blog-cats__count {
  font-size: 22px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4);
}

.sid-blog-cats__nav {
  display: flex;
  gap: 10px;
}

.sid-blog-cat-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sid-blog-cat-nav-btn:hover {
  background: var(--sid-primary, #0047D8);
  border-color: var(--sid-primary, #0047D8);
  color: #fff;
}

.sid-blog-cat-nav-btn svg {
  width: 18px;
  height: auto;
}

.sid-blog-cat-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.sid-blog-cats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.sid-blog-cat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 20px;
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0047D8 0%, #32CCFF 100%);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sid-blog-cat-card:hover {
  opacity: 0.88;
  transform: translateY(-3px);
}

.sid-blog-cat-card__name {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.sid-blog-cat-card__count {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1024px) {
  .sid-blog-cats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .sid-blog-cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── All Articles Section — white background ──────────────────── */

.sid-blog-articles {
  background: #fff;
  padding: 0;
}

.sid-blog-articles__inner {
  max-width: var(--sid-site-width, 1400px);
  margin: 0 auto;
  padding: 110px 20px;
}

.sid-blog-articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 32px;
}

.sid-blog-articles__heading {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--sid-black, #000);
  margin: 0;
}

/* Search + category controls */
.sid-blog-articles__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sid-blog-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sid-blog-search-icon {
  position: absolute;
  left: 14px;
  color: rgba(0, 0, 0, 0.38);
  pointer-events: none;
  flex-shrink: 0;
}

.sid-blog-search {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50px;
  color: rgba(0, 0, 0, 0.8);
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 14px;
  padding: 10px 18px 10px 40px;
  outline: none;
  width: 210px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sid-blog-search::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.sid-blog-search:focus {
  border-color: rgba(0, 71, 216, 0.5);
  background: rgba(0, 0, 0, 0.06);
}

.sid-blog-cat-select {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50px;
  color: rgba(0, 0, 0, 0.8);
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 14px;
  padding: 10px 38px 10px 18px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s ease;
}

.sid-blog-cat-select:focus {
  border-color: rgba(0, 71, 216, 0.5);
}

/* 3-column article grid */
.sid-blog-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Article cards: light background */
.sid-blog-articles__grid .sid-blog-feat-card {
  background: #FAFBFC;
}


@media (max-width: 1024px) {
  .sid-blog-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sid-blog-articles__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Article Card — dark text on white ────────────────────────── */

.sid-blog-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.sid-blog-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Image area */
.sid-blog-card__img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  text-decoration: none;
}

.sid-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sid-blog-card:hover .sid-blog-card__img {
  transform: scale(1.05);
}

.sid-blog-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.06);
}

/* Category badge overlaid on image */
.sid-blog-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #0047D8 0%, #32CCFF 100%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 50px;
}

/* Card body */
.sid-blog-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sid-blog-card__date {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.38);
}

.sid-blog-card__title {
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--sid-black, #000);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sid-blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sid-blog-card__title a:hover {
  color: #0047D8;
}

.sid-blog-card__excerpt {
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sid-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', var(--sid-font-heading, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #0047D8;
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.sid-blog-card__link:hover {
  color: #000;
  gap: 9px;
}

/* ── No results message ───────────────────────────────────────── */

.sid-blog-no-results {
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  font-family: 'Nunito', var(--sid-font-body, sans-serif);
  font-size: 16px;
  padding: 60px 0;
  margin: 0;
}

/* ── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 767px) {

  .sid-blog-articles__inner {
    padding: 60px 20px;
  }

  .sid-blog-articles__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sid-blog-articles__controls {
    width: 100%;
  }

  .sid-blog-search {
    width: 100%;
  }

  .sid-blog-cat-select {
    width: 100%;
  }
}
