/* ===================================================================
   RISE WITHIN — Classic Editorial Theme
   A premium, modern blog design with classic typography
   =================================================================== */

/* --- Google Fonts are loaded in header.php --- */

:root {
  /* Brand Colors - Blue Theme */
  --navy:          #0F172A; /* Deep Slate Blue */
  --navy-mid:      #1E293B;
  --navy-soft:     #334155;
  --footer-bg:     #020617;
  --header-bg:     #FFFFFF;
  --gold:          #2563EB; /* Vibrant Blue primary accent */
  --gold-light:    #3B82F6;
  --gold-dark:     #1D4ED8;
  --gold-muted:    rgba(37, 99, 235, 0.15);

  /* Neutrals */
  --bg:            #F8FAFC; /* Ultra-light blue tint */
  --bg-warm:       #F1F5F9;
  --card-bg:       #FFFFFF;
  --ivory:         #F8FAFC;
  --text-primary:  #0F172A;
  --text-secondary:#475569;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --border:        #E2E8F0;
  --border-soft:   #F1F5F9;

  /* Functional */
  --success:       #2D9F6F;
  --success-bg:    #E8F8F0;
  --error:         #D94F4F;
  --error-bg:      #FDF0F0;
  --warning:       #E8A83E;
  --warning-bg:    #FEF7E8;
  --info:          #4B8FD4;

  /* Layout */
  --sidebar-w:     240px;
  --topbar-h:      64px;
  --container-max:  1200px;

  /* Radius */
  --radius-xs:     4px;
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  /* Shadows */
  --shadow-xs:     0 1px 2px rgba(10,22,40,.04);
  --shadow-sm:     0 2px 8px rgba(10,22,40,.06);
  --shadow:        0 4px 20px rgba(10,22,40,.08);
  --shadow-lg:     0 12px 40px rgba(10,22,40,.12);
  --shadow-xl:     0 20px 60px rgba(10,22,40,.16);
  --shadow-gold:   0 4px 20px rgba(37,99,235,.2);

  /* Transitions */
  --ease:          cubic-bezier(.4,0,.2,1);
  --transition:    0.3s var(--ease);
  --transition-slow: 0.5s var(--ease);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-muted);
  color: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold);
}

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border-color: transparent;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--navy);
}

.btn-light {
  background: var(--card-bg);
  color: var(--navy);
  border-color: rgba(255,255,255,0.3);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-warm);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-danger {
  background: var(--error);
  color: #fff;
}

.btn-danger:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-link {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-weight: 500;
  padding: 0;
}

.btn-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* === CARDS === */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-body {
  padding: 28px;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}

.card-title a {
  color: var(--navy);
  transition: color var(--transition);
}

.card-title a:hover {
  color: var(--gold-dark);
}

.card-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.card-img-top {
  width: 100%;
  object-fit: cover;
}

.card-header {
  padding: 18px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
}

/* === FORMS === */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--card-bg);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--card-bg);
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A5A72' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

/* === ALERTS === */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-danger {
  background: var(--error-bg);
  color: var(--error);
  border-left: 4px solid var(--error);
}

.alert-info {
  background: #EEF4FC;
  color: var(--info);
  border-left: 4px solid var(--info);
}

/* === NAVBAR === */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0;
  transition: all var(--transition);
}

.site-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy) !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.navbar-brand img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links li a:hover {
  color: var(--navy);
  background: var(--bg-warm);
}

.nav-links li a.active {
  color: var(--gold-dark);
  background: var(--gold-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-warm);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-user-btn:hover {
  background: var(--border-soft);
  color: var(--text-primary);
}

.nav-user-btn .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  font-size: 1.25rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 180px;
  z-index: 1001;
  animation: dropdownFade 0.2s ease;
}

.dropdown.show .dropdown-menu,
.dropdown-menu.show {
  display: block;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-warm);
  color: var(--navy);
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-soft) 100%);
  padding: 100px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(37,99,235,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(37,99,235,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-section h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-section h1 .highlight {
  color: var(--gold);
  position: relative;
}

.hero-section p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.hero-actions .btn-outline {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}

.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* Hero decorative elements */
.hero-ornament {
  position: absolute;
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ornament-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.hero-ornament-2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: -60px;
  border-color: rgba(37,99,235,0.06);
}

/* === MAIN CONTENT LAYOUT === */
.page-content {
  padding: 60px 0 80px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* === SECTION LABELS === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 16px;
}

/* === FEATURED POST === */
.featured-post {
  margin-bottom: 56px;
}

.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-slow);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(10,22,40,.2);
}

