/* 
  ========================================================================
  CERTWAY.GR REDESIGN - PREMIUM CONSULTING STYLE SYSTEM (ROLAND BERGER INSPIRED)
  ========================================================================
  Typography: Lora (Editorial Serif) & Inter (Modern Sans-Serif)
  Color Palette: Titanium Charcoal, Clean Platinum, Emerald Teal, Consulting Gold
  ========================================================================
*/

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

:root {
  /* Colors */
  --color-titanium-dark: #0f172a;     /* Deep titanium grey */
  --color-titanium-charcoal: #1e293b; /* Charcoal body elements */
  --color-platinum-light: #f8fafc;    /* Clean, premium background canvas */
  --color-platinum-mid: #f1f5f9;      /* Segment separations */
  --color-accent-teal: #0d9488;       /* Primary emerald teal accent */
  --color-accent-teal-glow: rgba(13, 148, 136, 0.1);
  --color-accent-teal-hover: #0f766e;
  --color-accent-gold: #b45309;       /* Editorial highlights & warnings */
  --color-accent-gold-glow: rgba(180, 83, 9, 0.08);
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Text colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #f8fafc;
  
  /* Shadows & Borders */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-accent: rgba(13, 148, 136, 0.2);
  --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 20px 40px -15px rgba(13, 148, 136, 0.08), 0 1px 5px rgba(15, 23, 42, 0.03);
  --shadow-modal: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
  
  /* Layout constraints */
  --max-width: 1400px;
  --header-height: 80px;
  
  /* Fonts */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* System transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-platinum-light);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Selection aesthetics */
::selection {
  background-color: var(--color-accent-teal);
  color: var(--color-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-platinum-mid);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-teal);
}

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */
h1, h2, h3, h4, .serif-display {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Premium Editorial Headings */
.editorial-title {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.editorial-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent-teal);
  transition: var(--transition-smooth);
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-teal);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

/* ========================================================================
   LAYOUT & CONTAINER ARCHITECTURE
   ======================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Roland Berger Style Structural Blueprint Lines */
.grid-lines {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 100vh;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05;
  padding: 0 2.5rem;
}

.grid-line {
  width: 1px;
  height: 100%;
  background-color: var(--text-primary);
}

/* Global Sections */
section {
  padding: 8rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

/* ========================================================================
   HEADER & NAVIGATION SYSTEM
   ======================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(248, 250, 252, 0.85); /* Premium glassmorphism */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header.scrolled .nav-link {
  color: var(--text-light);
}

.header.scrolled .nav-link:hover {
  color: var(--color-accent-teal);
}

.header.scrolled .logo-text {
  color: var(--color-white);
}

.header.scrolled .logo-badge {
  background: var(--color-white);
  color: var(--color-titanium-dark);
}

.header.scrolled .lang-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.header.scrolled .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Brand Logo (Roland Berger Bold Minimalist Accent Logo) */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--color-titanium-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.logo:hover .logo-badge {
  background: var(--color-accent-teal);
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-text span {
  color: var(--color-accent-teal);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-teal);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-accent-teal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-accent-teal);
}

.nav-link.active::after {
  width: 100%;
}

/* Actions Menu */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Toggle Button */
.lang-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: var(--color-platinum-mid);
  border-color: var(--text-muted);
}

/* Responsive Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

.header.scrolled .menu-toggle span {
  background-color: var(--text-light);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
}

/* ========================================================================
   BUTTON ARCHITECTURE (Micro-Animations & Slide-overs)
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent-teal);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.btn-primary:hover {
  background-color: var(--color-accent-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--color-titanium-dark);
  color: var(--color-white);
  border-color: var(--color-titanium-dark);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  color: var(--color-accent-teal);
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent-teal);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.btn-text:hover {
  color: var(--color-accent-teal-hover);
}

.btn-text:hover::after {
  transform: scaleX(1);
}

.btn svg {
  transition: var(--transition-smooth);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  min-height: 90vh;
  padding-top: calc(var(--header-height) + 3rem);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-platinum-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-accent-teal-glow);
  color: var(--color-accent-teal);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 2rem;
  color: var(--color-titanium-dark);
}

.hero h1 span {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent-teal);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Hero Data Counter Pane */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-metrics-card {
  width: 100%;
  background: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero-metrics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-gold));
}

