/* ==========================================================================
   FazNotes Theme - Gates Notes Inspired Design
   ========================================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --fn-black: #1d1d1f;
  --fn-dark: #333333;
  --fn-gray-700: #4a4a4a;
  --fn-gray-500: #6e6e73;
  --fn-gray-400: #8e8e93;
  --fn-gray-200: #d1d1d6;
  --fn-gray-100: #e5e5ea;
  --fn-off-white: #f0f1f4;
  --fn-white: #ffffff;
  --fn-accent: #e3683a;
  --fn-accent-hover: #d05a2e;
  --fn-green: #2d6a4f;
  --fn-yellow: #f5e642;
  --fn-header-bg: #333333;
  --fn-body-bg: #f0f1f4;
  --fn-card-bg: #ffffff;
  --fn-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --fn-font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fn-container: 1200px;
  --fn-narrow: 720px;
  --fn-header-height: 56px;
  --fn-header-top: 0px;
  --fn-radius: 0px;
  --fn-transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--fn-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fn-black);
  background-color: var(--fn-body-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

/* ---------- CONTAINER ---------- */
.fn-container {
  width: 100%;
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: 0 40px;
}

.fn-container--narrow {
  max-width: var(--fn-narrow);
}

/* ==========================================================================
   HEADER - Exact Gates Notes Style (NOT full width)
   ========================================================================== */
.fn-header {
  position: fixed;
  top: var(--fn-header-top, 0px);
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 40px;
}

.fn-header__bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--fn-container);
  height: var(--fn-header-height);
  background: var(--fn-header-bg);
  padding: 0 0 0 0;
  pointer-events: all;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.fn-header.is-scrolled .fn-header__bar {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Logo - Dark box on left like Gates Notes */
.fn-header__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.fn-header__logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  text-decoration: none;
  transition: opacity var(--fn-transition);
}

.fn-header__logo-link:hover {
  opacity: 0.85;
}

.fn-header__logo-box {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  background: var(--fn-black);
  padding: 6px 10px;
  border-radius: 2px;
}

.fn-header__logo-text-top,
.fn-header__logo-text-bottom {
  font-family: var(--fn-font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--fn-white);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Custom logo image */
.fn-header__logo .custom-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  transition: opacity var(--fn-transition);
}

.fn-header__logo .custom-logo-link:hover {
  opacity: 0.85;
}

.fn-header__logo .custom-logo {
  height: 32px;
  width: auto;
}

/* Navigation */
.fn-header__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
}

.fn-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fn-nav-menu li {
  display: flex;
  align-items: center;
}

.fn-nav-link {
  display: flex;
  align-items: center;
  height: var(--fn-header-height);
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.025em;
  transition:
    color var(--fn-transition),
    background var(--fn-transition);
  white-space: nowrap;
  position: relative;
}

.fn-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--fn-white);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.fn-nav-link:hover {
  color: var(--fn-white);
  background: rgba(255, 255, 255, 0.06);
}

.fn-nav-link:hover::after {
  transform: scaleX(1);
}

.fn-nav-menu .current-menu-item .fn-nav-link,
.fn-nav-menu .current_page_item .fn-nav-link {
  color: var(--fn-white);
  background: rgba(255, 255, 255, 0.08);
}

.fn-nav-menu .current-menu-item .fn-nav-link::after,
.fn-nav-menu .current_page_item .fn-nav-link::after {
  transform: scaleX(1);
}

/* Search Button - Dark rounded square like Gates Notes */
.fn-header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: var(--fn-header-height);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: var(--fn-white);
  cursor: pointer;
  transition: background var(--fn-transition);
  margin-left: auto;
  padding: 0;
  flex-shrink: 0;
}

.fn-header__search-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Hamburger - Mobile only */
.fn-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: var(--fn-header-height);
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.fn-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fn-white);
  transition: all var(--fn-transition);
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.fn-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.fn-search-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.fn-search-overlay__inner {
  width: 100%;
  max-width: 640px;
  padding: 0 40px;
  position: relative;
}

.fn-search-overlay__close {
  position: absolute;
  top: -60px;
  right: 40px;
  background: none;
  border: none;
  color: var(--fn-white);
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity var(--fn-transition);
}

.fn-search-overlay__close:hover {
  opacity: 1;
}

.fn-search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  font-family: var(--fn-font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--fn-white);
  padding: 16px 0;
  outline: none;
  caret-color: var(--fn-accent);
}

.fn-search-overlay__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.fn-search-overlay__input:focus {
  border-bottom-color: var(--fn-white);
}

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */
.fn-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--fn-dark);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.fn-mobile-menu.is-active {
  transform: translateX(0);
}

.fn-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: var(--fn-header-height);
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fn-mobile-menu__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.fn-mobile-menu__header .custom-logo-link,
.fn-mobile-menu > .custom-logo-link {
  display: flex;
  align-items: center;
  background: var(--fn-white);
  padding: 4px 10px;
  border-radius: 3px;
}

.fn-mobile-menu__header .custom-logo,
.fn-mobile-menu > .custom-logo-link .custom-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.fn-mobile-menu__logo-text {
  display: flex;
  gap: 3px;
  font-family: var(--fn-font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--fn-white);
}

