/* =========================
   BLOG / CMS ADDITIONS
   ========================= */

.blog-brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.blog-nav-static {
  max-height: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.blog-hero-section {
  min-height: auto;
  padding-bottom: 24px;
}

.blog-hero-grid {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
  padding: 56px 0 12px;
}

.blog-hero-box {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
}

.blog-listing-section {
  padding-top: 56px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card,
.blog-post-card,
.blog-empty-state,
.admin-card {
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.blog-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.blog-empty-state,
.blog-post-card {
  border-radius: var(--radius-xl);
  padding: 32px;
}

.blog-post-main {
  padding-bottom: 60px;
}

.blog-post-section {
  padding-top: 72px;
}

.blog-post-card {
  max-width: 860px;
  margin: 0 auto;
}

.blog-post-card h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin-bottom: 18px;
}

.blog-post-excerpt {
  font-size: 1.08rem;
  margin-bottom: 22px;
}

.blog-post-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 20px 0 24px;
}

.blog-post-content {
  color: var(--text-soft);
  line-height: 1.9;
  white-space: normal;
}

.blog-post-content br {
  display: block;
  content: "";
  margin-bottom: 0.65rem;
}

.blog-post-actions {
  margin-top: 28px;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.admin-shell-wide {
  align-items: flex-start;
}

.admin-card {
  width: min(1100px, 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.admin-note,
.admin-warning {
  margin-bottom: 14px;
}

.admin-warning code {
  background: rgba(255,255,255,0.7);
  padding: 3px 6px;
  border-radius: 8px;
}

.admin-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(197, 80, 80, 0.12);
  border: 1px solid rgba(197, 80, 80, 0.18);
  color: #7e2f2f;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.82);
}

.admin-form textarea {
  resize: vertical;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.admin-table th {
  color: var(--text);
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions-cell a {
  color: var(--brand);
  font-weight: 600;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-status-draft {
  background: rgba(19, 33, 42, 0.08);
}

.admin-status-published {
  background: rgba(45, 111, 155, 0.12);
  color: var(--brand);
}

@media (max-width: 980px) {
  .blog-hero-grid,
  .blog-grid,
  .admin-grid,
  .admin-topbar {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: grid;
  }
}

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

  .blog-post-card,
  .blog-empty-state,
  .admin-card {
    padding: 22px;
  }

  .blog-brand-text {
    font-size: 1.45rem;
  }
}
/* =========================
   CMS STYLING ONLY
========================= */

.cms-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 224, 0.55), transparent 32%),
    radial-gradient(circle at bottom right, rgba(214, 236, 223, 0.55), transparent 30%),
    #fcfaf8;
}

.cms-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.cms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cms-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cms-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.cms-title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.cms-subtitle {
  margin: 0.35rem 0 0;
  opacity: 0.72;
  max-width: 58ch;
}

.cms-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cms-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cms-panel {
  padding: 1.5rem;
}

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

.cms-login-wrap {
  max-width: 560px;
  margin: 6rem auto;
}

.cms-form {
  display: grid;
  gap: 1.1rem;
}

.cms-field {
  display: grid;
  gap: 0.45rem;
}

.cms-field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.cms-input,
.cms-textarea,
.cms-select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cms-textarea {
  min-height: 160px;
  resize: vertical;
}

.cms-input:focus,
.cms-textarea:focus,
.cms-select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 214, 224, 0.35);
}

.cms-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cms-form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cms-help {
  font-size: 0.86rem;
  opacity: 0.65;
  margin-top: -0.2rem;
}

.cms-table-wrap {
  overflow-x: auto;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
}

.cms-table th,
.cms-table td {
  text-align: left;
  padding: 1rem 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

.cms-table th {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.cms-table td strong a {
  text-decoration: none;
  color: inherit;
}

.cms-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(214, 236, 223, 0.8);
}

.cms-badge.is-draft {
  background: rgba(255, 214, 224, 0.75);
}

.cms-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cms-button,
.cms-inline-button,
.cms-link-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cms-button:hover,
.cms-inline-button:hover,
.cms-link-button:hover {
  transform: translateY(-1px);
}

.cms-button-primary {
  background: #111;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.cms-button-soft {
  background: rgba(255, 214, 224, 0.62);
  color: #111;
}

.cms-button-outline {
  background: transparent;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.cms-button-danger {
  background: #111;
  color: #fff;
}

.cms-alert {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cms-alert-error {
  background: rgba(255, 214, 214, 0.8);
  border: 1px solid rgba(177, 70, 70, 0.18);
}

.cms-alert-success {
  background: rgba(220, 243, 228, 0.85);
  border: 1px solid rgba(68, 130, 86, 0.18);
}

.cms-section-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.cms-muted {
  opacity: 0.68;
}

.cms-editor-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
}

.cms-sticky {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

@media (max-width: 980px) {
  .cms-editor-layout,
  .cms-form-row,
  .cms-form-row-3 {
    grid-template-columns: 1fr;
  }

  .cms-header {
    flex-direction: column;
    align-items: flex-start;
  }
}.cms-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.cms-tool-button {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cms-tool-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.cms-editor-textarea {
  min-height: 420px;
  font-family: inherit;
  line-height: 1.7;
}
.blog-post-content {
  font-size: 1.02rem;
  line-height: 1.8;
}

.blog-post-content p {
  margin: 0 0 1.2rem;
}

.blog-post-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 2.2rem 0 1rem;
}

.blog-post-content h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  line-height: 1.2;
  margin: 1.7rem 0 0.8rem;
}

.blog-post-content strong {
  font-weight: 700;
}

.blog-post-content em {
  font-style: italic;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 1.3rem 1.3rem;
  padding-left: 1rem;
}

.blog-post-content li {
  margin-bottom: 0.45rem;
}

.blog-post-content blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 18px 18px 0;
}

.blog-post-content a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.blog-post-content .soft-highlight {
  background: rgba(255, 214, 224, 0.45);
  padding: 0.08em 0.28em;
  border-radius: 0.4em;
}