/*
Theme Name: Celebrella
Theme URI: 
Author: Celebrella
Author URI: 
Description: A premium, luxury WordPress theme for wedding and event blogs.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: celebrella
*/

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Brand Colors */
  --clr-background: #ffffff;
  --clr-foreground: #0a0a0a;
  --clr-primary: #D4406E;       /* Rose Pink */
  --clr-primary-hover: #b8335b;
  --clr-secondary: #D45C40;     /* Warm Orange */
  --clr-secondary-hover: #ba4f35;
  --clr-accent: #40D4A6;        /* Teal Green */
  --clr-muted: #f5f5f5;         /* Light Grey */
  --clr-muted-foreground: #4a4a4a;
  --clr-border: #e0e0e0;
  --clr-card: #ffffff;
  --clr-destructive: #f43f5e;

  /* Typography */
  --font-sans: 'Source Sans 3', sans-serif;
  --font-heading: 'Pacifico', cursive;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows (Refined layered shadows for premium feel) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  background-color: var(--clr-background);
  color: var(--clr-foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Pacifico', cursive !important;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--clr-foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--clr-primary-hover);
  text-decoration: underline;
}

/* =========================================
   UTILITIES
   ========================================= */
.text-primary { color: var(--clr-primary); }
.text-secondary { color: var(--clr-secondary); }
.text-accent { color: var(--clr-accent); }
.text-muted { color: var(--clr-muted-foreground); }

.bg-muted { background-color: var(--clr-muted); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Section Divider (From globals.css) */
.section-divider {
  width: 3rem;
  height: 0.25rem;
  border-radius: var(--radius-full);
  background-color: var(--clr-accent);
  margin: 1.5rem auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full); /* Pill shaped buttons */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: var(--clr-secondary);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--clr-secondary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-foreground);
  border-color: var(--clr-border);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--clr-muted);
  border-color: var(--clr-muted-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--clr-foreground);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--clr-muted);
}

.btn-accent {
  background-color: var(--clr-accent);
  color: #fff;
}

/* =========================================
   CARDS
   ========================================= */
.card-premium {
  background-color: var(--clr-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

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

.card-header {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.card-content {
  padding: 1rem 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--clr-border);
  margin-top: 1rem;
}

/* =========================================
   FORMS & INPUTS
   ========================================= */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--clr-foreground);
}

.input, .textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background-color: var(--clr-background);
  color: var(--clr-foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(212, 64, 110, 0.2); /* D4406E transparent */
}