.fn-mobile-menu__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--fn-white);
  cursor: pointer;
  padding: 8px;
}

.fn-mobile-menu__nav {
  flex: 1;
  padding: 30px 0;
}

.fn-mobile-menu__list,
.fn-mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fn-mobile-menu__list li a,
.fn-mobile-menu__nav ul li a {
  display: block;
  padding: 18px 30px;
  font-family: var(--fn-font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--fn-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--fn-transition);
}

.fn-mobile-menu__list li a:hover,
.fn-mobile-menu__nav ul li a:hover,
.fn-mobile-menu__list li a:active,
.fn-mobile-menu__nav ul li a:active {
  background: rgba(255, 255, 255, 0.05);
}

.fn-mobile-menu__list li.current-menu-item a,
.fn-mobile-menu__nav ul li.current-menu-item a,
.fn-mobile-menu__list li.current_page_item a,
.fn-mobile-menu__nav ul li.current_page_item a {
  color: var(--fn-accent);
  border-left: 3px solid var(--fn-accent);
}

/* Backdrop when mobile menu is open */
body.fn-mobile-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1499;
  pointer-events: none;
}

.fn-mobile-menu__footer {
  padding: 20px 30px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fn-mobile-menu__search {
  display: flex;
  gap: 10px;
}

.fn-mobile-menu__search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--fn-white);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--fn-font-sans);
  outline: none;
}

.fn-mobile-menu__search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.fn-mobile-menu__search button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--fn-white);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   HERO BANNER - Gates Notes Full Bleed Style
   ========================================================================== */
.fn-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 0;
}

.fn-hero__media {
  position: absolute;
  inset: 0;
}

.fn-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fn-hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--fn-dark) 0%, #555 100%);
}

.fn-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.fn-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 50px;
  max-width: var(--fn-container);
  margin: 0 auto;
  z-index: 2;
  text-align: center;
}

.fn-hero__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fn-white);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.fn-hero__title {
  font-family: var(--fn-font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fn-white);
  margin-bottom: 14px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.fn-hero__title a {
  color: inherit;
  text-decoration: none;
}

.fn-hero__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.fn-hero__excerpt {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   FEATURED POSTS - 3 Column Text Cards (Gates Notes style)
   ========================================================================== */
.fn-featured {
  padding: 50px 0 0;
  background: var(--fn-white);
}

.fn-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--fn-gray-200);
}

/* ==========================================================================
   CARD COMPONENT
   ========================================================================== */
/* Text-only card (for featured section) */
.fn-card--text {
  border-right: 1px solid var(--fn-gray-200);
}

.fn-card--text:last-child {
  border-right: none;
}

.fn-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background var(--fn-transition);
}

.fn-card--text .fn-card__link {
  padding: 36px 30px;
}

.fn-card--text .fn-card__link:hover {
  background: var(--fn-off-white);
}

.fn-card__category {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fn-gray-500);
  margin-bottom: 10px;
}

.fn-card__title {
  font-family: var(--fn-font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fn-black);
  margin-bottom: 10px;
  transition: color var(--fn-transition);
}

.fn-card__link:hover .fn-card__title {
  color: var(--fn-accent);
}

.fn-card__excerpt {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fn-gray-500);
}

/* Image-only card row */
.fn-image-cards {
  padding: 0;
  background: var(--fn-white);
}

.fn-image-cards__header {
  padding: 30px 0 16px;
}

.fn-image-cards__heading {
  font-family: var(--fn-font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--fn-black);
  letter-spacing: 0.01em;
}

.fn-image-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.fn-card--image .fn-card__link {
  display: block;
  overflow: hidden;
}

.fn-card--image .fn-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.fn-card--image .fn-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fn-card--image .fn-card__link:hover .fn-card__img {
  transform: scale(1.05);
}

.fn-card--image .fn-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--fn-gray-100) 0%,
    var(--fn-gray-200) 100%
  );
}

/* Image card text overlay */
.fn-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.fn-card--image .fn-card__link:hover .fn-card__thumb-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.fn-card__thumb-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  z-index: 2;
}

.fn-card__thumb-category {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fn-white);
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}

.fn-card__thumb-title {
  font-family: var(--fn-font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fn-white);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fn-image-slider-dots {
  display: none;
}

/* Full card (image + text) for archive/recent */
.fn-card--full .fn-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--fn-card-bg);
  transition:
    box-shadow var(--fn-transition),
    transform var(--fn-transition);
}

.fn-card--full .fn-card__link:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.fn-card--full .fn-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  flex-shrink: 0;
}

.fn-card--full .fn-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fn-card--full .fn-card__link:hover .fn-card__img {
  transform: scale(1.04);
}

.fn-card--full .fn-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--fn-gray-100) 0%,
    var(--fn-gray-200) 100%
  );
}

.fn-card--full .fn-card__body {
  padding: 24px 24px 28px;
  flex: 1;
}

.fn-card--full .fn-card__title {
  font-size: 18px;
}

