/* ============================================================
   CAG ICER REAL ESTATE — BLOG HUB STYLES
   caglaricer.com | Toronto Real Estate
   ============================================================
   TABLE OF CONTENTS:
   1.  CSS Variables & Reset
   2.  Typography
   3.  Navigation
   4.  Hero Section
   5.  Category Filter Bar
   6.  Featured Article
   7.  Blog Grid
   8.  Blog Cards
   9.  Sidebar
   10. Pagination
   11. Lead Generation CTAs
   12. Newsletter
   13. Footer
   14. Individual Post Layout
   15. FAQ Accordion
   16. Related Articles
   17. Toast / Notifications
   18. Animations & Transitions
   19. Mobile Responsive
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES & RESET
   ============================================================ */
:root {
  /* Brand Colours */
  --primary:         #0F172A;   /* Deep navy — headings, logo */
  --secondary:       #1E3A5F;   /* Mid navy — accents, hover */
  --accent:          #C4972A;   /* Gold — CTAs, highlights */
  --accent-hover:    #A67D1E;   /* Darker gold — button hover */
  --accent-light:    #FBF5E6;   /* Light gold — tag backgrounds */

  /* Text */
  --text-primary:    #0F172A;
  --text-secondary:  #475569;
  --text-muted:      #94A3B8;

  /* Backgrounds */
  --bg-white:        #FFFFFF;
  --bg-light:        #F8FAFC;
  --bg-card:         #FFFFFF;

  /* Borders */
  --border:          #E2E8F0;
  --border-hover:    #CBD5E1;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:  0 2px 8px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-md:  0 6px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg:  0 20px 48px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.05);
  --shadow-gold: 0 4px 20px rgba(196,151,42,0.25);

  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Layout */
  --max-width:     1280px;
  --content-width: 1140px;
  --sidebar-width: 320px;

  /* Transitions */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast: 0.15s var(--ease);
  --t-med:  0.25s var(--ease);
  --t-slow: 0.4s  var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}


/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-meta {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================
   3. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-med);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: color var(--t-fast);
}

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

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.nav__cta:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--t-med);
}


/* ============================================================
   4. HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #0F2A4A 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(196,151,42,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,151,42,0.4), transparent);
}

.hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,151,42,0.15);
  border: 1px solid rgba(196,151,42,0.3);
  color: #E8C56E;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #E8C56E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.hero__title span {
  color: #E8C56E;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* Search bar */
.hero__search {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.hero__search-input {
  width: 100%;
  height: 58px;
  padding: 0 60px 0 22px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: var(--t-med);
}

.hero__search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 3px rgba(196,151,42,0.2);
}

.hero__search-input::placeholder {
  color: var(--text-muted);
}

.hero__search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--t-fast), transform var(--t-fast);
}

.hero__search-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.05);
}

/* Hero stats row */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}


/* ============================================================
   5. CATEGORY FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 90;
  box-shadow: var(--shadow-xs);
}

.filter-bar__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 56px;
}

.filter-bar__inner::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
  background: transparent;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-light);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filter-pill[data-filter="all"].active {
  background: var(--accent);
  border-color: var(--accent);
}

.filter-bar__count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}


/* ============================================================
   6. FEATURED ARTICLE
   ============================================================ */
.featured-section {
  padding: 64px 0 0;
  background: var(--bg-white);
}

.featured-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t-med), transform var(--t-med);
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.featured-card__image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.featured-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.featured-card:hover .featured-card__image-wrap img {
  transform: scale(1.04);
}

.featured-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.featured-card__content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.featured-card__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.featured-card__title a:hover {
  color: var(--secondary);
}

.featured-card__excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.featured-card__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover {
  background: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--accent);
  color: white;
}

.btn--gold:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  height: 40px;
  font-size: 13px;
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
}

.btn--ghost {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 0 8px;
}

.btn--ghost:hover {
  color: var(--primary);
}

.btn svg, .btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}


/* ============================================================
   7. BLOG GRID (main content + sidebar layout)
   ============================================================ */
.blog-section {
  padding: 60px 0 80px;
  background: var(--bg-light);
}

.blog-section__layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 40px;
  align-items: start;
}

