/* =============================================================================
   Mansons Blog Plugin — mansons-blog.css  v1.2.0
   Hero: YELLOW bg-main.jpg + dark navy title + red rule + blockquote
         → exactly matches mansons.in/work-at-mansons/
   ============================================================================= */

/* ── Tokens ── */
:root {
  --mb-navy:     #1a1a2e;    /* dark title colour (almost black-navy from WaM) */
  --mb-red:      #c8102e;    /* Mansons red */
  --mb-text:     #1a1a1a;
  --mb-muted:    #555555;
  --mb-border:   #e0e0e0;
  --mb-bg:       #ffffff;
  --mb-bg-alt:   #f5f5f5;
  --mb-radius:   4px;
  --mb-font:     'Open Sans','Helvetica Neue',Arial,sans-serif;

  /* Hero yellow — matches bg-main.jpg dominant colour */
  --mb-yellow:   #f5c800;

  --cat-bg-1:#e8f0fb; --cat-txt-1:#1a3c6e;
  --cat-bg-2:#fdecea; --cat-txt-2:#c8102e;
  --cat-bg-3:#e9f7ef; --cat-txt-3:#1a6b3c;
  --cat-bg-4:#fff8e1; --cat-txt-4:#7a5400;
  --cat-bg-5:#f3e5f5; --cat-txt-5:#6a1b9a;
}

/* ── Global reset for plugin elements ── */
.mb-hero *, .mb-wrap *, .mbc-section *, .mb-single-wrap * {
  box-sizing: border-box;
}
.mb-hero a, .mb-wrap a, .mbc-section a, .mb-single-wrap a {
  text-decoration: none;
}


/* =============================================================================
   HERO HEADER
   Matches /work-at-mansons/ exactly:
   • bg-main.jpg (yellow) full cover
   • dark navy bold uppercase H1
   • red eyebrow
   • thick red underline rule
   • red left-border blockquote subtitle
   • decorative circle outlines left side
   ============================================================================= */

.mb-hero {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--mb-font);
  margin-top: -160px;
}

/* bg-main.jpg — same image used on contact/about/work-at-mansons pages */
.mb-hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://mansons.in/wp-content/themes/Divi-Child/aboutus-assests/img/bg/bg-main.jpg')
              center / cover no-repeat;
  z-index: 0;
}

/* Content sits above both layers */
.mb-hero__content {
  position: relative;
  z-index: 2;
  /* padding: 64px 48px 64px 48px; */
  padding: 22px 183px 9px 277px;
  width: 100%;
/*  max-width: 860px;   /* left-align like WaM — title doesn't stretch full width */
  max-width: 1920px;   /* left-align like WaM — title doesn't stretch full width */
}

/* ── Eyebrow — red, tiny, uppercase, tracked ── */
.mb-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mb-red);
  margin: 0 0 12px;
  line-height: 1;
  display: none;
}

/* ── H1 — huge, bold, dark navy, uppercase ── */
.mb-hero__title {
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 600;
  color: var(--mb-navy);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ── Red underline bar ── */
.mb-hero__rule {
  width: 56px;
  height: 5px;
  background: var(--mb-red);
  margin-bottom: 24px;
  border-radius: 2px;
}

/* ── Blockquote subtitle — red left border, like WaM ── */
.mb-hero__sub {
  border-left: 4px solid var(--mb-red);
  padding-left: 18px;
  margin: 0;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--mb-navy);
  line-height: 1.7;
  font-weight: 400;
  font-style: normal;
  max-width: 560px;
}

/* Meta variant — same blockquote but smaller text */
.mb-hero__sub--meta {
  font-size: 14px;
  color: #333;
  display:none;
}
.mb-hero__sub--meta strong { font-weight: 700; color: var(--mb-navy); }

/* Breadcrumb — above eyebrow on single posts */
.mb-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(26,26,46,0.5);
  margin-bottom: 20px;
}
p {
    padding-bottom: 0em !important;
}
.mb-hero__breadcrumb a { color: var(--mb-red); transition: opacity 0.15s; }
.mb-hero__breadcrumb a:hover { opacity: 0.75; }
.mb-hero__breadcrumb span { color: rgba(0,0,0); }

/* Single-page hero slightly taller */
.mb-hero--single { min-height: 380px; margin-top: -159px; }

/* Mobile hero */
@media (max-width: 768px) {
  .mb-hero { min-height: 260px; }
  .mb-hero--single { min-height: 300px; }
  .mb-hero__content { padding: 44px 20px; }
  .mb-hero__title { font-size: clamp(26px, 7vw, 40px); }
}


/* =============================================================================
   BLOG GRID — [mansons_blog_grid]
   ============================================================================= */

.mb-wrap {
  font-family: var(--mb-font);
  color: var(--mb-text);
  max-width: 100%;
  padding: 0 20px 60px;
}

