/* =====================================================
   VICLIMA — Blog Styles
   ===================================================== */

/* ── Navbar always dark on blog pages ───────────── */
#navbar {
  background: rgba(10, 18, 34, 0.92) !important;
  backdrop-filter: blur(20px) !important;
}

/* ── Blog Hero ───────────────────────────────────── */
.blog-hero {
  background: linear-gradient(160deg, #EDF4FF 0%, #E4EFF9 60%, #F0F7FF 100%);
  padding: 120px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(107,174,214,0.12) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(30,78,138,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(30,78,138,0.07);
  border: 1px solid rgba(30,78,138,0.14);
  color: var(--primary);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.blog-hero p {
  font-size: 1.05rem;
  color: var(--text-md);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Blog Grid ───────────────────────────────────── */
.blog-section {
  background: var(--bg);
  padding: 72px 0 96px;
  min-height: 60vh;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: var(--text-light);
}
.blog-empty i { font-size: 3rem; display: block; margin-bottom: 16px; color: var(--border); }

/* ── Post Card ───────────────────────────────────── */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.post-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-section);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EDF4FF, #D4E8F5);
  color: var(--accent);
  font-size: 2.5rem;
}
.post-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.post-card-tags-bottom {
  margin-bottom: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(30,78,138,0.08);
}
.post-tag {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(30,78,138,0.65);
  background: rgba(30,78,138,0.05);
  border: 1px solid rgba(30,78,138,0.1);
  padding: 2px 8px;
  border-radius: 100px;
}
.post-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}
.post-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-md);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.post-card-date {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-card-date i { font-size: 0.85rem; }
.post-read-btn {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.post-read-btn:hover { gap: 8px; }
.post-read-btn i { font-size: 0.9rem; }

/* ── Blog Post Page ──────────────────────────────── */
.post-hero {
  background: linear-gradient(160deg, #EDF4FF, #E4EFF9);
  padding: 100px 0 56px;
}
.post-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.post-hero-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 18px; margin-bottom: 0; }
.post-hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-md);
}
.post-hero-meta span { display: flex; align-items: center; gap: 5px; }
.post-hero-meta i { font-size: 1rem; color: var(--accent-dark); }

/* Post cover image */
.post-cover {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}
.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Post content */
.post-content-wrap {
  background: var(--white);
  padding: 72px 0 88px;
}
.post-content {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text);
}
.post-content h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2.2em 0 0.7em;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.post-content h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-md);
  margin: 1.8em 0 0.6em;
}
.post-content p { margin-bottom: 1.4em; }
.post-content ul, .post-content ol {
  margin: 0 0 1.4em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-content li { line-height: 1.7; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content a:hover { color: var(--primary-light); }
.post-content strong { color: var(--primary-dark); font-weight: 700; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(107,174,214,0.07);
  margin: 1.6em 0;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-md);
}
.post-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.4em 0;
  box-shadow: var(--shadow);
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

/* Post share bar */
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}
.post-share span {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--trans);
}
.share-btn-wa {
  background: linear-gradient(180deg, #22BF58, #158A38);
  color: white;
}
.share-btn-wa:hover { background: linear-gradient(180deg, #27CC60, #18963E); transform: translateY(-1px); }
.share-btn-wa i { font-size: 1rem; color: #fff; }
.share-btn-copy {
  background: var(--bg-section);
  color: var(--text-md);
  border: 1px solid var(--border);
}
.share-btn-copy:hover { background: var(--border); color: var(--text); }

/* Post back btn */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-md);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}
.post-back:hover { color: var(--primary); }
.post-back i { font-size: 0.95rem; }

/* Video CTA */
.post-video-cta { margin: 36px 0; }
.post-video-cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #0f0f1a 0%, #161028 100%);
  border-radius: 18px;
  padding: 24px 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 0 0 1px rgba(139,92,246,0.1);
}
.post-video-cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #6366f1, #a855f7);
}
.post-video-cta-inner::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.post-video-cta-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.post-video-cta-text {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.post-video-cta-text strong {
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.post-video-cta-text span {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}
.post-video-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #22BF58 0%, #158A38 100%);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(34,191,88,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-video-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(34,191,88,0.45);
}

/* Post CTA */
.post-cta {
  background: linear-gradient(160deg, #EDF4FF, #E4EFF9);
  border: 1px solid rgba(30,78,138,0.12);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin-top: 56px;
}
.post-cta h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.post-cta p { font-size: 0.92rem; color: var(--text-md); margin-bottom: 20px; }

/* Loading / Skeleton */
.blog-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--text-light);
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
}
.blog-spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Admin Panel ─────────────────────────────────── */
.admin-wrap {
  min-height: 100vh;
  background: #F0F5FB;
  font-family: 'Lato', sans-serif;
}
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #EDF4FF, #E4EFF9);
}
.admin-login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.admin-login-card img { height: 72px; width: 72px; object-fit: cover; border-radius: 18px; margin-bottom: 28px; }
.admin-login-card h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.admin-login-card p { font-size: 0.88rem; color: var(--text-md); margin-bottom: 28px; }
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--trans);
  width: 100%;
  justify-content: center;
}
.btn-google:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.btn-google img { width: 20px; }