.metric-item {
  margin-bottom: 2.5rem;
}

.metric-item:last-child {
  margin-bottom: 0;
}

.metric-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-titanium-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.metric-num span {
  color: var(--color-accent-teal);
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ========================================================================
   SERVICES SECTION (The 13 Consulting Grid)
   ======================================================================== */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .services-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: var(--transition-smooth);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-accent-teal);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.service-card:hover::after {
  width: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background-color: var(--color-accent-teal-glow);
  color: var(--color-accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background-color: var(--color-accent-teal);
  color: var(--color-white);
}

.service-badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  background-color: var(--color-platinum-mid);
  color: var(--text-secondary);
  align-self: flex-start;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--color-titanium-dark);
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 2rem;
}

/* Service SEO Schema Indicators (Micro details) */
.service-seo-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.service-seo-meta svg {
  color: var(--color-accent-teal);
}

/* ========================================================================
   GENERIC PROFILE SECTION (No-Photos, Abstract Stat Layout)
   ======================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.profile-abstract {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  padding: 1.5rem;
  border-left: 2px solid var(--color-accent-teal);
  background-color: rgba(13, 148, 136, 0.02);
}

.value-card h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-titanium-dark);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Typography-Driven Consultant Grid */
.profile-structure {
  background-color: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: var(--shadow-premium);
}

.consultant-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.consultant-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.consultant-row:last-child {
  border-bottom: none;
}

.consultant-title {
  font-weight: 600;
  color: var(--color-titanium-dark);
}

.consultant-code {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--color-accent-teal);
  font-weight: 600;
  background-color: var(--color-accent-teal-glow);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  justify-self: start;
}

.consultant-clearance {
  font-size: 0.85rem;
  color: var(--color-accent-gold);
  font-weight: 600;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

/* Flowchart styling for methodology */
.methodology-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  position: relative;
}

@media (max-width: 768px) {
  .methodology-flow {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step::after {
  content: '→';
  position: absolute;
  top: 20%;
  right: -15%;
  font-size: 1.5rem;
  color: var(--color-accent-teal);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .flow-step::after {
    content: '↓';
    top: auto;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
  }
}

.flow-step:last-child::after {
  display: none;
}

.flow-num {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-titanium-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-platinum-light);
  box-shadow: 0 0 0 2px var(--color-accent-teal);
  transition: var(--transition-smooth);
}

.flow-step:hover .flow-num {
  background-color: var(--color-accent-teal);
  transform: scale(1.1);
}

.flow-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-titanium-dark);
}

.flow-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================================================
   INSIGHTS & BLOG GRID SYSTEM
   ======================================================================== */
.insights-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  background-color: var(--color-white);
  padding: 1.5rem 2.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-subtle);
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 450px;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-accent-teal);
  box-shadow: 0 0 0 3px var(--color-accent-teal-glow);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip:hover {
  background-color: var(--color-platinum-mid);
}

.filter-chip.active {
  background-color: var(--color-accent-teal);
  color: var(--color-white);
  border-color: var(--color-accent-teal);
}

/* Editorial Blog Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

.blog-img-container {
  height: 220px;
  background-color: var(--color-titanium-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-placeholder-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--color-titanium-dark), var(--color-accent-teal-hover));
  color: var(--color-white);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.blog-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.blog-category-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-white);
  color: var(--color-titanium-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-titanium-dark);
  font-weight: 600;
  flex-grow: 1;
}

.blog-card h3:hover {
  color: var(--color-accent-teal);
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================================================
   ADMIN PUBLISHING CENTER & AI/SEO OPTIMIZER
   ======================================================================== */
.admin-view {
  padding-top: calc(var(--header-height) + 3rem);
  background-color: var(--color-platinum-light);
  min-height: 100vh;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 992px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-premium);
}

