/**
 * VAG BRAND - CMS & Content Management Stylesheet
 * VEDICAMRIT GREENS PRIVATE LIMITED
 *
 * Covers:
 * 1. Admin Control Console & Content Manager Interface
 * 2. Rich WYSIWYG Editor & Modular Block Styling
 * 3. Media Library & Upload Dropzone
 * 4. Public Standalone Pages, Article Cards, Typography & Sidebars
 * 5. Responsive Breakpoints (320px - 1920px)
 */

/* ==========================================================
   1. ADMIN CONSOLE & TOPBAR
   ========================================================== */
.admin-dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-slate-200);
}

.admin-user-pill {
  font-size: 0.72rem;
  background-color: var(--color-slate-100);
  border: 1px solid var(--color-slate-300);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--color-slate-700);
  font-family: monospace;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Nav Tabs */
.admin-nav-tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--color-slate-200);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  white-space: nowrap;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-slate-600);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
}

.admin-tab-btn:hover {
  color: var(--color-primary-800);
}

.admin-tab-btn.active {
  color: var(--color-primary-800);
  border-bottom-color: var(--color-gold-500);
}

/* Content Manager Sub-Navigation */
.cms-panel-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.cms-subnav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-slate-100);
  margin-bottom: var(--space-4);
}

.cms-subnav-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cms-subnav-btn {
  background: var(--color-slate-100);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cms-subnav-btn:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-300);
  color: var(--color-primary-800);
}

.cms-subnav-btn.active {
  background: var(--color-primary-800);
  border-color: var(--color-primary-800);
  color: #ffffff;
}

/* Toolbar & Filters */
.cms-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.cms-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 450px;
}

.cms-search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cms-search-input-wrap input {
  padding-left: 36px;
}

/* CMS Data Table */
.cms-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-200);
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--fs-sm);
  background: var(--bg-surface);
}

.cms-table th {
  background-color: var(--color-slate-50);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-slate-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-slate-200);
}

.cms-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-slate-200);
  vertical-align: middle;
}

.cms-table tr:hover {
  background-color: rgba(248, 250, 252, 0.8);
}

/* Status & Type Pills */
.cms-status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cms-status-badge.published {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.cms-status-badge.draft {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.cms-status-badge.scheduled {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.cms-status-badge.archived {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.cms-type-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cms-type-pill.page {
  background-color: #e0f2fe;
  color: #0369a1;
}

.cms-type-pill.article,
.cms-type-pill.post {
  background-color: #f0fdf4;
  color: #166534;
}

.cms-type-pill.news {
  background-color: #fef9c3;
  color: #854d0e;
}

.cms-row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cms-empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  background: var(--color-slate-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-slate-300);
}

/* ==========================================================
   2. RICH WYSIWYG EDITOR & MODULAR BLOCKS
   ========================================================== */
.cms-editor-container {
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cms-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  background: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
}

.editor-btn-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.editor-tool-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.editor-tool-btn:hover {
  background: var(--color-slate-200);
  color: var(--color-primary-900);
}

.editor-tool-btn.active {
  background: var(--color-primary-700);
  color: #ffffff;
}

.editor-separator {
  width: 1px;
  height: 20px;
  background-color: var(--color-slate-300);
  margin: 0 4px;
}

.editor-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.editor-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  min-width: 220px;
  z-index: 100;
  padding: 4px 0;
}

.editor-dropdown-menu.show {
  display: flex;
}

.editor-dropdown-menu .dropdown-item {
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-slate-800);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.editor-dropdown-menu .dropdown-item:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-800);
}

.cms-editor-content {
  min-height: 350px;
  max-height: 550px;
  overflow-y: auto;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-slate-900);
  outline: none;
}

.cms-editor-code {
  width: 100%;
  min-height: 350px;
  padding: var(--space-4);
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  background: #0f172a;
  color: #f8fafc;
  border: none;
  outline: none;
  resize: vertical;
}

/* Modal Split Layout for Editing */
.cms-editor-split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
  padding: var(--space-6);
}

.cms-editor-main-col {
  min-width: 0;
}