/* =========================================
   BADGES & PILLS
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: rgba(212, 64, 110, 0.1);
  color: var(--clr-primary);
  border: 1px solid rgba(212, 64, 110, 0.2);
}

.badge-accent {
  background-color: rgba(64, 212, 166, 0.1);
  color: #2a9d7a;
  border: 1px solid rgba(64, 212, 166, 0.2);
}


/*
      WordPress-Ready Structural Styles
      These classes map directly to standard WordPress architecture.
      Shared across index.html, archive.html, single.html
    */

    body {
      background-color: var(--clr-muted);
    }

    .site-header {
      padding: 1.25rem 0;
      border-bottom: 1px solid var(--clr-border);
      background-color: var(--clr-background);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .site-header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .site-branding h1 {
      margin: 0;
      color: var(--clr-primary);
      font-size: 1.85rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .site-branding h1 svg {
      width: 1rem;
      height: 1rem;
      fill: var(--clr-primary);
      opacity: 0.6;
    }

    .site-branding .custom-logo {
      max-width: 250px;
      height: auto;
      max-height: 80px;
      object-fit: contain;
      display: block;
    }

    .main-navigation {
      display: flex;
      align-items: center;
      /* removed gap: 2.5rem since buttons are out now */
    }

    .main-navigation ul {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
    }

    .main-navigation a {
      color: var(--clr-foreground);
      font-weight: 600;
      font-size: 0.95rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .main-navigation a:hover {
      color: var(--clr-primary);
      text-decoration: none;
    }

    /* Dropdown Indicator Icons */
    .main-navigation > ul > .menu-item-has-children > a::after {
      content: '';
      display: inline-block;
      width: 14px;
      height: 14px;
      background-color: currentColor;
      -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat center / contain;
      mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat center / contain;
      opacity: 0.7;
      transition: transform 0.2s ease, opacity 0.2s ease;
      margin-top: 2px;
    }
    
    .main-navigation > ul > .menu-item-has-children:hover > a::after,
    .main-navigation > ul > .menu-item-has-children:focus-within > a::after {
      transform: rotate(180deg);
      opacity: 1;
    }

    .main-navigation .sub-menu .menu-item-has-children > a::after {
      content: '';
      display: inline-block;
      width: 14px;
      height: 14px;
      background-color: currentColor;
      -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') no-repeat center / contain;
      mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') no-repeat center / contain;
      opacity: 0.7;
      margin-left: auto; /* Push arrow to the far right inside the dropdown */
    }

    /* Dropdown Menus - Premium Design */
    .main-navigation li {
      position: relative;
    }
    .main-navigation .sub-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(15px) scale(0.95);
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      min-width: 220px;
      padding: 12px;
      list-style: none;
      box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);
      border: 1px solid rgba(255,255,255,0.4);
      border-radius: 16px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    body.dark-mode .main-navigation .sub-menu {
      background: rgba(30, 30, 30, 0.95);
      box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.05);
    }
    .main-navigation li:hover > .sub-menu,
    .main-navigation li:focus-within > .sub-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(-50%) translateY(10px) scale(1);
    }
    /* Invisible bridge so hover doesn't break when moving mouse down */
    .main-navigation .sub-menu::before {
      content: '';
      position: absolute;
      top: -15px;
      left: 0;
      right: 0;
      height: 15px;
    }
    .main-navigation .sub-menu li {
      width: 100%;
    }
    .main-navigation .sub-menu a {
      display: flex;
      align-items: center;
      padding: 10px 16px;
      font-weight: 500;
      font-size: 0.9rem;
      color: var(--clr-foreground);
      border-radius: 10px;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .main-navigation .sub-menu a:hover {
      background: var(--clr-primary);
      color: #ffffff !important;
      transform: translateX(4px);
    }
    .main-navigation .sub-menu .sub-menu {
      top: 0;
      left: 100%;
      transform: translateX(10px) scale(0.95);
    }
    .main-navigation li:hover > .sub-menu > .sub-menu {
      transform: translateX(15px) scale(1);
    }
    .main-navigation .sub-menu .sub-menu::before {
      top: 0;
      left: -15px;
      right: auto;
      width: 15px;
      height: 100%;
    }
    
    .header-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .mobile-menu-toggle {
      background: transparent;
      border: none;
      color: var(--clr-foreground);
      width: 40px;
      height: 40px;
      border-radius: var(--radius-full);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      display: none;
    }
    
    .mobile-menu-toggle svg {
      width: 30px;
      height: 30px;
    }
    
    .mobile-menu-toggle .close-icon { display: none; }
    body.mobile-menu-open .mobile-menu-toggle .hamburger-icon { display: none; }
    body.mobile-menu-open .mobile-menu-toggle .close-icon { display: block; }

    .mobile-menu-toggle:hover {
      color: var(--clr-primary);
    }
    
    /* Mobile Menu Styles */
    @media (max-width: 991px) {
      .mobile-menu-toggle {
        display: flex;
      }
      .site-header {
        position: relative;
        z-index: 1000;
      }
      .site-header .main-navigation {
        position: absolute;
        top: calc(100% + 10px);
        left: 1rem;
        right: 1rem;
        background: var(--clr-background);
        border: 1px solid var(--clr-border);
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
      }
      body.mobile-menu-open .site-header .main-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }
      .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
      }
      .main-navigation a {
        padding: 0.85rem 0;
        font-size: 1.15rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
        justify-content: flex-start;
      }
      body.dark-mode .main-navigation a {
        border-bottom: 1px solid rgba(255,255,255,0.05);
      }
      .main-navigation > ul > .menu-item-has-children > a::after {
        margin-left: auto;
        width: 18px;
        height: 18px;
      }
      
      /* Mobile Sub-menus override (Accordion style) */
      .main-navigation .sub-menu,
      .main-navigation .sub-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0 0 0 1.5rem;
        display: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }
      body.dark-mode .main-navigation .sub-menu {
        box-shadow: none;
        border: none;
        background: transparent;
      }
      .main-navigation li:hover > .sub-menu,
      .main-navigation li:focus-within > .sub-menu {
        display: none; /* Disable hover on mobile */
      }
      .main-navigation li.mobile-open > .sub-menu {
        display: flex;
        transform: none !important;
      }
      .main-navigation > ul > .menu-item-has-children.mobile-open > a::after {
        transform: rotate(180deg);
      }
      .main-navigation .sub-menu a {
        border-bottom: none;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        font-weight: 400;
        color: var(--clr-muted-foreground);
      }
      body.dark-mode .main-navigation .sub-menu a {
        border-bottom: none;
      }
      .main-navigation .sub-menu a:hover {
        background: transparent;
        color: var(--clr-primary) !important;
        transform: none;
      }
      .main-navigation .sub-menu::before {
        display: none;
      }
    }

    .header-search-btn {
      width: 42px;
      height: 42px;
      border-radius: var(--radius-full);
      background-color: rgba(212, 64, 110, 0.08);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.2s;
    }

    .header-search-btn:hover {
      background-color: var(--clr-primary);
    }
    .header-search-btn:hover svg {
      stroke: white;
    }

    .header-search-btn svg {
      width: 18px;
      height: 18px;
      stroke: var(--clr-primary);
    }

    /* Layout: Main Content + Sidebar */
    .site-content {
      padding: 3rem 20px 4rem;
      gap: 3rem;
    }

    body.home .site-content,
    body.archive .site-content,
    body.search .site-content {
      max-width: 950px;
      margin: 0 auto;
    }

    body.single-layout-sidebar .site-content {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 400px;
      align-items: start;
      padding-left: 2rem;
      padding-right: 2rem;
    }

    @media (max-width: 768px) {
      body.single-layout-sidebar .site-content {
        grid-template-columns: 1fr;
      }
    }

    /* The Loop (Post List) */
    .post-area {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .post {
      position: relative;
    }

    .entry-thumbnail {
      position: relative;
    }

    .entry-thumbnail img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      display: block;
    }

    .entry-thumbnail .thumb-placeholder {
      width: 100%;
      height: 320px;
      background: linear-gradient(135deg, var(--clr-muted) 0%, #ece5e7 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--clr-muted-foreground);
      font-size: 0.9rem;
      letter-spacing: 0.05em;
    }

    .featured-flag {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background-color: var(--clr-primary);
      color: #fff;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0.4rem 0.9rem;
      border-radius: var(--radius-full);
      box-shadow: var(--shadow-md);
    }

    .card-content {
      padding: 1.75rem 2rem 1.5rem;
    }

    .entry-header {
      margin-bottom: 0.75rem;
    }

    .entry-meta {
      font-size: 0.85rem;
      color: var(--clr-muted-foreground);
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-wrap: wrap;
    }

    .entry-meta svg {
      width: 13px;
      height: 13px;
      stroke: var(--clr-muted-foreground);
      vertical-align: -2px;
      margin-right: 0.15rem;
    }

    .entry-meta .meta-dot {
      opacity: 0.5;
    }

    .entry-meta a {
      color: var(--clr-muted-foreground);
      font-weight: 600;
    }

    .entry-meta a:hover {
      color: var(--clr-primary);
    }

    .entry-title {
      margin-bottom: 0.65rem;
      font-size: 1.9rem;
      font-family: var(--font-sans);
      font-weight: 700;
      line-height: 1.25;
    }

    .entry-title a {
      color: var(--clr-foreground);
    }

    .entry-title a:hover {
      color: var(--clr-foreground);
      text-decoration: none;
    }

    .entry-title .accent-word {
      font-family: var(--font-heading);
      font-weight: 400;
      color: var(--clr-primary);
      font-size: 1.15em;
    }

    .entry-content p {
      color: var(--clr-muted-foreground);
      font-size: 0.95rem;
      margin-bottom: 0;
    }

    .entry-footer {
      margin-top: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .btn-icon-right {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-icon-right svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
    }

    .save-for-later {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--clr-muted-foreground);
    }

    .save-for-later svg {
      width: 15px;
      height: 15px;
      stroke: var(--clr-muted-foreground);
      fill: none;
    }

    .save-for-later:hover {
      color: var(--clr-primary);
      text-decoration: none;
    }

    .save-for-later:hover svg {
      stroke: var(--clr-primary);
    }

    /* Pagination */
    .pagination {
      display: flex;
      gap: 0.6rem;
      justify-content: center;
      margin-top: 1rem;
    }

    .pagination .btn {
      min-width: 44px;
      padding: 0.65rem 1rem;
    }

    /* Sidebar Widgets */
    .widget-area {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .widget {
      background-color: var(--clr-background);
      padding: 1.75rem;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
    }

    .widget-title {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      display: block;
    }

    .widget-title-rule {
      width: 2.5rem;
      height: 3px;
      border-radius: var(--radius-full);
      background-color: var(--clr-primary);
      margin-bottom: 1.25rem;
    }

    .search-form {
      display: flex;
      gap: 0.6rem;
    }

    .search-form .input {
      flex: 1;
    }

    .search-submit {
      width: 50px;
      flex-shrink: 0;
      padding: 0;
      border-radius: var(--radius-md);
    }

    .search-submit svg {
      width: 16px;
      height: 16px;
      stroke: #fff;
      fill: none;
    }

    /* Category Widget */
    .widget_categories ul {
      list-style: none;
    }

    .widget_categories li {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      padding: 0.7rem 0;
      border-bottom: 1px solid var(--clr-border);
    }

    .widget_categories li:last-of-type {
      border-bottom: none;
      padding-bottom: 0.25rem;
    }

    .cat-icon {
      width: 36px;
      height: 36px;
      border-radius: var(--radius-full);
      background-color: rgba(212, 64, 110, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .cat-icon svg {
      width: 16px;
      height: 16px;
      stroke: var(--clr-primary);
      fill: none;
    }

    .widget_categories a {
      color: var(--clr-foreground);
      font-weight: 600;
      font-size: 0.95rem;
      flex: 1;
    }

    .widget_categories a:hover {
      color: var(--clr-primary);
      text-decoration: none;
    }

    .cat-count {
      background-color: var(--clr-muted);
      color: var(--clr-muted-foreground);
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.2rem 0.65rem;
      border-radius: var(--radius-full);
    }

    .widget-view-all {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      margin-top: 1rem;
      font-weight: 600;
      font-size: 0.9rem;
    }

    .widget-view-all svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
      fill: none;
    }

    .widget-view-all:hover {
      text-decoration: none;
    }

    /* Recent Posts Widget */
    .widget_recent_entries ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .widget_recent_entries li {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .recent-thumb {
      width: 56px;
      height: 56px;
      border-radius: var(--radius-md);
      object-fit: cover;
      flex-shrink: 0;
    }

    .recent-thumb-placeholder {
      width: 56px;
      height: 56px;
      border-radius: var(--radius-md);
      background-color: var(--clr-muted);
      flex-shrink: 0;
    }

    .widget_recent_entries a {
      color: var(--clr-foreground);
      font-weight: 600;
      font-size: 0.9rem;
      line-height: 1.35;
    }

    .widget_recent_entries a:hover {
      color: var(--clr-primary);
      text-decoration: none;
    }

    /* Newsletter Widget */
    .widget-newsletter {
      position: relative;
      background-color: #fdf1f4;
      overflow: hidden;
      padding: 1.75rem;
    }

    .widget-newsletter .newsletter-decor {
      position: absolute;
      right: -1.5rem;
      bottom: -1.5rem;
      width: 140px;
      height: 140px;
      opacity: 0.5;
      pointer-events: none;
    }

    .widget-newsletter-title {
      font-size: 1.5rem;
      line-height: 1.25;
      margin-bottom: 0.75rem;
      position: relative;
      z-index: 1;
    }

    .widget-newsletter-title .accent-word {
      font-family: var(--font-heading);
      font-weight: 400;
      color: var(--clr-primary);
    }

    .widget-newsletter p {
      font-size: 0.9rem;
      color: var(--clr-muted-foreground);
      margin-bottom: 1.25rem;
      position: relative;
      z-index: 1;
      max-width: 80%;
    }

    .widget-newsletter .form-group {
      position: relative;
      z-index: 1;
      margin-bottom: 0.75rem;
    }

    .newsletter-submit {
      position: relative;
      z-index: 1;
      width: 100%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .newsletter-submit svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
    }

    /* Footer */
    .site-footer {
      position: relative;
      background-color: var(--clr-foreground);
      color: var(--clr-background);
      padding: 3rem 0;
      text-align: center;
      overflow: hidden;
    }

    .footer-decor {
      position: absolute;
      right: -2rem;
      bottom: -2rem;
      width: 220px;
      height: 220px;
      opacity: 0.08;
      pointer-events: none;
    }

    .footer-brand {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: #fff;
      font-size: 1.75rem;
      margin-bottom: 1.25rem;
      position: relative;
      z-index: 1;
    }

    .footer-brand svg {
      width: 1rem;
      height: 1rem;
      fill: var(--clr-primary);
    }

    .footer-social {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
      position: relative;
      z-index: 1;
    }

    .footer-social a {
      width: 38px;
      height: 38px;
      border-radius: var(--radius-full);
      background-color: rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .footer-social a:hover {
      background-color: var(--clr-primary);
      text-decoration: none;
    }

    .footer-social svg {
      width: 16px;
      height: 16px;
      stroke: #fff;
      fill: none;
    }

    .site-footer .copyright {
      color: #999;
      font-size: 0.85rem;
      position: relative;
      z-index: 1;
    }


/* WordPress Generated Classes */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float:right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: #eee; clip: auto !important; clip-path: none; color: #444; display: block; font-size: 1em; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }

/* Premium Features: Top Bar & Dark Mode */
.top-bar {
  background-color: var(--clr-primary);
  color: #fff;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* Hero Slider / Grid */
.hero-slider-section {
  margin: 2rem auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  height: 500px;
}
.hero-post {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}
.hero-post:first-child {
  grid-row: span 2;
}
.hero-post .entry-thumbnail, .hero-post .entry-thumbnail a, .hero-post img {
  height: 100%;
  width: 100%;
  display: block;
}
.hero-post img {
  object-fit: cover;
}
.hero-post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: #fff;
  z-index: 2;
}
.hero-post-content .entry-title {
  margin: 0.5rem 0 0 0;
}
.hero-post-content .entry-title a {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1.2;
}
.hero-post:first-child .hero-post-content .entry-title a {
  font-size: 2.25rem;
}
.hero-post-content .badge {
  background-color: var(--clr-primary);
  color: #fff;
}
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .hero-post {
    height: 300px;
  }
}

.header-ad-zone {
  margin: 0 1.5rem;
  flex: 1;
  text-align: center;
}

/* Dark Mode Variables & Overrides */
body.dark-mode {
  --clr-background: #121212;
  --clr-foreground: #f0f0f0;
  --clr-muted: #1e1e1e;
  --clr-muted-foreground: #a0a0a0;
  --clr-border: #333333;
}
body.dark-mode .post,
body.dark-mode .widget,
body.dark-mode .site-header {
  background-color: var(--clr-background);
}
body.dark-mode .header-search-btn svg,
body.dark-mode .main-navigation a {
  color: var(--clr-foreground);
  stroke: var(--clr-foreground);
}

/* ==========================================================================
   Phase 2: Layout Overrides & Premium Effects
   ========================================================================== */

/* Archive Layouts */
.archive-layout-classic .post-area {
    display: block;
}
.archive-layout-classic .card-premium {
    margin-bottom: 2rem;
}

.archive-layout-masonry .post-area {
    display: block;
    column-count: 2;
    column-gap: 1.5rem;
}
@media (max-width: 768px) {
    .archive-layout-masonry .post-area { column-count: 1; }
}
.archive-layout-masonry .card-premium {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
}

.archive-layout-magazine .post-area article:first-child {
    grid-column: 1 / -1;
}
@media (min-width: 769px) {
	.archive-layout-magazine .post-area article:first-child .entry-thumbnail {
		float: left;
		width: 50%;
		margin-right: 2rem;
		height: 100%;
	}
	.archive-layout-magazine .post-area article:first-child .entry-thumbnail img {
		height: 100%;
		object-fit: cover;
	}
}

/* Image Ratios */
.image-ratio-16-9 .entry-thumbnail img { aspect-ratio: 16/9; object-fit: cover; }
.image-ratio-4-3 .entry-thumbnail img { aspect-ratio: 4/3; object-fit: cover; }
.image-ratio-1-1 .entry-thumbnail img { aspect-ratio: 1/1; object-fit: cover; }

/* Card Hover Effects */
.card-hover-lift .card-premium { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover-lift .card-premium:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.card-hover-zoom .card-premium .entry-thumbnail { overflow: hidden; }
.card-hover-zoom .card-premium .entry-thumbnail img { transition: transform 0.4s ease; }
.card-hover-zoom .card-premium:hover .entry-thumbnail img { transform: scale(1.05); }

.card-hover-glow .card-premium { transition: box-shadow 0.3s ease; }
.card-hover-glow .card-premium:hover { box-shadow: 0 0 20px var(--clr-primary); }

/* Single Post Layouts */
.single-layout-centered .site-content {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}
.single-layout-centered #secondary {
    display: none;
}
.single-layout-fullwidth .site-content {
    display: block;
    max-width: 100%;
}
.single-layout-fullwidth #secondary {
    display: none;
}

/* ==========================================================================
   Phase 3: Reading Mode
   ========================================================================== */
body.reading-mode-active {
    background-color: var(--rm-bg, #ffffff);
    color: var(--rm-text, #333333);
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.reading-mode-active .site-header,
body.reading-mode-active .site-footer,
body.reading-mode-active #secondary,
body.reading-mode-active .related-posts,
body.reading-mode-active .comments-area,
body.reading-mode-active .post-navigation,
body.reading-mode-active .header-ad-zone,
body.reading-mode-active .in-article-ad {
    display: none !important;
}
body.reading-mode-active .site-content {
    max-width: var(--rm-width, 800px);
    margin: 0 auto;
    padding-top: 4rem;
}
body.reading-mode-active .entry-content p {
    font-size: var(--rm-fontsize, 18px);
    line-height: var(--rm-lineheight, 1.8);
    font-family: var(--rm-font, var(--font-body));
    transition: all 0.3s ease;
}

/* Reading Mode Toolbar */
.reading-mode-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
body.reading-mode-active .reading-mode-toolbar {
    transform: translateY(0);
}
.reading-mode-toolbar select, .reading-mode-toolbar button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.rm-theme-sepia { background: #f4ecd8 !important; }
.rm-theme-dark { background: #1a1a1a !important; color: #fff !important; }

/* Entry Header Reading Mode Button */
.btn-reading-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f1;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
}
.btn-reading-mode:hover {
    background: #e2e4e7;
}
/* ==========================================================================
 * SINGLE POST & COMMENT REFINEMENTS
 * ========================================================================== */

.single-post.card-premium {
    padding: 0;
    overflow: hidden;
}

.single-post .entry-thumbnail {
    margin: 0;
    width: 100%;
}

.single-post .entry-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.single-post .card-content {
    padding: 2rem;
}

@media (min-width: 768px) {
    .single-post .card-content {
        padding: 2rem 3rem;
    }
}

.single-post .entry-title {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--clr-foreground);
    margin-top: 1.5rem;
}

.single-post .entry-meta {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--clr-muted-foreground);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.single-post .btn-reading-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--clr-muted);
    color: var(--clr-foreground);
    border: 1px solid var(--clr-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
    margin-bottom: 0;
}

.single-post .btn-reading-mode:hover {
    background: #e2e2e2;
}

/* Reactions */
.celebrella-reactions h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Author Box */
.author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--clr-muted);
    border-radius: var(--radius-md);
    margin: 3rem 0;
}
@media (min-width: 768px) {
    .author-box {
        flex-direction: row;
        text-align: left;
    }
}

.author-box .author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-box h4.author-name {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 1.25rem;
}

.author-box .author-bio {
    margin: 0;
    color: var(--clr-muted-foreground);
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
}
@media (min-width: 768px) {
    .post-navigation {
        flex-direction: row;
        justify-content: space-between;
    }
}

.post-navigation .nav-previous, .post-navigation .nav-next {
    flex: 1;
}

@media (min-width: 768px) {
    .post-navigation .nav-next {
        text-align: right;
    }
}

.post-navigation .nav-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-muted-foreground);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.post-navigation .nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
    display: block;
}

.post-navigation .nav-title:hover {
    text-decoration: underline;
}

/* Comment Box Fixes */
#comments {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--clr-border);
}

