/*
Theme Name: Collabar Blog
Theme URI: https://collabar.app/
Author: Obly India Group
Author URI: https://collabar.app/
Description: A lightweight classic theme for the Collabar blog, styled to match the Collabar web app (light redesign palette, Plus Jakarta Sans, purple accents). Built on a clean _underscores foundation.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collabar
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens (mirrors collabar-frontend redesign palette)
   ========================================================================== */
:root {
  --cb-primary: #5729f2;
  --cb-primary-deep: #5237f9;
  --cb-primary-soft: #5c36f4;
  --cb-primary-tint: #f2edff;
  --cb-gradient: linear-gradient(-120deg, #6934ff 0%, #9454cd 22%, #3c12c5 100%);
  --cb-text: #1f1638;
  --cb-heading: #1a1130;
  --cb-muted: #5f5875;
  --cb-bg: #fdfdff;
  --cb-card: #ffffff;
  --cb-border: rgba(87, 41, 242, 0.12);
  --cb-border-soft: rgba(31, 22, 56, 0.08);
  --cb-radius-xs: 10px;
  --cb-radius-sm: 14px;
  --cb-radius: 20px;
  --cb-radius-lg: 28px;
  --cb-radius-xl: 36px;
  --cb-pill: 999px;
  --cb-shadow: 0 16px 40px rgba(18, 8, 54, 0.08);
  --cb-shadow-sm: 0 8px 24px rgba(18, 8, 54, 0.06);
  --cb-shadow-hover: 0 24px 60px rgba(18, 8, 54, 0.14);
  --cb-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cb-container: 1320px;
  --cb-gap: 32px;
  --cb-transition: 0.25s ease;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cb-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cb-text);
  background: var(--cb-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover,
a:focus {
  color: var(--cb-primary-soft);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  color: var(--cb-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(34px, 4.5vw, 52px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

p {
  margin: 0 0 1.25em;
}

blockquote {
  margin: 1.5em 0;
  padding: 20px 28px;
  border-left: 4px solid var(--cb-primary);
  background: var(--cb-primary-tint);
  border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
  font-style: italic;
  color: var(--cb-text);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

pre {
  background: #171930;
  color: #e9e9f5;
  padding: 22px;
  border-radius: var(--cb-radius-sm);
  overflow: auto;
}

code {
  background: var(--cb-primary-tint);
  color: var(--cb-primary-deep);
  padding: 2px 6px;
  border-radius: 6px;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--cb-border-soft);
  margin: 2em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
}

th,
td {
  padding: 12px 16px;
  border: 1px solid var(--cb-border-soft);
  text-align: left;
}

th {
  background: var(--cb-primary-tint);
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link:focus {
  background: #fff;
  color: var(--cb-primary);
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  left: 16px;
  top: 16px;
  z-index: 100000;
  padding: 12px 18px;
  border-radius: var(--cb-pill);
  box-shadow: var(--cb-shadow);
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.cb-container {
  width: 100%;
  max-width: var(--cb-container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 576px) {
  .cb-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .cb-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .cb-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .cb-container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .cb-container {
    max-width: 1320px;
  }
}

.cb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  padding: 56px 0 80px;
}

.cb-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.cb-main {
  min-width: 0;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--cb-pill);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--cb-font);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--cb-transition), box-shadow var(--cb-transition), background var(--cb-transition);
}

.cb-btn--primary {
  background: var(--cb-primary);
  color: #fff;
  box-shadow: 0 16px 40px rgba(18, 8, 54, 0.18);
}

.cb-btn--primary:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: var(--cb-shadow-hover);
}

.cb-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.cb-btn--ghost:hover {
  transform: translateY(-2px);
  color: #fff;
}

.cb-btn--outline {
  background: transparent;
  color: var(--cb-primary);
  border-color: var(--cb-border);
}

.cb-btn--outline:hover {
  background: var(--cb-primary-tint);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.cb-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(253, 253, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cb-border-soft);
  transition: box-shadow var(--cb-transition), background var(--cb-transition);
}

.cb-header.is-stuck {
  box-shadow: var(--cb-shadow-sm);
  background: #fff;
}

.cb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.cb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--cb-heading);
}

.cb-logo img {
  max-height: 40px;
  width: auto;
}

.cb-logo__text span {
  color: var(--cb-primary);
}

.cb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cb-nav a {
  padding: 10px 16px;
  border-radius: var(--cb-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--cb-text);
}

.cb-nav a:hover {
  color: var(--cb-primary);
  background: var(--cb-primary-tint);
}

.cb-nav .current-menu-item>a,
.cb-nav .is-active>a,
.cb-nav a[aria-current] {
  color: var(--cb-primary);
  background: var(--cb-primary-tint);
}

.cb-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.cb-nav li {
  position: relative;
}

.cb-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  display: block;
  background: #fff;
  border: 1px solid var(--cb-border-soft);
  border-radius: var(--cb-radius-sm);
  box-shadow: var(--cb-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--cb-transition);
}

