/* =========================================================
   STREETSTYLIS — High-End Editorial Magazine Theme
   Matches exact layout, colors, typography & structure from reference
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --color-navy: #1b1633;
  --color-brand-red: #8b0000;
  --color-brand-red-hover: #b30000;
  --color-blush: #f8d7df;
  --color-dusty-rose: #e5bbc8;
  --color-lavender: #ede2f4;
  --color-cream: #fff7ef;
  --color-gold-soft: #f2d4a8;
  --color-accent-soft: #fff4f2;
  --color-accent-border: #f3d8d7;
  --color-text-dark: #2f2431;
  --color-text-heading: #231b28;
  --color-text-nav: #4a3748;
  --color-text-muted: #715f72;
  --color-text-soft: #8f7f8f;
  --color-text-on-dark: #f7eef0;
  --color-surface: #ffffff;
  --color-surface-alt: #fff8f4;
  --color-placeholder: #e7d8dd;
  --color-placeholder-strong: #d9c3cb;
  --color-slate-card: #4a5568;
  --color-bg-light: #fff6f2;
  --color-border: #f1e0dc;
  --color-divider: #f1e3e1;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, sans-serif;

  --text-xs: 0.72rem;
  --text-sm: 0.88rem;
  --text-body: 0.96rem;
  --text-card: 1.12rem;
  --text-h2: 2.2rem;
  --text-logo: 3.2rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 10px 24px rgba(33, 17, 32, 0.08);
  --shadow-md: 0 18px 40px rgba(33, 17, 32, 0.1);
  --transition-base: 0.25s ease;

  --container-width: 1280px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  /* Original Decorative Background: Subtle warm cream base with delicate micro-lattice texture in brand blush/crimson tint */
  background-color: #fcf4ef;
  background-image: 
    radial-gradient(#e5bbc8 0.75px, transparent 0.75px), 
    radial-gradient(#e5bbc8 0.75px, #fcf4ef 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { 
  max-width: var(--container-width); 
  margin: 0 auto; 
  padding: 0 var(--space-5);
}

/* Redesigned Centered Boxed Column Frame */
.site-wrapper {
  max-width: var(--container-width);
  margin: 24px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(35, 27, 40, 0.07), 0 0 0 1px rgba(241, 224, 220, 0.8);
  overflow: hidden;
}

@media (max-width: 1320px) {
  .site-wrapper {
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
  }
}

.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ============ TOP UTILITY NAV ============ */
.top-nav-bar {
  background: linear-gradient(90deg, rgba(27,22,51,0.95), rgba(27,22,51,0.92));
  color: var(--color-text-on-dark);
  padding: 12px 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-nav-bar .container {
  gap: var(--space-7);
}
.top-user-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.top-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 224px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius-pill);
  padding: 6px 9px 6px 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: width 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.top-search-box:focus-within {
  width: 264px;
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.22), 0 8px 22px rgba(0,0,0,0.18);
}

/* ============ LIVE SEARCH AUTOCOMPLETE DROPDOWN ============ */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(27, 22, 51, 0.16);
  z-index: 2000;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}
