/*
Theme Name:   SmartMag FFM Child
Theme URI:    https://franchiseefirstmagazine.com
Description:  Franchisee First Magazine child theme
Author:       Franchisee First Magazine
Template:     smartmag
Version:      3.0.0

HOW TO CHECK YOUR TEMPLATE LINE:
Go to: wp-content/themes/ via FTP or cPanel File Manager.
Find the SmartMag parent theme folder name exactly.
Common names: smartmag  /  SmartMag  /  smartmag-pro
Update the Template: line above to match EXACTLY (case-sensitive).

IF STYLES STILL DON'T LOAD AFTER ACTIVATING THE CHILD THEME:
Go to WP Admin → Appearance → Customize → Additional CSS
Paste everything below the header comment block there.
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════ */
:root {
  --black:       #231F20;
  --red:         #D32327;
  --red-dark:    #a81a1e;
  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --light:       #F5F4F1;
  --mid:         #E2E0DC;
  --mid-dark:    #C8C5BF;
  --gray:        #6B6560;
  --gray-light:  #9A9590;
  --footer-bg:   #18161A;
  --footer-mid:  #231F20;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-serif:   'DM Serif Display', 'Georgia', serif;

  --max-w:  1280px;
  --gap:    24px;
  --gap-lg: 48px;

  /* EN TIMES influence: very sharp, editorial spacing */
  --border-thin: 1px solid var(--mid);
  --border-thick: 3px solid var(--black);
  --border-accent: 3px solid var(--red);
}

/* =================================================================
   SMARTMAG THEME OVERRIDES
   Forces FFM brand colours on top of SmartMag's default styles.
   All prefixed with body for higher specificity.
================================================================= */