.cb-nav li:hover>.sub-menu,
.cb-nav li:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cb-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--cb-radius-xs);
}

.cb-nav-cta {
  display: inline-flex;
}

.cb-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--cb-pill);
  border: 1px solid var(--cb-border);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.cb-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cb-heading);
  border-radius: 2px;
}

.cb-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   6. Page banner / breadcrumb
   ========================================================================== */
.cb-pagehead {
  background:
    radial-gradient(circle at -26% -26%, #ffffff14 0% 30%, #0000 30%),
    linear-gradient(-120deg, #6934ff 0%, #9454cd 22%, #3c12c5 100%);
  color: #fff;
  padding: 64px 0 72px;
  margin-bottom: 8px;
}

.cb-pagehead__eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: var(--cb-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  margin-bottom: 18px;
}

.cb-pagehead h1 {
  color: #fff;
  margin-bottom: 10px;
}

.cb-pagehead p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.cb-breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 16px;
}

.cb-breadcrumb a {
  color: #fff;
  font-weight: 600;
}

.cb-breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
}

/* ==========================================================================
   7. Post grid & cards
   ========================================================================== */
.cb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--cb-gap);
}

.cb-card {
  background: var(--cb-card);
  border: 1px solid var(--cb-border-soft);
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--cb-transition), box-shadow var(--cb-transition), border-color var(--cb-transition);
}

.cb-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cb-shadow-hover);
  border-color: var(--cb-border);
}

.cb-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cb-primary-tint);
}

.cb-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cb-card:hover .cb-card__thumb img {
  transform: scale(1.05);
}

.cb-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cb-card__cat {
  align-self: flex-start;
  background: var(--cb-primary-tint);
  color: var(--cb-primary-soft);
  border-radius: var(--cb-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.cb-card__title {
  font-size: 22px;
  margin-bottom: 10px;
}

.cb-card__title a {
  color: var(--cb-heading);
}

.cb-card__title a:hover {
  color: var(--cb-primary);
}

.cb-card__excerpt {
  color: var(--cb-muted);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.cb-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--cb-muted);
  padding-top: 16px;
  border-top: 1px solid var(--cb-border-soft);
}

.cb-card__meta .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.cb-card__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cb-muted);
  opacity: 0.5;
}

/* ==========================================================================
   8. Single post
   ========================================================================== */
.cb-entry {
  /* max-width: 780px; */
}

.cb-entry__header {
  margin-bottom: 28px;
}

.cb-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--cb-muted);
  font-size: 14.5px;
  margin-top: 18px;
}

.cb-entry__thumb {
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  margin: 0 0 36px;
  box-shadow: var(--cb-shadow-sm);
}

.cb-entry__content {
  font-size: 18px;
}

.cb-entry__content>* {
  margin-bottom: 1.4em;
}

.cb-entry__content h2,
.cb-entry__content h3 {
  margin-top: 1.6em;
}

.cb-entry__content ul,
.cb-entry__content ol {
  padding-left: 1.4em;
}

.cb-entry__content li {
  margin-bottom: 0.5em;
}

.cb-entry__content img {
  border-radius: var(--cb-radius);
}

.cb-entry__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cb-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0;
}

.cb-entry__tags a {
  background: var(--cb-primary-tint);
  color: var(--cb-primary-soft);
  border-radius: var(--cb-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.cb-entry__tags a:hover {
  background: var(--cb-primary);
  color: #fff;
}

/* Post navigation */
.cb-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0 0;
}

.cb-postnav a {
  display: block;
  padding: 22px;
  border: 1px solid var(--cb-border-soft);
  border-radius: var(--cb-radius);
  background: #fff;
  transition: all var(--cb-transition);
}

.cb-postnav a:hover {
  border-color: var(--cb-border);
  box-shadow: var(--cb-shadow-sm);
  transform: translateY(-3px);
}

.cb-postnav .label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cb-primary-soft);
  margin-bottom: 6px;
}

.cb-postnav .title {
  color: var(--cb-heading);
  font-weight: 700;
}

.cb-postnav .next {
  text-align: right;
}

/* Author box */
.cb-authorbox {
  display: flex;
  gap: 20px;
  padding: 28px;
  margin-top: 44px;
  background: var(--cb-primary-tint);
  border-radius: var(--cb-radius-lg);
}