.admin-header {
  background: #EBF4FF;
  border-bottom: 1px solid #C8DFF5;
  padding: 14px 0;
}
.admin-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-header img { height: 38px; }
.admin-header-right { display: flex; align-items: center; gap: 12px; }
.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-md);
}
.admin-user-badge img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); }
.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}
.btn-danger {
  background: rgba(220,38,38,0.08);
  color: #DC2626;
  border: 1px solid rgba(220,38,38,0.18);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}
.btn-danger:hover { background: rgba(220,38,38,0.15); }

.admin-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.admin-toolbar h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.btn-primary-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
}
.btn-primary-admin:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Posts table */
.posts-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.posts-table { width: 100%; border-collapse: collapse; }
.posts-table th {
  background: var(--bg-section);
  padding: 12px 16px;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.posts-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid rgba(200,216,232,0.5);
  vertical-align: middle;
}
.posts-table tr:last-child td { border-bottom: none; }
.posts-table tr:hover td { background: rgba(237,244,255,0.5); }
.badge-pub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
}
.badge-pub.published { background: rgba(58,158,113,0.12); color: #2A7A55; }
.badge-pub.draft { background: rgba(200,216,232,0.4); color: var(--text-light); }
.table-actions { display: flex; gap: 8px; }
.btn-table {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  border: 1px solid;
  transition: var(--trans);
}
.btn-table-edit { background: rgba(30,78,138,0.06); color: var(--primary); border-color: rgba(30,78,138,0.18); }
.btn-table-edit:hover { background: rgba(30,78,138,0.12); }
.btn-table-del { background: rgba(220,38,38,0.05); color: #DC2626; border-color: rgba(220,38,38,0.15); }
.btn-table-del:hover { background: rgba(220,38,38,0.12); }

/* Editor */
.editor-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}
.editor-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.editor-header-actions { display: flex; gap: 8px; align-items: center; }
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
}
.editor-left { padding: 24px; border-right: 1px solid var(--border); }
.editor-right { padding: 24px; background: #FAFCFF; }
.editor-field { margin-bottom: 20px; }
.editor-field label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 6px;
}
.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(58,125,196,0.10);
}
.editor-field textarea { min-height: 80px; resize: vertical; }
.editor-field input[type="file"] { padding: 8px; cursor: pointer; }

/* Rich text toolbar */
.rte-toolbar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--bg-section);
}
.rte-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-md);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s;
}
.rte-btn:hover { background: var(--border); color: var(--primary); }
.rte-sep { width: 1px; background: var(--border); margin: 4px 4px; align-self: stretch; }
.rte-editor {
  min-height: 320px;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text);
  outline: none;
  overflow-y: auto;
}
.rte-editor:focus { border-color: var(--primary-light); }
.rte-editor h2 { font-family: 'Raleway',sans-serif; font-size:1.3rem; font-weight:700; margin: 1em 0 0.4em; color: var(--primary-dark); }
.rte-editor h3 { font-family: 'Raleway',sans-serif; font-size:1.05rem; font-weight:700; margin: 1em 0 0.4em; }
.rte-editor ul, .rte-editor ol { margin: 0.5em 0 0.5em 1.4em; }
.rte-editor blockquote { border-left: 3px solid var(--accent); padding: 8px 14px; color: var(--text-md); font-style: italic; }

/* Image upload area */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg);
}
.img-upload-area:hover, .img-upload-area.drag-over {
  border-color: var(--primary-light);
  background: rgba(58,125,196,0.04);
}
.img-upload-area p { font-size: 0.82rem; color: var(--text-light); margin-top: 8px; }
.img-upload-area i { font-size: 2rem; color: var(--border); }
#imgPreview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 10px;
}

/* Toggle switch */
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.toggle-field label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0;
}
.toggle-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--whatsapp); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--primary-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
}
.admin-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.admin-toast.success { background: #15803D; }
.admin-toast.error   { background: #DC2626; }
.admin-toast.info    { background: #1E4E8A; }

/* Spinner en botón guardar */
#btnSave i.ph-spinner { animation: spin 0.7s linear infinite; display:inline-block; }

/* ── Pagination ──────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  padding-bottom: 16px;
}
.pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-md);
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.pag-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pag-btn.pag-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pag-prev, .pag-next { padding: 0 18px; gap: 6px; }
.pag-info {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-md);
  padding: 0 8px;
}

/* ── Responsive Blog ─────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-left { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .blog-hero { padding: 100px 0 52px; }
  .post-hero { padding: 90px 0 40px; }
  .post-cover { margin-top: -16px; }
  .post-cover img { aspect-ratio: 16 / 9; border-radius: var(--radius); }
  .post-content { font-size: 1rem; }
  .post-content h2 { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 28px 20px; }
  .post-share { flex-wrap: wrap; }
}
