/**
 * BecausePsychology — Modern psychology theme
 * Loaded after style.css to override the legacy Blogy template.
 */

:root {
  --psy-primary: #3d6b6b;
  --psy-primary-dark: #2a4f4f;
  --psy-primary-light: #5a8f8f;
  --psy-secondary: #7b8fa8;
  --psy-accent: #c9a66b;
  --psy-sage: #7a9e7e;
  --psy-bg: #f4f7f6;
  --psy-surface: #ffffff;
  --psy-text: #1e2d2d;
  --psy-muted: #5c6b6b;
  --psy-border: #dde8e6;
  --psy-shadow: 0 8px 30px rgba(42, 79, 79, 0.08);
  --psy-shadow-lg: 0 20px 50px rgba(42, 79, 79, 0.12);
  --psy-radius: 14px;
  --psy-radius-sm: 10px;
  --psy-font-body: "DM Sans", system-ui, sans-serif;
  --psy-font-heading: "Fraunces", Georgia, serif;

  --bs-primary: var(--psy-primary);
  --bs-primary-rgb: 61, 107, 107;
  --bs-secondary: var(--psy-secondary);
  --bs-body-bg: var(--psy-bg);
  --bs-body-color: var(--psy-text);
  --bs-border-color: var(--psy-border);
  --bs-link-color: var(--psy-primary);
  --bs-link-hover-color: var(--psy-primary-dark);
}

body {
  font-family: var(--psy-font-body);
  background-color: var(--psy-bg);
  color: var(--psy-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.heading,
.posts-entry-title {
  font-family: var(--psy-font-heading);
  font-weight: 600;
  color: var(--psy-primary-dark);
  letter-spacing: -0.02em;
}

.text-primary {
  color: var(--psy-primary) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--psy-primary-dark) 0%, var(--psy-primary) 55%, var(--psy-primary-light) 100%) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--psy-primary) 0%, var(--psy-primary-dark) 100%);
  border: none;
  border-radius: var(--psy-radius-sm);
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  box-shadow: 0 4px 14px rgba(61, 107, 107, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--psy-primary-dark) 0%, #1f3a3a 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(42, 79, 79, 0.3);
}

.btn-outline-primary {
  color: var(--psy-primary);
  border-color: var(--psy-primary);
  border-radius: var(--psy-radius-sm);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--psy-primary);
  border-color: var(--psy-primary);
}

.btn-light {
  border-radius: var(--psy-radius-sm);
  font-weight: 600;
  color: var(--psy-primary-dark);
}

.form-control,
.form-select {
  border-radius: var(--psy-radius-sm);
  border-color: var(--psy-border);
  padding: 0.7rem 1rem;
}

.form-control:focus {
  border-color: var(--psy-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(61, 107, 107, 0.15);
}

/* ─── Navbar ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--psy-border);
  padding: 0.65rem 0;
  box-shadow: 0 2px 20px rgba(42, 79, 79, 0.06);
}

.site-nav .menu-bg-wrap {
  background: transparent !important;
}

.site-nav .site-navigation .site-menu > li > a {
  color: var(--psy-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav .site-navigation .site-menu > li > a:hover,
.site-nav .site-navigation .site-menu > li.active > a {
  color: var(--psy-primary-dark) !important;
  background: rgba(61, 107, 107, 0.08);
}

.site-nav .site-navigation .site-menu > li > a i {
  margin-right: 0.25rem;
  opacity: 0.85;
}

.site-nav .search-form .form-control {
  background: var(--psy-bg);
  border: 1px solid var(--psy-border);
  border-radius: 999px;
  padding-left: 2.5rem;
  font-size: 0.9rem;
}

.site-nav .psy-nav-search .form-control,
.site-nav .psy-nav-search .form-control:focus,
.site-nav .psy-nav-search .form-control:active {
  min-width: 0;
  padding-left: 0.85rem;
  border: 1px solid var(--psy-border) !important;
  border-color: rgba(61, 107, 107, 0.35) !important;
  color: var(--psy-text) !important;
  box-shadow: none !important;
}

.site-nav .psy-nav-search .form-control:focus {
  border-color: var(--psy-primary) !important;
  background: #fff !important;
}

.site-nav .psy-nav-search .form-control::placeholder {
  color: var(--psy-muted);
  opacity: 0.85;
}

.site-nav .search-form span.bi-search {
  color: var(--psy-muted);
}

.psy-user-pill {
  font-size: 0.85rem;
  color: var(--psy-muted);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav .burger span,
.site-nav .burger span::before,
.site-nav .burger span::after {
  background: var(--psy-primary-dark);
}

/* ─── Homepage hero ─── */
.psy-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(122, 158, 126, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(123, 143, 168, 0.15) 0%, transparent 55%),
    linear-gradient(160deg, #eef4f3 0%, #f8faf9 50%, #f0f4f8 100%);
}

.psy-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(61, 107, 107, 0.06);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.psy-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(61, 107, 107, 0.1);
  color: var(--psy-primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.psy-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--psy-primary-dark);
}