/* Grid of blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Empty / loading states */
.blog-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.blog-grid__empty h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.blog-grid__skeleton {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


/* ============================================================
   8. BLOG CARDS
   ============================================================ */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-med), transform var(--t-med), border-color var(--t-med);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.blog-card__image-wrap {
  position: relative;
  padding-top: 56.25%;   /* 16:9 aspect ratio */
  overflow: hidden;
  background: var(--bg-light);
}

.blog-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-card__image-wrap img {
  transform: scale(1.06);
}

/* Placeholder when no image */
.blog-card__image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #E8EDF5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--border-hover);
}

.blog-card__category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.blog-card__body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}

.blog-card:hover .blog-card__title {
  color: var(--secondary);
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card__dot {
  width: 3px;
  height: 3px;
  background: var(--border-hover);
  border-radius: 50%;
}

.blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border: 1.5px solid rgba(196,151,42,0.3);
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
}

.blog-card__read:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.blog-card__read svg {
  width: 12px;
  height: 12px;
  transition: transform var(--t-fast);
}

.blog-card:hover .blog-card__read svg {
  transform: translateX(3px);
}


/* ============================================================
   9. SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-widget__header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget__header .icon {
  font-size: 14px;
}

.sidebar-widget__body {
  padding: 16px 20px;
}

/* Sidebar search */
.sidebar-search {
  position: relative;
}

.sidebar-search__input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background: var(--bg-light);
}

.sidebar-search__input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(196,151,42,0.12);
}

.sidebar-search__input::placeholder {
  color: var(--text-muted);
}

.sidebar-search__btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  transition: color var(--t-fast);
}

.sidebar-search__btn:hover {
  color: var(--accent);
}

/* Category list */
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.sidebar-category:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.sidebar-category.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-category__count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sidebar-category.active .sidebar-category__count {
  background: rgba(196,151,42,0.2);
  color: var(--accent);
}

/* Recent posts */
.recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--t-fast);
  cursor: pointer;
}

.recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post:hover {
  opacity: 0.75;
}

.recent-post__image {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-light);
}

.recent-post__info {
  flex: 1;
  min-width: 0;
}

.recent-post__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post__date {
  font-size: 11px;
  color: var(--text-muted);
}


/* ============================================================
   10. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 16px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-light);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.page-btn--arrow {
  font-size: 18px;
}


/* ============================================================
   11. LEAD GENERATION CTAs
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,151,42,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.cta-banner__text {}

.cta-banner__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196,151,42,0.9);
  margin-bottom: 12px;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-banner__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.cta-banner__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--t-fast);
  cursor: pointer;
}

.cta-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(196,151,42,0.4);
  transform: translateX(4px);
}

.cta-card__text h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: white;
  margin-bottom: 4px;
  font-weight: 600;
}

.cta-card__text p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.cta-card__arrow {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  transition: transform var(--t-fast), background var(--t-fast);
}

.cta-card:hover .cta-card__arrow {
  transform: translateX(4px);
  background: var(--accent-hover);
}


/* ============================================================
   12. NEWSLETTER
   ============================================================ */
.newsletter-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: none;
  color: white;
}

.newsletter-widget__title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: white;
  margin-bottom: 8px;
  font-weight: 700;
}

.newsletter-widget__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.55;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
  transition: border-color var(--t-fast);
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.newsletter-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
}

.newsletter-btn {
  width: 100%;
  height: 42px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.newsletter-btn:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-gold);
}

.newsletter-privacy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 6px;
}

/* Inline CTA in sidebar */
.sidebar-cta {
  background: var(--accent-light);
  border: 1px solid rgba(196,151,42,0.2);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}

.sidebar-cta__icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.sidebar-cta__title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.sidebar-cta__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}


/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: white;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer__brokerage {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
}

.footer__link:hover {
  color: white;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast);
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.7);
}


/* ============================================================
   14. INDIVIDUAL POST LAYOUT (blog.html)
   ============================================================ */
.post-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 0 0;
  overflow: hidden;
}

.post-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.post-breadcrumb a {
  transition: color var(--t-fast);
}