.comments-title, .comment-reply-title {
    font-family: var(--font-heading) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
}

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

.comment-list .comment {
    margin-bottom: 2rem;
}

.comment-body {
    background: var(--clr-muted);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.comment-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--clr-muted-foreground);
    display: flex;
    align-items: center;
}

.comment-meta img.avatar {
    border-radius: 50%;
    margin-right: 15px;
    vertical-align: middle;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-muted-foreground);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--clr-background);
    color: var(--clr-foreground);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    align-self: flex-start;
    font-size: 1rem;
    margin-top: 1rem;
}

.comment-form .submit:hover {
    opacity: 0.9;
}
/* ==========================================================================
 * POST CONTENT TYPOGRAPHY & FORMATTING
 * ========================================================================== */

.entry-content {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    color: var(--clr-foreground);
    font-family: var(--font-sans);
    margin: 30px 0;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Pacifico', cursive !important;
    color: var(--clr-foreground);
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 1.75rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em 0;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: var(--clr-muted);
    border-left: 4px solid var(--clr-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--clr-muted-foreground);
    line-height: 1.6;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content a {
    color: var(--clr-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-color: rgba(212, 64, 110, 0.3); /* Uses primary color partially transparent */
    transition: text-decoration-color 0.2s, color 0.2s;
}

.entry-content a:hover {
    color: var(--clr-primary-hover);
    text-decoration-color: var(--clr-primary-hover);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2em 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.entry-content figure {
    margin: 2em 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--clr-muted-foreground);
    margin-top: 0.5em;
    font-style: italic;
}

.entry-content pre {
    background: #1a1a1a;
    color: #f1f1f1;
    padding: 1.5em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    line-height: 1.5;
}

.entry-content code {
    background: var(--clr-muted);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
    color: var(--clr-secondary);
}

.entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ==========================================================================
 * AGGRESSIVE COMMENT BOX OVERRIDES
 * ========================================================================== */

.comments-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#comments h2, 
#comments h3, 
.comments-title, 
.comment-reply-title {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--clr-foreground) !important;
    margin-bottom: 2rem !important;
    letter-spacing: normal !important;
}

ol.comment-list,
ol.comment-list .children {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

ol.comment-list .children {
    padding-left: 2rem !important;
    border-left: 2px solid var(--clr-border) !important;
    margin-top: 1rem !important;
}

ol.comment-list li {
    list-style: none !important;
}

.comment-body {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 2rem !important;
}

.comment-author {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 700 !important;
    color: var(--clr-foreground) !important;
    font-size: 1.1rem;
}

.comment-author .avatar {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    margin-right: 0 !important;
}

.comment-author .fn a {
    color: var(--clr-foreground) !important;
    text-decoration: none !important;
}

.comment-author .says {
    display: none !important;
}

.comment-meta {
    font-size: 0.85rem !important;
    margin-bottom: 1.5rem !important;
}

.comment-meta a {
    color: var(--clr-muted-foreground) !important;
    text-decoration: none !important;
}

.comment-content {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: var(--clr-foreground) !important;
    margin-bottom: 1.5rem !important;
}

.comment-content p {
    margin-bottom: 1rem !important;
}

.comment-content p:last-child {
    margin-bottom: 0 !important;
}

.reply a {
    display: inline-block !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--clr-muted-foreground) !important;
    text-decoration: none !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    transition: all 0.2s !important;
}

.reply a:hover {
    color: var(--clr-primary) !important;
    background: transparent !important;
}

/* Fix "Logged in as" text */
.logged-in-as, .comment-notes {
    font-family: var(--font-sans) !important;
    font-size: 0.9rem !important;
    color: var(--clr-muted-foreground) !important;
    margin-bottom: 1.5rem !important;
}

.logged-in-as a {
    color: var(--clr-primary) !important;
    text-decoration: underline !important;
}

/* Adjust form */
#commentform {
    background: #ffffff !important;
    padding: 2.5rem !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--clr-border) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}