.cb-authorbox .avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cb-authorbox h4 {
  margin-bottom: 4px;
}

.cb-authorbox p {
  margin: 0;
  color: var(--cb-muted);
  font-size: 15px;
}

/* ==========================================================================
   9. Sidebar & widgets
   ========================================================================== */
.cb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cb-widget {
  background: #fff;
  border: 1px solid var(--cb-border-soft);
  border-radius: var(--cb-radius-lg);
  padding: 26px;
}

.cb-widget__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.cb-widget__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--cb-primary);
}

.cb-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cb-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cb-border-soft);
  font-size: 15px;
}

.cb-widget ul li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cb-widget ul li a {
  color: var(--cb-text);
}

.cb-widget ul li a:hover {
  color: var(--cb-primary);
}

.cb-widget select,
.cb-widget input[type="text"],
.cb-widget input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-xs);
  font-family: var(--cb-font);
  font-size: 15px;
}

.cb-widget .tagcloud a {
  background: var(--cb-primary-tint);
  color: var(--cb-primary-soft);
  border-radius: var(--cb-pill);
  padding: 6px 14px;
  font-size: 13px !important;
  display: inline-block;
  margin: 0 6px 8px 0;
  font-weight: 600;
}

.cb-widget .tagcloud a:hover {
  background: var(--cb-primary);
  color: #fff;
}

/* Mini recent-posts widget */
.cb-recent {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cb-border-soft);
}

.cb-recent:last-child {
  border-bottom: 0;
}

.cb-recent img {
  width: 64px;
  height: 64px;
  border-radius: var(--cb-radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.cb-recent__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cb-heading);
  margin-bottom: 2px;
  display: block;
}

.cb-recent__date {
  font-size: 13px;
  color: var(--cb-muted);
}

/* ==========================================================================
   10. Search / pagination / 404
   ========================================================================== */
.cb-searchform {
  display: flex;
  gap: 0;
}

.cb-searchform input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 55px;
  padding: 0 20px;
  border: 1px solid var(--cb-border);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  font-family: var(--cb-font);
  font-size: 15px;
  background: #fff;
}

.cb-searchform input[type="search"]:focus {
  outline: none;
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 4px var(--cb-primary-tint);
  position: relative;
  z-index: 2;
}

.cb-searchform .cb-btn {
  min-height: 55px;
  min-width: 55px;
  padding: 0 22px;
  border-radius: 0 6px 6px 0;
  flex-shrink: 0;
}

.cb-pagination {
  margin-top: 48px;
}

.cb-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cb-pagination .page-numbers {
  min-width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--cb-pill);
  background: #fff;
  border: 1px solid var(--cb-border-soft);
  color: var(--cb-text);
  font-weight: 700;
}

.cb-pagination .page-numbers.current,
.cb-pagination .page-numbers:hover {
  background: var(--cb-primary);
  border-color: var(--cb-primary);
  color: #fff;
}

.cb-notfound {
  text-align: center;
  padding: 80px 0;
}

.cb-notfound__code {
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 800;
  line-height: 1;
  background: var(--cb-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cb-notfound p {
  color: var(--cb-muted);
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 28px;
}

.cb-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--cb-muted);
}

/* ==========================================================================
   11. Comments
   ========================================================================== */
.cb-comments {
  margin-top: 56px;
}

.cb-comments__title {
  font-size: 24px;
}

.cb-comment-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.cb-comment-list .comment-body {
  padding: 22px;
  border: 1px solid var(--cb-border-soft);
  border-radius: var(--cb-radius);
  background: #fff;
  margin-bottom: 18px;
}

.cb-comment-list .children {
  list-style: none;
  margin: 0 0 0 32px;
  padding: 0;
}

.cb-comment-list .comment-author img {
  border-radius: 50%;
  margin-right: 10px;
}

.cb-comment-list .comment-meta {
  font-size: 14px;
  color: var(--cb-muted);
  margin-bottom: 10px;
}

.cb-comment-list .comment-meta a {
  color: var(--cb-muted);
}

.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-xs);
  font-family: var(--cb-font);
  font-size: 15px;
  margin-bottom: 18px;
  background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 4px var(--cb-primary-tint);
}

.comment-form .submit {
  background: var(--cb-primary);
  color: #fff;
  border: 0;
  border-radius: var(--cb-pill);
  min-height: 50px;
  padding: 0 30px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.comment-form .submit:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   12. Newsletter subscribe
   ========================================================================== */
.cb-subscribe-section {
  margin-top: 72px;
}

.cb-subscribe {
  background: var(--cb-gradient);
  color: #fff;
  border-radius: var(--cb-radius-xl);
  padding: 56px 40px;
  text-align: center;
  margin: 0;
}

.cb-subscribe h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cb-subscribe p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cb-subscribe__form {
  display: flex;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

.cb-subscribe__form input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--cb-pill);
  font-family: var(--cb-font);
  font-size: 15px;
  box-shadow: 0 16px 40px rgba(18, 8, 54, 0.18);
}