/* ── Filter bar ── */
.mb-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  justify-content: center;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--mb-border);
  margin-bottom: 36px;
}
.mb-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  font-family: var(--mb-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--mb-text);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  text-decoration: none;
  line-height: 1;
}
.mb-filter__chip:hover { color: #1a3c6e; border-bottom-color: #1a3c6e; }
.mb-filter__chip.is-active {
  color: #1a3c6e;
  border-bottom-color: var(--mb-red);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.mb-filter__count { font-size: 12px; font-weight: 400; color: var(--mb-muted); }

/* ── 4-column grid ── */
.mb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 22px;
}

/* ── Card ── */
.mb-card { display: flex; flex-direction: column; background: var(--mb-bg); }
.mb-card__thumb-link { display: block; }
.mb-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--mb-radius);
  background: #dde4ed;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
}
.mb-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.38s ease;
}
.mb-card:hover .mb-card__img { transform: scale(1.05); }
.mb-card__img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; color: #b0bac6;
}
.mb-card__body { display: flex; flex-direction: column; flex: 1; }
.mb-card__title {
  font-size: 16px; font-weight: 700; line-height: 1.4;
  color: var(--mb-text); margin-bottom: 10px;
}
.mb-card__title a { color: inherit; transition: color 0.18s; }
.mb-card__title a:hover { color: #1a3c6e; }
.mb-card__excerpt {
  font-size: 14px; line-height: 1.65;
  color: var(--mb-muted); flex: 1; margin-bottom: 12px;
}
.mb-card__readmore {
  color: #1a3c6e; font-size: 14px; margin-left: 4px; transition: color 0.15s;
}
.mb-card__readmore:hover { color: var(--mb-red); }
.mb-card__meta {
  font-size: 13px; color: var(--mb-muted);
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--mb-border);
}
.mb-card__meta strong { color: var(--mb-text); font-weight: 700; }

.mb-empty {
  grid-column: 1/-1; text-align: center;
  padding: 60px 20px; color: var(--mb-muted); font-size: 15px;
}
.mb-empty a { color: #1a3c6e; }

/* ── Pagination ── */
.mb-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--mb-border); flex-wrap: wrap;
}
.mb-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--mb-border); border-radius: var(--mb-radius);
  font-family: var(--mb-font); font-size: 14px;
  color: var(--mb-text); background: var(--mb-bg);
  cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.mb-page-btn:hover { border-color: #1a3c6e; color: #1a3c6e; }
.mb-page-btn.current { background: #1a3c6e; border-color: #1a3c6e; color: #fff; font-weight: 700; }
.mb-page-btn.dots { border: none; background: transparent; cursor: default; color: var(--mb-muted); }

/* Archive body */
.mb-archive-body { background: #fff; padding: 40px 0; }


/* =============================================================================
   SINGLE BLOG POST — full-width, 20px L/R padding
   ============================================================================= */

.mb-single-wrap {
  font-family: var(--mb-font);
  background: #fff;
  width: 100%;
  padding: 37px 176px 72px;
}
.mb-single-inner { width: 100%; max-width: 100%; }

/* Full-width hero image below the yellow header */
.mb-single-hero-img-wrap {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 40px;
  display:none;
}
.mb-single-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Post content */
.mb-single-content {
  font-size: 16px; line-height: 1.85; color: #333; max-width: 100%;
}
.mb-single-content h2 {
  font-weight: 700; 
  color: #000000; 
  margin: 36px 0 14px;
  padding-bottom: 20px;
  background: transparent url(/wp-content/themes/Divi-Child/hdg-redline.svg) no-repeat bottom left;
  font-size: 2.5rem !important;
}
.mb-single-content h3 {
  font-weight: 700; 
  color: var(--mb-text); 
  margin: 28px 0 10px;
  padding-bottom: 20px;
  background: transparent url(/wp-content/themes/Divi-Child/hdg-redline.svg) no-repeat bottom left;
  font-size: 2.1rem !important;
}

.mb-single-content h4 {
  font-weight: 700; 
  color: var(--mb-text); 
  margin: 28px 0 10px;
  padding-bottom: 20px;
  background: transparent url(/wp-content/themes/Divi-Child/hdg-redline.svg) no-repeat bottom left;
  font-size: 2.0rem !important;
}

.mb-single-content p  { margin-bottom: 18px; }
.mb-single-content ul,
.mb-single-content ol { padding-left: 24px; margin-bottom: 18px; }
.mb-single-content li { margin-bottom: 6px; }
.mb-single-content a  { color: #1a3c6e; }
.mb-single-content a:hover { color: var(--mb-red); }
.mb-single-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }
.mb-single-content blockquote {
  border-left: 4px solid var(--mb-red); padding: 12px 20px;
  margin: 24px 0; background: #f9f9f9; font-style: italic; color: #555;
}

/* Tags */
.mb-single-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--mb-border);
}
.mb-single-tag {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border: 1px solid var(--mb-border); border-radius: 2px;
  color: var(--mb-muted); background: var(--mb-bg-alt);
}

/* Back link */
.mb-single-back {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mb-border);
}
.mb-single-back a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: #1a3c6e; transition: color 0.15s, gap 0.15s;
}
.mb-single-back a:hover { color: var(--mb-red); gap: 10px; }


