/* =============================================================
   BLOG-DETAIL PAGE
   Sections: Hero · Article · Recent Blogs
   Breakpoints: 1199 · 991 · 767 · 575 · 399
   ============================================================= */

/* -------------------------------------------------------------
   CSS VARIABLES
   ------------------------------------------------------------- */
:root {
  --bd-dark:     #121215;
  --bd-body:     #18181b;
  --bd-gray:     #6f6f6f;
  --bd-border:   #ecedef;
  --bd-bg-light: #f6f6f6;

  --bd-grad-heading:  linear-gradient(91.15deg, #121215 0%, #d10322 50.47%, #121215 103.06%);
  --bd-grad-heading2: linear-gradient(90.45deg, #121215 8.45%, #d10322 54.02%, #121215 92.66%);
  --bd-grad-hero: linear-gradient(
    185.44deg,
    rgba(0, 0, 0, 0)    12.93%,
    rgba(0, 0, 0, 0.54) 36.86%,
    rgba(0, 0, 0, 0.56) 90.68%,
    rgba(0, 0, 0, 0)   100.9%
  );
}

/* =============================================================
   HERO
   .inner-banner handles margin-top offset for fixed header
   ============================================================= */
.bd-hero {
  position: relative;
  height: 34.625rem; /* 554px */
  display: flex;
  flex-direction: column;
}

.bd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bd-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bd-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bd-grad-hero);
}

/* Title + author — positioned from hero top */
.bd-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 12.0625rem; /* 193px (Figma title y=289, header=96) */
}

.bd-hero__content {
  width: 100%;
  text-align: center;
  padding: 0 1rem;
}

.bd-hero__title {
  font-size: 3.375rem;    /* 54px */
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em; /* 1.08px */
  line-height: 1.2;
  max-width: 40.8125rem;  /* 653px */
  margin: 0 auto 0.8125rem;
}

.bd-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem; /* 20px */
}

.bd-hero__meta-author {
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}

.bd-hero__meta-author strong { font-weight: 500; }

.bd-hero__meta-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

.bd-hero__meta-cal {
  flex-shrink: 0;
}

/* Breadcrumb — pinned near hero bottom */
.bd-hero-breadcrumb {
  position: absolute;
  z-index: 2;
  bottom: 2.4375rem; /* 39px from hero bottom */
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.bd-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bd-hero-breadcrumb a:hover { color: #ffffff; }
.bd-hero-breadcrumb span   { color: rgba(255, 255, 255, 0.85); }

/* =============================================================
   ARTICLE CONTENT
   ============================================================= */
.bd-article {
  background: #fff;
  padding: 3.8125rem 0 6.25rem; /* top 61px = 711−650 */
}

.bd-article__body {
  display: flex;
  flex-direction: column;
  gap: 3.125rem; /* 50px */
}

.bd-article__intro {
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
}

.bd-article__intro p {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bd-body);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
}

.bd-article__section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
}

.bd-article__heading {
  font-size: 1.5rem;     /* 24px */
  font-weight: 700;

  color: #000;
}

.bd-article__text {
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
}

.bd-article__text p {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bd-body);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
}

/* =============================================================
   RECENT BLOGS
   ============================================================= */
.bd-recent {
  background: var(--bd-bg-light);
  padding: 4.0625rem 0 5rem; /* top 65px = 1876−1811 */
}

.bd-recent__heading {
  font-size: 3.75rem;    /* 60px */
  font-weight: 400;
  color: var(--bd-dark);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 1.75rem;  /* 28px gap to cards */
}

.bd-recent__heading-accent {

  color: #000;
}

/* Swiper wrapper — overflow visible so peek of next slide shows */
.bd-recent-swiper { overflow: visible; }

/* Each slide fills the swiper-allocated width */
.bd-recent-swiper .swiper-slide { height: auto; }