#commentform label {
    font-family: var(--font-sans) !important;
}

.comment-form-comment label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    color: var(--clr-foreground) !important;
}

/* ==========================================================================
 * SINGLE POST REDESIGN (BASED ON MOCKUP)
 * ========================================================================== */

.single-category-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(212, 64, 110, 0.1);
    color: var(--clr-primary);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.single-title-premium {
    font-family: var(--font-heading) !important;
    font-size: 3.5rem !important;
    color: var(--clr-foreground);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.single-meta-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--clr-muted-foreground);
    font-family: var(--font-sans);
}

.single-meta-premium a {
    color: var(--clr-foreground);
    font-weight: 600;
    text-decoration: none;
}

/* Redesign Card */
.single-post.new-design-card {
    background: #ffffff;
    border: 1px solid #eaeaea !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important; /* Very soft shadow */
    overflow: hidden;
    margin-bottom: 3rem;
}

.card-content.new-design-content {
    padding: 2rem 3rem !important;
}

@media (max-width: 768px) {
    .card-content.new-design-content {
        padding: 2rem !important;
    }
    .single-title-premium {
        font-size: 2.5rem !important;
    }
}

.new-design-thumb img {
    border-radius: 24px 24px 0 0;
    width: 100%;
    height: auto;
    display: block;
}