.search-dropdown.show {
  display: flex;
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-base);
  text-decoration: none;
  color: var(--color-text-dark);
}
.search-dropdown-item:last-child {
  border-bottom: none;
}
.search-dropdown-item:hover {
  background-color: var(--color-bg-light);
}
.search-dropdown-thumb {
  width: 52px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-placeholder);
}
.search-dropdown-info {
  flex: 1;
  min-width: 0;
}
.search-dropdown-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 3px;
}
.search-dropdown-meta {
  font-size: 0.7rem;
  color: var(--color-brand-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-dropdown-empty {
  padding: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.4;
}
.search-dropdown-empty a {
  color: var(--color-brand-red);
  font-weight: 700;
}
.top-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: var(--color-surface);
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 2px 8px 2px 0;
  width: 100%;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}
.top-search-box:focus-within .top-search-input {
  color: var(--color-navy);
}
.top-search-input::placeholder {
  color: rgba(226,232,240,0.78);
}
.top-search-box:focus-within .top-search-input::placeholder {
  color: #64748b;
}
.top-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-placeholder);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.top-search-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.top-search-box:focus-within .top-search-btn {
  background: var(--color-brand-red);
  color: var(--color-surface);
}
.top-search-btn:hover {
  transform: scale(1.04);
}
.top-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.top-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: var(--color-text-on-dark);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition-base), opacity var(--transition-base);
}
.top-socials svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}
.top-socials a:hover {
  color: var(--color-brand-red);
  opacity: 0.95;
}
.top-user-links a {
  margin-right: 4px;
  font-weight: 600;
  color: var(--color-text-on-dark);
  transition: color var(--transition-base);
}
.top-user-links a:hover {
  color: var(--color-surface);
}
.btn-top-sub {
  background: var(--color-surface);
  color: var(--color-navy) !important;
  padding: 8px var(--space-4);
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  box-shadow: 0 12px 28px rgba(139, 0, 0, 0.12);
  transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.btn-top-sub:hover {
  background: linear-gradient(135deg, rgba(139,0,0,0.95), rgba(139,0,0,0.84));
  color: var(--color-surface) !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(139, 0, 0, 0.18);
}

/* ============ BRAND HEADER ============ */
.main-header {
  padding: 30px 0 0;
  background: var(--color-surface);
}
.brand-logo {
  font-family: var(--font-serif);
  font-size: var(--text-logo);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
  display: inline-block;
  margin-bottom: var(--space-5);
}

.category-nav {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  padding: 0;
  flex-wrap: wrap;
}
.nav-item {
  position: relative;
  padding: 12px 0;
}
.nav-link-item {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-nav);
  display: block;
}
.nav-link-item:hover { color: var(--color-brand-red); }.category-nav {
  background: rgba(255, 246, 241, 0.92);
  border-top: 1px solid rgba(241, 224, 220, 0.9);
  border-bottom: 1px solid rgba(241, 224, 220, 0.9);
}
/* ============ DROPDOWN MENU STYLING ============ */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  padding: 8px 0;
}
.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}
.dropdown-menu a {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.dropdown-menu a:hover {
  background: var(--color-accent-soft);
  color: var(--color-brand-red);
}
/* ============ AUDITED & STANDARDIZED CORE STYLES ============ */
.hidden-cat {
  display: none !important;
}

/* 1 & 3. SECTION SPACING STANDARDIZATION */
.home-section {
  margin-top: 0;
  margin-bottom: 48px;
  padding: 0;
}
.home-section .section-banner-title {
  margin-top: 0;
  margin-bottom: 24px;
}

/* HERO PROMO CARD - MATCHING WEB & MOBILE VIEW */
.hero-promo-card {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 32px 0 28px;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.promo-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  background: var(--color-placeholder-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.promo-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.placeholder-box {
  color: var(--color-text-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-text-content h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin: 0 0 14px;
  color: var(--color-text-heading);
  line-height: 1.2;
}
.promo-text-content p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
  line-height: 1.65;
}
.sub-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brand-red);
  text-decoration: underline;
  transition: color var(--transition-base);
}
.sub-link:hover {
  color: var(--color-brand-red-hover);
}

/* 4. STANDARDIZED CATEGORY BADGE / PILL DESIGN */
.pill-badges-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  border: 1px solid #fed7d7;
  background: #fff5f5;
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(139, 0, 0, 0.04);
}

/* OVERLAY BADGE FOR POST CARDS */
.card-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--color-brand-red);
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============ SECTION TITLE BANNERS ============ */
.section-banner-title {
  background: transparent;
  color: var(--color-text-dark);
  padding: 0;
  display: block;
  margin-bottom: 24px;
}
/* ============ BREADCRUMB NAVIGATION ============ */
.breadcrumb-trail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 24px;
  margin-bottom: 8px;
}
.breadcrumb-trail a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb-trail a:hover {
  color: var(--color-brand-red);
}
.breadcrumb-trail .separator {
  color: var(--color-placeholder-strong);
  font-size: 0.75rem;
}
.breadcrumb-trail .current {
  color: var(--color-brand-red);
  font-weight: 600;
}

/* Scaled-up Prominent Serif Headings */
.section-banner-title h2 {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
  letter-spacing: -0.015em;
}

/* 2. STANDARDIZED CARD IMAGE ASPECT RATIO & OVERFLOW RESERVATION (CLS PREVENTION) */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.card-popular-item {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  /* 9. STANDARDIZED LIGHTWEIGHT HOVER ANIMATION (TRANSFORM & SHADOW ONLY) */
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  will-change: transform;
}
.card-popular-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-red);
  box-shadow: 0 12px 28px rgba(139, 0, 0, 0.12);
}

.card-img-placeholder {
  position: relative;
  width: 100%;
  /* Fixed aspect-ratio reserves layout space to eliminate Cumulative Layout Shift (CLS) */
  aspect-ratio: 16 / 10;
  height: auto;
  background: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-img-placeholder.medium {
  aspect-ratio: 16 / 10;
  height: auto;
}

/* 5. STANDARDIZED TYPOGRAPHY ACROSS ALL SECTIONS */
.card-popular-item h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 18px 18px 8px;
  line-height: 1.4;
  color: var(--color-text-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 18px 18px;
  line-height: 1.6;
}

/* STANDARDIZED READ MORE BUTTONS */
.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  margin: auto 18px 18px 18px;
  transition: color var(--transition-base), gap var(--transition-base);
}
.card-read-more:hover {
  color: var(--color-brand-red-hover);
  gap: 10px;
}

/* 7. IMPROVED "LET'S STAY IN TOUCH" / TOUCH BOX SPACING & READABILITY */
.text-card-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.text-card-item h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
  color: var(--color-text-heading);
}
.touch-list-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.touch-item {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============ SIDEBAR LAYOUT GRID & LAST POST WIDGET ============ */
.page-sidebar-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 24px;
  margin-bottom: 48px;
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget-last-post {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.widget-banner-header {
  background: var(--color-navy);
  color: #ffffff;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-banner-header::before {
  content: '★';
  color: var(--color-brand-red);
}

.widget-post-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.widget-post-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-base);
  text-decoration: none;
  color: var(--color-text-dark);
}
.widget-post-item:last-child {
  border-bottom: none;
}
.widget-post-item:hover {
  background-color: var(--color-bg-light);
}