.psy-hero-lead {
  font-size: 1.1rem;
  color: var(--psy-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

.psy-hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--psy-border);
}

.psy-hero-stat strong {
  display: block;
  font-family: var(--psy-font-heading);
  font-size: 1.5rem;
  color: var(--psy-primary);
}

.psy-hero-stat span {
  font-size: 0.85rem;
  color: var(--psy-muted);
}

.psy-hero-visual {
  position: relative;
}

.psy-hero-card {
  background: var(--psy-surface);
  border-radius: var(--psy-radius);
  padding: 1.75rem;
  box-shadow: var(--psy-shadow-lg);
  border: 1px solid var(--psy-border);
}

.psy-hero-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.psy-hero-card-icon.teal { background: rgba(61, 107, 107, 0.12); color: var(--psy-primary); }
.psy-hero-card-icon.sage { background: rgba(122, 158, 126, 0.15); color: var(--psy-sage); }
.psy-hero-card-icon.warm { background: rgba(201, 166, 107, 0.18); color: #a07d3a; }

/* ─── Page hero (inner pages) ─── */
.hero.inner-page,
.psy-page-hero {
  background: linear-gradient(135deg, var(--psy-primary-dark) 0%, var(--psy-primary) 60%, var(--psy-primary-light) 100%) !important;
  padding: 4rem 0 3.5rem !important;
  position: relative;
  overflow: hidden;
}

.hero.inner-page::after,
.psy-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero.inner-page h1,
.psy-page-hero h1 {
  color: #fff !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* ─── Sections & cards ─── */
.section {
  padding: 4rem 0;
}

.section.bg-light {
  background: var(--psy-bg) !important;
}

.blog-entry,
.h-entry,
.psy-blog-card {
  border-radius: var(--psy-radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-entry-search-item {
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem !important;
  box-shadow: var(--psy-shadow);
}

.blog-entry-search-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--psy-shadow-lg);
}

.blog-entry-search-item .img-link img {
  border-radius: var(--psy-radius-sm);
}

.blog-entry-search-item h2 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.blog-entry-search-item h2 a {
  color: var(--psy-primary-dark);
  text-decoration: none;
}

.blog-entry-search-item h2 a:hover {
  color: var(--psy-primary);
}

.blog-entry-search-item .date {
  font-size: 0.85rem;
  color: var(--psy-muted);
}

.blog-entry-search-item .date a {
  color: var(--psy-primary);
  text-decoration: none;
}

.posts-entry .heading,
.search-result-wrap .heading {
  font-family: var(--psy-font-heading);
  font-size: 1.75rem;
  color: var(--psy-primary-dark);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--psy-border);
  margin-bottom: 1.5rem;
}

.sidebar-box {
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--psy-shadow);
}

.sidebar-box .heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--psy-muted);
  margin-bottom: 1rem;
}

.sidebar-box .categories li a {
  color: var(--psy-text);
  text-decoration: none;
  padding: 0.35rem 0;
  display: block;
  border-bottom: 1px solid var(--psy-border);
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-box .categories li a:hover {
  color: var(--psy-primary);
  padding-left: 0.35rem;
}

/* ─── Blog detail ─── */
.site-cover.single-page {
  border-radius: 0;
}

.main-content .post-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--psy-text);
}

.comment-form-wrap form,
.auth-card {
  background: var(--psy-surface) !important;
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius) !important;
  box-shadow: var(--psy-shadow);
}

.comment-list .comment {
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

/* ─── Auth pages ─── */
.auth-page {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(ellipse at top right, rgba(122, 158, 126, 0.12), transparent 50%),
    var(--psy-bg);
}

.auth-card {
  padding: 2rem 2.25rem !important;
}

.auth-card h3 {
  font-family: var(--psy-font-heading);
  color: var(--psy-primary-dark);
}

.auth-visual img {
  border-radius: var(--psy-radius);
  box-shadow: var(--psy-shadow-lg);
}

/* ─── Features (about) ─── */
.sec-features .feature {
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--psy-shadow);
  transition: transform 0.2s;
}

.sec-features .feature:hover {
  transform: translateY(-3px);
}