/* Redesign Blockquote to match Mint-Green mockup */
.entry-content blockquote {
    margin: 3rem 0 !important;
    padding: 2rem !important;
    background-color: #f2fcf7 !important; /* Pale mint */
    border: 1px solid #d4f3e6 !important;
    border-radius: 12px !important;
    font-size: 1.15rem !important;
    font-style: normal !important;
    color: var(--clr-foreground) !important;
    position: relative;
    border-left: 1px solid #d4f3e6 !important; /* override previous left border */
}

.entry-content blockquote::before {
    content: "✨";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #d4f3e6;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Force body background to be light if not already */
body {
    background-color: #ffffff !important;
}

/* ==========================================================================
 * HOME PAGE FEED REDESIGN (VENDOR CARDS)
 * ========================================================================== */

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feed-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #1a1a1a;
}

.feed-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.feed-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.feed-card-link:hover .feed-card-bg {
    transform: scale(1.05);
}

.feed-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.feed-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.feed-card-badge span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.badge-featured {
    background-color: rgba(30,30,30,0.6);
    backdrop-filter: blur(5px);
}

.badge-category {
    background-color: var(--clr-primary);
    box-shadow: 0 2px 10px rgba(212, 64, 110, 0.3);
}

.feed-card-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.feed-card-tags {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-sans);
}