.cb-subscribe__form input:focus {
  outline: none;
}

.cb-subscribe__form .cb-btn {
  background: #fff;
  color: var(--cb-primary);
  flex-shrink: 0;
}

.cb-subscribe__msg {
  margin-top: 16px;
  font-size: 15px;
  min-height: 22px;
}

.cb-subscribe__msg.is-error {
  color: #ffd9e0;
}

.cb-subscribe__msg.is-success {
  color: #d9ffe8;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.cb-footer {
  background: var(--cb-card);
  color: var(--cb-text);
  border-top: 1px solid var(--cb-border);
  margin-top: 72px;
}

.cb-footer__top {
  padding: 100px 0 70px;
}

.cb-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px 32px;
}

.cb-footer .cb-logo {
  color: var(--cb-heading);
}

.cb-footer__about {
  max-width: 320px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 28px;
  color: var(--cb-muted);
}

.cb-footer h4 {
  color: var(--cb-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.cb-footer ul {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
}

.cb-footer ul li {
  margin: 5px 0;
}

.cb-footer ul li a,
.cb-footer a {
  color: var(--cb-muted);
  font-size: 14px;
  line-height: 25px;
  text-transform: capitalize;
  transition: 0.3s;
}

.cb-footer ul li a:hover,
.cb-footer a:hover {
  color: var(--cb-primary);
}

.cb-footer__social {
  display: flex;
  gap: 10px;
}

.cb-footer__social a {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cb-primary-tint);
  color: var(--cb-primary);
  transition: 0.3s;
}

.cb-footer__social a:hover {
  background: var(--cb-primary);
  color: #fff;
}

.cb-footer__copyright {
  border-top: 1px solid var(--cb-border);
  padding: 20px 0;
  font-size: 14px;
  color: var(--cb-muted);
}

.cb-footer__copyright strong {
  color: var(--cb-heading);
}

.cb-footer__copyright-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cb-footer__copyright-inner p {
  margin: 0;
}

.cb-footer__copyright .cb-footer__social a {
  width: 42px;
  height: 42px;
}

@media (max-width: 640px) {
  .cb-footer__copyright-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cb-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .cb-footer__cols {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .cb-nav-cta {
    display: none;
  }

  .cb-menu-toggle {
    display: inline-flex;
  }

  .cb-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 88px 24px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--cb-transition);
    box-shadow: -20px 0 60px rgba(18, 8, 54, 0.18);
    z-index: 950;
    overflow-y: auto;
    height: 100vh;
    display: none;
  }

  .cb-nav.is-open {
    transform: translateX(0);
    display: flex;
  }

  .cb-nav ul {
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
  }

  .cb-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
  }

  .cb-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 50, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--cb-transition);
    z-index: 940;
  }

  .cb-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 640px) {
  :root {
    --cb-gap: 22px;
  }

  .cb-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .cb-postnav {
    grid-template-columns: 1fr;
  }

  .cb-postnav .next {
    text-align: left;
  }

  .cb-subscribe {
    padding: 44px 22px;
  }

  .cb-subscribe__form {
    flex-direction: column;
  }

  .cb-authorbox {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* WordPress core alignment classes */
.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.aligncenter {
  display: block;
  margin: 0 auto 16px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
  font-size: 14px;
  color: var(--cb-muted);
  text-align: center;
  margin-top: 8px;
}

.sticky {
  display: block;
}

/* Banner meta, centered pages, 404 */
.cb-pagehead .cb-entry__meta {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 16px;
}

.cb-pagehead .cb-entry__meta .dot {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.cb-layout--full .cb-entry {
  margin-inline: auto;
}

.cb-notfound .cb-searchform {
  max-width: 480px;
  margin: 32px auto 0;
}

.cb-widget .cb-recent {
  text-decoration: none;
}

/* ==========================================================================
   15. Accessibility & motion
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--cb-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.cb-btn:focus-visible,
.cb-nav a:focus-visible,
.cb-menu-toggle:focus-visible {
  outline: 3px solid var(--cb-primary);
  outline-offset: 3px;
}

::selection {
  background: rgba(87, 41, 242, 0.18);
}

:target {
  scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cb-card:hover,
  .cb-postnav a:hover,
  .cb-btn:hover {
    transform: none;
  }
}