@media (max-width: 768px) {
  .panel-card {
    padding: 1.5rem;
  }
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-titanium-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  background-color: var(--color-platinum-light);
  transition: var(--transition-fast);
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent-teal);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px var(--color-accent-teal-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* AI Copilot Features styling */
.ai-helper-btn {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  border: none;
  color: var(--color-accent-teal);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.ai-helper-btn:hover {
  background-color: var(--color-accent-teal-glow);
  color: var(--color-accent-teal-hover);
}

.ai-glow-active {
  animation: ai-pulse 2s infinite ease-in-out;
}

@keyframes ai-pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.social-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.social-tab {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 4px;
}

.social-tab.active {
  background-color: var(--color-accent-teal-glow);
  color: var(--color-accent-teal);
}

/* Sidebar Optimizers */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

/* SEO Score Dial dial */
.seo-score-widget {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.seo-dial-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 1.5rem 0;
}

.seo-dial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.seo-dial-track {
  fill: none;
  stroke: var(--color-platinum-mid);
  stroke-width: 10;
}

.seo-dial-fill {
  fill: none;
  stroke: var(--color-accent-teal);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.seo-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-titanium-dark);
}

/* SEO Checklist Items */
.seo-checklist {
  width: 100%;
  text-align: left;
  margin-top: 1.5rem;
}

.seo-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
}

.seo-check-item svg {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.seo-check-item.passed {
  color: var(--text-primary);
}

.seo-check-item.passed svg {
  color: var(--color-accent-teal);
}

.seo-check-item.failed svg {
  color: var(--color-accent-gold);
}

/* AI Recommendations Box */
.ai-recom-box {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-premium);
}

.ai-recom-list {
  list-style: none;
  margin-top: 1rem;
}

.ai-recom-item {
  font-size: 0.85rem;
  background-color: var(--color-platinum-light);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-recom-tag-btn {
  background-color: var(--color-accent-teal-glow);
  color: var(--color-accent-teal);
  border: none;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
}

.ai-recom-tag-btn:hover {
  background-color: var(--color-accent-teal);
  color: var(--color-white);
}

/* ========================================================================
   SOCIAL MEDIA POSTER API PIPELINE SIMULATOR
   ======================================================================= */
.posting-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.posting-loader-card {
  width: 500px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-modal);
  padding: 3rem;
  text-align: center;
}

.pipeline-steps {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pipeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--color-platinum-light);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  text-align: left;
}