.feed-card-title {
    color: #fff !important;
    font-family: var(--font-sans) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.feed-card-category {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-sans);
}

.feed-card-excerpt {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-sans);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .feed-grid,
    .feed-grid.feed-grid-cols-2,
    .feed-grid.feed-grid-cols-3,
    .feed-grid.feed-grid-cols-4 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
}

/* ==========================================================================
 * THEME OPTIONS CSS (HEADER & GRID)
 * ========================================================================== */

/* Grid Columns */
.feed-grid.feed-grid-cols-2 { grid-template-columns: repeat(auto-fill, minmax(calc(50% - 1.5rem), 1fr)); }
.feed-grid.feed-grid-cols-3 { grid-template-columns: repeat(auto-fill, minmax(calc(33.333% - 1.5rem), 1fr)); }
.feed-grid.feed-grid-cols-4 { grid-template-columns: repeat(auto-fill, minmax(calc(25% - 1.5rem), 1fr)); }

/* Header Styles */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--clr-background);
}

.header-style-transparent {
    background-color: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 100;
    box-shadow: none !important;
}

.header-style-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Search Modal */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.search-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-foreground);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.search-modal-close svg {
    width: 24px;
    height: 24px;
}

.search-modal-close:hover {
    transform: scale(1.1);
}

.search-modal-content {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-modal-overlay.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--clr-primary);
}

/* Style the native WP Search Form */
.search-modal-content .search-form {
    width: 100%;
}

.search-modal-content .search-input-wrapper {
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 50px;
    width: 100%;
    margin: 0 auto;
}

.search-modal-content .search-field {
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 2rem;
    padding-right: 120px; /* Make room for the search button */
    font-size: 1.5rem;
    border: 2px solid var(--clr-primary);
    border-radius: 50px;
    outline: none;
    font-family: var(--font-sans);
}

.search-modal-content .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 80px;
    border-radius: 40px;
    background-color: var(--clr-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-modal-content .search-submit:hover {
    background-color: #b52c5c;
}

/* ==========================================================================
   New Single Post Card Design
   ========================================================================== */
.single-post-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 3rem 4rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .single-post-card {
        padding: 2rem 1.5rem;
    }
}

.single-post-header {
    margin-bottom: 2.5rem;
}

.single-category-badge {
    display: inline-flex;
    align-items: center;
    background: var(--clr-surface);
    color: var(--clr-primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.single-title-premium {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--clr-foreground);
}

.single-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.single-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--clr-muted);
}
.single-meta-left a {
    color: var(--clr-foreground);
    text-decoration: none;
}
.single-meta-left a:hover {
    color: var(--clr-primary);
}
.meta-avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.single-meta-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-share-buttons {
    display: flex;
    gap: 0.5rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f4f4;
    color: #555;
    transition: all 0.2s ease;
}
.share-btn:hover {
    background: var(--clr-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Featured Image */
.single-featured-image {
    position: relative;
    margin-bottom: 3rem;
}
.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}
.expand-image-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--clr-primary);
    transition: transform 0.2s ease;
}
.expand-image-btn:hover {
    transform: scale(1.1);
}