.featured-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.featured-card .featured-image {
  position: relative;
  overflow: hidden;
}

.featured-card .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-card .featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--navy) 100%);
}

.featured-card-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--gold-muted);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}

.featured-card-body h2 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.featured-card-body h2 a {
  color: #fff;
}

.featured-card-body h2 a:hover {
  color: var(--gold-light);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.featured-meta a {
  color: var(--gold-light);
}

.featured-card-body .excerpt {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.featured-card-body .btn-primary {
  width: fit-content;
}

/* === POSTS GRID === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-soft);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: var(--border);
}

.post-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.post-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .card-img-top {
  transform: scale(1.06);
}

.post-card .card-img-wrap .category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  background: rgba(10,22,40,0.75);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
}

.post-card .card-img-wrap .category-badge:hover {
  background: var(--gold);
  color: var(--navy);
}

.post-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.post-card .post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-card .card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.post-card .card-text {
  flex: 1;
  margin-bottom: 18px;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  text-decoration: none;
  margin-top: auto;
}

.post-card .read-more:hover {
  color: var(--gold);
  gap: 10px;
}

.post-card .read-more i {
  font-size: 11px;
  transition: transform var(--transition);
}

.post-card:hover .read-more i {
  transform: translateX(3px);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.page-item {
  list-style: none;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  background: var(--card-bg);
  transition: all var(--transition);
  text-decoration: none;
}

.page-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-muted);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: all var(--transition);
}

.sidebar-card:hover {
  box-shadow: var(--shadow-sm);
}

.sidebar-card .card-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card .card-header i {
  color: var(--gold);
}

.sidebar-card .card-body {
  padding: 22px;
}

.sidebar-card .card-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Categories list in sidebar */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  border-bottom: 1px solid var(--border-soft);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.category-list li a:hover {
  color: var(--navy);
  padding-left: 8px;
}

.category-list li a .cat-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-list li a .cat-name i {
  color: var(--gold);
  font-size: 12px;
}

.category-list li a .badge {
  background: var(--bg-warm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  transition: all var(--transition);
}

.category-list li a:hover .badge {
  background: var(--gold-muted);
  color: var(--gold-dark);
}

/* Quick links in sidebar */
.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--transition);
  text-decoration: none;
}

.quick-links li:last-child a {
  border-bottom: none;
}

.quick-links li a:hover {
  color: var(--navy);
  padding-left: 8px;
}

.quick-links li a i {
  color: var(--gold);
  font-size: 13px;
  width: 20px;
  text-align: center;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 30px;
}

.empty-state .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state .icon i {
  font-size: 28px;
  color: var(--text-light);
}

.empty-state h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-light);
  font-size: 14px;
}

/* === FOOTER === */
.site-footer {
  background: var(--footer-bg);
  padding: 56px 0 0;
  color: rgba(255,255,255,0.5);
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 32px;
}

.footer-brand span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.4);
  max-width: 360px;
}

.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom small {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom .heart {
  color: var(--gold);
}

/* === AUTH PAGES === */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}

.auth-card .card-body {
  padding: 40px;
}

.auth-card .card-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.auth-card .btn-primary {
  width: 100%;
  padding: 13px 24px;
  font-size: 15px;
  margin-top: 8px;
}

.auth-card .divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 13px;
}

.auth-card .divider::before,
.auth-card .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === TABLE (Dashboard) === */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-soft);
}

.table thead th {
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--ivory);
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.badge.bg-success,
.bg-success {
  background: var(--success-bg) !important;
  color: var(--success) !important;
}

.bg-secondary {
  background: var(--bg-warm) !important;
  color: var(--text-muted) !important;
}

.bg-primary {
  background: var(--gold-muted) !important;
  color: var(--gold-dark) !important;
}

