/* 
  SolutionFlow Lab - Design System
  Premium, Trustworthy, Fast
*/

:root {
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-light: #e8f0fe;
  --text-main: #202124;
  --text-secondary: #5f6368;
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --border: #dadce0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #f0f2f5;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

/* Header */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dropdown Menu V32 */
.nav-dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; font-family: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; color: var(--text-main); padding: 0.5rem 1rem; border-radius: 8px; transition: background 0.2s; }
.dropdown-toggle:hover { background: #f0f2f5; }

.dropdown-content { display: none; position: absolute; right: 0; top: 110%; background-color: white; min-width: 240px; box-shadow: var(--shadow); border-radius: 16px; padding: 0.5rem 0; z-index: 1000; border: 1px solid var(--border); overflow: hidden; animation: slideIn 0.2s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown:hover .dropdown-content { display: block; }

.dropdown-content a, .sub-toggle { display: flex; align-items: center; padding: 12px 20px; color: var(--text-main); text-decoration: none; font-size: 0.95rem; transition: background 0.2s; cursor: pointer; }
.dropdown-content a:hover, .sub-toggle:hover { background: #f8f9fa; color: var(--primary); }

.sub-dropdown { border-top: 1px solid #f1f1f1; margin-top: 5px; }
.sub-toggle { justify-content: space-between; font-weight: 600; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 20px; }
.sub-content { background: #fafafa; display: block; }
.sub-content a { padding-left: 40px !important; font-size: 0.9rem !important; color: var(--text-secondary) !important; }
.sub-content a:hover { color: var(--primary) !important; background: #fff !important; }

/* Mobile Responsive Adjustments - Premium Frame V9.1 */
@media (max-width: 768px) {
  header { padding: 1rem; }
  .container { 
    padding: 0 15px !important; 
    width: 100% !important; 
    box-sizing: border-box !important;
    display: block !important;
  }
  .post-layout {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .post-content { 
    padding: 1.25rem !important; 
    margin: 1rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    border-radius: 12px;
  }
  .post-thumbnail-hero { 
    height: auto; 
    border-radius: 12px; 
    margin: 0 0 1.5rem 0; 
    width: 100%; 
  }
  
  /* V55: Expert Box Alignment */
  .expert-main-grid { grid-template-columns: 1fr !important; }
  .designer-row { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0; }
  .brand { font-size: 1.1rem; }
  .designer-row { gap: 0.5rem; }
  .designer-row img { width: 40px; height: 40px; margin-left: 5px; }
  .btn-green { padding: 0.4rem 0.6rem; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Homepage Styles */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-card);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.categories-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-btn.active, .category-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

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

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

.post-card .thumbnail-container {
  height: 220px;
  width: 100%;
  background: #f8f9fa;
  overflow: hidden;
}

.post-card .thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .thumbnail {
  transform: scale(1.05);
}

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

.post-card .category-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.post-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Post Page Styles */
.post-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  display: block;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.sidebar a:hover, .sidebar a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.post-content {
  background: #ffffff;
  padding: 4rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  line-height: 1.8;
  max-width: 100%;
}

.post-thumbnail-hero {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  background: #f8f9fa;
  display: block;
}

.section {
  margin-bottom: 2.5rem;
}

.section-hook h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.section-value {
  background: var(--primary-light);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.section-pain {
  color: #d93025;
  font-style: italic;
  font-weight: 500;
}

/* V10 Individual Expert Cards */
.affiliate-v2 {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 4rem 0;
  padding: 0;
}

.affiliate-v2-header {
  padding: 2rem;
  background: #fcfcfc;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
}

.cta-message {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.verified-title {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
}

.designer-row {
  display: block;
  padding: 1rem 1.5rem; /* Even more compact for V14 */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  position: relative;
  transition: var(--transition);
  margin: 0 auto 1rem auto;
  width: 100%;
  max-width: 850px;
  box-sizing: border-box;
}

.expert-main-grid {
  display: grid;
  grid-template-columns: 1fr 180px; /* Even narrower CTA column */
  gap: 1rem;
  align-items: center;
}

.expert-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.expert-identity-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.badge-number {
  width: 26px;
  height: 26px;
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  background: #1a73e8; /* Default */
  z-index: 10;
}

.badge-number.gold { background: linear-gradient(135deg, #FFD700, #DAA520); color: #000; }
.badge-number.silver { background: linear-gradient(135deg, #C0C0C0, #A9A9A9); color: #000; }
.badge-number.bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

.expert-avatar {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 5px;
}

.expert-info-text .name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.expert-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.expert-stats-row-v15 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.expert-desc-v15 {
  font-size: 0.8rem;
  color: #5f6368;
  margin-top: 0.4rem;
  line-height: 1.3;
}

.stat-item {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e8e3e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.expert-badge-v15 {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.expert-badge-v15.most-popular { background: #e6f4ea; color: #1e8e3e; }
.expert-badge-v15.best-value { background: #e6f4ea; color: #1e8e3e; }
.expert-badge-v15.premium-choice { background: #e8f0fe; color: #1a73e8; }

.highlights-title {
  color: #1e8e3e;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlights-desc {
  font-size: 0.9rem;
  color: #3c4043;
  line-height: 1.5;
}

.expert-level {
  font-size: 0.9rem;
  color: #1a73e8;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.expert-stats {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: #34a853; /* Success Green */
  display: flex;
  align-items: center;
  gap: 8px;
}

.expert-middle {
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 0 1.5rem;
}

.highlights-title {
  background: #f1f8f4;
  color: #1e8e3e;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: inline-block;
  letter-spacing: 0.5px;
}

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

.highlights-list li {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 500;
}

.highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1e8e3e;
  font-weight: 900;
}

.expert-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-left: 1px solid #eee;
  padding-left: 1.5rem;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.starts-at {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.price-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.expert-badge {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.expert-badge.most-popular { background: #e6f4ea; color: #1e8e3e; }
.expert-badge.best-value { background: #e6f4ea; color: #1e8e3e; }
.expert-badge.premium-choice { background: #e8f0fe; color: #1a73e8; }

.btn-green {
  background: #2563eb;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  display: block;
}

.btn-green:hover {
  background: #1d4ed8;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: white;
}

.secure-tag {
  font-size: 0.75rem;
  color: #1e8e3e;
  font-weight: 600;
}

@media (max-width: 992px) {
  .designer-row { padding: 1rem; }
  .expert-main-grid { grid-template-columns: 1fr 180px; gap: 1rem; }
  .expert-right { padding-left: 1rem; }
}

@media (max-width: 600px) {
  .expert-main-grid { grid-template-columns: 1fr; }
  .expert-right { border: none; padding: 0.75rem 0 0 0; border-top: 1px solid #eee; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .expert-stats-row-v15 { gap: 6px; }
  .expert-avatar { width: 50px; height: 50px; }
  .expert-info-text .name { font-size: 1rem; }
  .expert-meta-row { font-size: 0.7rem; flex-wrap: wrap; }
  .badge-number { width: 20px; height: 20px; font-size: 0.65rem; top: 8px; left: 8px; }
}

/* Scroll to Top */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1000;
  font-size: 1.5rem;
  transition: var(--transition);
}
#scrollToTop:hover { transform: translateY(-5px); background: var(--primary-hover); }

/* Related Posts V56 Redesign */
.related-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid #eee;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.related-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f9fa;
  margin-bottom: 1rem;
}
.related-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.related-card:hover .related-thumb-wrapper img {
  transform: scale(1.08);
}
.related-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}
.related-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
@media (max-width: 992px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .related-thumb-wrapper { height: 160px; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; gap: 2rem; }
  .related-thumb-wrapper { height: 200px; }
}

/* Video Embed Responsiveness */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 2.5rem 0;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Images in Content V56 */
.rich-content img:not(.expert-avatar):not(.post-thumbnail-hero) {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2.5rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rich-content img:not(.expert-avatar):not(.post-thumbnail-hero):hover {
  transform: translateY(-2px);
}

.rich-content a img {
  margin: 0; /* Let the link handle spacing if nested */
}

.rich-content p:has(img:not(.expert-avatar)) {
  margin: 2.5rem 0;
}

/* Admin Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease-out;
}

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

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-body {
  padding: 2rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.rich-content {
  font-size: 1.15rem;
  color: #3c4043;
}

.rich-content h1 { font-size: 2.5rem; margin: 2.5rem 0 1.5rem; color: var(--text-main); }
.rich-content h2 { font-size: 2rem; margin: 2rem 0 1.2rem; color: var(--text-main); border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }
.rich-content h3 { font-size: 1.5rem; margin: 1.5rem 0 1rem; color: var(--text-main); }
.rich-content h4 { font-size: 1.2rem; margin: 1.2rem 0 0.8rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.05em; }

.rich-content p { margin-bottom: 1.5rem; }

.rich-content ul, .rich-content ol { margin: 1.5rem 0; padding-left: 2rem; }
.rich-content li { margin-bottom: 0.75rem; }
.rich-content a:not(.btn-green) {
  color: var(--primary) !important;
  text-decoration: underline !important;
  font-weight: 500;
  transition: opacity 0.2s;
}
.rich-content a:not(.btn-green):hover {
  opacity: 0.8;
}

.rich-content .featured-snippet {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
  border-left: 6px solid var(--primary);
  padding: 2.5rem;
  border-radius: 0 16px 16px 0;
  margin: 3rem 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.08);
}

.rich-content .featured-snippet::before {
  content: '💡 Key Takeaway';
  display: block;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.rich-content .featured-snippet p:last-child { margin-bottom: 0; }

/* Editor Toolbar Improvements */
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  flex-wrap: wrap;
  align-items: center;
}

.editor-toolbar button {
  background: white;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.editor-toolbar button:hover {
  background: #f1f3f4;
  border-color: #bdc1c6;
  color: var(--primary);
}

.editor-toolbar button.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
#editorContent a:not(.btn-green), #pageEditorContent a:not(.btn-green) {
  color: var(--primary) !important;
  text-decoration: underline !important;
}

.editor-toolbar .sep {
  width: 1px;
  height: 24px;
  background: #dadce0;
  margin: 0 6px;
}

.editor-toolbar .btn-snippet {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 16px;
}

.editor-toolbar .btn-snippet:hover {
  background: var(--primary-hover);
  color: white;
}


.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.admin-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.admin-form .form-group {
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.admin-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-body);
}

.click-badge {
  background: #e6f4ea;
  color: #1e8e3e;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .designers-list {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* V18 Breadcrumbs */
.breadcrumb-v18 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}
.breadcrumb-v18 a {
  color: var(--primary);
  font-weight: 500;
}
.breadcrumb-v18 a:hover { text-decoration: underline; }
.breadcrumb-v18 .sep { color: #ccc; }
.breadcrumb-v18 .current { color: #999; font-weight: 400; }

/* V18 Sticky Toolbar Adjustment */
.modal-body { position: relative; }
.editor-toolbar {
  position: sticky;
  top: -2rem; /* Matches modal body padding to stick to the top */
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* V21 FAQ Accordion - Premium Seamless Style */
.faq-question {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1rem 0 0 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: all 0.2s ease;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  display: block;
}
.faq-question:hover { background: #fcfcfc; border-color: var(--primary); }

.faq-question::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  width: 20px;
  height: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.faq-question.open { 
  border-radius: 12px 12px 0 0; 
  background: #fff; 
  border-bottom: 1px solid transparent;
  z-index: 2;
}
.faq-question.open::after { 
  transform: translateY(-50%) rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233a82f6' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
}

.faq-answer {
  display: none;
  background: white;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  border-radius: 0 0 12px 12px;
  margin-top: -1px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  animation: slideDown 0.3s ease-out;
  position: relative;
  z-index: 1;
}
.faq-answer.active { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* V23 FAQ Container for Seamless Borders */
.faq-item-v23 {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-top: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.3s ease;
}
.faq-item-v23:hover { border-color: var(--primary); }

.faq-item-v23 .faq-question {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  border-bottom: 1px solid transparent !important;
}
.faq-item-v23 .faq-question.open {
  border-bottom: 1px solid #f0f0f0 !important;
}

.faq-item-v23 .faq-answer {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 1.5rem 1.5rem 1.5rem;
  background: transparent !important;
}


/* Admin Dashboard Utilities */
.admin-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th { text-align: left; padding: 1rem; border-bottom: 2px solid #f0f2f5; color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 1rem; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.admin-table tr:hover { background: #fcfcfc; }
.admin-table button { padding: 5px 12px; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; transition: var(--transition); font-size: 0.85rem; font-weight: 600; margin-right: 5px; }
.admin-table button:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.admin-form .form-group { margin-bottom: 1.25rem; }
.admin-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-main); font-size: 0.9rem; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 0.75rem; border: 1px solid #dadce0; border-radius: 8px; font-family: inherit; font-size: 1rem; transition: border-color 0.2s; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.admin-form button[type="submit"] { background: var(--primary); color: white; border: none; padding: 0.85rem 2rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.admin-form button[type="submit"]:hover { background: var(--primary-hover); transform: translateY(-1px); }

.hidden { display: none !important; }