.sec-features .feature span[class^="bi-"] {
  font-size: 1.75rem;
  color: var(--psy-primary);
  margin-right: 1rem;
  flex-shrink: 0;
}

.sec-halfs .half-content .text {
  background: var(--psy-surface);
  border-radius: var(--psy-radius);
  padding: 2rem;
  border: 1px solid var(--psy-border);
}

.sec-halfs .half-content .img {
  border-radius: var(--psy-radius);
  overflow: hidden;
}

/* ─── Footer ─── */
.site-footer {
  background: linear-gradient(180deg, #1e3333 0%, #152828 100%) !important;
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem !important;
}

.site-footer h3,
.site-footer .h3 {
  color: #fff !important;
  font-family: var(--psy-font-heading);
  font-size: 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff !important;
}

.site-footer .widget .links li {
  margin-bottom: 0.5rem;
}

.site-footer .social li a {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px;
  transition: background 0.2s;
}

.site-footer .social li a:hover {
  background: var(--psy-primary) !important;
}

.psy-footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.7;
}

.psy-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Misc ─── */
.no-posts-icon {
  color: var(--psy-primary) !important;
}

.no-posts-state {
  background: var(--psy-surface);
  border-radius: var(--psy-radius);
  border: 1px dashed var(--psy-border);
  padding: 2rem;
}

.alert {
  border-radius: var(--psy-radius-sm);
  border: none;
}

.alert-success {
  background: rgba(122, 158, 126, 0.15);
  color: #2d5a32;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #842029;
}

.filter-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--psy-muted);
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  cursor: pointer;
  margin: 0.2rem;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--psy-primary);
  color: #fff;
  border-color: var(--psy-primary);
}

#overlayer {
  background: var(--psy-bg);
}

.loader .spinner-border {
  color: var(--psy-primary) !important;
}

/* Retro layout polish */
.retro-layout .h-entry .text h2 {
  font-size: 1.1rem;
}

.h-entry.gradient .text {
  background: linear-gradient(to top, rgba(30, 45, 45, 0.85), transparent);
}

.h-entry {
  border-radius: var(--psy-radius);
  overflow: hidden;
}

/* ─── Navbar: brand mark & tool alignment ─── */
.psy-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  min-width: 0;
}

.psy-brand-mark {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--psy-primary) 0%, var(--psy-primary-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(61, 107, 107, 0.25);
}

.psy-brand-logo {
  height: 42px;
  width: auto;
  /* max-width: 42px; */
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.psy-brand-text {
  line-height: 1.15;
  min-width: 0;
}

.psy-brand-text strong {
  display: block;
  font-family: var(--psy-font-heading);
  font-size: 1rem;
  color: var(--psy-primary-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psy-brand-text small {
  display: block;
  font-size: 0.68rem;
  color: var(--psy-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.psy-nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.psy-nav-tools-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
}

.psy-nav-search {
  position: relative;
  align-items: center;
  margin: 0;
  flex: 0 1 120px;
  max-width: 120px;
  min-width: 0;
  z-index: 1;
}

.psy-nav-search .form-control {
  width: 100%;
  max-width: 120px;
  min-width: 0;
  padding-right: 2.25rem;
  padding-left: 0.85rem;
  height: 36px;
  border-radius: 999px;
  background: var(--psy-bg) !important;
  border: 1px solid rgba(61, 107, 107, 0.35) !important;
}

.psy-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--psy-muted);
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.psy-search-btn:hover {
  color: var(--psy-primary);
  background: rgba(61, 107, 107, 0.08);
}

.psy-nav-auth {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.psy-nav-auth .btn {
  white-space: nowrap;
  line-height: 1.2;
  padding: 0.35rem 0.75rem;
}

.psy-signin-link {
  color: var(--psy-primary-dark) !important;
  font-weight: 600;
  text-decoration: none !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

/* ─── Profile dropdown ─── */
.psy-profile-dropdown {
  position: relative;
}

.psy-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem !important;
  border: 1px solid var(--psy-border);
  border-radius: 999px;
  background: var(--psy-surface);
  color: var(--psy-primary-dark);
  box-shadow: none;
  line-height: 1.2;
}

.psy-profile-toggle:hover,
.psy-profile-toggle:focus,
.psy-profile-toggle.show {
  background: var(--psy-bg);
  border-color: rgba(61, 107, 107, 0.35);
  color: var(--psy-primary-dark);
  box-shadow: 0 2px 8px rgba(61, 107, 107, 0.1);
}

.psy-profile-toggle::after {
  margin-left: 0.15rem;
  font-size: 0.65rem;
  opacity: 0.6;
}

.psy-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--psy-primary), var(--psy-primary-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.psy-profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psy-profile-menu {
  min-width: 220px;
  border: 1px solid var(--psy-border);
  border-radius: 12px;
  padding: 0.35rem;
  margin-top: 0.5rem !important;
}

.psy-profile-menu .dropdown-header {
  padding: 0.65rem 0.85rem 0.5rem;
}

.psy-profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--psy-text);
}

.psy-profile-menu .dropdown-item i {
  font-size: 1rem;
  color: var(--psy-primary);
  width: 1.1rem;
  text-align: center;
}

.psy-profile-menu .dropdown-item:hover,
.psy-profile-menu .dropdown-item:focus {
  background: rgba(61, 107, 107, 0.08);
  color: var(--psy-primary-dark);
}

.psy-profile-menu .psy-dropdown-logout {
  color: #c45f42;
}

.psy-profile-menu .psy-dropdown-logout i {
  color: #c45f42;
}

.psy-profile-menu .psy-dropdown-logout:hover {
  background: rgba(196, 95, 66, 0.08);
  color: #a84d34;
}

.site-nav .search-form span.bi-search {
  display: none;
}

/* ─── Page hero breadcrumbs ─── */
.psy-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.psy-breadcrumb .breadcrumb-item,
.psy-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.9rem;
  text-decoration: none;
}

.psy-breadcrumb .breadcrumb-item a:hover {
  color: #fff !important;
}

.psy-breadcrumb .breadcrumb-item.active {
  color: #fff !important;
  font-weight: 600;
}

.psy-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45) !important;
  content: "/";
}