.bd-card {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0.0703rem solid var(--bd-border); /* 1.125px */
  border-radius: 0.75rem; /* 12px */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.bd-card:hover {
  box-shadow: 0 0.75rem 2.25rem rgba(18, 18, 21, 0.12);
  transform: translateY(-3px);
}

.bd-card__img-wrap {
  display: block;
  flex-shrink: 0;
  height: 12.5rem;   /* 200px */
  overflow: hidden;
  border-radius: 0.75rem;
}

.bd-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

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

.bd-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;        /* 16px */
  padding: 20px;
}

.bd-card__meta {
  display: flex;
  align-items: center;
  gap: 0.3125rem; /* 5px */
}

.bd-card__meta-icon { flex-shrink: 0; }

.bd-card__date {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--bd-gray);
  letter-spacing: 0.02em;
}

.bd-card__title {
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  color: var(--bd-dark);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.bd-card__title a:hover { color: #d10322; }

/* =============================================================
   RESPONSIVE — 1199px
   ============================================================= */
@media (max-width: 1199.98px) {
  .bd-hero__title { font-size: 2.875rem; }

  .bd-recent__heading { font-size: 3.25rem; }

  .bd-card__img-wrap { height: 11rem; }
}

/* =============================================================
   RESPONSIVE — 991px
   ============================================================= */
@media (max-width: 991.98px) {
  .bd-hero { height: 28rem; }
  .bd-hero__body { padding-top: 6rem; }
  .bd-hero__title { font-size: 2.5rem; max-width: 32rem; }
  .bd-hero__meta-author,
  .bd-hero__meta-date { font-size: 1.0625rem; }
  .bd-hero-breadcrumb { bottom: 1.5rem; }

  .bd-article { padding: 2.5rem 0 4rem; }
  .bd-article__intro p,
  .bd-article__text p { font-size: 1.125rem; }
  .bd-article__heading { font-size: 1.25rem; }

  .bd-recent { padding: 3rem 0 4rem; }
  .bd-recent__heading { font-size: 2.75rem; }

  .bd-card__img-wrap { height: 10.5rem; }
}

/* =============================================================
   RESPONSIVE — 767px
   ============================================================= */
@media (max-width: 767.98px) {
  .bd-hero { height: 24rem; }
  .bd-hero__body { padding-top: 4.5rem; }
  .bd-hero__title { font-size: 2rem; max-width: 28rem; }
  .bd-hero__meta { flex-wrap: wrap; gap: 0.5rem; }
  .bd-hero-breadcrumb { bottom: 1rem; font-size: 12px; }

  .bd-article { padding: 2rem 0 3rem; }
  .bd-article__body { gap: 2rem; }

  .bd-recent__heading { font-size: 2.25rem; }

  .bd-card__title { font-size: 1.125rem; }
}

/* =============================================================
   RESPONSIVE — 575px
   ============================================================= */
@media (max-width: 575.98px) {
  .bd-hero { height: 20rem; }
  .bd-hero__body { padding-top: 3.5rem; }
  .bd-hero__title { font-size: 1.625rem; letter-spacing: 0.01em; max-width: 100%; }
  .bd-hero__meta { flex-direction: column; gap: 0.375rem; }
  .bd-hero__meta-author,
  .bd-hero__meta-date { font-size: 0.9375rem; }
  .bd-hero-breadcrumb { bottom: 0.75rem; font-size: 11px; }

  .bd-article { padding: 1.75rem 0 2.5rem; }
  .bd-article__intro p,
  .bd-article__text p { font-size: 1rem; }
  .bd-article__heading { font-size: 1.0625rem; }

  .bd-recent { padding: 2rem 0 2.5rem; }
  .bd-recent__heading { font-size: 1.875rem; margin-bottom: 1.25rem; }

  .bd-card__img-wrap { height: 12rem; }
  .bd-card__title { font-size: 1rem; }
}

/* =============================================================
   RESPONSIVE — 399px
   ============================================================= */
@media (max-width: 399.98px) {
  .bd-hero__title { font-size: 1.375rem; }
  .bd-recent__heading { font-size: 1.625rem; }
  .bd-card__img-wrap { height: 10rem; }
}