/* ==========================================================================
   MANIFESTO / QUOTE SECTION - Dark Blue Gradient
   ========================================================================== */
.fn-manifesto {
  padding: 0;
  background: linear-gradient(
    135deg,
    #0a1628 0%,
    #0c2461 40%,
    #1e3a8a 70%,
    #1d4ed8 100%
  );
  position: relative;
  overflow: hidden;
}

.fn-manifesto::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    ellipse,
    rgba(59, 130, 246, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.fn-manifesto__inner {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: 80px 40px 70px;
  position: relative;
  z-index: 1;
}

.fn-manifesto__content {
  max-width: 700px;
}

.fn-manifesto__label {
  display: inline-block;
  font-family: var(--fn-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3e635;
  margin-bottom: 30px;
}

.fn-manifesto__text {
  font-family: var(--fn-font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fn-white);
  margin-bottom: 28px;
}

.fn-manifesto__line {
  display: block;
}

.fn-manifesto__line--highlight {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.fn-manifesto__desc {
  font-family: var(--fn-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 420px;
}

/* ==========================================================================
   FULLBLEED FEATURE SECTION
   ========================================================================== */
.fn-fullbleed {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.fn-fullbleed__media {
  position: absolute;
  inset: 0;
}

.fn-fullbleed__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fn-fullbleed__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
}

.fn-fullbleed__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
}

.fn-fullbleed__content {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
  max-width: 550px;
}

.fn-fullbleed__category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fn-accent);
  margin-bottom: 12px;
}

.fn-fullbleed__title {
  font-family: var(--fn-font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fn-white);
  margin-bottom: 12px;
}

.fn-fullbleed__title a {
  color: inherit;
  text-decoration: none;
}

.fn-fullbleed__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fn-fullbleed__excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ==========================================================================
   TOPICS SECTION - Redesigned with Icons & Colored Underlines
   ========================================================================== */
.fn-topics {
  padding: 70px 0 80px;
  background: var(--fn-white);
}

.fn-topics__header {
  margin-bottom: 36px;
}

.fn-recent__header,
.fn-related__header {
  margin-bottom: 30px;
}

.fn-topics__label {
  display: block;
  font-family: var(--fn-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fn-gray-500);
  margin-bottom: 8px;
}

.fn-topics__heading {
  font-family: var(--fn-font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--fn-black);
  line-height: 1.2;
}

.fn-recent__heading,
.fn-related__heading {
  font-family: var(--fn-font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--fn-black);
  letter-spacing: 0.01em;
}

.fn-topics__divider,
.fn-recent__divider,
.fn-related__divider {
  height: 1px;
  background: var(--fn-gray-200);
  margin-bottom: 16px;
}

.fn-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.fn-topics__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--fn-white);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--fn-gray-100);
  position: relative;
  transition:
    background var(--fn-transition),
    border-color var(--fn-transition),
    transform var(--fn-transition),
    box-shadow var(--fn-transition);
}

.fn-topics__item:hover {
  border-color: var(--fn-gray-200);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fn-topics__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
}

.fn-topics__icon svg {
  width: 14px;
  height: 14px;
}

.fn-topics__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fn-topics__name {
  font-family: var(--fn-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fn-black);
  margin-bottom: 0;
  line-height: 1.3;
}

.fn-topics__count {
  font-size: 12px;
  color: var(--fn-gray-400);
  letter-spacing: 0.01em;
  margin-bottom: 0;
  line-height: 1.3;
}

.fn-topics__underline {
  display: none;
}

/* ==========================================================================
   RECENT POSTS GRID
   ========================================================================== */
.fn-recent {
  padding: 60px 0 80px;
  background: var(--fn-body-bg);
}

.fn-recent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ==========================================================================
   ARCHIVE / INDEX
   ========================================================================== */
.fn-archive-header {
  padding: 60px 0 40px;
  padding-top: calc(var(--fn-header-height) + var(--fn-header-top) + 60px);
  background: var(--fn-dark);
  color: var(--fn-white);
  margin-top: 0;
}

.fn-archive-header__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.fn-archive-header__title {
  font-family: var(--fn-font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fn-white);
}

.fn-archive-header__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
  max-width: 600px;
  line-height: 1.6;
}

.fn-archive {
  padding: 40px 0 80px;
  background: var(--fn-body-bg);
}

.fn-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Pagination */
.fn-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.fn-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fn-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fn-gray-500);
  text-decoration: none;
  transition: all var(--fn-transition);
}

.fn-pagination .page-numbers:hover {
  color: var(--fn-black);
  background: var(--fn-white);
}

.fn-pagination .page-numbers.current {
  background: var(--fn-dark);
  color: var(--fn-white);
}

.fn-pagination .prev,
.fn-pagination .next {
  width: auto;
  padding: 0 8px;
}

/* ==========================================================================
   SINGLE POST - Gates Notes Article Style
   ========================================================================== */
.fn-single-hero {
  margin-top: 0;
}

.fn-single-hero__media {
  width: 100%;
  height: 65vh;
  min-height: 360px;
  max-height: 620px;
  overflow: hidden;
}