/* Typography Tweaks inside card */
.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 0 2rem;
    max-width: 860px;
    margin: 0 auto;
}
.single-post-content p {
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .single-post-content {
        padding: 0;
    }
}
.single-post-content a {
    color: var(--clr-primary);
    text-decoration: none;
}
.single-post-content a:hover {
    text-decoration: underline;
}

/* Tags */
.new-design-tags {
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.new-design-tags .badge-accent {
    background: var(--clr-surface);
    color: var(--clr-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.new-design-tags .badge-accent:hover {
    background: var(--clr-primary);
    color: #fff;
}

/* Reactions Section */
.new-design-reactions {
    background: #FBEFF2;
    border: 1px solid var(--clr-primary);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.reactions-header {
    margin-bottom: 2rem;
}
.reaction-heart-icon {
    margin-bottom: 1rem;
}
.reactions-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--clr-foreground);
}
.reactions-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.reaction-btn-new {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--clr-foreground);
}
.reaction-btn-new:hover, .reaction-btn-new.reacted {
    border-color: var(--clr-primary);
    box-shadow: 0 4px 12px rgba(224,36,94,0.1);
}
.reaction-count {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Author Box */
.new-design-author {
    background: var(--clr-surface);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
.new-design-author .author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}
.new-design-author .author-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.new-design-author .author-bio {
    font-size: 0.95rem;
    color: var(--clr-muted);
    margin-bottom: 1rem;
}
.author-socials {
    display: flex;
    gap: 0.8rem;
}
.author-socials a {
    color: var(--clr-foreground);
    transition: color 0.2s;
}
.author-socials a:hover {
    color: var(--clr-primary);
}

/* Post Navigation */
.new-design-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 3rem;
}
.new-design-nav .nav-previous,
.new-design-nav .nav-next {
    flex: 1;
}
.new-design-nav .nav-next {
    text-align: right;
}
.new-design-nav .nav-subtitle {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.new-design-nav .nav-next .nav-subtitle {
    justify-content: flex-end;
}
.new-design-nav .nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
    line-height: 1.4;
}
.new-design-nav .nav-title:hover {
    text-decoration: underline;
}

/* ==========================================================================
   New Sidebar Widget Design
   ========================================================================== */
#secondary .widget {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

#secondary .widget-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--clr-foreground);
    text-align: center;
    margin-bottom: 0.5rem;
}

.widget-title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.widget-title-separator .line {
    height: 2px;
    width: 20px;
    background: var(--clr-primary);
    border-radius: 2px;
}

/* Sidebar Search Widget */
#secondary .widget_search .search-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
#secondary .widget_search input[type="search"] {
    flex: 1;
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 1rem center;
    background-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
}
#secondary .widget_search input[type="search"]:focus {
    border-color: var(--clr-primary);
}
#secondary .widget_search button {
    position: static;
    flex-shrink: 0;
    width: 56px;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
#secondary .widget_search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Recent Posts Widget */
#secondary .widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#secondary .widget_recent_entries ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
#secondary .widget_recent_entries ul li:last-child {
    margin-bottom: 0;
}
#secondary .widget_recent_entries ul li a {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--clr-foreground);
    text-decoration: none;
}
#secondary .widget_recent_entries ul li a:hover {
    color: var(--clr-primary);
}
/* We don't have thumbnails in default recent entries, but we'll add a CSS placeholder box for now to mimic the design */
#secondary .widget_recent_entries ul li::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--clr-surface);
    border-radius: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23e0e0e0" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24"/></svg>');
    background-size: cover;
}

/* Recent Comments Widget */
#secondary .widget_recent_comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#secondary .widget_recent_comments ul li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
#secondary .widget_recent_comments ul li:last-child {
    margin-bottom: 0;
}
#secondary .widget_recent_comments ul li::before {
    content: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="%23E0245E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>');
    display: block;
    flex-shrink: 0;
    margin-top: 3px;
}
#secondary .widget_recent_comments a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Archives & Categories */
#secondary .widget_archive ul,
#secondary .widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#secondary .widget_archive ul li,
#secondary .widget_categories ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
#secondary .widget_archive ul li::before {
    content: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="%23E0245E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    display: flex;
    align-items: center;
}
#secondary .widget_categories ul li::before {
    content: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="%23E0245E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>');
    display: flex;
    align-items: center;
}
#secondary .widget_archive ul li a,
#secondary .widget_categories ul li a {
    color: var(--clr-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Newsletter Custom Widget */
.widget_celebrella_newsletter {
    position: relative;
    overflow: hidden;
}
.widget_celebrella_newsletter {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}
.newsletter-card {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 48px 56px 44px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-sizing: border-box;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}
.newsletter-card * {
    box-sizing: border-box;
}

/* decorative corner */
.leaf-corner {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    opacity: 0.9;
    transform: rotate(8deg);
    pointer-events: none;
}

.speck {
    position: absolute;
    border-radius: 50%;
    background: var(--clr-primary);
    opacity: 0.35;
}
.speck.s1 { width: 6px; height: 6px; top: 40px; left: 30px; }
.speck.s2 { width: 4px; height: 4px; top: 90px; left: 60px; background: var(--clr-foreground); opacity: 0.1; }
.speck.s3 { width: 5px; height: 5px; bottom: 120px; left: 20px; opacity: 0.3; }

.newsletter-card .eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--clr-primary);
    opacity: 0.5;
}

.newsletter-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--clr-foreground);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-align: center;
}
.newsletter-card-title .accent {
    color: var(--clr-primary);
    position: relative;
}

.newsletter-card-sub {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--clr-muted);
    max-width: 600px;
    margin-bottom: 32px;
}
.newsletter-card-sub b {
    font-weight: 600;
    color: var(--clr-foreground);
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.field input {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 20px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--clr-foreground);
    background: #ffffff;
    border: 1.5px solid var(--clr-border);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    height: 60px;
}

.field input::placeholder {
    color: #b9a8ad;
    font-weight: 400;
}

.field input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03);
}