.widget-thumb-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-placeholder);
}
.widget-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.widget-badge-overlay {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-brand-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.widget-post-content {
  flex: 1;
  min-width: 0;
}
.widget-post-title {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-heading);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-post-time {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 992px) {
  .page-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============ RESPONSIVE MEDIA QUERIES (MOBILE & PC) ============ */
@media (max-width: 900px) {
  .hero-promo-card {
    grid-template-columns: 1fr;
    padding: 24px;
    margin: 24px 0 20px;
    gap: 20px;
  }
  .promo-img-placeholder {
    aspect-ratio: 16 / 9;
  }
  .promo-text-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .top-nav-bar .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .top-socials {
    justify-content: center;
  }
  .top-user-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    width: 100%;
  }
  .top-search-box {
    width: 100%;
    max-width: 320px;
    justify-content: space-between;
    order: -1;
  }
  .top-search-box:focus-within {
    width: 100%;
    max-width: 360px;
  }

  .main-header {
    padding: 20px 0 0;
  }
  .brand-logo {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .category-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 16px;
  }
  .nav-item {
    white-space: nowrap;
    padding: 10px 0;
  }

  .pill-badges-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 32px;
  }
  .badge-pill {
    text-align: center;
  }

  .section-banner-title h2 {
    font-size: 1.6rem;
  }

  .three-col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-section {
    margin-bottom: 36px;
  }
}

/* ============ SUBSCRIBE MODAL & OVERLAY STYLING ============ */
body.modal-open {
  overflow: hidden !important;
}

.subscribe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 22, 51, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.subscribe-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.subscribe-modal-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(27, 22, 51, 0.25);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.subscribe-modal-overlay.open .subscribe-modal-container {
  transform: scale(1);
}

.subscribe-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}
.subscribe-modal-close:hover {
  background: var(--color-brand-red);
  color: #ffffff;
}

.subscribe-modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.subscribe-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin: 0 0 6px;
}
.subscribe-modal-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  background: var(--color-surface);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.site-footer p {
  margin: 0;
  line-height: 1.6;
}
.site-footer a {
  color: var(--color-text-dark);
  font-weight: 600;
  transition: color var(--transition-base);
}
.site-footer a:hover {
  color: var(--color-brand-red);
}

/* ============ BLOG POST SUBSCRIPTION ============ */
.blog-subscribe-section {
  padding: 48px 0;
}
.blog-subscribe-section .subscribe-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px;
}
.blog-subscribe-section .subscribe-copy h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  margin: 6px 0 10px;
}
.blog-subscribe-section .subscribe-copy p,
.blog-subscribe-section .subscribe-note {
  color: #4a5568;
}
.blog-subscribe-section .eyebrow {
  color: var(--color-brand-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blog-subscribe-form {
  display: grid;
  gap: 12px;
}
.blog-subscribe-form .subscribe-row {
  display: flex;
  gap: 10px;
}
.blog-subscribe-form input[type="text"],
.blog-subscribe-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 11px 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.blog-subscribe-form .btn {
  min-height: 44px;
  border: 1px solid var(--color-brand-red);
  background: var(--color-brand-red);
  color: #ffffff;
  border-radius: 4px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
}
.blog-subscribe-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.consent-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: #4a5568;
}
.consent-row input {
  margin-top: 4px;
}
.subscription-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}
.blog-subscribe-form .form-msg {
  min-height: 22px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}
.blog-subscribe-form .form-msg.success {
  color: #166534;
}
.blog-subscribe-form .form-msg.error {
  color: var(--color-brand-red);
}
@media (max-width: 768px) {
  .blog-subscribe-section .subscribe-wrap {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .blog-subscribe-form .subscribe-row {
    flex-direction: column;
  }
  .blog-subscribe-form .btn {
    width: 100%;
  }
}

/* ============ PINTEREST "SAVE PIN" OVERLAY COMPONENT ============ */
.pin-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.pin-save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-red, #8b0000);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.pin-save-btn svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  flex-shrink: 0;
}

.pin-save-btn:hover {
  background: #a00000;
  transform: scale(1.04);
  color: #ffffff;
}

/* Show button on desktop hover */
.pin-wrapper:hover .pin-save-btn,
.card-media:hover .pin-save-btn,
.card-img-placeholder:hover .pin-save-btn,
.promo-img-placeholder:hover .pin-save-btn {
  opacity: 1;
  visibility: visible;
}

/* Always visible on touch & mobile screens */
@media (max-width: 768px), (pointer: coarse) {
  .pin-save-btn {
    opacity: 0.92 !important;
    visibility: visible !important;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 0.7rem;
  }
}