.psy-hero-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1rem;
  margin: 0;
}

/* ─── About features: fix white-on-white text ─── */
.sec-features {
  background: var(--psy-bg) !important;
  padding: 4rem 0;
}

.sec-features .feature {
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--psy-shadow);
}

.sec-features .feature h3,
.sec-features .feature .h3 {
  color: var(--psy-primary-dark) !important;
  font-weight: 600;
}

.sec-features .feature p {
  color: var(--psy-muted) !important;
}

.sec-features .feature [class^="bi-"] {
  flex: 0 0 auto !important;
  font-size: 1.75rem !important;
  margin-right: 1rem !important;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(61, 107, 107, 0.1);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sec-features .feature [class^="bi-"]:before {
  color: var(--psy-primary) !important;
  position: static !important;
  z-index: auto !important;
}

.sec-features .feature [class^="bi-"]:after {
  display: none !important;
}

/* Hero card icons — ensure visibility */
.psy-hero-card-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.psy-hero-card-icon i {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 991px) {
  .psy-brand-text small {
    display: none;
  }
}

@media (max-width: 575px) {
  .psy-brand-text strong {
    font-size: 0.9rem;
    max-width: 140px;
  }
}

/* ─── Services page ─── */
.psy-service-card {
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--psy-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.psy-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--psy-shadow-lg);
}

.psy-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(61, 107, 107, 0.12), rgba(122, 158, 126, 0.15));
  color: var(--psy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.psy-service-title {
  font-family: var(--psy-font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--psy-primary-dark);
  margin-bottom: 0.65rem;
}

.psy-service-desc {
  color: var(--psy-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.psy-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--psy-border);
  padding-top: 1rem;
}

.psy-service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--psy-text);
  margin-bottom: 0.4rem;
}

.psy-service-list li i {
  color: var(--psy-sage);
  font-weight: 700;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.psy-service-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.psy-service-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--psy-shadow);
}