.field input.invalid {
    border-color: #d65a5a;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.error-msg {
    position: absolute;
    left: 4px;
    top: 100%;
    font-size: 12.5px;
    color: #c0455a;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}
.error-msg.show {
    opacity: 1;
    transform: translateY(0);
}

button.submit.newsletter-submit {
    position: relative;
    margin-top: 0;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 30px;
    border: none;
    border-radius: 14px;
    background: var(--clr-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 60px;
    box-sizing: border-box;
}

button.submit.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(0,0,0,0.3);
}
button.submit.newsletter-submit:active {
    transform: translateY(0px) scale(0.99);
}

button.submit.newsletter-submit .arrow {
    transition: transform 0.3s ease;
}
button.submit.newsletter-submit:hover .arrow {
    transform: translateX(4px) translateY(-2px);
}

button.submit.newsletter-submit .btn-label,
button.submit.newsletter-submit .btn-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease;
}
button.submit.newsletter-submit .btn-spinner {
    display: none;
}
button.submit.newsletter-submit.loading .btn-label { opacity: 0; position: absolute; }
button.submit.newsletter-submit.loading .btn-spinner { display: flex; opacity: 1; }

.spinner-ring {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.trust-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--clr-foreground);
    opacity: 0.7;
}
.avatars {
    display: flex;
}
.avatars span {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    display: inline-block;
    background: linear-gradient(135deg, #e8c2a0, #d99fa8);
}
.newsletter-card .avatars span:first-child { margin-left: 0; }
.newsletter-card .avatars span:nth-child(2) { background: linear-gradient(135deg, #a8c2b0, #7fa88e); }
.newsletter-card .avatars span:nth-child(3) { background: linear-gradient(135deg, #c2a8d0, #9f7fc4); }

/* Error/message paragraph */
.newsletter-card .newsletter-message {
    margin-top: 12px;
    font-size: 0.875rem;
}

/* ================================================
   SUCCESS OVERLAY
   ================================================ */
.newsletter-card .success-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
    border-radius: 28px;
}
.newsletter-card .success-view.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.newsletter-card .stamp-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px -8px rgba(212, 64, 110, 0.4);
    transform: scale(0);
}
.newsletter-card .success-view.active .stamp-wrap {
    animation: nl-popIn 0.6s cubic-bezier(.34,1.56,.64,1) 0.15s forwards;
}
@keyframes nl-popIn { to { transform: scale(1); } }

.newsletter-card .stamp-wrap svg { width: 40px; height: 40px; }

.newsletter-card .check-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}
.newsletter-card .success-view.active .check-path {
    animation: nl-drawCheck 0.5s ease 0.55s forwards;
}
@keyframes nl-drawCheck { to { stroke-dashoffset: 0; } }

.newsletter-card .success-view .success-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-foreground);
    margin: 0 0 8px 0;
    opacity: 0;
    transform: translateY(10px);
}
.newsletter-card .success-view .success-desc {
    font-size: 1rem;
    color: #777;
    max-width: 320px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    margin: 0;
}
.newsletter-card .success-view .success-name {
    color: var(--clr-primary);
    font-weight: 600;
}
.newsletter-card .success-view.active .success-title {
    animation: nl-fadeUp 0.5s ease 0.5s forwards;
}
.newsletter-card .success-view.active .success-desc {
    animation: nl-fadeUp 0.5s ease 0.65s forwards;
}
@keyframes nl-fadeUp { to { opacity: 1; transform: translateY(0); } }

.newsletter-card .confetti-piece {
    position: absolute;
    top: 40%;
    left: 50%;
    opacity: 0;
    border-radius: 2px;
    z-index: 11;
    pointer-events: none;
}
.newsletter-card .success-view.active .confetti-piece {
    animation: nl-confetti 1.1s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes nl-confetti {
    0% { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(0.4); }
}

/* Subtitle */
.newsletter-card .newsletter-card-sub {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-foreground);
    max-width: 100%;
    margin: 0 0 28px 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}

.newsletter-card .reset-link {
    margin-top: 22px;
    font-size: 13px;
    color: #aaa;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}
.newsletter-card .success-view.active .reset-link {
    animation: nl-fadeUp 0.5s ease 0.85s forwards;
}


/* Desktop — enforce horizontal layout */
@media (min-width: 681px) {
    .newsletter-card .newsletter-form {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .newsletter-card .field {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }
    .newsletter-card .field input[type="text"],
    .newsletter-card .field input[type="email"] {
        width: 100% !important;
        min-width: 0 !important;
    }
    .newsletter-card .newsletter-submit {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 160px !important;
    }
}

/* Sidebar — always stack vertically since it's narrow */
.sidebar-newsletter-wrap .newsletter-card {
    padding: 32px 28px;
    box-shadow: none;
}
.sidebar-newsletter-wrap .newsletter-card .newsletter-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
}
.sidebar-newsletter-wrap .newsletter-card .field {
    width: 100% !important;
}
.sidebar-newsletter-wrap .newsletter-card .newsletter-submit {
    width: 100% !important;
    justify-content: center !important;
}
.sidebar-newsletter-wrap .newsletter-card .newsletter-card-title {
    font-size: 1.5rem !important;
}

/* Mobile — stack vertically */
@media (max-width: 680px) {
    .newsletter-card { padding: 32px 24px; }
    .newsletter-card .newsletter-card-title { font-size: 1.6rem !important; }
    .newsletter-card .newsletter-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .newsletter-card .field {
        width: 100% !important;
    }
    .newsletter-card .newsletter-submit {
        width: 100% !important;
        justify-content: center !important;
    }
    .newsletter-card .error-msg {
        position: static;
        white-space: normal;
        margin-top: 4px;
        transform: none;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: opacity 0.2s ease, height 0.2s ease;
    }
    .newsletter-card .error-msg.show {
        opacity: 1;
        height: auto;
    }
}