/* =============================================================================
   HOMEPAGE CAROUSEL — [mansons_blog_carousel]
   ============================================================================= */

.mbc-section { font-family: var(--mb-font); padding: 56px 20px; background: var(--mb-bg-alt); }
.mbc-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; max-width: 1200px; margin: 0 auto 28px;
}
.mbc-eyebrow {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mb-red); margin-bottom: 6px;
}
.mbc-title { font-size: clamp(20px,2.5vw,26px); font-weight: 700; color: #1a3c6e; }
.mbc-view-all {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: #1a3c6e;
  white-space: nowrap; transition: gap 0.15s, color 0.15s;
}
.mbc-view-all:hover { color: var(--mb-red); gap: 8px; }

.mbc-outer { position: relative; max-width: 1200px; margin: 0 auto; overflow: hidden; }
.mbc-track { display: flex; gap: 22px; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.mbc-card {
  flex: 0 0 calc(33.33% - 15px); background: var(--mb-bg);
  border-radius: var(--mb-radius); overflow: hidden; transition: box-shadow 0.22s;
}
.mbc-card:hover { box-shadow: 0 6px 24px rgba(26,60,110,0.12); }
.mbc-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }

.mbc-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #dde5ef; }
.mbc-thumb-img { width:100%; height:100%; object-fit:cover; display:block; transition: transform 0.38s ease; }
.mbc-card:hover .mbc-thumb-img { transform: scale(1.05); }
.mbc-thumb-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#b0bac6; }

.mbc-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--cat-bg-1); color: var(--cat-txt-1);
}
.mbc-cat-news      { background:var(--cat-bg-2); color:var(--cat-txt-2); }
.mbc-cat-industry  { background:var(--cat-bg-3); color:var(--cat-txt-3); }
.mbc-cat-technology{ background:var(--cat-bg-4); color:var(--cat-txt-4); }
.mbc-cat-lifestyle { background:var(--cat-bg-5); color:var(--cat-txt-5); }
.mbc-cat-product   { background:var(--cat-bg-1); color:var(--cat-txt-1); }
.mbc-cat-csr       { background:var(--cat-bg-3); color:var(--cat-txt-3); }

.mbc-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.mbc-card-title { font-size:15px; font-weight:700; line-height:1.4; color:var(--mb-text); margin-bottom:8px; transition:color 0.15s; }
.mbc-card:hover .mbc-card-title { color:#1a3c6e; }
.mbc-excerpt { font-size:13px; line-height:1.6; color:var(--mb-muted); flex:1; margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.mbc-meta { font-size:12px; color:var(--mb-muted); margin-top:auto; }
.mbc-meta strong { color:var(--mb-text); font-weight:700; }

.mbc-btn {
  display:none; position:absolute; top:38%; transform:translateY(-50%); z-index:10;
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--mb-border); background:var(--mb-bg); color:#1a3c6e;
  cursor:pointer; align-items:center; justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,0.10); transition:background 0.15s,color 0.15s,border-color 0.15s;
}
.mbc-btn.is-visible { display:flex; }
.mbc-btn:hover { background:#1a3c6e; color:#fff; border-color:#1a3c6e; }
.mbc-btn-prev { left:-12px; } .mbc-btn-next { right:-12px; }

.mbc-dots { display:flex; justify-content:center; gap:8px; margin-top:22px; }
.mbc-dot-el { width:8px; height:8px; border-radius:50%; background:var(--mb-border); border:none; padding:0; cursor:pointer; transition:background 0.2s,width 0.2s,border-radius 0.2s; }
.mbc-dot-el.is-active { background:#1a3c6e; width:22px; border-radius:4px; }


/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
  .mb-grid { grid-template-columns: repeat(2,1fr); }
  .mbc-card { flex: 0 0 calc(50% - 11px); }
}
@media (max-width: 600px) {
  .mb-grid { grid-template-columns: 1fr; }
  .mbc-card { flex: 0 0 88%; }
  .mbc-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mbc-section { padding: 36px 16px; }
  .mb-filter { justify-content: flex-start; }
  .mb-single-wrap { padding: 24px 20px 48px; }
  .mb-single-hero-img-wrap { max-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .mbc-track, .mb-card__img, .mbc-thumb-img { transition: none; }
}