/* Brand accent colour — replaces SmartMag default blue/orange */
body .accent-bg,
body .bg-primary,
body .btn-primary,
body .sm-breaking-label { background-color: #D32327 !important; border-color: #D32327 !important; }
body .accent-color,
body .text-accent,
body .text-primary { color: #D32327 !important; }

/* Body font */
body,
body p,
body li,
body td,
body .entry-content { font-family: 'DM Sans','Helvetica Neue',Arial,sans-serif !important; }

/* SmartMag header border */
body #site-header,
body .site-header,
body header.header { border-bottom: 3px solid #D32327 !important; }

/* Nav links */
body .main-nav > ul > li > a,
body .nav-wrap ul > li > a,
body .sm-menu > li > a {
  font-family: 'DM Sans','Helvetica Neue',Arial,sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}
body .main-nav > ul > li > a:hover,
body .nav-wrap ul > li > a:hover { color: #D32327 !important; }
body .main-nav > ul > li.current-menu-item > a,
body .nav-wrap ul > li.current-menu-item > a { color: #D32327 !important; border-bottom: 2px solid #D32327 !important; }

/* Category labels / post cats */
body .cat-label,
body .entry-cats a,
body .cat-links a,
body .post-cats a {
  background: #D32327 !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 3px 8px !important;
}

/* Post title hover */
body .entry-title a:hover,
body .post-title a:hover { color: #D32327 !important; }

/* Read more / buttons */
body .more-link,
body .read-more {
  background: #D32327 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  border: none !important;
}
body .more-link:hover,
body .read-more:hover { background: #a81a1e !important; color: #fff !important; }

/* Sidebar widget titles */
body .widget-title,
body .widgettitle {
  font-family: 'DM Sans','Helvetica Neue',Arial,sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  border-bottom: 3px solid #231F20 !important;
  padding-bottom: 10px !important;
  position: relative;
}
body .widget-title::before,
body .widgettitle::before {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 52px; height: 3px;
  background: #D32327;
}

/* Pagination */
body .pagination .page-numbers.current,
body .nav-links .page-numbers.current { background: #D32327 !important; border-color: #D32327 !important; color: #fff !important; }
body .pagination .page-numbers:hover { color: #D32327 !important; }

/* SmartMag Breaking / Ticker */
body .sm-breaking-news,
body .breaking-news { background: #231F20 !important; }
body .sm-breaking-label,
body .breaking-label { background: #D32327 !important; }

/* SmartMag footer */
body #site-footer,
body .site-footer { background: #18161A !important; }

/* Focus ring */
body *:focus { outline-color: #D32327; }


/* ═══════════════════════════════════════════
   RESETS & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════ */
#ffm-reading-progress {
  position: fixed; top: 0; left: 0; z-index: 10000;
  height: 3px; width: 0; background: var(--red);
  transition: width .1s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.ffm-topbar {
  background: var(--black);
  padding: 7px 0;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .05em;
  color: #888;
}
.ffm-topbar .inner { display: flex; justify-content: space-between; align-items: center; }
.ffm-topbar a { color: #888; transition: color .2s; }
.ffm-topbar a:hover { color: var(--red); }
.ffm-topbar-right { display: flex; align-items: center; gap: 16px; }
.ffm-topbar-social { display: flex; gap: 10px; align-items: center; }
.ffm-topbar-social a svg { width: 13px; height: 13px; fill: #888; transition: fill .2s; }
.ffm-topbar-social a:hover svg { fill: var(--red); }
.ffm-tb-divider { width: 1px; height: 12px; background: #333; }

/* ═══════════════════════════════════════════
   MASTHEAD
═══════════════════════════════════════════ */
.ffm-masthead {
  background: var(--white);
  padding: 18px 0 14px;
  border-bottom: var(--border-accent);
}
.ffm-masthead .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ffm-logo img { height: 60px; width: auto; }
.ffm-masthead-right { display: flex; align-items: center; gap: 12px; }

/* Search */
.ffm-search-wrap { position: relative; }
.ffm-search-wrap input {
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--light);
  border: 1.5px solid var(--mid);
  padding: 9px 36px 9px 14px;
  outline: none;
  width: 210px;
  transition: border-color .2s, background .2s;
  color: var(--black);
}
.ffm-search-wrap input:focus { border-color: var(--red); background: #fff; }
.ffm-search-wrap button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.ffm-search-wrap button svg { width: 16px; height: 16px; fill: #999; }

/* Subscribe + Newsletter Popup CTA */
.ffm-hdr-subscribe {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
  white-space: nowrap;
}
.ffm-hdr-subscribe:hover { background: var(--red-dark); color: #fff; }

/* ═══════════════════════════════════════════
   SITE HEADER (sticky wrapper)
═══════════════════════════════════════════ */
.ffm-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  transition: transform .3s ease, box-shadow .3s;
}
.ffm-site-header.is-sticky .ffm-nav { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.ffm-site-header.is-hidden { transform: translateY(-100%); }

/* ═══════════════════════════════════════════
   PRIMARY NAV
═══════════════════════════════════════════ */
.ffm-nav {
  background: var(--white);
  border-bottom: var(--border-thin);
}
.ffm-nav > .inner { display: flex; align-items: stretch; }
.ffm-nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ffm-nav-list li { position: relative; }
.ffm-nav-list li > a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  padding: 15px 15px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.ffm-nav-list li > a:hover,
.ffm-nav-list li.current > a { color: var(--red); border-bottom-color: var(--red); }

/* Arrow */
.ffm-nav-list .arrow { font-size: 9px; opacity: .5; transition: transform .2s; margin-top: 1px; }
.ffm-nav-list li:hover .arrow { transform: rotate(180deg); }

/* MEGA MENU */
.ffm-mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  padding: 28px 32px;
  gap: 32px;
  z-index: 999;
  min-width: 500px;
  animation: megaFade .15s ease;
}
@keyframes megaFade { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
.ffm-nav-list li:hover .ffm-mega-menu { display: flex; }
.ffm-mega-col h6 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mid);
}
.ffm-mega-col ul { list-style: none; }
.ffm-mega-col ul li a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray);
  padding: 5px 0;
  border: none;
  display: block;
  transition: color .2s;
}
.ffm-mega-col ul li a:hover { color: var(--red); border: none; }

/* Hamburger */
.ffm-hamburger {
  display: none;
  padding: 12px 0;
  margin-left: auto;
  background: none;
  border: none;
}
.ffm-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: all .3s;
}
.ffm-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ffm-hamburger.is-active span:nth-child(2) { opacity: 0; }
.ffm-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.ffm-mobile-nav {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: var(--white);
  z-index: 9999;
  overflow-y: auto;
  transition: right .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  padding: 20px 0;
}
.ffm-mobile-nav.is-open { right: 0; }
.ffm-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}
.ffm-mobile-overlay.is-visible { display: block; }
.ffm-mobile-nav ul { list-style: none; }
.ffm-mobile-nav ul li a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-bottom: 1px solid var(--light);
  color: var(--black);
}
.ffm-mobile-nav ul li a:hover { color: var(--red); }

/* ═══════════════════════════════════════════
   NEWSLETTER POPUP
═══════════════════════════════════════════ */
#ffm-nl-popup-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9990;
  backdrop-filter: blur(2px);
}
#ffm-nl-popup-overlay.is-visible { display: block; }

#ffm-nl-popup {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 9991;
  background: var(--white);
  border-top: 4px solid var(--red);
  width: 520px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  animation: popupIn .3s ease forwards;
}
#ffm-nl-popup.is-open { display: block; }
@keyframes popupIn { from { opacity:0; transform:translate(-50%,-50%) scale(.94); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
.ffm-popup-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 22px;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
  background: none; border: none;
}
.ffm-popup-close:hover { color: var(--red); }
.ffm-popup-inner { padding: 40px; }
.ffm-popup-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.ffm-popup-inner h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 10px;
}
.ffm-popup-inner p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 24px;
}
.ffm-nl-benefits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.ffm-nl-benefits span {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 8px;
  align-items: center;
}
.ffm-nl-benefits span::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   NEWSLETTER FORM (shared)
═══════════════════════════════════════════ */
.ffm-nl-form-inner { display: flex; flex-direction: column; gap: 10px; }
.ffm-nl-form-inner input[type="text"],
.ffm-nl-form-inner input[type="email"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--mid);
  outline: none;
  background: var(--off-white);
  color: var(--black);
  transition: border-color .2s;
  width: 100%;
}
.ffm-nl-form-inner input:focus { border-color: var(--red); background: #fff; }
.ffm-nl-form-inner button[type="submit"] {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 13px 24px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
}
.ffm-nl-form-inner button:hover { background: var(--red-dark); }
.ffm-nl-form-inner button:disabled { opacity: .6; cursor: not-allowed; }
.ffm-nl-note { font-size: 11px; color: #bbb; margin-top: 8px; }
.ffm-nl-success {
  background: #f0faf0;
  border-left: 3px solid #22c55e;
  padding: 14px 16px;
  font-size: 14px;
  color: #166534;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0;
}
.ffm-nl-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* BAND variant */
.ffm-nl-band {
  background: var(--red);
  padding: 56px 0;
}
.ffm-nl-band .ffm-nl-form-inner { flex-direction: row; }
.ffm-nl-band .ffm-nl-form-inner input { background: rgba(255,255,255,.95); flex: 1; border: none; }
.ffm-nl-band .ffm-nl-form-inner button { background: var(--black); width: auto; flex-shrink: 0; }
.ffm-nl-band .ffm-nl-form-inner button:hover { background: #3a3536; }
.ffm-nl-band-copy h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ffm-nl-band-copy p { font-size: 14px; color: rgba(255,255,255,.8); }
.ffm-nl-band-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.ffm-nl-band-copy { flex: 1; min-width: 240px; }
.ffm-nl-band .ffm-nl-form { flex: 1; max-width: 500px; }
.ffm-nl-band .ffm-nl-note { color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════════
   SHARED SECTION HEADER
═══════════════════════════════════════════ */
.ffm-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: var(--border-thick);
  position: relative;
}
.ffm-section-header::before {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 68px; height: 3px;
  background: var(--red);
}
.ffm-section-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}
.ffm-view-all {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.ffm-view-all:hover { text-decoration: underline; }

/* CAT PILL */
.ffm-cat-pill, .cat-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 3px 9px;
  line-height: 1.5;
}
.ffm-cat-pill.dark, .cat-pill.dark { background: var(--black); }

/* ═══════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════ */
.ffm-breadcrumb {
  background: var(--light);
  border-bottom: var(--border-thin);
  padding: 10px 0;
}
.ffm-bc-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
.ffm-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #999; }
.ffm-breadcrumb a { color: #999; }
.ffm-breadcrumb a:hover { color: var(--red); }
.ffm-breadcrumb span { color: #ccc; }

/* ═══════════════════════════════════════════
   PAGE HERO (dark editorial banner)
═══════════════════════════════════════════ */
.ffm-page-hero {
  background: var(--black);
  padding: 52px 0 40px;
  border-bottom: var(--border-accent);
  position: relative;
  overflow: hidden;
}
.ffm-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.01) 0px, rgba(255,255,255,.01) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
}
.ffm-page-hero .inner { position: relative; z-index: 1; }
.ffm-page-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.ffm-page-hero-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--red); }
.ffm-page-hero h1 {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}
.ffm-page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   ARTICLE CARD (loop item)
═══════════════════════════════════════════ */
.ffm-card { display: flex; flex-direction: column; }
.ffm-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}
.ffm-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.ffm-card:hover .ffm-card-thumb img { transform: scale(1.05); }
.ffm-card-thumb .ffm-cat-pill { position: absolute; top: 12px; left: 12px; }

.ffm-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 8px;
  transition: color .2s;
}
.ffm-card:hover .ffm-card-title { color: var(--red); }
.ffm-card-excerpt {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ffm-card-meta { font-size: 11px; color: #aaa; display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.ffm-card-meta .ffm-author { font-weight: 600; color: var(--gray); }

/* Loop grid */
.ffm-loop-grid { display: grid; gap: var(--gap); }
.ffm-cols-1 { grid-template-columns: 1fr; }
.ffm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ffm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ffm-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ═══════════════════════════════════════════
   FRANCHISE DIRECTORY
═══════════════════════════════════════════ */

/* Filter bar */
.ffm-dir-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 18px 0;
  border-bottom: var(--border-thin);
}
.ffm-dir-search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}
.ffm-dir-search-wrap input {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 38px 10px 14px;
  border: 1.5px solid var(--mid);
  outline: none;
  width: 100%;
  background: var(--off-white);
  transition: border-color .2s;
}
.ffm-dir-search-wrap input:focus { border-color: var(--red); background: #fff; }
.ffm-dir-search-wrap::after {
  content: '⌕';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px; color: #bbb;
  pointer-events: none;
}
.ffm-dir-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.ffm-filter-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1.5px solid var(--mid);
  background: transparent;
  color: var(--gray);
  padding: 7px 16px;
  cursor: pointer;
  transition: all .2s;
}
.ffm-filter-btn:hover,
.ffm-filter-btn.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.ffm-dir-count { font-size: 12px; color: var(--gray-light); margin-left: auto; }

/* Franchise Grid */
.ffm-franchise-grid {
  display: grid;
  gap: var(--gap);
}
.ffm-franchise-grid.ffm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ffm-franchise-grid.ffm-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Franchise Card */
.ffm-franchise-card {
  background: var(--white);
  border: 1.5px solid var(--mid);
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
}
.ffm-franchise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--mid);
  transition: background .25s;
}
.ffm-franchise-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.ffm-franchise-card:hover::before { background: var(--red); }
.ffm-franchise-card.is-featured::before { background: var(--red); }

/* Card badge */
.ffm-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 3px 10px;
  z-index: 2;
}

/* Logo area */
.ffm-fcard-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border-bottom: var(--border-thin);
  min-height: 110px;
}
.ffm-fcard-logo img { max-height: 56px; max-width: 140px; object-fit: contain; }
.ffm-logo-placeholder {
  width: 60px; height: 60px;
  background: var(--light);
  border: 2px solid var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
}

/* Card body */
.ffm-fcard-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ffm-fcard-industry {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.ffm-fcard-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 8px;
  transition: color .2s;
}
.ffm-franchise-card:hover .ffm-fcard-name { color: var(--red); }
.ffm-fcard-excerpt {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats row */
.ffm-fcard-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--mid);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ffm-stat {
  flex: 1;
  min-width: 70px;
  padding: 8px 10px;
  border-right: 1px solid var(--mid);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.ffm-stat:last-child { border-right: none; }
.ffm-stat-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 2px;
}
.ffm-stat-lbl { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #aaa; }

.ffm-fcard-countries { font-size: 11px; color: var(--gray); margin-bottom: 6px; }
.ffm-fcard-model {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--light); border: 1px solid var(--mid); color: var(--gray);
  padding: 3px 10px;
}

/* CTA bar */
.ffm-fcard-cta {
  padding: 12px 20px;
  background: var(--light);
  border-top: var(--border-thin);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  transition: background .2s, color .2s;
  margin-top: auto;
  text-align: right;
}
.ffm-franchise-card:hover .ffm-fcard-cta { background: var(--red); color: #fff; }

/* ═══════════════════════════════════════════
   FRANCHISE SINGLE PAGE
═══════════════════════════════════════════ */
.ffm-franchise-single { padding: 48px 0 64px; }
.ffm-franchise-single .inner { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }

.ffm-franchise-profile {}
.ffm-franchise-masthead {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: var(--border-thin);
}
.ffm-franchise-logo-big {
  width: 100px; height: 100px;
  border: 2px solid var(--mid);
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white);
  flex-shrink: 0;
}
.ffm-franchise-logo-big img { max-width: 80px; max-height: 80px; object-fit: contain; }
.ffm-franchise-headline h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 6px;
}
.ffm-franchise-tagline { font-size: 15px; color: var(--gray); font-style: italic; }