.post-breadcrumb a:hover {
  color: rgba(255,255,255,0.9);
}

.post-breadcrumb__sep {
  font-size: 10px;
}

.post-hero__category {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(196,151,42,0.2);
  border: 1px solid rgba(196,151,42,0.3);
  color: #E8C56E;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.post-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  color: white;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin-bottom: 20px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.post-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-hero__image {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  max-height: 460px;
}

.post-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post body layout */
.post-body {
  padding: 64px 0 80px;
  background: var(--bg-white);
}

.post-body__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* Post content typography */
.post-content {
  max-width: 720px;
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--primary);
  margin-top: 44px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.02em;
}

.post-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.post-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.post-content strong {
  color: var(--primary);
  font-weight: 600;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 32px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Post author box */
.post-author {
  display: flex;
  gap: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 48px;
}

.post-author__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent-light), #E8D5A0);
}

.post-author__info {}

.post-author__name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 2px;
}

.post-author__title {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.post-author__bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.post-nav__btn {
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--t-fast);
}

.post-nav__btn:hover {
  border-color: var(--primary);
  background: var(--bg-light);
  box-shadow: var(--shadow-sm);
}

.post-nav__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-nav__title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav__btn--next {
  text-align: right;
}

/* Post sidebar — TOC */
.post-toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-toc__header {
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.post-toc__list {
  padding: 12px 20px 16px;
  counter-reset: toc;
}

.post-toc__item {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--t-fast);
}

.post-toc__item:last-child {
  border-bottom: none;
}

.post-toc__item:hover {
  color: var(--accent);
}

.post-toc__item::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}


/* ============================================================
   15. FAQ ACCORDION
   ============================================================ */
.faq-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.faq-section__title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 24px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,151,42,0.08);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  background: var(--bg-card);
  transition: background var(--t-fast);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.45;
}

.faq-question__toggle {
  width: 28px;
  height: 28px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.faq-item.open .faq-question__toggle {
  background: var(--accent);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding var(--t-med);
  background: var(--bg-light);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer__inner {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================================
   16. RELATED ARTICLES
   ============================================================ */
.related-section {
  padding: 64px 0 80px;
  background: var(--bg-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}


/* ============================================================
   17. TOAST / NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideIn 0.3s var(--ease-out) forwards;
  border-left: 4px solid var(--accent);
}

.toast.success {
  border-left-color: #22C55E;
}

.toast.error {
  border-left-color: #EF4444;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0);   opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

.toast.leaving {
  animation: slideOut 0.3s var(--ease) forwards;
}


/* ============================================================
   18. ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }

/* Tag chips */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  cursor: pointer;
}

.tag:hover {
  background: var(--accent-light);
  border-color: rgba(196,151,42,0.3);
  color: var(--accent);
}

.tag--accent {
  background: var(--accent-light);
  border-color: rgba(196,151,42,0.3);
  color: var(--accent);
  font-weight: 600;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  height: 3px;
  background: var(--accent);
  transition: width 0.1s linear;
  width: 0%;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-med), transform var(--t-med), background var(--t-fast);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Search highlight */
.search-highlight {
  background: rgba(196,151,42,0.25);
  color: var(--primary);
  border-radius: 3px;
  padding: 0 2px;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.no-results__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.no-results h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.no-results p {
  font-size: 14px;
  color: var(--text-muted);
}


/* ============================================================
   19. MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 280px;
  }

  .blog-section__layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .newsletter-widget,
  .sidebar-cta {
    grid-column: 1 / -1;
  }

  .cta-banner__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-banner__cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-card {
    flex: 1;
    min-width: 200px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-body__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Mobile nav overlay */
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    z-index: 200;
    padding: 80px 24px 32px;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-nav__link {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--primary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__image-wrap {
    min-height: 240px;
  }

  .featured-card__content {
    padding: 28px 24px;
  }

  .hero {
    padding: 56px 0 56px;
  }

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

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

  .blog-section {
    padding: 40px 0 60px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__stats {
    gap: 24px;
  }

  .featured-card__content {
    padding: 20px;
  }

  .blog-card__body {
    padding: 16px;
  }

  .cta-card {
    flex: 1 1 100%;
  }
}