/* When no hero image, add padding so content clears the header */
.fn-single-hero:empty + .fn-article .fn-article__header {
  padding-top: calc(var(--fn-header-height) + var(--fn-header-top) + 50px);
}

.fn-single-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article */
.fn-article {
  background: var(--fn-white);
  padding-bottom: 60px;
}

.fn-article__header {
  max-width: var(--fn-narrow);
  margin: 0 auto;
  padding: 50px 40px 0;
}

.fn-article__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fn-gray-500);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color var(--fn-transition);
}

.fn-article__category:hover {
  color: var(--fn-accent);
}

.fn-article__title {
  font-family: var(--fn-font-serif);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fn-black);
  margin-bottom: 20px;
}

.fn-article__subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fn-gray-500);
  margin-bottom: 24px;
  font-style: italic;
}

/* Author meta */
.fn-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fn-gray-100);
}

.fn-article__author-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.fn-article__meta-text {
  display: flex;
  flex-direction: column;
}

.fn-article__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--fn-black);
}

.fn-article__date {
  font-size: 12px;
  color: var(--fn-gray-500);
}

/* Tags */
.fn-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.fn-article__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--fn-gray-500);
  background: var(--fn-off-white);
  padding: 4px 12px;
  text-decoration: none;
  transition: all var(--fn-transition);
  border: 1px solid var(--fn-gray-200);
}

.fn-article__tag:hover {
  background: var(--fn-dark);
  color: var(--fn-white);
  border-color: var(--fn-dark);
}

/* Book Review Amazon CTA */
.fn-article__book-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--fn-gray-100);
}

.fn-article__book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #f59e0b;
  color: #1a1a1a;
  font-family: var(--fn-font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition:
    background var(--fn-transition),
    transform var(--fn-transition),
    box-shadow var(--fn-transition);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.fn-article__book-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  color: #1a1a1a;
}

/* Article Content - Gates Notes reading style */
.fn-article__content {
  max-width: var(--fn-narrow);
  margin: 0 auto;
  padding: 36px 40px 0;
}

.fn-article__content p {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--fn-black);
  margin-bottom: 24px;
}

body.has-dropcap .fn-article__content p:first-of-type::first-letter {
  font-family: var(--fn-font-serif);
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  margin-right: 8px;
  margin-top: 4px;
  color: var(--fn-black);
  font-weight: 700;
}

.fn-article__content h2 {
  font-family: var(--fn-font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fn-black);
  margin: 40px 0 20px;
}

.fn-article__content h3 {
  font-family: var(--fn-font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fn-black);
  margin: 32px 0 16px;
}

.fn-article__content a {
  color: var(--fn-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--fn-transition);
}

.fn-article__content a:hover {
  color: var(--fn-accent-hover);
}

.fn-article__content blockquote {
  border-left: 3px solid var(--fn-accent);
  margin: 30px 0;
  padding: 10px 0 10px 24px;
  font-style: italic;
}

.fn-article__content blockquote p {
  font-size: 20px;
  color: var(--fn-gray-700);
}

.fn-article__content img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
}

.fn-article__content figure {
  margin: 30px 0;
}

.fn-article__content figcaption {
  font-size: 13px;
  color: var(--fn-gray-500);
  margin-top: 8px;
  text-align: center;
}

.fn-article__content ul,
.fn-article__content ol {
  margin: 20px 0;
  padding-left: 24px;
  list-style: initial;
}

.fn-article__content ol {
  list-style: decimal;
}

.fn-article__content li {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--fn-black);
  margin-bottom: 8px;
}

.fn-article__content em {
  font-style: italic;
}

.fn-article__content strong {
  font-weight: 700;
}

/* WP Block styles */
.fn-article__content .wp-block-cover {
  margin: 30px -40px;
  min-height: 400px !important;
}

.fn-article__content .wp-block-image {
  margin: 30px 0;
}

/* Share bar */
.fn-article__share {
  max-width: var(--fn-narrow);
  margin: 0 auto;
  padding: 30px 40px 0;
  border-top: 1px solid var(--fn-gray-100);
  display: flex;
  align-items: center;
  gap: 20px;
}

.fn-article__share-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fn-gray-500);
}

.fn-article__share-buttons {
  display: flex;
  gap: 12px;
}

.fn-article__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fn-off-white);
  color: var(--fn-gray-700);
  text-decoration: none;
  transition: all var(--fn-transition);
}

.fn-article__share-btn:hover {
  background: var(--fn-dark);
  color: var(--fn-white);
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */
.fn-related {
  padding: 60px 0 80px;
  background: var(--fn-body-bg);
}

.fn-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.fn-comments {
  padding: 40px 0 80px;
  background: var(--fn-white);
}

.fn-comments .comments-title {
  font-family: var(--fn-font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

.fn-comments .comment-list {
  list-style: none;
}

.fn-comments .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--fn-gray-100);
}

.fn-comments .comment-author {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.fn-comments .comment-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fn-gray-700);
}

.fn-comments .comment-respond .comment-reply-title {
  font-family: var(--fn-font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.fn-comments .comment-form-comment textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--fn-gray-200);
  font-family: var(--fn-font-sans);
  font-size: 15px;
  resize: vertical;
  min-height: 120px;
  outline: none;
}