.cms-editor-side-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cms-side-card {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.cms-side-card-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-900);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-slate-200);
}

/* Pre-styled Modular Content Blocks */
.cms-block-hero {
  background: linear-gradient(135deg, #092617 0%, #134e2f 100%);
  color: #ffffff;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  border: 1px solid var(--color-gold-500);
  text-align: center;
}

.cms-hero-title {
  color: #ffffff !important;
  font-size: 1.8rem;
  margin-bottom: var(--space-2);
}

.cms-hero-lead {
  color: var(--color-primary-100);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto var(--space-4) auto;
}

.cms-hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.cms-block-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--color-slate-50);
  border-radius: var(--radius-lg);
}

.cms-responsive-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.cms-block-three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.cms-card-item {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cms-card-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-2);
}

.cms-card-item h4 {
  margin-bottom: var(--space-1);
}

.cms-card-item p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.cms-block-cta-banner {
  background: linear-gradient(135deg, var(--color-gold-100) 0%, #ffffff 100%);
  border: 2px solid var(--color-gold-500);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin: var(--space-6) 0;
}

.cms-block-cta-banner h3 {
  color: var(--color-primary-900);
  margin-bottom: var(--space-2);
}

.cms-block-faq {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.cms-faq-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-slate-100);
}

.cms-faq-item:last-child {
  border-bottom: none;
}

.cms-faq-item h4 {
  color: var(--color-primary-800);
  margin-bottom: var(--space-1);
}

.cms-block-video {
  margin: var(--space-6) 0;
  text-align: center;
}

.cms-embedded-video {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  display: block;
  margin: 0 auto;
}

.cms-video-caption {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.cms-block-testimonial {
  background: #f8fafc;
  border-left: 4px solid var(--color-gold-500);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0;
  font-style: italic;
}

.cms-block-testimonial cite {
  display: block;
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary-800);
  margin-top: var(--space-2);
}

.cms-callout-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--color-primary-600);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-6) 0;
}

.cms-callout-box h4 {
  color: var(--color-primary-900);
  margin-bottom: var(--space-2);
}

/* ==========================================================
   3. MEDIA LIBRARY & MODAL
   ========================================================== */
.cms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.cms-modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--color-slate-200);
  display: flex;
  flex-direction: column;
}

.cms-editor-modal {
  max-width: 1250px;
}

.cms-media-modal {
  max-width: 900px;
}

.cms-modal-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.cms-modal-close:hover {
  color: var(--color-slate-900);
}

.cms-modal-body {
  padding: var(--space-6);
  flex: 1;
}

.cms-modal-footer {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--color-slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-slate-50);
}

/* Dropzone */
.cms-upload-dropzone {
  border: 2px dashed var(--color-primary-300);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  background: var(--color-primary-50);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cms-upload-dropzone:hover,
.cms-upload-dropzone.dragover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-600);
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-2);
}

.dropzone-text {
  font-size: var(--fs-sm);
  color: var(--color-primary-900);
}

.dropzone-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Media Grid */
.cms-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-4);
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.cms-media-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cms-media-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-400);
}

.cms-media-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cms-media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-media-info {
  padding: 8px;
  flex: 1;
}

.cms-media-title {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-slate-900);
}

.cms-media-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cms-media-actions {
  padding: 6px 8px;
  border-top: 1px solid var(--color-slate-100);
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  background: var(--color-slate-50);
}

/* ==========================================================
   4. PUBLIC STANDALONE PAGES & ARTICLES
   ========================================================== */
.cms-preview-banner {
  background: linear-gradient(90deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: var(--fs-xs);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Category Pills */
.cms-category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cms-pill {
  background: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cms-pill:hover {
  border-color: var(--color-primary-400);
  color: var(--color-primary-800);
}

.cms-pill.active {
  background: var(--color-primary-800);
  border-color: var(--color-primary-800);
  color: #ffffff;
}

/* Article Cards */
.cms-article-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.cms-article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-300);
}

.cms-article-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: block;
}

