/* =========================================================
   SD BLOG / CATEGORY: CẨM NANG MÔI GIỚI
   File: sd-cam-nang-moi-gioi.css
   ========================================================= */

.sd-blog,
.sd-blog * {
  box-sizing: border-box;
}

.sd-blog {
  --sd-heading-font: "Times New Roman", Georgia, serif;
  --sd-body-font: "Inter", Arial, sans-serif;
  --sd-green: #064b39;
  --sd-green-dark: #082d26;
  --sd-red: #b91521;
  --sd-gold: #c9a76a;
  --sd-text: #334155;
  --sd-muted: #64748b;

  font-family: var(--sd-body-font);
  color: var(--sd-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 167, 106, .13), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fffaf4 42%, #fff 100%);
}

.sd-blog a {
  text-decoration: none;
}

.sd-blog img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sd-blog-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* HERO */

.sd-blog-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 86% 12%, rgba(201, 167, 106, .18), transparent 32%),
    linear-gradient(135deg, #fffaf4 0%, #ffffff 52%, #f8f4eb 100%);
}

.sd-blog-hero::before {
  content: "";
  position: absolute;
  left: -220px;
  bottom: -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 1px solid rgba(201, 167, 106, .16);
  pointer-events: none;
}

.sd-blog-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 52px;
}

.sd-blog-eyebrow {
  margin-bottom: 16px;
  font-family: var(--sd-body-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sd-gold);
}

.sd-blog-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--sd-heading-font);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #0f172a;
}

.sd-blog-hero h1::after {
  content: "";
  display: block;
  width: 110px;
  height: 2px;
  margin: 28px 0 0;
  background: var(--sd-gold);
}

.sd-blog-hero p {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: 16.5px;
  line-height: 1.85;
  color: #475569;
}

.sd-blog-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.sd-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--sd-body-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sd-blog-btn:hover {
  transform: translateY(-3px);
}

.sd-blog-btn--primary {
  background: linear-gradient(135deg, #d62938 0%, #ad1420 100%);
  border: 1px solid rgba(201, 167, 106, .62);
  box-shadow: 0 18px 42px rgba(201, 31, 44, .24);
}

.sd-blog-btn--outline {
  color: #0f172a;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(201, 167, 106, .55);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.sd-blog-hero__panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 38%),
    linear-gradient(135deg, #12382f 0%, #064b39 56%, #082d26 100%);
  border: 1px solid rgba(201, 167, 106, .34);
  box-shadow: 0 34px 90px rgba(18, 56, 47, .18);
}

.sd-blog-hero__panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(201, 167, 106, .22);
}

.sd-blog-hero__panel span {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d7b769;
}

.sd-blog-hero__panel strong {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--sd-heading-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
}

.sd-blog-hero__panel p {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
}

/* MAIN */

.sd-blog-main {
  padding: 72px 0 96px;
}

.sd-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.sd-blog-posts {
  min-width: 0;
}

.sd-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.sd-blog-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(201, 167, 106, .16);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.sd-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 167, 106, .36);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .11);
}

.sd-blog-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  min-height: 430px;
}

.sd-blog-card__image {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 240px;
  background: #0b2f28;
}

.sd-blog-card--featured .sd-blog-card__image {
  min-height: 430px;
}

.sd-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.sd-blog-card:hover .sd-blog-card__image img {
  transform: scale(1.04);
}

.sd-blog-card__placeholder {
  width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  font-family: var(--sd-heading-font);
  font-size: 38px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  background: linear-gradient(135deg, #12382f 0%, #064b39 56%, #082d26 100%);
}

.sd-blog-card--featured .sd-blog-card__placeholder {
  height: 100%;
}

.sd-blog-card__content {
  padding: 28px;
}

.sd-blog-card--featured .sd-blog-card__content {
  padding: 42px;
  align-self: center;
}

.sd-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sd-blog-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sd-green);
  background: #fffaf4;
  border: 1px solid rgba(201, 167, 106, .24);
}

.sd-blog-card h2 {
  margin: 0;
  font-family: var(--sd-heading-font);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #0f172a;
}

.sd-blog-card--featured h2 {
  font-size: 42px;
}

.sd-blog-card h2 a {
  color: inherit;
}

.sd-blog-card p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #64748b;
}

.sd-blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sd-red);
}

.sd-blog-readmore span {
  color: var(--sd-gold);
}

/* SIDEBAR */

.sd-blog-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 22px;
}

.sd-blog-widget {
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(201, 167, 106, .16);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .06);
}

.sd-blog-widget--dark {
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 38%),
    linear-gradient(135deg, #12382f 0%, #064b39 56%, #082d26 100%);
  border-color: rgba(201, 167, 106, .34);
}

.sd-blog-widget span {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sd-gold);
}

.sd-blog-widget h3 {
  margin: 0;
  font-family: var(--sd-heading-font);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.12;
  color: #0f172a;
}

.sd-blog-widget--dark h3 {
  color: #fff;
}

.sd-blog-widget p {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: #64748b;
}

.sd-blog-widget--dark p {
  color: rgba(255,255,255,.74);
}

.sd-blog-widget--dark a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 22px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #d62938 0%, #ad1420 100%);
  border: 1px solid rgba(201, 167, 106, .62);
}

.sd-blog-latest {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sd-blog-latest li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.sd-blog-latest li:last-child {
  border-bottom: 0;
}

.sd-blog-latest a {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
}

.sd-blog-latest span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: #94a3b8;
}

/* PAGINATION */

.sd-blog-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.sd-blog-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(201, 167, 106, .22);
}

.sd-blog-pagination .page-numbers.current,
.sd-blog-pagination .page-numbers:hover {
  color: #fff;
  background: var(--sd-green);
  border-color: var(--sd-green);
}

.sd-blog-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 54px;
  text-align: center;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(201, 167, 106, .18);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .07);
}

.sd-blog-empty h2 {
  margin: 0;
  font-family: var(--sd-heading-font);
  font-size: 42px;
  line-height: 1.08;
}

.sd-blog-empty p {
  margin: 16px 0 24px;
  color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .sd-blog-hero__inner,
  .sd-blog-layout,
  .sd-blog-card--featured {
    grid-template-columns: 1fr;
  }

  .sd-blog-hero__panel,
  .sd-blog-sidebar {
    position: relative;
    top: auto;
  }

  .sd-blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sd-blog-container {
    width: calc(100% - 28px);
  }

  .sd-blog-hero {
    padding: 70px 0 56px;
  }

  .sd-blog-hero__inner {
    gap: 34px;
  }

  .sd-blog-hero__content {
    text-align: center;
  }

  .sd-blog-hero h1 {
    font-size: 42px;
  }

  .sd-blog-hero h1::after {
    margin-left: auto;
    margin-right: auto;
  }

  .sd-blog-hero p {
    font-size: 15.5px;
  }

  .sd-blog-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sd-blog-btn {
    width: 100%;
  }

  .sd-blog-hero__panel {
    padding: 28px;
    text-align: center;
  }

  .sd-blog-hero__panel strong {
    font-size: 30px;
  }

  .sd-blog-main {
    padding: 52px 0 76px;
  }

  .sd-blog-grid,
  .sd-blog-sidebar {
    grid-template-columns: 1fr;
  }

  .sd-blog-card--featured .sd-blog-card__image {
    min-height: 280px;
  }

  .sd-blog-card__content,
  .sd-blog-card--featured .sd-blog-card__content {
    padding: 26px;
  }

  .sd-blog-card h2,
  .sd-blog-card--featured h2 {
    font-size: 30px;
  }

  .sd-blog-pagination {
    justify-content: center;
  }
}