.fn-comments .comment-form-comment textarea:focus {
  border-color: var(--fn-dark);
}

.fn-comments .form-submit input[type="submit"] {
  background: var(--fn-dark);
  color: var(--fn-white);
  border: none;
  padding: 12px 28px;
  font-family: var(--fn-font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--fn-transition);
}

.fn-comments .form-submit input[type="submit"]:hover {
  background: var(--fn-black);
}

/* ==========================================================================
   PAGE TEMPLATE
   ========================================================================== */
.fn-page {
  padding: 80px 0 80px;
  padding-top: calc(var(--fn-header-height) + var(--fn-header-top) + 80px);
  background: var(--fn-white);
  margin-top: 0;
}

.fn-page__title {
  font-family: var(--fn-font-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fn-black);
  margin-bottom: 40px;
}

.fn-page__content p {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.fn-page__content a {
  color: var(--fn-accent);
  text-decoration: underline;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.fn-404 {
  padding: 120px 0 120px;
  padding-top: calc(var(--fn-header-height) + var(--fn-header-top) + 120px);
  text-align: center;
  background: var(--fn-white);
}

.fn-404__code {
  display: block;
  font-family: var(--fn-font-serif);
  font-size: 100px;
  font-weight: 700;
  color: var(--fn-gray-200);
  line-height: 1;
  margin-bottom: 16px;
}

.fn-404__title {
  font-family: var(--fn-font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--fn-black);
  margin-bottom: 12px;
}

.fn-404__text {
  font-size: 16px;
  color: var(--fn-gray-500);
  margin-bottom: 30px;
}

.fn-404__btn {
  display: inline-block;
  background: var(--fn-dark);
  color: var(--fn-white);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--fn-transition);
}

.fn-404__btn:hover {
  background: var(--fn-black);
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */
.fn-searchform {
  display: flex;
  max-width: 500px;
}

.fn-searchform__input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--fn-gray-200);
  font-family: var(--fn-font-sans);
  font-size: 15px;
  outline: none;
  background: var(--fn-white);
}

.fn-searchform__input:focus {
  border-color: var(--fn-dark);
}

.fn-searchform__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: var(--fn-dark);
  border: none;
  color: var(--fn-white);
  cursor: pointer;
  transition: background var(--fn-transition);
}

.fn-searchform__btn:hover {
  background: var(--fn-black);
}

.fn-no-results {
  padding: 80px 0 80px;
  padding-top: calc(var(--fn-header-height) + var(--fn-header-top) + 80px);
  text-align: center;
  background: var(--fn-white);
}

.fn-no-results h2 {
  font-family: var(--fn-font-serif);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fn-no-results p {
  color: var(--fn-gray-500);
  margin-bottom: 30px;
}

.fn-no-results__search {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   NEWSLETTER - Side-by-Side Card with Image
   ========================================================================== */
.fn-newsletter {
  background: var(--fn-body-bg);
  padding: 40px 40px 60px;
}

.fn-newsletter__container {
  max-width: var(--fn-container);
  margin: 0 auto;
}

.fn-newsletter__card {
  display: flex;
  align-items: stretch;
  background: var(--fn-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.fn-newsletter__left {
  flex: 0 0 var(--fn-newsletter-left-width, 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
}

.fn-newsletter__right {
  flex: 0 0 var(--fn-newsletter-right-width, 50%);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.fn-newsletter__title {
  font-family: var(--fn-font-serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--fn-black);
  margin-bottom: 24px;
  line-height: 1.2;
}

.fn-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.fn-newsletter__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--fn-gray-200);
  background: var(--fn-off-white);
  color: var(--fn-black);
  font-family: var(--fn-font-sans);
  font-size: 14px;
  outline: none;
  border-radius: 8px;
  transition:
    border-color var(--fn-transition),
    background var(--fn-transition);
}

.fn-newsletter__input::placeholder {
  color: var(--fn-gray-400);
}

.fn-newsletter__input:focus {
  border-color: var(--fn-dark);
  background: var(--fn-white);
}

.fn-newsletter__btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--fn-dark);
  color: var(--fn-white);
  border: none;
  font-family: var(--fn-font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition:
    background var(--fn-transition),
    transform var(--fn-transition);
  white-space: nowrap;
  align-self: flex-start;
}

.fn-newsletter__btn:hover {
  background: var(--fn-black);
  transform: translateY(-1px);
  color: var(--fn-white);
}

/* Newsletter image */
.fn-newsletter__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.fn-footer {
  background: var(--fn-black);
  color: rgba(255, 255, 255, 0.6);
  padding: 0;
}

.fn-footer__inner {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: 0 40px;
}

.fn-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fn-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.fn-footer__logo {
  text-decoration: none;
}

.fn-footer__logo-box {
  display: flex;
  gap: 4px;
  font-family: var(--fn-font-sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--fn-white);
}

.fn-footer__logo .custom-logo-link {
  display: inline-block;
}

.fn-footer__logo .custom-logo {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.fn-footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.fn-footer__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.fn-footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fn-footer__menu li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--fn-transition);
}

.fn-footer__menu li a:hover {
  color: var(--fn-white);
}

.fn-footer__cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fn-footer__cat-list li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--fn-transition);
}