.pipeline-step-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.pipeline-status {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pipeline-status.pending { color: var(--text-muted); }
.pipeline-status.active { color: var(--color-accent-gold); animation: pulse-text 1.5s infinite; }
.pipeline-status.success { color: var(--color-accent-teal); }
.pipeline-status.skipped { color: var(--text-muted); opacity: 0.5; }

/* Make the skipped pipeline step look dimmed */
.pipeline-step:has(.pipeline-status.skipped) { opacity: 0.5; }

/* Publish target selection checkboxes */
.publish-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pub-target {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pub-target:hover { border-color: var(--border-accent); }
.pub-target input { accent-color: var(--color-accent-teal); cursor: pointer; }

/* Marked as published after the pipeline run */
.pub-target.published {
  border-color: var(--color-accent-teal);
  background: var(--color-accent-teal-glow);
  color: var(--color-accent-teal);
}

.pub-target.published::after {
  content: '✓ published';
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes pulse-text {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Custom Live Console Output */
.live-console-log {
  width: 100%;
  height: 120px;
  background-color: #0c111d;
  color: #34d399;
  border-radius: 4px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  overflow-y: auto;
  text-align: left;
  border: 1px solid #1f2937;
  white-space: pre-wrap;
}

/* ========================================================================
   HIGH-FIDELITY SOCIAL MEDIA MOCKUPS (PREVIEW LIGHTBOX)
   ======================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1999;
  overflow-y: auto;
  padding: 2rem 0;
}

.preview-modal-card {
  width: 90%;
  max-width: 950px;
  background-color: var(--color-platinum-light);
  border-radius: 12px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.preview-modal-header {
  background-color: var(--color-titanium-dark);
  color: var(--color-white);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-modal-body {
  padding: 3rem;
  overflow-y: auto;
  flex-grow: 1;
}

.mockup-selectors {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.mockup-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.mockup-tab-btn:hover {
  background-color: var(--color-platinum-mid);
  color: var(--text-primary);
}

.mockup-tab-btn.active {
  background-color: var(--color-white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

/* LINKEDIN MOCKUP */
/* X (Twitter) post mockup */
.x-mockup {
  background-color: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  max-width: 580px;
  margin: 0 auto;
  font-family: -apple-system, system-ui, sans-serif;
  color: #0f1419;
  padding: 1.25rem;
}

.x-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }

.x-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-titanium-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}

.x-user-info { flex-grow: 1; line-height: 1.25; }
.x-name { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 0.25rem; }
.x-handle { color: #536471; font-size: 0.85rem; }
.x-brand { color: #0f1419; flex-shrink: 0; }

.x-post-content { font-size: 1rem; line-height: 1.45; margin-bottom: 0.85rem; white-space: pre-wrap; }

.x-preview-card { border: 1px solid #cfd9de; border-radius: 14px; overflow: hidden; margin-bottom: 0.85rem; }

.x-preview-img {
  height: 240px;
  background: linear-gradient(135deg, var(--color-titanium-dark) 0%, var(--color-accent-teal-hover) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; padding: 2rem; text-align: center;
}

.x-preview-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin-top: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.x-preview-domain { padding: 0.6rem 0.9rem; font-size: 0.85rem; color: #536471; background: #fff; }

.x-actions { display: flex; justify-content: space-between; max-width: 92%; color: #536471; font-size: 0.85rem; padding-top: 0.6rem; border-top: 1px solid #eff3f4; }
.x-actions span { display: flex; align-items: center; gap: 0.3rem; }

/* YouTube mockup */
.yt-mockup {
  background: #0f0f0f;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Roboto', var(--font-sans);
  color: #f1f1f1;
  max-width: 480px;
}
.yt-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #282828 url() center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
}
.yt-play-btn {
  width: 56px; height: 56px;
  background: rgba(255,0,0,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.yt-thumb-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.yt-meta {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.5rem;
}
.yt-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.yt-info { flex: 1; min-width: 0; }
.yt-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f1f1f1;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-channel { font-size: 0.75rem; color: #aaa; margin-bottom: 0.3rem; }
.yt-desc {
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-actions {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0.9rem 0.85rem;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #3f3f3f;
}
.yt-actions span { cursor: pointer; }
.yt-actions span:hover { color: #f1f1f1; }

.linkedin-mockup {
  background-color: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  max-width: 580px;
  margin: 0 auto;
  font-family: -apple-system, system-ui, sans-serif;
  color: rgba(0,0,0,0.9);
  padding: 1.25rem;
}

.linkedin-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.linkedin-user-info {
  display: flex;
  gap: 0.75rem;
}

.linkedin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-teal), var(--color-titanium-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.linkedin-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.linkedin-name span {
  font-weight: 400;
  color: rgba(0,0,0,0.6);
  font-size: 0.8rem;
}

.linkedin-bio {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.6);
  margin-top: 0.1rem;
}

.linkedin-time {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.1rem;
}

.linkedin-post-content {
  font-size: 0.9rem;
  line-height: 1.42;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.linkedin-preview-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f3f6f8;
  cursor: pointer;
}

.linkedin-preview-img {
  height: 260px;
  background: linear-gradient(135deg, var(--color-titanium-dark) 0%, var(--color-accent-teal-hover) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 2rem;
  text-align: center;
}

.linkedin-preview-text {
  padding: 0.75rem 1rem;
  background-color: var(--color-white);
  border-top: 1px solid #e0e0e0;
}

.linkedin-preview-domain {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.6);
  text-transform: uppercase;
}

.linkedin-preview-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.linkedin-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e0e0e0;
  margin-top: 0.75rem;
  padding-top: 0.4rem;
}

.linkedin-action-btn {
  background: none;
  border: none;
  padding: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  border-radius: 4px;
}

.linkedin-action-btn:hover {
  background-color: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.9);
}

/* FACEBOOK MOCKUP */
.facebook-mockup {
  background-color: var(--color-white);
  border: 1px solid #dddfe2;
  border-radius: 8px;
  max-width: 580px;
  margin: 0 auto;
  font-family: Helvetica, Arial, sans-serif;
  color: #1c1e21;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.facebook-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.facebook-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-teal), #1877f2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.facebook-user-info {
  line-height: 1.25;
}

.facebook-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #050505;
}

.facebook-time {
  font-size: 0.75rem;
  color: #65676b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.facebook-post-content {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.facebook-preview-card {
  border: 1px solid #dddfe2;
  overflow: hidden;
  cursor: pointer;
}

.facebook-preview-img {
  height: 280px;
  background: linear-gradient(135deg, #1e293b 0%, #0d9488 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 2rem;
  text-align: center;
}

.facebook-preview-text {
  padding: 0.75rem 1rem;
  background-color: #f0f2f5;
  border-top: 1px solid #dddfe2;
}

.facebook-preview-domain {
  font-size: 0.75rem;
  color: #65676b;
  text-transform: uppercase;
}

.facebook-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: #050505;
}

.facebook-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  margin-top: 0.75rem;
  padding: 0.2rem 0;
}

.facebook-action-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #65676b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

.facebook-action-btn:hover {
  background-color: #f2f2f2;
}

/* INSTAGRAM MOCKUP */
.instagram-mockup {
  background-color: var(--color-white);
  border: 1px solid #dbdbdb;
  border-radius: 3px;
  max-width: 480px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #262626;
}

.instagram-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #efefef;
}

.instagram-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2px;
}

.instagram-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-titanium-dark);
  font-weight: 700;
  font-size: 0.7rem;
}

.instagram-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.instagram-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(45deg, #0f172a 0%, #0d9488 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.instagram-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.instagram-img-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
}

.instagram-img-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-white);
  padding-bottom: 0.25rem;
}

.instagram-img-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.instagram-img-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--color-white);
  color: var(--color-titanium-dark);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.instagram-actions {
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  gap: 1rem;
}