.cms-article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.cms-article-card:hover .cms-article-card-img {
  transform: scale(1.04);
}

.cms-article-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 23, 16, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--color-gold-400);
  color: var(--color-gold-300);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.cms-article-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cms-article-meta-small {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.cms-article-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: var(--space-2);
}

.cms-article-card-title a {
  color: var(--color-primary-950);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cms-article-card-title a:hover {
  color: var(--color-primary-700);
}

.cms-article-card-excerpt {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.cms-article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-slate-100);
}

/* Standalone Post / Page Presentation Grid */
.cms-standalone-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
}

.cms-featured-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-slate-200);
}

.cms-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-content-typography {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-slate-800);
}

.cms-content-typography h2 {
  font-size: 1.85rem;
  color: var(--color-primary-950);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gold-200);
}

.cms-content-typography h3 {
  font-size: 1.45rem;
  color: var(--color-primary-900);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.cms-content-typography h4 {
  font-size: 1.15rem;
  color: var(--color-primary-800);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.cms-content-typography p {
  margin-bottom: var(--space-4);
}

.cms-content-typography ul,
.cms-content-typography ol {
  margin: var(--space-4) 0 var(--space-6) var(--space-6);
}

.cms-content-typography li {
  margin-bottom: var(--space-2);
}

.cms-content-typography blockquote {
  background: var(--color-slate-50);
  border-left: 4px solid var(--color-gold-500);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-slate-700);
}

.cms-content-typography img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
}

.cms-content-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--fs-sm);
}

.cms-content-table th,
.cms-content-table td {
  border: 1px solid var(--color-slate-200);
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.cms-content-table th {
  background: var(--color-slate-50);
  font-weight: 700;
  color: var(--color-primary-900);
}

/* Tags & Sharing */
.cms-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: var(--space-6) 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-slate-200);
}

.cms-tag-badge {
  background: var(--color-slate-100);
  color: var(--color-slate-700);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.cms-share-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--color-slate-50);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  border: 1px solid var(--color-slate-200);
}

.cms-share-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary-950);
}

.cms-share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Author Box */
.cms-author-box {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-sm);
}

.cms-author-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold-400);
  flex-shrink: 0;
}

.cms-author-body {
  flex: 1;
}

/* Related Content */
.cms-related-section {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-slate-100);
}

/* Sidebar Widgets */
.cms-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.cms-widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.cms-widget-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary-900);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-gold-400);
}

.cms-widget-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cms-widget-cat-list li {
  margin-bottom: var(--space-2);
}

.cms-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-slate-700);
  text-decoration: none;
  font-size: var(--fs-xs);
  transition: all var(--transition-fast);
}

.cms-cat-link:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-800);
}

.cms-cat-badge {
  background: var(--color-slate-200);
  color: var(--color-slate-800);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}

.cms-widget-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cms-widget-recent-list li {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-slate-100);
}

.cms-widget-recent-list li:last-child {
  border-bottom: none;
}

.cms-recent-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-slate-900);
  font-size: var(--fs-xs);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.cms-recent-link:hover {
  color: var(--color-primary-700);
}

.cms-recent-link small {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 3px;
}

/* Timeline for Corporate News */
.cms-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-gold-400);
}

.cms-timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cms-timeline-card::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-6) - 6px);
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold-500);
  box-shadow: 0 0 6px var(--color-gold-500);
}

.cms-timeline-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold-700);
  text-transform: uppercase;
}

.cms-timeline-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-left: 6px;
}

/* ==========================================================
   5. RESPONSIVE MEDIA QUERIES (320px - 1440px)
   ========================================================== */
@media (max-width: 1024px) {
  .cms-editor-split-layout {
    grid-template-columns: 1fr;
  }

  .cms-standalone-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .cms-block-three-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-actions {
    width: 100%;
  }

  .cms-block-two-col {
    grid-template-columns: 1fr;
  }

  .cms-author-box {
    flex-direction: column;
    text-align: center;
  }

  .cms-share-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cms-modal-dialog {
    max-height: 96vh;
    border-radius: var(--radius-md);
  }

  .cms-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