.fn-footer__cat-list li a:hover {
  color: var(--fn-white);
}

.fn-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.fn-footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.fn-footer__social {
  display: flex;
  gap: 16px;
}

.fn-footer__social a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--fn-transition);
}

.fn-footer__social a:hover {
  color: var(--fn-white);
}

/* ==========================================================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .fn-container {
    padding: 0 24px;
  }

  .fn-header {
    padding: 18px 24px 0;
  }

  .fn-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fn-featured__grid .fn-card--text:nth-child(2) {
    border-right: none;
  }

  .fn-featured__grid .fn-card--text:nth-child(3) {
    border-right: none;
    border-top: 1px solid var(--fn-gray-200);
    grid-column: 1 / -1;
  }

  .fn-image-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .fn-image-cards__grid .fn-card--image:nth-child(3) {
    display: none;
  }

  .fn-card__thumb-title {
    font-size: 15px;
  }

  .fn-topics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fn-recent__grid,
  .fn-archive__grid,
  .fn-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fn-newsletter__left {
    padding: 36px 32px;
  }

  .fn-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .fn-nav-link {
    padding: 0 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --fn-header-height: 52px;
  }

  .fn-container {
    padding: 0 16px;
  }

  /* Mobile Header - Hamburger left, Logo center, Search right */
  .fn-header {
    padding: 0;
  }

  .fn-header__bar {
    justify-content: space-between;
    padding: 0 16px;
  }

  .fn-header__nav {
    display: none;
  }

  .fn-header__hamburger {
    display: flex;
    order: -1;
  }

  .fn-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .fn-header__logo .custom-logo-link {
    padding: 0;
  }

  .fn-header__logo-box {
    flex-direction: row;
    gap: 0;
    background: transparent;
    padding: 0;
  }

  .fn-header__logo-text-top,
  .fn-header__logo-text-bottom {
    font-size: 16px;
    font-weight: 700;
  }

  .fn-header__search-btn {
    margin-left: 0;
  }

  /* Hero - fixed mobile responsiveness */
  .fn-hero {
    height: 70vh;
    min-height: 360px;
    max-height: 520px;
    margin-top: 0;
  }

  .fn-hero__content {
    padding: 30px 20px 24px;
    text-align: left;
  }

  .fn-hero__title {
    font-size: clamp(22px, 5.5vw, 28px);
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .fn-hero__excerpt {
    font-size: 13px;
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fn-hero__category {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 10px;
  }

  /* Featured */
  .fn-featured {
    padding: 30px 0 0;
  }

  .fn-featured__grid {
    grid-template-columns: 1fr;
  }

  .fn-featured__grid .fn-card--text {
    border-right: none;
    border-bottom: 1px solid var(--fn-gray-200);
  }

  .fn-featured__grid .fn-card--text:last-child {
    border-bottom: none;
  }

  .fn-featured__grid .fn-card--text:nth-child(3) {
    grid-column: auto;
    border-top: none;
  }

  .fn-card--text .fn-card__link {
    padding: 24px 20px;
  }

  .fn-card__title {
    font-size: 20px;
  }

  /* Image cards - mobile slider (full-width, constrained height) */
  .fn-image-cards {
    padding: 0;
  }

  .fn-image-cards > .fn-container {
    padding: 0;
  }

  .fn-image-cards__header {
    padding: 16px 16px 10px;
  }

  .fn-image-cards__grid {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .fn-image-cards__grid .fn-card--image {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    transition: transform 0.5s ease;
  }

  .fn-image-cards__grid .fn-card--image:nth-child(3) {
    display: block;
  }

  .fn-card--image .fn-card__link {
    display: block;
    overflow: hidden;
  }

  .fn-card--image .fn-card__thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio via padding hack for max compat */
    aspect-ratio: auto;
  }

  .fn-card--image .fn-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fn-card--image .fn-card__img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .fn-card__thumb-content {
    padding: 14px 16px;
  }

  .fn-card__thumb-category {
    font-size: 9px;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .fn-card__thumb-title {
    font-size: 15px;
    line-height: 1.3;
  }

  .fn-image-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--fn-white);
  }

  .fn-image-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fn-gray-200);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .fn-image-slider-dot.is-active {
    background: var(--fn-dark);
  }

  /* Manifesto */
  .fn-manifesto__inner {
    padding: 50px 20px 40px;
  }

  .fn-manifesto__text {
    font-size: 28px;
  }

  .fn-manifesto__desc {
    font-size: 14px;
  }

  /* Fullbleed */
  .fn-fullbleed {
    min-height: 400px;
  }

  .fn-fullbleed__content {
    padding: 40px 20px;
  }

  .fn-fullbleed__title {
    font-size: 24px;
  }

  /* Topics */
  .fn-topics {
    padding: 40px 0 50px;
  }

  .fn-topics__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .fn-topics__item {
    padding: 8px 10px;
    gap: 8px;
  }

  .fn-topics__icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
  }

  .fn-topics__icon svg {
    width: 12px;
    height: 12px;
  }

  .fn-topics__name {
    font-size: 12px;
  }

  .fn-topics__count {
    font-size: 10px;
  }

  /* Grids */
  .fn-recent__grid,
  .fn-archive__grid,
  .fn-related__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Horizontal card layout on mobile */
  .fn-card--full .fn-card__link {
    flex-direction: row;
    align-items: stretch;
  }

  .fn-card--full .fn-card__thumb {
    width: 120px;
    min-width: 120px;
    aspect-ratio: auto;
    height: auto;
  }

  .fn-card--full .fn-card__img {
    height: 100%;
    min-height: 100%;
  }

  .fn-card--full .fn-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .fn-card--full .fn-card__title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .fn-card--full .fn-card__excerpt {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fn-card--full .fn-card__category {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .fn-recent {
    padding: 40px 0 60px;
  }

  /* Archive header */
  .fn-archive-header {
    padding-top: calc(var(--fn-header-height) + 40px);
    padding-bottom: 30px;
  }

  /* Single post */
  .fn-single-hero {
    margin-top: 0;
  }

  .fn-single-hero__media {
    height: 45vh;
    min-height: 240px;
    max-height: 360px;
  }

  .fn-article__header {
    padding: 30px 20px 0;
  }

  .fn-article__title {
    font-size: 28px;
  }

  .fn-article__content {
    padding: 24px 20px 0;
  }

  .fn-article__content p {
    font-size: 17px;
  }

  .fn-article__content .wp-block-cover {
    margin: 20px -20px;
  }

  .fn-article__share {
    padding: 24px 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Newsletter */
  .fn-newsletter {
    padding: 30px 16px;
  }

  .fn-newsletter__card {
    flex-direction: column;
    min-height: auto;
  }

  .fn-newsletter__left {
    flex: none;
    padding: 28px 24px;
  }

  .fn-newsletter__right {
    min-height: 180px;
  }

  .fn-newsletter__title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .fn-newsletter__form {
    max-width: 100%;
  }

  .fn-newsletter__btn {
    align-self: flex-start;
  }

  /* Footer */
  .fn-footer__inner {
    padding: 0 20px;
  }

  .fn-footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0 30px;
  }

  .fn-footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Page */
  .fn-page {
    padding: 80px 0 60px;
  }

  .fn-page__title {
    font-size: 28px;
  }

  /* 404 */
  .fn-404 {
    padding: 120px 0 80px;
  }

  .fn-404__code {
    font-size: 72px;
  }
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .fn-hero {
    height: 60vh;
    min-height: 300px;
    max-height: 420px;
  }

  .fn-hero__title {
    font-size: 20px;
  }

  .fn-hero__excerpt {
    font-size: 12px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .fn-card__title {
    font-size: 18px;
  }

  .fn-card__thumb-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .fn-card__thumb-category {
    font-size: 7px;
    padding: 2px 5px;
    margin-bottom: 4px;
  }

  .fn-card__thumb-content {
    padding: 12px 10px;
  }

  .fn-article__title {
    font-size: 24px;
  }

  .fn-manifesto__text {
    font-size: 24px;
  }
}

/* ==========================================================================
   AFFILIATE LINKS - Beautiful Book Cards Grid
   ========================================================================== */
.fn-article__affiliate {
  max-width: var(--fn-narrow);
  margin: 0 auto;
  padding: 50px 40px 10px;
}

.fn-affiliate-section {
  padding: 50px 0;
  background: var(--fn-off-white);
}

.fn-affiliate {
  background: linear-gradient(135deg, #faf7f2 0%, #f5f0e8 100%);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.fn-affiliate__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 24px 0;
}

.fn-affiliate__icon {
  color: var(--fn-accent);
  flex-shrink: 0;
}

.fn-affiliate__heading {
  font-family: var(--fn-font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--fn-black);
  letter-spacing: 0;
  text-transform: none;
}

/* Grid: max 3 per row */
.fn-affiliate__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 28px 20px;
}

.fn-affiliate__grid--single {
  grid-template-columns: 1fr;
  max-width: 280px;
  margin: 0 auto;
}

.fn-affiliate__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
  margin: 0 auto;
}

/* Card - Vertical book style */
.fn-affiliate__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--fn-white);
  border-radius: 10px;
  padding: 24px 20px;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.fn-affiliate__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.fn-affiliate__label {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fn-white);
  background: var(--fn-accent);
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1;
}