/* === SINGLE POST === */
.single-post {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.single-post h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.single-post .post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.single-post .post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post .post-meta a {
  color: var(--gold-dark);
}

.single-post .featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.single-post .featured-img img {
  width: 100%;
  display: block;
}

.single-post .content {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.single-post .content h2,
.single-post .content h3,
.single-post .content h4 {
  margin-top: 36px;
  margin-bottom: 16px;
}

.single-post .content p {
  margin-bottom: 1.25rem;
}

.single-post .content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.single-post .content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* === ANIMATIONS === */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.6s var(--ease) forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }
.fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.fade-in-up:nth-child(8) { animation-delay: 0.4s; }
.fade-in-up:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === UTILITIES === */
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-2 { gap: 0.5rem !important; }
.float-end { float: right !important; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--radius) !important; }
.table-hover tbody tr:hover { background: var(--ivory); }
.table-bordered { border: 1px solid var(--border-soft); }
.align-middle { vertical-align: middle !important; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .featured-card-inner {
    grid-template-columns: 1fr;
  }

  .featured-card .featured-image {
    height: 250px;
  }

  .featured-card .featured-image::after {
    background: linear-gradient(to top, var(--navy) 0%, transparent 60%);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 64px 0 56px;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 1001;
  }

  .page-content {
    padding: 40px 0 60px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .featured-card-body {
    padding: 28px 24px;
  }

  .featured-card-body h2 {
    font-size: 1.5rem;
  }

  .single-post h1 {
    font-size: 1.75rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .auth-card .card-body {
    padding: 28px;
  }
}

/* === ADMIN BODY (preserve compatibility) === */
body.admin {
  background: var(--bg-warm);
}

/* === CATEGORY PAGE === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-muted);
}

.category-card .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.category-card .cat-icon i {
  font-size: 20px;
  color: var(--gold-dark);
}

.category-card h5 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
}

.category-card .post-count {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

/* === DASHBOARD === */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  margin: 0;
}

.dashboard-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 4px 0 0;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* === LOADING SKELETON (for future use) === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-warm) 25%, var(--border-soft) 50%, var(--bg-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =====================================================
   BLOG PAGE HEADER (for when linked from main site)
   ===================================================== */
.blog-page-header {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-soft) 100%);
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(37,99,235,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(37,99,235,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.blog-header-content {
  position: relative;
  z-index: 1;
}

.blog-header-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.blog-page-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.blog-page-header h1 .highlight {
  color: var(--gold);
}

.blog-page-header p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* =====================================================
   BLOG POST LIST (horizontal cards)
   ===================================================== */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  transition: all var(--transition);
}

.blog-post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--border);
}

.blog-post-card .post-thumbnail {
  flex-shrink: 0;
  width: 280px;
  overflow: hidden;
}

