/* ================================================
   FABRICPRO BLOG — style.css
   Colors: #1A3263 (Navy) + White only
   Fonts: Playfair Display + DM Sans
================================================ */

:root {
  --navy:        #1A3263;
  --navy-dark:   #102040;
  --navy-mid:    #1e3d78;
  --navy-light:  #2a4f9e;
  --navy-ghost:  #eef2f9;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --border:      #dce5f3;
  --muted:       #5a6e8c;
  --muted-light: #8fa3c0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--navy-dark);
  min-height: 100vh;
}

/* ── CONTAINER ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.015) 30px,
      rgba(255,255,255,0.015) 31px
    );
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
}

/* ── CATEGORY BAR ── */
.category-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,50,99,0.07);
}
.category-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cat-btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 22px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: var(--white);
  transition: all .22s ease;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.cat-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.cat-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── BLOG SECTION ── */
.blog-section {
  padding: 52px 0 72px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── BLOG CARD ── */
.blog-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .3s ease, transform .3s ease;
  animation: cardIn .4s ease both;
}
.blog-card:hover {
  box-shadow: 0 14px 44px rgba(26,50,99,0.14);
  transform: translateY(-5px);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card image */
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.blog-card:hover .card-img { transform: scale(1.05); }
.card-img-wrap {
  overflow: hidden;
  position: relative;
}
.card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 5px;
}

/* Card body */
.card-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.45;
  /* margin-bottom: 10px; */
  margin: 10px !important;
}
.card-body p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
  /* margin-bottom: 18px; */
  margin: 10px !important;
}
.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 13px;
  /* margin-top: auto; */
  margin: 10px !important;
}
.card-date {
  font-size: 0.76rem;
  color: var(--muted-light);
  /* margin: 10px !important; */
}
.card-date i { margin-right: 4px; }
.read-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s, color .2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
}
.read-link:hover { color: var(--navy); gap: 9px; }

/* No results */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.no-results i { font-size: 2.5rem; margin-bottom: 14px; display: block; opacity: .4; }
.no-results p  { font-size: 1rem; }

/* ──────────────────────────────────────────────
   DETAIL PAGE
────────────────────────────────────────────── */
#page-detail {
  background: var(--off-white);
  min-height: 100vh;
  padding-bottom: 60px;
}

/* Back button */
.detail-back {
  padding-top: 28px;
  padding-bottom: 0;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, border-color .2s;
}
.back-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Detail hero */
.detail-hero {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  margin-top: 28px;
  border-radius: 0;
}
.detail-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.detail-cat {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 5px;
  margin-top: 36px;
  margin-bottom: 16px;
}
.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.detail-meta i { color: var(--navy-light); margin-right: 5px; }

/* Detail body content */
.detail-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 34px 0 12px;
}
.detail-body p {
  font-size: 0.95rem;
  color: #344055;
  line-height: 1.85;
  margin-bottom: 18px;
}
.detail-body ul {
  margin: 0 0 20px 20px;
}
.detail-body ul li {
  font-size: 0.94rem;
  color: #344055;
  line-height: 1.8;
  margin-bottom: 7px;
}
.detail-body ul li::marker { color: var(--navy); }

/* Callout box */
.callout {
  background: var(--navy-ghost);
  border-left: 4px solid var(--navy);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.92rem;
  color: var(--navy-dark);
  line-height: 1.75;
  font-style: italic;
}

/* Tags at bottom */
.detail-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.detail-tags span.label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}
.tag-chip {
  padding: 5px 13px;
  font-size: 0.76rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
}
.tag-chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 46px 0 42px; }
  .detail-hero { height: 220px; margin-top: 20px; }
  .detail-title { font-size: 1.5rem; }
}