/* Book cover image */
.fn-affiliate__img-wrap {
  width: 140px;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #eee;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow:
    4px 4px 15px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.fn-affiliate__card .fn-affiliate__img-wrap img,
img.fn-affiliate__img {
  display: block;
  width: 140px !important;
  height: 200px !important;
  max-width: 140px !important;
  max-height: 200px !important;
  object-fit: cover !important;
  margin: 0 !important;
}

.fn-affiliate__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #e8e4df, #d9d4cc);
}

.fn-affiliate__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

.fn-affiliate__title {
  font-family: var(--fn-font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fn-black);
  margin-bottom: 6px;
}

.fn-affiliate__desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fn-gray-500);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fn-affiliate__price {
  font-family: var(--fn-font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--fn-dark);
  margin-bottom: 12px;
}

.fn-affiliate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  background: #f59e0b;
  color: #1a1a1a;
  font-family: var(--fn-font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: none;
  border-radius: 8px;
  margin-top: auto;
  transition:
    background var(--fn-transition),
    transform var(--fn-transition),
    box-shadow var(--fn-transition);
  white-space: nowrap;
  width: 100%;
  position: relative;
  z-index: 2;
  pointer-events: all;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.fn-affiliate__btn:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.fn-affiliate__btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.fn-affiliate__btn:hover svg {
  transform: translate(2px, -2px);
}

.fn-affiliate__disclosure {
  padding: 14px 28px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  text-align: center;
  line-height: 1.5;
  font-style: italic;
}

/* Affiliate responsive - tablet */
@media (max-width: 1024px) {
  .fn-affiliate__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
  }

  .fn-affiliate__grid--single {
    grid-template-columns: 1fr;
  }
}