.psy-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--psy-primary), var(--psy-primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.psy-service-step h4 {
  font-family: var(--psy-font-heading);
  font-size: 1.05rem;
  color: var(--psy-primary-dark);
  margin-bottom: 0.25rem;
}

.psy-services-cta {
  background: linear-gradient(135deg, var(--psy-primary-dark) 0%, var(--psy-primary) 55%, var(--psy-primary-light) 100%);
  border-radius: var(--psy-radius);
  padding: 3rem 2rem;
  box-shadow: var(--psy-shadow-lg);
}

.psy-services-cta .btn-outline-light {
  border-width: 2px;
}

.psy-services-cta .btn-outline-light:hover {
  background: #fff;
  color: var(--psy-primary-dark);
}

/* ─── Healing promise section ─── */
.psy-healing-section {
  background: var(--psy-bg);
}

.psy-healing-heading {
  font-family: var(--psy-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.psy-healing-light {
  font-weight: 400;
  color: var(--psy-secondary);
}

.psy-healing-bold {
  font-weight: 700;
  color: var(--psy-primary-dark);
}

.psy-healing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--psy-text);
  margin-bottom: 0.85rem;
}

.psy-healing-list li:last-child {
  margin-bottom: 0;
}

.psy-healing-list li i {
  color: var(--psy-primary);
  font-size: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.psy-healing-list li strong {
  font-weight: 700;
  color: var(--psy-primary-dark);
}

.psy-healing-list li span {
  font-weight: 400;
  color: var(--psy-muted);
}

/* ─── Floating WhatsApp & call ─── */
.psy-floating-contact {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.psy-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psy-fab:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.psy-fab-whatsapp {
  background: #25d366;
}

.psy-fab-call {
  background: linear-gradient(135deg, var(--psy-primary), var(--psy-primary-dark));
}

/* ─── Fixed book session tab (right middle) ─── */
.psy-fab-book {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1075;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--psy-primary), var(--psy-primary-dark));
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  max-width: 4.25rem;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psy-fab-book i {
  font-size: 1.25rem;
}

.psy-fab-book:hover {
  color: #fff;
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -6px 6px 24px rgba(0, 0, 0, 0.2);
}

/* ─── Book session CTA section ─── */
.psy-book-cta-section {
  background: var(--psy-bg);
}

.psy-book-cta {
  background: linear-gradient(135deg, var(--psy-primary-dark) 0%, var(--psy-primary) 55%, var(--psy-primary-light) 100%);
  border-radius: var(--psy-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--psy-shadow-lg);
}

.psy-book-cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.psy-book-cta-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.psy-book-cta-prices li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── Cookie consent banner ─── */
.psy-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1090;
  padding: 1rem;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.psy-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.psy-cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--psy-shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.psy-cookie-inner p {
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
  color: var(--psy-muted);
  line-height: 1.5;
}

.psy-cookie-inner a {
  color: var(--psy-primary);
  font-weight: 600;
  text-decoration: none;
}

.psy-cookie-inner a:hover {
  text-decoration: underline;
}

.psy-cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .psy-fab-book {
    top: auto;
    bottom: 6.5rem;
    transform: none;
    border-radius: 999px;
    right: 0.85rem;
    max-width: none;
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .psy-fab-book span {
    display: none;
  }

  .psy-fab-book:hover {
    transform: scale(1.08);
  }

  .psy-floating-contact {
    right: 0.85rem;
    bottom: 5.5rem;
  }

  .psy-fab {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .psy-cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

.psy-cookie-actions {
  justify-content: flex-end;
  }
}

/* ─── Article feed cards & tags ─── */
.psy-article-card {
  background: var(--psy-surface);
  border: 1px solid var(--psy-border);
  border-radius: var(--psy-radius);
  overflow: hidden;
  box-shadow: var(--psy-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.psy-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--psy-shadow-lg);
}

.psy-article-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--psy-border);
}

.psy-article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.psy-article-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.psy-article-card-meta {
  font-size: 0.8rem;
  color: var(--psy-muted);
  margin-bottom: 0.5rem;
}

.psy-article-card-meta a {
  color: var(--psy-primary);
  text-decoration: none;
}

.psy-article-card-meta .meta-dot {
  margin: 0 0.35rem;
}

.psy-article-card-title {
  font-family: var(--psy-font-heading);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.psy-article-card-title a {
  color: var(--psy-primary-dark);
  text-decoration: none;
}

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

.psy-article-card-excerpt {
  font-size: 0.9rem;
  color: var(--psy-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psy-article-card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.psy-podcast-card .psy-podcast-thumb {
  position: relative;
}

.psy-podcast-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 2.5rem;
  pointer-events: none;
  transition: background 0.25s ease;
}

.psy-podcast-card:hover .psy-podcast-play {
  background: rgba(0, 0, 0, 0.4);
}

.filter-pill-sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.psy-podcast-media img {
  max-height: 520px;
  object-fit: contain;
  background: var(--psy-border);
}

.psy-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.psy-tag-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(61, 107, 107, 0.1);
  color: var(--psy-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.psy-tag-pill:hover {
  background: var(--psy-primary);
  color: #fff;
}

.psy-pagination .pagination .page-item.active .page-link {
  background: var(--psy-primary);
  border-color: var(--psy-primary);
}

.psy-pagination .pagination .page-link {
  color: var(--psy-primary-dark);
  border-radius: 8px;
  margin: 0 2px;
}

.filter-pill {
  text-decoration: none;
}

/* ─── Appointment booking ─── */
.psy-booking-card {
  border-radius: var(--psy-radius);
}

.psy-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.psy-slot-btn {
  min-width: 5.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.psy-slot-btn.active {
  background: var(--psy-primary);
  border-color: var(--psy-primary);
  color: #fff;
}