.instagram-action-icon {
  font-size: 1.3rem;
  cursor: pointer;
}

.instagram-likes {
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.instagram-caption-container {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.instagram-caption-container span {
  font-weight: 600;
  margin-right: 0.4rem;
}

.instagram-caption-text {
  white-space: pre-wrap;
}

/* ========================================================================
   MODAL DIALOG POPUPS (SERVICES & CONTACT)
   ======================================================================== */
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-white);
  cursor: pointer;
  line-height: 1;
}

.service-modal-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .service-modal-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.service-modal-main h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--color-titanium-dark);
}

.service-modal-main .modal-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.modal-section-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-titanium-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section-title svg {
  color: var(--color-accent-teal);
}

.modal-list {
  list-style: none;
  margin-bottom: 2rem;
}

.modal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.modal-list-item svg {
  color: var(--color-accent-teal);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.service-modal-sidebar {
  background-color: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  align-self: start;
}

.sidebar-stat-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sidebar-stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-teal);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.schema-box-code {
  background-color: #0c111d;
  color: #34d399;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #1f2937;
  overflow-x: auto;
  margin-top: 1rem;
}

/* ========================================================================
   CONTACT & FOOTER
   ======================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-accent-teal-glow);
  color: var(--color-accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-titanium-dark);
}

.contact-detail-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.footer {
  background-color: var(--color-titanium-dark);
  color: var(--text-light);
  padding: 5rem 0 3rem;
  border-top: none;
}

.footer h1, .footer h2, .footer h3, .footer h4 {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link-list a:hover {
  color: var(--color-accent-teal);
  padding-left: 4px;
}

.contact-address {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  border-left: 2px solid var(--color-accent-teal);
  padding-left: 1.25rem;
  margin: 1.75rem 0 2.5rem;
  max-width: 520px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--color-accent-teal);
}

/* ========================================================================
   ANIMATION KEYFRAMES
   ======================================================================== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
  animation: fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========================================================================
   MEANINGFUL IMAGERY (HYBRID) — added in upgrade
   Real editorial photography with graceful gradient fallback.
   ======================================================================== */

/* Hero: premium photo sitting behind the floating metrics card */
.hero-visual {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hero-figure {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  background: linear-gradient(135deg, var(--color-titanium-dark), var(--color-accent-teal-hover));
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-figure:hover .hero-photo {
  transform: scale(1.05);
}

.hero-figure-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(13, 148, 136, 0.25));
}