.blog-post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.blog-post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.blog-post-card .post-content {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-category-tag {
  padding: 3px 12px;
  background: var(--gold-muted);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
}

.post-category-tag:hover {
  background: var(--gold);
  color: var(--navy);
}

.post-date {
  color: var(--text-muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

.post-title a:hover {
  color: var(--gold-dark);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.author-name {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all var(--transition);
}

.read-more-link:hover {
  color: var(--gold);
  gap: 10px;
}

.read-more-link i {
  font-size: 11px;
  transition: transform var(--transition);
}

.blog-post-card:hover .read-more-link i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .blog-post-card {
    flex-direction: column;
  }

  .blog-post-card .post-thumbnail {
    width: 100%;
    height: 200px;
  }

  .blog-page-header h1 {
    font-size: 1.75rem;
  }
}

/* =====================================================
   ADMIN PANEL LAYOUT
   ===================================================== */

/* Admin wrapper */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* Admin sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 24px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar-header img {
  height: 30px;
}

.admin-sidebar-header span {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-sidebar-label {
  padding: 20px 22px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.admin-nav-list {
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

.admin-nav-list li {
  margin-bottom: 2px;
}

.admin-nav-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.admin-nav-list li a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.admin-nav-list li a.active {
  background: rgba(37,99,235,0.15);
  color: var(--gold-light);
}

.admin-nav-list li a i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 16px 10px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Admin main content */
.admin-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin topbar */
.admin-topbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar-left h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-primary);
  padding: 8px;
}

/* Admin content area */
.admin-content {
  flex: 1;
  padding: 32px;
}

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card .stat-icon.posts {
  background: rgba(37,99,235,0.12);
  color: var(--gold-dark);
}

.stat-card .stat-icon.categories {
  background: var(--success-bg);
  color: var(--success);
}

.stat-card .stat-icon.users {
  background: rgba(75,143,212,0.12);
  color: var(--info);
}

.stat-card .stat-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.stat-card .stat-info a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
}

.stat-card .stat-info a:hover {
  color: var(--gold);
}

/* Admin page header */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-page-header .page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

.admin-page-header .page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* Admin table styles */
.admin-table-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: var(--ivory);
}

.admin-table .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Admin form card */
.admin-form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-form-card .form-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

/* Post editor layout */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.editor-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.editor-sidebar .sidebar-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.editor-sidebar .sidebar-section-header {
  padding: 14px 18px;
  background: var(--bg-warm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.editor-sidebar .sidebar-section-body {
  padding: 18px;
}

/* Featured image preview */
.featured-image-preview {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 10px;
}

.featured-image-preview img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

.featured-image-preview .remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(217,79,79,0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all var(--transition);
}

.featured-image-preview .remove-image-btn:hover {
  background: var(--error);
  transform: scale(1.1);
}

/* SEO preview card */
.seo-preview-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.seo-preview-box .seo-title {
  font-size: 16px;
  color: #1a0dab;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-preview-box .seo-url {
  font-size: 13px;
  color: var(--success);
  margin-bottom: 4px;
}

.seo-preview-box .seo-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CKEditor overrides for the theme */
.ck.ck-editor {
  border-radius: var(--radius) !important;
  overflow: hidden;
}

.ck.ck-editor__main > .ck-editor__editable {
  min-height: 360px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  border-color: var(--border) !important;
}

.ck.ck-editor__main > .ck-editor__editable:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--gold-muted) !important;
}

.ck.ck-toolbar {
  background: var(--bg-warm) !important;
  border-color: var(--border) !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* Image Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal-overlay.show {
  display: flex;
}

.admin-modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlide 0.3s var(--ease);
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-modal-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.admin-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition);
}

.admin-modal-close:hover {
  color: var(--error);
  background: var(--error-bg);
}

.admin-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Image library grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.image-grid-item {
  position: relative;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  aspect-ratio: 1;
}

.image-grid-item:hover {
  border-color: var(--gold);
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-grid-item .img-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: rgba(10,22,40,0.7);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Image resize controls in CKEditor */
.image-resize-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.image-resize-controls label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.image-resize-controls input[type="number"] {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
}

.image-resize-controls .btn {
  padding: 4px 12px;
  font-size: 12px;
}

/* Admin responsive */
@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-mobile-toggle {
    display: block;
  }

  .admin-content {
    padding: 20px;
  }

  .admin-topbar {
    padding: 0 20px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }
}

/* =====================================================
   ARTICLE PAGE — Premium Single Post Layout
   ===================================================== */

.article-page {
  background: var(--bg);
}

/* Article Header */
.article-header {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 70%, var(--navy-soft) 100%);
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 45% at 15% 50%, rgba(37,99,235,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 85% 60%, rgba(37,99,235,0.04) 0%, transparent 45%);
  pointer-events: none;
}

.article-header-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.article-category-tag:hover {
  background: rgba(37,99,235,0.2);
  color: var(--gold);
}

.article-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author .author-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.article-author .author-name {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.article-author .publish-date {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-top: 2px;
}

.article-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reading-time {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Featured Image */
.article-featured-image {
  margin-top: -2px;
}

.article-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: block;
}

/* Article Body */
.article-body {
  padding: 48px 0;
}

.article-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* ======== Article Content Rendering ======== */
.article-content {
  font-family: 'Poppins', sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 18px;
  line-height: 1.25;
}

.article-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 16px;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-muted);
}

.article-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 14px;
  line-height: 1.35;
}

.article-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
  line-height: 1.4;
}

.article-content h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 24px 0 10px;
}

.article-content h6 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 20px 0 8px;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-content a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.3);
  text-underline-offset: 3px;
  transition: all var(--transition);
}

