/* ==============================
   BLOG PAGE — css/blog.css
   ============================== */

/* ---------- HERO BANNER ---------- */
.blog-hero {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1400px;
  height: 340px;
  margin: 0 auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.blog-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 30px var(--side-pad);
}

.blog-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 50px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- BREADCRUMB ---------- */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 24px var(--side-pad) 0;
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 11px;
  line-height: 13px;
  color: var(--black);
}

.blog-breadcrumb--white {
  color: var(--white);
  padding: 0;
  margin-bottom: 16px;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb__sep {
  opacity: 0.6;
}

/* ---------- CATEGORY FILTERS ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin: 48px auto 0;
  padding: 0 var(--side-pad);
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
}

.blog-filters__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--black);
  border-radius: var(--radius-sm);
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
  background: transparent;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.blog-filters__tab:hover {
  background: var(--black);
  color: var(--white);
}

.blog-filters__tab--active {
  background: var(--black);
  color: var(--white);
}

/* ---------- BLOG GRID ---------- */
.blog-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 var(--side-pad);
}

.blog-row {
  display: flex;
  gap: 32px;
}

.blog-row--mixed {
  /* 1 large + 1 small */
}

.blog-row--reversed {
  /* 1 small + 1 large — order swap via flex order */
}

.blog-row--triple {
  /* 3 small cards */
}

/* ---------- BLOG CARD ---------- */
.blog-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 278px;
  flex-shrink: 0;
}

.blog-card--large {
  flex: 0 0 calc((var(--max-w) - 32px) * 0.6771); /* ~736px on 1120 grid */
  width: calc((var(--max-w) - 32px) * 0.6771);
}

.blog-card--small {
  flex: 1 1 0;
  min-width: 0;
}

.blog-card__link-wrap {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 278px;
  color: var(--white);
}

.blog-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s;
}

.blog-card__link-wrap:hover .blog-card__overlay {
  background: rgba(0, 0, 0, 0.55);
}

.blog-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 278px;
  padding: 30px;
}

.blog-card__cat {
  position: absolute;
  top: 30px;
  left: 30px;
  display: inline-block;
  padding: 4px 8px;
  background: var(--black);
  border-radius: var(--radius-sm);
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 11px;
  line-height: 12px;
  color: var(--white);
  text-transform: capitalize;
}

.blog-card__title {
  font-family: var(--font-sporting);
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
  color: var(--white);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card__author {
  font-family: var(--font-sporting);
  font-weight: 400;
  font-size: 14px;
  line-height: 23px;
  color: var(--white);
}

.blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 11px;
  line-height: 13px;
  color: var(--white);
}

.blog-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--white);
  border-radius: 50%;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
}

.blog-card__link-wrap:hover .blog-card__arrow {
  background: var(--white);
  color: var(--black);
}

/* ---------- PAGINATION ---------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin: 48px auto 0;
}

.blog-pagination .page-numbers {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-pagination .page-numbers li {
  list-style: none;
}

.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
  transition: background-color 0.2s, color 0.2s;
}

.blog-pagination .page-numbers li a:hover {
  background: var(--green);
  color: var(--black);
}

.blog-pagination .page-numbers li span.current {
  background: var(--green);
  color: var(--black);
}

.blog-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--black);
  border-radius: 50%;
  font-size: 20px;
  color: var(--black);
  transition: background-color 0.2s, color 0.2s;
}

.blog-pagination__arrow:hover {
  background: var(--black);
  color: var(--white);
}

/* ---------- EMPTY STATE ---------- */
.blog-empty {
  text-align: center;
  padding: 80px 0;
  font-family: var(--font-sporting);
  font-size: 16px;
  color: var(--grey);
}

/* ---------- CTA SECTION ---------- */
.blog-cta {
  position: relative;
  margin-top: 80px;
  padding: 64px 0;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 20px,
    rgba(170, 170, 170, 0.15) 20px,
    rgba(170, 170, 170, 0.15) 20.44px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(170, 170, 170, 0.15) 20px,
    rgba(170, 170, 170, 0.15) 20.44px
  );
  opacity: 0.5;
  pointer-events: none;
}

.blog-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.blog-cta__card {
  flex: 1;
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.blog-cta__card--green {
  background: var(--green);
  color: var(--black);
}

.blog-cta__card--dark {
  background: var(--dark);
  color: var(--white);
}

.blog-cta__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.blog-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 35px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-cta__desc {
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 16px;
  line-height: 25px;
  margin-bottom: auto;
}

.blog-cta__subtitle {
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  margin-bottom: 16px;
}

.blog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 13px;
  margin-top: 24px;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.blog-cta__btn:hover {
  opacity: 0.85;
}

/* ---------- NEWSLETTER ---------- */
.blog-newsletter {
  margin-top: auto;
}

.blog-newsletter__label {
  display: block;
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 10px;
}

.blog-newsletter__row {
  display: flex;
  align-items: center;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  height: 52px;
  overflow: hidden;
}

.blog-newsletter__input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 16px;
  height: 100%;
  font-family: var(--font-sporting);
  font-weight: 700;
  font-size: 11px;
  color: var(--white);
  outline: none;
}

.blog-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.blog-newsletter__submit {
  flex-shrink: 0;
  width: 52px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--white);
  transition: background-color 0.2s;
}

.blog-newsletter__submit:hover {
  background: rgba(255, 255, 255, 0.1);
}

.blog-newsletter__legal {
  margin-top: 12px;
  font-family: var(--font-sporting);
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.blog-newsletter__legal a {
  text-decoration: underline;
  color: var(--white);
}