.hero-figure-tag {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-white);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* The metrics card overlaps the photo above for an editorial stacked look */
.hero-visual .hero-metrics-card {
  margin-top: -2.5rem;
  width: calc(100% - 2rem);
  align-self: center;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-figure { height: 180px; }
  .hero-visual .hero-metrics-card { margin-top: -1.5rem; }
}

/* Insight cards: real photo layered over the gradient placeholder */
.blog-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-photo {
  transform: scale(1.06);
}

.blog-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 40%, rgba(15, 23, 42, 0.55));
  pointer-events: none;
}

.blog-category-label { z-index: 2; }

/* Article detail modal: full-width hero image band */
.article-hero-image {
  position: relative;
  height: 280px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--color-titanium-dark), var(--color-accent-teal-hover));
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-white);
  background: var(--color-accent-teal);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
}

/* ========================================================================
   FEATURED IMAGE UPLOAD ZONE (publish form) — added in upgrade
   ======================================================================== */
/* The hidden attribute must win over the display rules below */
.image-upload-preview[hidden],
.image-remove-btn[hidden],
#pubImage[hidden] { display: none !important; }

.image-upload-zone {
  position: relative;
  border: 2px dashed var(--border-accent);
  border-radius: 6px;
  background: var(--color-platinum-light);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-fast);
}

.image-upload-zone:hover {
  border-color: var(--color-accent-teal);
  background: var(--color-accent-teal-glow);
}

.image-upload-zone.has-image {
  border-style: solid;
  border-color: var(--color-accent-teal);
}

.image-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1.5rem;
  text-align: center;
}

.image-upload-prompt svg { color: var(--color-accent-teal); }

.image-upload-preview {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.image-remove-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.image-remove-btn:hover { background: var(--color-accent-gold); }

/* ========================================================================
   PASSWORD-PROTECTED ADMIN GATE & ARTICLE CRUD — added in upgrade
   ======================================================================== */
/* ========================================================================
   BY SECTOR view — added in upgrade
   ======================================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
}

@media (max-width: 520px) {
  .sectors-grid { grid-template-columns: 1fr; }
}

/* Sector quick-links card */
.sector-ql-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: var(--shadow-premium);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.sector-ql-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--color-platinum-light);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.sector-ql-chip:hover {
  background: var(--color-accent-teal-glow);
  border-color: var(--color-accent-teal);
  color: var(--color-accent-teal);
}

.sector-ql-icon {
  display: flex;
  align-items: center;
  width: 14px;
  height: 14px;
  opacity: 0.65;
}

.sector-ql-icon svg { width: 14px; height: 14px; }

.sector-card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: var(--shadow-premium);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

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

.sector-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sector-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-teal);
  background: var(--color-accent-teal-glow);
}

.sector-card-head h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-titanium-dark);
  line-height: 1.3;
}

.sector-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.sector-standards-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.sector-standards {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  row-gap: 0.5rem;
}

.sector-standard {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sector-standard:hover { background: var(--color-platinum-light); }

.sector-std-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-titanium-dark);
  background: var(--color-platinum-mid);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  justify-self: end;
}

.sector-std-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.lvl {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
  justify-self: start;
}

.lvl-mandatory   { color: #b91c1c; background: rgba(185, 28, 28, 0.1); }
.lvl-conditional { color: var(--color-accent-gold); background: var(--color-accent-gold-glow); }
.lvl-recommended { color: var(--color-accent-teal); background: var(--color-accent-teal-glow); }

@media (max-width: 600px) {
  .sector-standards { grid-template-columns: auto 1fr; }
  .sector-standard .lvl { grid-column: 1 / -1; justify-self: start; }
}

/* Services grouped by subject */
.service-group { margin-bottom: 4.5rem; }
.service-group:last-child { margin-bottom: 0; }

.service-group-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-titanium-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.service-group-title::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-accent-teal), var(--color-accent-gold));
  flex-shrink: 0;
}

.service-group-title em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-teal);
  background: var(--color-accent-teal-glow);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}

/* the count chip should sit at the far right of the heading */
.service-group-title span { flex-grow: 1; }

/* Social media links (footer + contact card) */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent-teal);
  border-color: var(--color-accent-teal);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer variant on dark background */