/* Affiliate responsive - mobile */
@media (max-width: 600px) {
  .fn-article__affiliate {
    padding: 30px 16px 0;
  }

  .fn-affiliate__grid,
  .fn-affiliate__grid--two {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
    gap: 16px;
    padding: 20px 16px;
  }

  .fn-affiliate__card {
    padding: 20px 16px;
  }

  .fn-affiliate__img-wrap {
    width: 120px;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
  }

  .fn-affiliate__card .fn-affiliate__img-wrap img,
  img.fn-affiliate__img {
    width: 120px !important;
    height: 170px !important;
    max-width: 120px !important;
    max-height: 170px !important;
  }

  .fn-affiliate__heading {
    font-size: 18px;
  }
}

/* ==========================================================================
   DIVMIX BOOK REVIEW - Book Details Card & Amazon Button
   ========================================================================== */

/* Book Details Card (cover + info side by side) */
.fn-book-details {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  padding: 28px;
  background: linear-gradient(135deg, #faf7f2 0%, #f5f0e8 100%);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.fn-book-details__cover {
  flex-shrink: 0;
  width: 140px;
}

.fn-book-details__cover-img {
  width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow:
    4px 4px 18px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.fn-book-details__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.fn-book-details__row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}

.fn-book-details__label {
  font-weight: 600;
  color: var(--fn-gray-500);
  min-width: 72px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.fn-book-details__value {
  color: var(--fn-black);
  font-weight: 500;
}

.fn-book-details__rating {
  display: flex;
  gap: 2px;
}

.fn-star {
  font-size: 18px;
  color: var(--fn-gray-300);
  line-height: 1;
}

.fn-star--filled {
  color: #f59e0b;
}

/* Divmix Amazon Affiliate Button */
.divmix-affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #f59e0b;
  color: #1a1a1a;
  font-family: var(--fn-font-sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  transition:
    background var(--fn-transition),
    transform var(--fn-transition),
    box-shadow var(--fn-transition);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
  white-space: nowrap;
}

.divmix-affiliate-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  color: #1a1a1a;
}

.divmix-affiliate-btn svg {
  flex-shrink: 0;
}

/* Book CTA Card (after content) */
.fn-book-cta-card {
  background: linear-gradient(135deg, #faf7f2 0%, #f5f0e8 100%);
  border-radius: 14px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.fn-book-cta-card__inner {
  display: flex;
  gap: 28px;
  align-items: center;
}

.fn-book-cta-card__cover {
  flex-shrink: 0;
  width: 140px;
}

.fn-book-cta-card__img {
  width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.12);
}

.fn-book-cta-card__text {
  display: flex;
  flex-direction: column;
}

.fn-book-cta-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fn-gray-400);
  margin-bottom: 6px;
}

.fn-book-cta-card__title {
  font-family: var(--fn-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--fn-black);
  margin-bottom: 4px;
  line-height: 1.3;
}

.fn-book-cta-card__author {
  font-size: 14px;
  color: var(--fn-gray-500);
  margin-bottom: 16px;
}

.fn-book-cta-card__disclosure {
  font-size: 11px;
  color: var(--fn-gray-400);
  font-style: italic;
  margin-top: 10px;
}

/* Book details responsive - mobile */
@media (max-width: 768px) {
  .fn-book-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 24px 20px;
  }

  .fn-book-details__info {
    align-items: center;
  }

  .fn-book-details__row {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .fn-book-details__label {
    min-width: auto;
  }

  .fn-book-cta-card__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .fn-book-cta-card__text {
    align-items: center;
  }

  .divmix-affiliate-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fn-hero__content {
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Scroll reveal animation class */
.fn-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fn-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .fn-header,
  .fn-newsletter,
  .fn-footer,
  .fn-article__share,
  .fn-related,
  .fn-search-overlay,
  .fn-mobile-menu {
    display: none !important;
  }

  .fn-article__content {
    max-width: 100%;
    padding: 0;
  }

  .fn-article__content p {
    font-size: 12pt;
  }
}