/* Stats bar */
.ffm-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--mid);
  margin-bottom: 36px;
}
.ffm-stats-bar .ffm-stat-block {
  padding: 18px;
  border-right: 1px solid var(--mid);
  text-align: center;
}
.ffm-stats-bar .ffm-stat-block:last-child { border-right: none; }
.ffm-stat-block .stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}
.ffm-stat-block .stat-lbl { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #aaa; }

.ffm-section-block { margin-bottom: 40px; }
.ffm-section-block h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mid);
  position: relative;
  color: var(--black);
}
.ffm-section-block h2::after { content:''; position:absolute; bottom:-2px; left:0; width:40px; height:2px; background:var(--red); }
.ffm-section-block p { font-size: 15px; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }

/* Financial table */
.ffm-fin-table { width: 100%; border-collapse: collapse; }
.ffm-fin-table tr { border-bottom: 1px solid var(--mid); }
.ffm-fin-table tr:hover td { background: var(--off-white); }
.ffm-fin-table td { padding: 12px 14px; font-size: 14px; }
.ffm-fin-table td:first-child { font-weight: 600; color: var(--gray); width: 200px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.ffm-fin-table td:last-child { color: var(--black); font-weight: 500; }
.ffm-fin-table .accent { color: var(--red); font-weight: 700; }

/* Enquiry Sidebar */
.ffm-franchise-sidebar { position: sticky; top: 80px; }
.ffm-enquiry-widget {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 28px;
  margin-bottom: 24px;
}
.ffm-enquiry-widget h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.ffm-enquiry-widget p { font-size: 13px; color: #888; margin-bottom: 20px; line-height: 1.6; }
.ffm-enquiry-wrap { position: relative; }
.ffm-enquiry-msg { font-size: 14px; padding: 12px 16px; margin-bottom: 12px; border-left: 3px solid; }
.ffm-enquiry-msg.success { background: #f0faf0; border-color: #22c55e; color: #166534; }
.ffm-enquiry-msg.error { background: #fff0f0; border-color: var(--red); color: var(--red); }
.ffm-enquiry-form { display: flex; flex-direction: column; gap: 10px; }
.ffm-enquiry-form input,
.ffm-enquiry-form select,
.ffm-enquiry-form textarea {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.ffm-enquiry-form input::placeholder,
.ffm-enquiry-form textarea::placeholder { color: #666; }
.ffm-enquiry-form input:focus,
.ffm-enquiry-form textarea:focus { border-color: var(--red); background: rgba(255,255,255,.1); }
.ffm-enquiry-form textarea { resize: vertical; min-height: 80px; }
.ffm-enquiry-form select { color: #999; }
.ffm-enquiry-form select option { color: #000; background: #fff; }
.ffm-enquiry-form [type="submit"] {
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.ffm-enquiry-form [type="submit"]:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════
   MAGAZINE SLIDER
═══════════════════════════════════════════ */
.ffm-mag-slider-outer { position: relative; padding: 0 28px; }
.ffm-mag-slider {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.ffm-mag-slider.is-grabbing { cursor: grabbing; }
.ffm-mag-slider::-webkit-scrollbar { display: none; }
.ffm-mag-slide {
  flex: 0 0 calc(25% - 18px);
  min-width: 200px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--black);
}
.ffm-mag-cover {
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 20px rgba(0,0,0,.14);
  margin-bottom: 14px;
  background: var(--light);
}
.ffm-mag-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ffm-mag-slide:hover .ffm-mag-cover img { transform: scale(1.04); }
.issue-badge {
  position: absolute; top: 0; right: 0;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px;
}
.ffm-issue-num {
  position: absolute; bottom: 8px; left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255,255,255,.7); font-family: var(--font-body);
}
.ffm-mag-slide-theme { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.ffm-mag-slide-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--black);
  margin: 0 0 6px;
  transition: color .2s;
}
.ffm-mag-slide:hover .ffm-mag-slide-title { color: var(--red); }
.ffm-mag-slide-meta { font-size: 11px; color: #aaa; }
.ffm-mag-read-cta { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: 6px; }

.ffm-slider-btn {
  position: absolute;
  top: calc(33%); transform: translateY(-50%);
  width: 38px; height: 38px;
  background: var(--white);
  border: 1.5px solid var(--mid);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--black);
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: all .2s;
}
.ffm-slider-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.ffm-slider-btn.ffm-prev { left: -4px; }
.ffm-slider-btn.ffm-next { right: -4px; }

/* ═══════════════════════════════════════════
   MAGAZINE SHOWCASE PAGE
═══════════════════════════════════════════ */
.ffm-mag-showcase { padding: 52px 0; }
.ffm-mag-issues-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ffm-mag-issue-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--black);
  border: 1.5px solid var(--mid);
  transition: box-shadow .25s, transform .25s;
}
.ffm-mag-issue-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.ffm-mag-issue-cover {
  position: relative; overflow: hidden;
  background: var(--light);
}
.ffm-mag-issue-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; transition: transform .4s; }
.ffm-mag-issue-card:hover .ffm-mag-issue-cover img { transform: scale(1.04); }
.ffm-mag-issue-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.ffm-issue-theme-label { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.ffm-issue-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.ffm-issue-meta { font-size: 11px; color: #aaa; margin-bottom: 14px; }
.ffm-issue-btns { display: flex; gap: 8px; margin-top: auto; align-items: stretch; }
.ffm-issue-read-label {
  flex: 1; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 12px;
  background: var(--black); color: #fff;
  transition: background .2s;
}
.ffm-mag-issue-card:hover .ffm-issue-read-label { background: var(--red); }
.ffm-issue-pdf-link {
  flex: 0 0 auto; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 16px;
  border: 1.5px solid var(--black); color: var(--black);
  text-decoration: none;
  transition: all .2s;
}
.ffm-issue-pdf-link:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ═══════════════════════════════════════════
   SINGLE MAGAZINE ISSUE PAGE
═══════════════════════════════════════════ */
.ffm-issue-single {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
}
.ffm-issue-single-header { margin-bottom: 28px; }
.ffm-issue-single-header .ffm-issue-theme-label {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.ffm-issue-single-title {
  font-family: var(--font-display); font-size: 34px; font-weight: 900;
  line-height: 1.15; color: var(--black); margin-bottom: 10px;
}
.ffm-issue-single-meta { font-size: 13px; color: #aaa; }

/* Embedded flipbook wrapper — keeps iframe responsive */
.ffm-issue-embed-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,.14);
  background: var(--light);
}
.ffm-issue-embed-wrap iframe {
  width: 100% !important;
  min-height: 600px;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  .ffm-issue-embed-wrap iframe { min-height: 420px; }
}

/* Cover-only fallback (no embed code set yet) */
.ffm-issue-cover-only {
  max-width: 360px; margin: 0 auto 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,.14);
}
.ffm-issue-cover-only img { width: 100%; display: block; }

/* Action buttons under embed/cover */
.ffm-issue-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 8px;
}
.ffm-issue-btn {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 28px; text-decoration: none; transition: all .2s;
}
.ffm-issue-btn.ffm-primary { background: var(--red); color: #fff; }
.ffm-issue-btn.ffm-primary:hover { background: var(--red-dark); }
.ffm-issue-btn.ffm-outline { border: 2px solid var(--black); color: var(--black); }
.ffm-issue-btn.ffm-outline:hover { background: var(--black); color: #fff; }

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.ffm-contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; padding: 60px 0; align-items: start; }

.ffm-contact-form-wrap {}
.ffm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.ffm-form-group { display: flex; flex-direction: column; gap: 6px; }
.ffm-form-group label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); }
.ffm-form-group label span { color: var(--red); }
.ffm-form-group input,
.ffm-form-group select,
.ffm-form-group textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--mid);
  background: var(--off-white);
  color: var(--black);
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.ffm-form-group input:focus,
.ffm-form-group select:focus,
.ffm-form-group textarea:focus { border-color: var(--red); background: #fff; }
.ffm-form-group textarea { resize: vertical; min-height: 130px; margin-bottom: 0; }
.ffm-form-group { margin-bottom: 0; }
.ffm-contact-form > .ffm-form-group { margin-bottom: var(--gap); }
.ffm-form-footer { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.ffm-submit-btn {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--red); color: #fff;
  padding: 14px 36px; border: none; cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; gap: 8px;
}
.ffm-submit-btn:hover { background: var(--red-dark); }
.ffm-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.ffm-form-note { font-size: 12px; color: #bbb; }
.ffm-alert { padding: 14px 18px; font-size: 14px; margin-bottom: 24px; border-left: 3px solid; display: block; }
.ffm-alert-success { background: #f0faf0; border-color: #22c55e; color: #166534; }
.ffm-alert-error { background: #fff0f0; border-color: var(--red); color: var(--red-dark); }

/* Contact Sidebar */
.ffm-contact-sidebar {}
.ffm-contact-info {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 32px;
  margin-bottom: 24px;
}
.ffm-contact-info h4 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.ffm-contact-detail { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.ffm-cdet-item { display: flex; gap: 12px; align-items: start; }
.ffm-cdet-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.ffm-cdet-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
.ffm-cdet-val { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.5; }
.ffm-cdet-val a { color: rgba(255,255,255,.8); transition: color .2s; }
.ffm-cdet-val a:hover { color: var(--red); }
.ffm-contact-social { display: flex; gap: 10px; padding-top: 20px; border-top: 1px solid #333; }
.ffm-contact-social a {
  width: 36px; height: 36px;
  border: 1px solid #333;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.ffm-contact-social a svg { width: 15px; height: 15px; fill: #888; }
.ffm-contact-social a:hover { background: var(--red); border-color: var(--red); }
.ffm-contact-social a:hover svg { fill: #fff; }

/* ═══════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════ */
.ffm-single-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.ffm-article {}
.ffm-article-cat {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.ffm-article-cat::before { content:''; display:inline-block; width:24px; height:2px; background:var(--red); }
.ffm-article-cat a {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.ffm-article-title {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 900; line-height: 1.12;
  color: var(--black);
  margin-bottom: 18px;
}
.ffm-article-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--red);
}
.ffm-article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 0;
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
  margin-bottom: 32px;
}
.ffm-author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--mid); }
.ffm-author-name { font-size: 14px; font-weight: 600; color: var(--black); }
.ffm-post-date { font-size: 12px; color: #bbb; }
.ffm-read-time-badge { font-size: 11px; color: #bbb; margin-left: auto; }
.ffm-article-share { display: flex; gap: 8px; align-items: center; }
.ffm-share-lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #bbb; }
.ffm-share-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--mid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.ffm-share-btn svg { width: 13px; height: 13px; fill: #999; }
.ffm-share-btn:hover { background: var(--red); border-color: var(--red); }
.ffm-share-btn:hover svg { fill: #fff; }

.ffm-article-hero { width: 100%; max-height: 480px; object-fit: cover; display: block; margin-bottom: 10px; }
.ffm-hero-caption { font-size: 12px; color: #bbb; text-align: center; font-style: italic; margin-bottom: 32px; }

/* Article body typography */
.ffm-article-body { font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: #333; }
.ffm-article-body p { margin-bottom: 24px; }
.ffm-article-body h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--black);
  margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--mid); position: relative;
}
.ffm-article-body h2::after { content:''; position:absolute; bottom:-2px; left:0; width:44px; height:2px; background:var(--red); }
.ffm-article-body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--black); }
.ffm-article-body blockquote {
  background: var(--off-white);
  border-left: 4px solid var(--red);
  padding: 24px 28px;
  margin: 36px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.55;
  color: var(--black);
  position: relative;
}
.ffm-article-body blockquote::before { content:'"'; font-size:72px; color:var(--red); opacity:.15; position:absolute; top:-12px; left:16px; font-family:var(--font-display); line-height:1; }
.ffm-article-body blockquote cite { display:block; font-style:normal; font-size:12px; font-family:var(--font-body); font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gray); margin-top:14px; }
.ffm-article-body ul, .ffm-article-body ol { margin: 0 0 24px 24px; }
.ffm-article-body li { margin-bottom: 8px; }
.ffm-article-body .data-table { width:100%; border-collapse:collapse; margin:32px 0; font-size:14px; }
.ffm-article-body .data-table th { background:var(--black); color:#fff; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:11px 14px; text-align:left; }
.ffm-article-body .data-table td { padding:11px 14px; border-bottom:1px solid var(--mid); color:#444; }
.ffm-article-body .data-table tr:nth-child(even) td { background:var(--off-white); }

/* Tags */
.ffm-article-tags { margin-top: 40px; padding-top: 24px; border-top: var(--border-thin); display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ffm-tags-lbl { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#bbb; }
.ffm-tag { font-size:11px; color:var(--gray); border:1px solid var(--mid); padding:5px 12px; transition:all .2s; }
.ffm-tag:hover { border-color:var(--red); color:var(--red); }

/* Author box */
.ffm-author-box { background:var(--light); border-top:3px solid var(--red); padding:28px; margin-top:48px; display:flex; gap:20px; align-items:start; }
.ffm-author-box-img { width:72px; height:72px; border-radius:50%; object-fit:cover; flex-shrink:0; border:3px solid #fff; box-shadow:0 2px 10px rgba(0,0,0,.1); }
.ffm-author-box-name { font-family:var(--font-display); font-size:18px; font-weight:700; margin-bottom:4px; }
.ffm-author-box-role { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--red); margin-bottom:8px; }
.ffm-author-box-bio { font-size:13px; color:var(--gray); line-height:1.65; }

/* Article sidebar */
.ffm-article-sidebar { position: sticky; top: 80px; }
.ffm-sidebar-widget { margin-bottom: 32px; }
.ffm-sidebar-widget h5 { font-size:10px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:var(--red); margin-bottom:14px; padding-bottom:10px; border-bottom:var(--border-thin); }
.ffm-toc-list { list-style:none; }
.ffm-toc-list li a { font-size:13px; color:var(--gray); display:flex; align-items:start; gap:8px; padding:5px 0; line-height:1.4; transition:color .2s; }
.ffm-toc-list li a:hover { color:var(--red); }
.ffm-toc-list li a::before { content:attr(data-num); font-size:10px; font-weight:700; color:var(--red); flex-shrink:0; margin-top:2px; font-family:var(--font-body); }
.ffm-sidebar-ad { background:var(--light); border:1px dashed var(--mid); height:250px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; color:#ccc; font-size:11px; font-family:var(--font-body); letter-spacing:.08em; text-transform:uppercase; }
.ffm-sidebar-nl { background:var(--black); padding:24px; }
.ffm-sidebar-nl h4 { font-family:var(--font-display); font-size:18px; font-weight:700; color:#fff; margin-bottom:8px; }
.ffm-sidebar-nl p { font-size:13px; color:#888; margin-bottom:14px; line-height:1.6; }
.ffm-related { margin-top: 56px; }
.ffm-related h3 { font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:24px; padding-bottom:12px; border-bottom:var(--border-thick); position:relative; }
.ffm-related h3::before { content:''; position:absolute; bottom:-3px; left:0; width:52px; height:3px; background:var(--red); }
.ffm-related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.ffm-related-card { text-decoration:none; color:var(--black); }
.ffm-related-card img { width:100%; height:140px; object-fit:cover; margin-bottom:10px; transition:transform .4s; }
.ffm-related-card:hover img { transform:scale(1.04); }
.ffm-related-card .rcat { font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--red); margin-bottom:4px; }
.ffm-related-card h4 { font-family:var(--font-display); font-size:14px; font-weight:700; line-height:1.3; transition:color .2s; }
.ffm-related-card:hover h4 { color:var(--red); }
.ffm-related-card .rdate { font-size:11px; color:#bbb; margin-top:4px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.ffm-footer-main { background: var(--footer-bg); padding: 64px 0 40px; }
.ffm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.ffm-footer-brand .logo img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.ffm-footer-brand p { font-size: 13px; color: #888; line-height: 1.75; margin-bottom: 24px; }
.ffm-footer-social { display: flex; gap: 10px; }
.ffm-footer-social a { width: 36px; height: 36px; border: 1px solid #333; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ffm-footer-social a svg { width: 14px; height: 14px; fill: #888; }
.ffm-footer-social a:hover { background: var(--red); border-color: var(--red); }
.ffm-footer-social a:hover svg { fill: #fff; }
.ffm-footer-col h6 { font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red); margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid #2a2a2a; }
.ffm-footer-col ul { list-style:none; }
.ffm-footer-col ul li { margin-bottom:10px; }
.ffm-footer-col ul li a { font-size:13px; color:#888; transition:color .2s; display:flex; align-items:center; gap:6px; }
.ffm-footer-col ul li a::before { content:''; display:inline-block; width:4px; height:4px; background:var(--red); border-radius:50%; opacity:0; transition:opacity .2s; flex-shrink:0; }
.ffm-footer-col ul li a:hover { color:#fff; }
.ffm-footer-col ul li a:hover::before { opacity:1; }
.ffm-footer-bottom { background: #0f0d10; padding: 16px 0; border-top: 1px solid #222; }
.ffm-footer-bottom .inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.ffm-footer-bottom p { font-size:12px; color:#444; }
.ffm-footer-bottom p a { color:#444; transition:color .2s; }
.ffm-footer-bottom p a:hover { color:var(--red); }
.ffm-legal-links { display:flex; gap:16px; flex-wrap:wrap; }
.ffm-legal-links a { font-size:12px; color:#444; transition:color .2s; }
.ffm-legal-links a:hover { color:var(--red); }

/* Back to top */
#ffm-back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity .3s; cursor: pointer;
}
#ffm-back-top.is-visible { opacity: 1; pointer-events: all; }
#ffm-back-top:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════════
   ANIMATION
═══════════════════════════════════════════ */
.ffm-animate { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.ffm-animate.ffm-animated { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .ffm-franchise-single .inner { grid-template-columns: 1fr 300px; gap: 40px; }
  .ffm-footer-grid { grid-template-columns: 1fr 1fr; }
  .ffm-mag-issues-grid { grid-template-columns: repeat(3,1fr); }
  .ffm-mag-slide { flex: 0 0 calc(33.33% - 16px); }
}
@media (max-width: 1024px) {
  .ffm-cols-4 { grid-template-columns: repeat(2,1fr); }
  .ffm-cols-3 { grid-template-columns: repeat(2,1fr); }
  .ffm-franchise-grid.ffm-cols-3,
  .ffm-franchise-grid.ffm-cols-4 { grid-template-columns: repeat(2,1fr); }
  .ffm-single-layout { grid-template-columns: 1fr; gap: 48px; }
  .ffm-article-sidebar { position: static; }
  .ffm-contact-layout { grid-template-columns: 1fr; }
  .ffm-franchise-single .inner { grid-template-columns: 1fr; }
  .ffm-franchise-sidebar { position: static; }
  .ffm-stats-bar { grid-template-columns: repeat(2,1fr); }
  .ffm-nav { display: none; }
  .ffm-hamburger { display: block; }
  .ffm-search-wrap input { width: 160px; }
  .ffm-mag-issues-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .ffm-topbar .ffm-topbar-right > a { display: none; }
  .ffm-logo img { height: 44px; }
  .ffm-masthead .inner { flex-wrap: wrap; }
  .ffm-search-wrap { display: none; }
  .ffm-page-hero h1 { font-size: 30px; }
  .ffm-article-title { font-size: 28px; }
  .ffm-cols-2 { grid-template-columns: 1fr; }
  .ffm-franchise-grid.ffm-cols-3,
  .ffm-franchise-grid.ffm-cols-4 { grid-template-columns: 1fr; }
  .ffm-form-row { grid-template-columns: 1fr; }
  .ffm-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ffm-related-grid { grid-template-columns: 1fr; }
  .ffm-nl-band .ffm-nl-form-inner { flex-direction: column; }
  .ffm-mag-issues-grid { grid-template-columns: 1fr 1fr; }
  .ffm-mag-slide { flex: 0 0 80%; }
  .ffm-stats-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ffm-page-hero h1 { font-size: 24px; }
  .ffm-stats-bar { grid-template-columns: 1fr 1fr; }
  .ffm-mag-issues-grid { grid-template-columns: 1fr; }
}