.article-content a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.article-content strong {
  font-weight: 700;
  color: var(--navy);
}

.article-content em {
  font-style: italic;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--gold);
  background: var(--ivory);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content ul,
.article-content ol {
  margin: 18px 0 18px 20px;
  padding-left: 12px;
}

.article-content li {
  margin-bottom: 8px;
  padding-left: 6px;
}

.article-content ul li::marker {
  color: var(--gold-dark);
}

.article-content ol li::marker {
  color: var(--gold-dark);
  font-weight: 600;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.article-content figure {
  margin: 28px 0;
  text-align: center;
}

.article-content figure img {
  margin: 0 auto 10px;
}

.article-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.article-content code {
  background: var(--bg-warm);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
  color: var(--gold-dark);
  border: 1px solid var(--border-soft);
}

.article-content pre {
  margin: 24px 0;
  padding: 24px;
  background: var(--navy);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.6;
}

.article-content pre code {
  background: none;
  border: none;
  color: #e2e8f0;
  padding: 0;
  font-size: 14px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-content th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.article-content tr:hover td {
  background: var(--ivory);
}

.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--gold-muted), var(--border), transparent);
  margin: 36px 0;
}

/* Article Footer */
.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--gold-muted);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
}

.tag-pill:hover {
  background: var(--gold);
  color: var(--navy);
}

.share-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.share-buttons {
  display: flex;
  gap: 6px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.share-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Related Posts */
.related-posts {
  padding: 48px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-soft);
}

.related-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.related-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
}

.related-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.related-card-img {
  height: 160px;
  overflow: hidden;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.related-card:hover .related-card-img img {
  transform: scale(1.05);
}

.related-card-body {
  padding: 18px;
}

.related-card-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

.related-date {
  font-size: 12px;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: 20px;
}

.back-link:hover {
  color: var(--gold);
  gap: 12px;
}

/* Article Responsive */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
  }

  .article-header {
    padding: 40px 0 32px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-content h1 { font-size: 1.6rem; }
  .article-content h2 { font-size: 1.35rem; }
  .article-content h3 { font-size: 1.15rem; }

  .article-featured-image img {
    max-height: 340px;
    border-radius: 0;
  }

  .article-body {
    padding: 32px 0;
  }

  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   USER DASHBOARD — Premium Frontend Layout
   ===================================================== */

.dashboard-page {
  background: var(--bg);
  min-height: 80vh;
}

.dashboard-hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 0;
  color: #fff;
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.dashboard-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-avatar {
  width: 72px;
  height: 72px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.dashboard-user h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin: 0 0 4px;
  color: #fff;
}

.dashboard-user p {
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-size: 15px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.dashboard-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.dashboard-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-muted);
}

.dashboard-stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.dashboard-stat-card .stat-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 2px;
  font-weight: 700;
}

.dashboard-stat-card .stat-info p {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0;
}

.dashboard-content-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
}

.dashboard-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.dashboard-empty .empty-icon {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.dashboard-empty h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.dashboard-empty p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

.dashboard-table-wrap {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  background: var(--bg-warm);
  padding: 16px 24px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.dashboard-table td {
  padding: 24px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

.dashboard-table tr:hover {
  background: rgba(250, 250, 247, 0.5); /* Ivory subtle */
}

.story-title-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-thumb.empty {
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 20px;
}

.story-details .story-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition);
}

.story-details a.story-title:hover {
  color: var(--gold-dark);
}

.story-details .story-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.published {
  background: rgba(45, 159, 111, 0.1);
  color: #2D9F6F;
  border: 1px solid rgba(45, 159, 111, 0.2);
}

.status-badge.draft {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(232, 168, 62, 0.2);
}

.story-date {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
}

.story-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-btn.edit:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.action-btn.delete:hover {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}

@media (max-width: 992px) {
  .dashboard-table-wrap {
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .dashboard-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-user h1 {
    font-size: 1.6rem;
  }
  
  .story-thumb {
    display: none;
  }
}


/* === NEW CLASSIC ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: fadeIn 0.8s ease-in-out;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.hero-content {
  animation: slideUp 1s ease-out;
}

.featured-card {
  animation: slideUp 1s ease-out 0.2s both;
}

.post-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