.footer-social { margin-top: 1.75rem; }
.footer .social-link {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}
.footer .social-link:hover {
  background: var(--color-accent-teal);
  border-color: var(--color-accent-teal);
  color: #fff;
}

/* Right column wrapper: form + social card stacked */
.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.social-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-titanium-dark);
}

.social-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Contact form mandatory consent checkbox */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--color-accent-teal);
  cursor: pointer;
}

/* Contact section supporting photo */
.contact-figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  margin: 2.5rem auto 0;
  width: 315px;
  max-width: 100%;
  align-self: center;
}

.contact-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* hidden attribute must win over the flex display below */
.admin-lock[hidden] { display: none !important; }

.admin-lock {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

.admin-lock-card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: var(--shadow-premium);
  padding: 3rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.admin-lock-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-teal);
  background: var(--color-accent-teal-glow);
}

.admin-lock-card .section-tag { display: inline-block; margin-bottom: 0.75rem; }
.admin-lock-card .form-group { text-align: left; }

.admin-lock-error {
  color: var(--color-accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Article management (CRUD) */
.admin-manage-panel { margin-top: 3rem; }

.admin-manage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.admin-manage-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.admin-manage-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.admin-article-list { display: flex; flex-direction: column; gap: 1rem; }

.admin-article-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--color-platinum-light);
  transition: var(--transition-fast);
}

.admin-article-row:hover {
  border-color: var(--border-accent);
  background: var(--color-white);
}

.admin-article-thumb {
  width: 72px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.admin-article-info { flex-grow: 1; min-width: 0; }

.admin-article-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-titanium-dark);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-article-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.admin-article-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }

.admin-edit-btn,
.admin-delete-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--color-white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-edit-btn:hover {
  border-color: var(--color-accent-teal);
  color: var(--color-accent-teal);
}

.admin-delete-btn:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

@media (max-width: 600px) {
  .admin-article-row { flex-wrap: wrap; }
  .admin-article-thumb { width: 100%; height: 120px; }
}

/* ========================================================================
   PROFILE: STAT COUNTERS & ROLES MATRIX — restored/added in upgrade
   ======================================================================== */
.stat-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 5rem 0;
  padding: 3rem;
  background: var(--color-titanium-dark);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.stat-counter-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-gold));
}

.stat-counter-item { text-align: center; }

.stat-counter-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.stat-counter-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-teal);
}

.stat-counter-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.45;
  margin-top: 0.4rem;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.roles-matrix { margin-top: 5rem; }
.roles-matrix .section-tag { display: inline-block; margin-bottom: 1.5rem; }

.consultant-table {
  border-top: 2px solid var(--color-titanium-dark);
}

.consultant-row-header {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.consultant-row-header > div:last-child { text-align: right; }

@media (max-width: 600px) {
  .stat-counter-num { font-size: 2.4rem; }
}

/* ========================================================================
   PUBLISH BUTTON / EDIT-MODE POLISH — added in upgrade
   ======================================================================== */
.edit-mode-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-accent-gold-glow);
  color: var(--color-accent-gold);
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
}

.edit-mode-banner svg { flex-shrink: 0; }

/* When the form is in edit mode, hint it with an accent rail */
#pubForm.is-editing {
  position: relative;
}

#pubForm.is-editing::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-accent-teal), var(--color-accent-gold));
}

/* Reuse the existing ai-pulse keyframe for a one-shot button pulse */
.btn-pulse {
  animation: ai-pulse 0.85s cubic-bezier(0.16, 1, 0.3, 1) 1;
}

/* ========================================================================
   CERTWAY BRAND LOGO (SVG lockup) — added in upgrade
   Swoosh stays teal on every background; the wordmark uses currentColor
   so it is titanium-dark on the light header and white on dark surfaces.
   ======================================================================== */
.brand-logo {
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.brand-logo-svg {
  height: 32px;
  width: auto;
  display: block;
  overflow: visible;
}

.brand-logo:hover { transform: translateY(-1px); }

/* Scrolled header turns dark → flip the wordmark to white */
.header.scrolled .brand-logo { color: var(--color-white); }

/* Footer / dark-surface variant */
.brand-logo-light { color: var(--color-white); }
