/* Instant Blog v4.0 — Cosmos palette: primary #7c3aed, secondary #db2777 */

:root,
:root.dark {
  --cosmos-primary: #7c3aed;
  --cosmos-primary-rgb: 124, 58, 237;
  --cosmos-secondary: #db2777;
  --bs-primary: #7c3aed;
  --bs-primary-rgb: 124, 58, 237;
  --bs-link-color: #a78bfa;
  --bs-link-hover-color: #c4b5fd;
  --bg-color: #090812;
  --text-color: #e4e4e7;
  --card-bg: #242131;
  --card-brd: 1px solid rgba(124, 58, 237, 0.22);
  --btn-arrow-color: #1a1724;
  --btn-arrow-hover: #221e30;
  --bg-user: #13111c;
  --bg-input: #2c283c;
  --bg-input-border: rgba(124, 58, 237, 0.28);
  --bg-gray: #323045;
  --ql-gray: #a1a1aa;
  --crd-shdw:
    0 0.35rem 1.15rem rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(124, 58, 237, 0.1);
  --code-bg: #0e0c14;
  --code-color: #e4e4e7;
  /* Menus / list row hover — light purple (Cosmos primary), not flat grey */
  --ui-hover-bg: rgba(124, 58, 237, 0.2);
  --ui-hover-bg-active: rgba(124, 58, 237, 0.3);
}

/* Dark Mode Overrides for Embeds */
:root.dark .tiktok-embed {
  background: #fff !important;
  border-radius: 8px;
  padding: 10px;
  border: none !important;
}

:root.dark .instagram-media {
  background: #fff !important;
  border-radius: 3px;
  padding: 10px;
}

:root.light {
  --cosmos-primary: #7c3aed;
  --cosmos-primary-rgb: 124, 58, 237;
  --cosmos-secondary: #db2777;
  --bs-primary: #7c3aed;
  --bs-primary-rgb: 124, 58, 237;
  --bs-link-color: #6d28d9;
  --bs-link-hover-color: #5b21b6;
  /* Page canvas darker than cards so #fff posts read as distinct surfaces */
  --bg-color: #e0e2ec;
  --text-color: #18181b;
  --card-bg: #ffffff;
  --card-brd: 1px solid rgba(24, 24, 27, 0.12);
  --btn-arrow-color: #fafafa;
  --btn-arrow-hover: #f4f4f5;
  --bg-user: #eceef6;
  --bg-input: #ffffff;
  --bg-input-border: rgba(124, 58, 237, 0.18);
  --bg-gray: #d8dae6;
  --ql-gray: #52525b;
  --crd-shdw:
    0 0.2rem 0.55rem rgba(24, 24, 27, 0.1),
    0 0 0 1px rgba(24, 24, 27, 0.065);
  --code-bg: #e6e8f2;
  --code-color: #27272a;
  --ui-hover-bg: rgba(124, 58, 237, 0.12);
  --ui-hover-bg-active: rgba(124, 58, 237, 0.2);
}

:root.light .card-footer,
:root.light .card-border {
  border-top-color: rgba(24, 24, 27, 0.1);
}

/* Standard property; avoids parse warnings for -webkit-text-size-adjust in non-WebKit browsers */
html {
  height: 100% !important;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

a {
  text-decoration: none;
}

a.text-mode:hover {
  color: #6c757d;
  text-decoration: none;
}

.container-fluid {
  padding-right: 25px;
  padding-left: 25px;
}

/*Navigation*/
.bg-faded {
  background-color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.0975);
}

.navbar {
  padding: 0.5rem 1rem;
}

.bg-nav {
  margin-top: 1rem;
}

/* Fixed transparent top bar – stays visible when scrolling (desktop + mobile) */
#mainnav.bg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
:root.dark #mainnav.bg-nav {
  background: rgba(9, 8, 18, 0.92) !important;
  border-bottom-color: rgba(124, 58, 237, 0.22);
}
/* Reserve space so content isn’t hidden under the fixed nav */
body {
  padding-top: 56px;
}

.nav-icon {
  font-size: 1.3rem;
  vertical-align: middle;
}

.sanctum-home-icon {
  width: 1.3rem;
  height: 1.3rem;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

/* Keep site home icon from blowing up on mobile */
@media (max-width: 767.98px) {
  #navbarsDefault .sanctum-home-icon,
  .navbar-collapse .sanctum-home-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem !important;
    max-width: 1.25rem !important;
    min-height: 1.25rem !important;
    max-height: 1.25rem !important;
  }
}

/*New Style*/
.span-move {
  cursor: move;
  cursor: -webkit-grabbing;
}

.span-click {
  cursor: pointer;
}

.myeditor {
  margin-bottom: 50px;
}

.tiktok-embed {
  font-size: 1em;
  font-style: normal;
  color: #555555;
  padding: 0px;
  border-left: 0px;
}

blockquote {
  font-size: 1em;
  width: 100%;
  margin: 50px auto;
  font-style: italic;
  color: var(--text-color);
  padding: 1em 30px;
  border-left: 8px solid var(--cosmos-primary);
  line-height: 1.6;
  position: relative;
  background: var(--bg-gray);
  border-radius: 3px;
}

blockquote::after {
  content: '';
}

blockquote span {
  display: block;
  color: var(--text-color);
  opacity: 0.88;
  font-style: normal;
  font-weight: bold;
  margin-top: 1em;
}

pre {
  background-color: var(--code-bg);
  width: 100%;
  padding: 5px 10px;
  white-space: pre-wrap;
  margin-bottom: 5px;
  margin-top: 5px;
  color: var(--code-color);
  overflow: visible;
  border-radius: 3px;
}

code {
  background-color: var(--code-bg);
  color: var(--code-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

pre.ql-syntax {
  background-color: var(--code-bg);
  color: var(--code-color);
  padding: 12px 15px;
  margin: 10px 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.ql-code-block-container {
  background-color: var(--code-bg);
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--code-color);
}

.ql-code-block {
  white-space: pre-wrap;
}

/*Page Loader - subtle single spinner for blog home */
#se-pre-con {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 200;
}
.blog-preloader {
  background: var(--bg-color);
}
.blog-preloader-spinner {
  width: 2rem;
  height: 2rem;
  color: var(--text-color);
  opacity: 0.6;
}

/* Smooth reveal when blog content loads */
#maincontent.blog-content-visible {
  animation: blogContentFadeIn 0.4s ease;
}
@keyframes blogContentFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*border radius*/
.border-one {
  border-radius: 1rem !important;
}
.card.border-one {
  position: relative;
}

.border-two {
  border-radius: 1rem 1rem 0 0 !important;
}

.border-youtube {
  border-radius: 1rem 1rem 0 0 !important;
  overflow: hidden;
  z-index: 1;
}

.border-youtube-all {
  border-radius: 1rem !important;
  overflow: hidden;
  z-index: 1;
}

/*Pagination*/

.pagination>li>a,
.pagination>li>span {
  border-radius: 50% !important;
  margin: 0 5px;
  line-height: 1 !important;
}

.dark-link {
  color: #ffffff;
  background-color: #3f4756;
  border: none;
}

.page-item.disabled .page-link {
  color: #5e6369;
  pointer-events: none;
  background-color: #3f4756;
  border: none;
}

/*Adsense*/
.pagesideads {
  max-height: 300px !important;
  background-color: var(--bg-gray);
}

.betads {
  max-width: 500px !important;
}

/*Jumbotronstyles*/

.jumbotron {
  padding: 2rem 1rem 2rem 1rem;
  border-radius: 0rem;
  color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, 0.0975);
}

.display-4 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.blog-footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.04);
  margin-top: 1rem;
  border-radius: 0.5rem;
}
:root.dark .blog-footer {
  background: rgba(255, 255, 255, 0.04);
}

/* Blog home: content width on large screens */
.blog-home-content {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1200px) {
  .blog-home-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Blog home: hero above grid */
.blog-hero {
  text-align: center;
  padding-bottom: 0.5rem;
}
.blog-hero-tagline {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto 0.75rem;
  line-height: 1.55;
}
.blog-hero-title {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0;
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
}
:root.dark .blog-hero-title {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 576px) {
  .blog-home-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .blog-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .blog-hero-tagline {
    font-size: 0.95rem;
    text-align: center;
  }
  .blog-hero-title {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Blog home: empty state */
.empty-state-blog {
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.empty-state-icon {
  font-size: 3.5rem;
  opacity: 0.35;
  display: block;
  margin-bottom: 1.25rem;
}
.empty-state-title {
  margin-bottom: 0.5rem;
}
.empty-state-text {
  opacity: 0.8;
  margin: 0;
}
.empty-state-blog .btn {
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.empty-state-blog .btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Blog home: pagination - match theme */
.blog-extra-wrap .pagination {
  gap: 0.25rem;
}
.blog-extra-wrap .page-link {
  background: var(--card-bg);
  border: 1px solid var(--bg-input-border, rgba(0, 0, 0, 0.1));
  color: var(--text-color);
  border-radius: 0.375rem !important;
  padding: 0.35rem 0.75rem;
}
.blog-extra-wrap .page-link:hover {
  background: var(--bg-gray);
  color: var(--text-color);
  border-color: var(--bg-input-border);
}
.blog-extra-wrap .page-item.active .page-link {
  background: var(--bg-input);
  border-color: var(--bg-input-border);
  font-weight: 600;
}
.blog-extra-hr {
  opacity: 0.15;
}

.blog-footer .list-inline {
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}
.blog-footer .list-inline-item a:hover {
  text-decoration: underline;
}

/* Footer tagline/message: readable on mobile */
.blog-footer .text-muted {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (max-width: 576px) {
  .blog-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
  .blog-footer .text-muted {
    font-size: 0.9375rem;
    line-height: 1.65;
    text-align: center;
  }
  .blog-footer .text-muted p:last-child {
    margin-bottom: 0;
  }
}

/* Blog grid: uniform card size and scale, images and category labels preserved (post listings only; categories page keeps default grid) */
.grid.grid-posts[data-columns],
.grid.grid-posts[data-columns] .column {
  overflow: visible !important;
}
.grid.grid-posts[data-columns] .card.border-one {
  display: flex;
  flex-direction: column;
  height: 540px;
  max-height: 540px;
  overflow: visible !important;
  padding-top: 0.6rem;
  box-sizing: border-box;
  position: relative;
}
/* card-inner = same structure as cover’s .card-txt-body: full-bleed wrapper so category overhangs like latest post */
.grid.grid-posts[data-columns] .card.border-one .card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  pointer-events: none;
}
.grid.grid-posts[data-columns] .card.border-one .card-inner > * {
  pointer-events: auto;
}
.grid.grid-posts[data-columns] .card.border-one .card-inner .bg-over {
  flex: 1 1 auto;
  min-height: 0;
}
/* Cover / text-only cards: fill the fixed-height post card inside .card-inner */
.grid.grid-posts[data-columns] .card.border-one.cover .card-inner > .card-txt-body.bg-over,
.grid.grid-posts[data-columns] .card.border-one.stripes .card-inner > .card-txt-body.bg-over {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* Category: top of card, slightly overhanging – same as latest post. z-index below nav (1030) so mobile menu stays on top */
.grid.grid-posts[data-columns] .card.border-one .category,
.card-inner .category,
.card.cover .card-txt-body .category,
.card.cover .category,
.card.border-one .category {
  position: absolute !important;
  right: 0 !important;
  top: -15px !important;
  width: 100% !important;
  z-index: 100 !important;
  text-align: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateZ(0);
  will-change: transform;
}
.grid.grid-posts[data-columns] .card.border-one .bg-over {
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent !important;
}
.grid.grid-posts[data-columns] .card.border-one .bg-over:hover {
  background: transparent !important;
}
/* Fixed image slot: same height every time, image fills without distortion */
.grid.grid-posts[data-columns] .card.border-one .bg-over > .card-img {
  flex: 0 0 auto;
  height: 220px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Video cards: same image slot height */
.grid.grid-posts[data-columns] .card.border-one .bg-over > .youtube.border-two {
  flex: 0 0 auto;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
}
.grid.grid-posts[data-columns] .card.border-one .bg-over > .youtube.border-two .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
}
.grid.grid-posts[data-columns] .card.border-one .card-blog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 0.75rem;
}
.grid.grid-posts[data-columns] .card.border-one .card-blog-body h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.grid.grid-posts[data-columns] .card.border-one .card-blog-body .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

/* Mobile: cards size to content so post info isn’t cut off; card-inner must be in-flow or card collapses */
@media (max-width: 576px) {
  .grid.grid-posts[data-columns] .card.border-one {
    height: auto;
    max-height: none;
    padding-top: 1rem;
  }
  .grid.grid-posts[data-columns] .card.border-one .card-inner {
    position: relative;
    inset: auto;
    display: block;
  }
  .grid.grid-posts[data-columns] .card.border-one .card-inner .bg-over {
    flex: none;
  }
  .grid.grid-posts[data-columns] .card.border-one .bg-over {
    flex: 0 0 auto;
    min-height: 0;
  }
  .grid.grid-posts[data-columns] .card.border-one .bg-over > .card-img {
    height: 160px;
  }
  .grid.grid-posts[data-columns] .card.border-one .bg-over > .youtube.border-two {
    height: 160px;
    min-height: 160px;
  }
  .grid.grid-posts[data-columns] .card.border-one .card-blog-body {
    overflow: visible;
    flex: 1 1 auto;
    min-height: 0;
  }
  .grid.grid-posts[data-columns] .card.border-one .card-blog-body h4 {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  .grid.grid-posts[data-columns] .card.border-one .card-blog-body .card-text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  /* Cover (instant) cards: no in-flow content so need min-height on mobile */
  .grid.grid-posts[data-columns] .card.border-one.cover {
    min-height: 320px;
  }
}

.w-15 {
  width: 15% !important;
}

.w-85 {
  width: 85% !important;
}

/*Card styles*/

.card {
  margin-bottom: 40px !important;
  border: 0 !important;
  background-color: var(--card-bg);
  color: var(--text-color);
  box-shadow: var(--crd-shdw);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card.border-one:hover:not(.janice-blog-card) {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
:root.dark .card.border-one:hover:not(.janice-blog-card) {
  box-shadow: 0 4px 28px rgba(124, 58, 237, 0.12), 0 4px 24px rgba(0, 0, 0, 0.45);
}
.card.border-one .bg-over {
  overflow: hidden;
}
.card.border-one .bg-over > .card-img {
  transition: transform 0.35s ease;
}
.card.border-one:hover .bg-over > .card-img {
  transform: scale(1.04);
}
.card.border-one:focus-within:not(.janice-blog-card) {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
:root.dark .card.border-one:focus-within:not(.janice-blog-card) {
  box-shadow: 0 4px 28px rgba(124, 58, 237, 0.14), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.card-img {
  min-height: 200px;
}

.card-img-top {
  width: 100%;
}

.card a,
.card a:focus,
.card a:hover {
  text-decoration: none;
  outline: none;
}

.card-txt-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 3rem 1.25rem;
}

.card-blog-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1rem 1.25rem 3rem 1.25rem;
}
.card-blog-body h4 {
  line-height: 1.35;
}
.card-blog-body .card-text {
  line-height: 1.5;
}

.card-header {
  background-color: var(--card-bg);
}

.arrows a,
.arrows a:focus,
.arrows a:hover {
  text-decoration: none;
  outline: none;
}

.card-footer {
  background-color: var(--card-bg);
  padding: 0.75rem 1rem !important;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 1rem !important;
}

.card-border {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.card-info {
  margin-bottom: 3rem !important;
  border: 0 !important;
  background-color: var(--card-bg);
}

.card-shadow {
  box-shadow: var(--crd-shdw) !important;
}

.less-pad {
  padding: 0.4rem 1rem;
}

.tweettext {
  font-size: 1rem;
  line-height: 1.5;
  font-family: Arial, sans-serif;
  color: #292f33;
  word-wrap: break-word;
}

.list-item {
  display: block;
  position: relative;
}

.list-left {
  float: left;
  padding-right: 7px;
}

.list-body {
  margin-left: 52px;
}

.text-muted {
  color: inherit !important;
  opacity: 0.6;
}

.user-info {
  display: block;
  width: 90%;
  position: absolute;
  bottom: 1.25rem;
}

.author {
  display: flex;
  position: absolute;
  color: inherit;
  left: 1.25rem;
  bottom: 1rem;
  align-items: center;
  z-index: 3;
}

.vbadge {
  margin-left: 5px;
}

.verficon {
  font-size: 14px;
  vertical-align: middle;
}

.card .author:hover {
  color: inherit;
}

.card .nocolor {
  color: inherit;
}

.card .nocolor:hover {
  color: inherit;
}

.card-date {
  display: inline-block;
  position: absolute;
  right: 1.25rem;
  bottom: 1.4rem;
}

.card-like {
  display: inline-block;
  position: absolute;
  padding: 0.25rem;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 3;
}

.card-count {
  margin-top: 0.8rem;
  margin-left: 2rem;
  font-size: 16px;
  color: #999999;
}

.stats {
  /* display: inline-block; removed redundant */
  float: right;
  margin-top: 0.3rem;
}

.bottom-txt {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 4rem;
  z-index: 0;
  text-shadow: 1px 1px 10px #000;
}

.txt-shad {
  text-shadow: 1px 1px 5px #343a40;
}

.playericon {
  position: absolute;
  font-size: 1.6rem;
  top: 0.6rem;
  right: 1.25rem;
  z-index: 3;
}

.category {
  display: block;
  position: absolute;
  right: 0;
  top: -15px;
  width: 100%;
  z-index: 10;
  text-align: center;
}

.category a {
  font-size: 15px;
  color: #fff;
  display: inline-block;
  padding: 4px 25px;
  vertical-align: top;
  border-radius: 25px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.stripes {
  background-image: linear-gradient(45deg,
      rgba(0, 0, 0, 0.05) 25%,
      transparent 25%,
      transparent 50%,
      rgb(0 0 0 / 0.05) 50%,
      rgb(0 0 0 / 0.05) 75%,
      transparent 75%,
      rgb(0 0 0 / 0));
  background-size: 50px 50px;
}

.category-middle {
  font-size: 12px;
  text-transform: uppercase;
  padding: 0.25rem;
  position: absolute;
  top: 1rem;
  right: 3rem;
  z-index: 3;
}

.avatar {
  height: 45px;
  margin-right: 5px;
}

.avatar-sm {
  height: 35px;
  margin-right: 5px;
}

.avatar-xs {
  height: 25px;
  margin-right: 5px;
}

.imgthumb {
  height: 38px;
  width: 38px;
  border-radius: 5px;
}

.time {
  white-space: nowrap;
  float: right;
}

.text-ellipsis {
  display: block;
}

.marginlt {
  margin-top: 1.5rem;
}

.btn-face {
  color: #fff !important;
  background-color: #3b5998;
  border-color: #3b5998;
  margin-left: 5%;
  margin-right: 5%;
  display: block;
}

.btn-face:hover,
.btn-face:focus {
  background-color: #30487b;
  outline: none;
}

.btn-google {
  color: #fff !important;
  background-color: #db4437;
  border-color: #db4437;
  display: block;
  margin-left: 5%;
  margin-right: 5%;
}

.btn-google:hover,
.btn-google:focus {
  background-color: #c9302c;
  outline: none;
}

.btn-grad {
  background-image: linear-gradient(to right,
      #da22ff 0%,
      #9733ee 51%,
      #da22ff 100%);
}

.btn-grad {
  font-size: 16px;
  font-weight: bold;
  transition: 0.5s;
  background-size: 200% auto;
  color: #fff !important;
  border: none;
  display: block;
  padding: 0.375rem 1.5rem;
}

.btn-grad:hover {
  background-position: right center;
  text-decoration: none;
}

.btn-face-login {
  color: #fff !important;
  background-color: #1877f2;
  border-color: #1877f2;
  margin-left: 5%;
  margin-right: 5%;
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.25px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.btn-face-login:hover,
.btn-face:focus {
  background-color: #1877f2;
  outline: none;
}

.btn-google-login {
  color: #fff !important;
  background-color: #4285f4;
  border: none;
  display: block;
  font-family: Roboto-Medium, arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.21px;
  margin-left: 5%;
  margin-right: 5%;
  padding: 2px;
  text-align: left;
  border-radius: 0.15rem;
}

.btn-google-login:hover,
.btn-google:focus {
  background-color: #4285f4;
  outline: none;
}

.social i {
  margin-right: 15px;
  font-size: 21px;
  line-height: 21px;
  vertical-align: top;
}

.btn-white-color {
  color: #fff !important;
}

.bg-post {
  border-left: 1px solid rgba(0, 0, 0, 0.0975);
  border-right: 1px solid rgba(0, 0, 0, 0.0975);
  background-color: #fff !important;
  word-wrap: break-word;
  padding-right: 0px;
  padding-left: 0px;
}

.sociallogin {
  margin-bottom: 10px;
}

.ordiv {
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  border-radius: 50%;
  font-size: 18px;
  color: var(--bg-input-border);
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--bg-input-border);
  margin: auto;
}

.colleft {
  width: 25%;
  float: left;
  display: block;
}

.colright {
  float: left;
  width: 25%;
  /* display: inline-block; removed redundant */
  padding-top: 12px;
}

.change-ratio {
  width: 100%;
  margin: -10% 0;
}

.btn-circle {
  width: 50px;
  height: 50px;
  padding: 10px 13px;
  position: absolute;
  top: 40%;
  left: 45%;
  right: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1.25em;
  border-radius: 35px;
  border: 2px solid #fff;
}

/*Admin*/

.box-white {
  border-radius: 1rem !important;
  background: var(--card-bg);
  padding: 2rem;
}

.nav-tabs {
  border-bottom: none;
}

.admin-item {
  border-bottom: 1px solid #f7f7f9;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}

.admin-item-img {
  display: block;
  float: left;
  margin-right: 15px;
  width: 50px;
}

.admin-image {
  width: 50px;
}

.admin-item-user {
  color: #212325;
  display: block;
  margin: 0;
}

.admin-item-text {
  color: #818a91;
  display: block;
  font-size: 12px;
  margin: 0;
}

.member-item-user {
  color: var(--text-color);
  display: block;
  margin: 0;
}

.member-item-text {
  display: block;
  font-size: 12px;
  margin: 0;
}

.admin-simple-sm {
  background: var(--bg-input);
  -webkit-border-radius: 0.25rem;
  border-radius: 1rem;
  text-align: center;
}

.admin {
  margin: 0 0 30px;
}

.admin-simple-sm .admin-simple-sm-icon {
  height: 80px;
  overflow: hidden;
  line-height: 80px;
  font-size: 2.75rem;
}

.home-icon {
  position: relative;
  top: 5px;
}

.color-blue {
  color: #00a8ff !important;
}

.color-red {
  color: #e52d27 !important;
}

.color-delete {
  color: #f4645f !important;
}

.admin-simple-sm-bottom {
  border-top: solid 1px #d8e2e7;
  background: #f6f8fa;
  font-weight: 600;
  padding: 15px 10px;
  font-size: 0.9375rem;
  line-height: normal;
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
}

.bottom-white {
  background: #fff !important;
}

/*Profile*/
.box-profile {
  -webkit-border-radius: 4px;
  border-radius: 4px;
  background: #fff;
  border: solid 1px #d8e2e7;
  margin: 0 0 20px;
}

.profile-card {
  /* display: inline-block; removed redundant */
  padding-right: 15px;
  float: left;
}

.profile-card-photo {
  max-width: 150px;
  border: 5px solid #fff;
  border-radius: 100%;
}

.profile-card-username {
  color: #6c7a86;
}

.profile-card-points {
  color: #6c7a86;
  font-size: 0.8rem;
}

.profile-card-name {
  font-weight: 600;
  margin-top: 18px;
  font-size: 1.2rem;
}

.profile-statistic {
  text-align: center;
  font-size: 0.9375rem;
}

.level {
  vertical-align: middle;
  border-top: solid 1px #d8e2e7;
  border-bottom: solid 1px #d8e2e7;
  padding: 10px;
}

.points {
  vertical-align: middle;
  border-bottom: solid 1px #d8e2e7;
  padding: 10px;
}

.profile-links-list {
  padding: 10px 0;
  font-size: 0.9375rem;
  display: flex;
  margin-bottom: 0;
}

.profile-links-list li {
  padding: 4px 0;
  margin: 0 5px;
}

.profile-links-list li.nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*New 3.0*/
.header {
  margin-bottom: 2rem;
}

.header-img-top {
  width: 100%;
  height: auto;
  max-height: 200px;
}

.header-body {
  padding-top: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.header-title {
  margin-bottom: 0;
}

.mt-n6 {
  margin-top: -4.5rem !important;
}

.list-bg {
  color: inherit !important;
  background: var(--bg-user);
}

.list-bg-unread {
  color: inherit !important;
  background: var(--bg-gray);
}

.btn-white-shadow {
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 100%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.btn-white-shadow:hover,
.btn-white-shadow:focus {
  background-color: #e9ecef;
  color: #000;
}

.follow-card {
  color: var(--text-color);
  border-color: var(--bg-input-border);
}

.follow-card a {
  color: var(--text-color);
}

.theme-btn {
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.theme-btn.light {
  display: none;
}

.dark .theme-btn.light {
  display: block;
}

.dark .theme-btn.dark {
  display: none;
}

.navbar-light .navbar-nav .nav-link {
  color: #212529;
}

.bg-userside {
  background: var(--bg-user);
}

.text-mode {
  color: var(--text-color);
}

.border-comment {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

#dynamic_com .maincom:last-child .d-flex:last-child .border-comment {
  border-bottom: none !important;
}

.dropdown-menu {
  color: var(--text-color);
  background-color: var(--card-bg);
  border-color: rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  color: var(--text-color);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:focus-visible {
  color: var(--text-color);
  background-color: var(--ui-hover-bg);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--text-color);
  background-color: var(--ui-hover-bg-active);
}

/* Avatar / account dropdown trigger: visible tint while open (light theme was nearly invisible on grey) */
.navbar .nav-item.dropdown .dropdown-toggle.show,
.navbar .nav-item.dropdown .dropdown-toggle:focus-visible {
  background-color: var(--ui-hover-bg);
  border-radius: 0.375rem;
}

.ql-editor {
  background-color: var(--bg-input);
}

/* Janice / Quill rich text: clearer hierarchy in editor */
.ql-editor h2,
.ql-editor h3 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.ql-editor h2 { font-size: 1.35rem; }
.ql-editor h3 { font-size: 1.15rem; }
.ql-editor p { margin-bottom: 0.75rem; }
.ql-editor ul,
.ql-editor ol {
  margin-bottom: 0.75rem;
  padding-left: 1.35rem;
}
.ql-editor li { margin-bottom: 0.35rem; }

/* Published post rich blocks */
.post-body-rich {
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-body-rich h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.post-body-rich h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.post-body-rich p {
  margin-bottom: 1rem;
}
.post-body-rich ul,
.post-body-rich ol {
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}
.post-body-rich li {
  margin-bottom: 0.4rem;
}
.post-body-rich > *:first-child {
  margin-top: 0;
}

/* User online / offline (last activity heartbeat) */
.user-presence-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  vertical-align: middle;
}
.user-presence-dot--sm {
  width: 0.5rem;
  height: 0.5rem;
}
.user-presence-dot--online {
  background-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.user-presence-dot--offline {
  background-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.user-presence-dot--overlay {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bs-body-bg, #fff);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.user-presence-dot--overlay.user-presence-dot--sm {
  width: 9px;
  height: 9px;
  bottom: 0;
  right: 0;
  border-width: 1px;
}

.ql-container.ql-snow,
.ql-toolbar.ql-snow {
  border: 1px solid var(--bg-input-border) !important;
}

.ql-snow .ql-stroke {
  stroke: var(--text-color) !important;
}

.ql-snow .ql-fill {
  fill: var(--ql-gray) !important;
}

.form-select {
  color: var(--text-color);
  background-color: var(--bg-input);
  border: 1px solid var(--bg-input-border);
}

.form-check-input {
  background-color: var(--bg-input);
  border: 1px solid var(--bg-input-border);
}

.form-control {
  color: var(--text-color);
  background-color: var(--bg-input);
  border: 1px solid var(--bg-input-border);
}

.form-control[readonly] {
  background-color: var(--bg-gray);
}

.form-control:focus {
  color: var(--text-color);
  background-color: var(--bg-input);
  border-color: var(--bg-input-border);
}

/*Emojis*/
.emoji {
  height: 1.25em;
  width: 1.25em;
  padding: 0 0.05em 0 0.1em;
  vertical-align: -0.2em;
}

/*Heart*/
.heart {
  background: url(../images/heart.png);
  background-position: left;
  background-repeat: no-repeat;
  height: 50px;
  width: 50px;
  cursor: pointer;
  position: absolute;
  left: 0px;
  background-size: 1450px;
}

.heartguest {
  background: url(../images/heart.png);
  background-position: left;
  background-repeat: no-repeat;
  height: 50px;
  width: 50px;
  cursor: pointer;
  position: absolute;
  left: 0px;
  background-size: 1450px;
}

.heart:hover {
  background-position: right;
}

.heartliked {
  background-position: right;
}

.likenumber {
  margin-left: 2rem;
  font-size: 16px;
  color: #999999;
}

.like {
  margin-top: -13px;
}

.btnadd {
  border-radius: 0.25rem;
  font-weight: bolder;
  cursor: pointer;
}

#texteditor {
  border-radius: 0.25rem;
  font-weight: bolder;
  cursor: pointer;
}

.btnhome {
  color: var(--text-color);
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: 1rem;
  cursor: pointer;
}

.btnhome:hover {
  color: var(--text-color);
  border: 1px solid var(--bg-input-border);
  background: var(--bg-user);
}

.btn-light {
  border: 1px solid var(--bg-input-border);
  color: var(--text-color);
  background-color: var(--bg-user);
}

.btn-light:hover {
  border: 1px solid var(--bg-input-border);
  color: var(--text-color);
  background: var(--bg-input);
}

.btn-light:focus,
.btn-light:active {
  border: 1px solid var(--bg-input-border);
  color: var(--text-color);
  background: var(--bg-input);
}

.btn-arrow {
  color: #fff;
  background-color: var(--btn-arrow-color);
  border-color: var(--btn-arrow-color);
}

.btn-arrow:hover {
  color: #fff;
  background-color: var(--btn-arrow-hover);
  border-color: var(--btn-arrow-hover);
}

.btn-arrow:focus,
.btn-arrow.focus {
  box-shadow: 0 0 0 0.2rem rgba(134, 142, 150, 0.5);
}

.btnpoint {
  cursor: pointer;
}

.bg-none {
  background: none !important;
}

.bg-over {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  width: 100%;
}

.bg-over:hover {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  width: 100%;
}

.link-over {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.embedbox {
  max-width: 400px;
  text-align: center;
}

.embedbox-tiktok {
  max-width: 325px;
  text-align: center;
}

.nav-pro .nav-link {
  color: var(--text-color);
}

.nav-pro .nav-link:hover {
  color: var(--text-color);
}

.nav-pro .nav-link.active {
  color: var(--text-color);
  font-weight: 600;
  border-bottom: 4px solid rgb(29, 155, 240);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: var(--text-color);
  background-color: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  font-weight: 500;
}

.color-box {
  border-radius: 0.25rem;
  padding: 0 1rem;
  font-size: 22px;
}

.tag-img {
  height: 200px;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* Categories page: simple card grid, no masonry – each card is image + title only, no empty box */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 100%;
}
.categories-grid-card {
  height: auto;
  overflow: hidden;
  border-radius: 1rem;
}
.categories-grid-card .card-img-overlay {
  border-radius: 1rem;
}
/* Category cards: darker overlay and stronger text for readability */
.categories-grid-card .card-img-overlay.bg-over {
  background: rgba(0, 0, 0, 0.55);
}
.categories-grid-card .card-img-overlay.bg-over:hover {
  background: rgba(0, 0, 0, 0.65);
}
.categories-grid-card .card-img-overlay .card-text,
.categories-grid-card .card-img-overlay h2 {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}
.categories-grid-card .card-img-overlay .card-text {
  opacity: 0.95;
}
.categories-grid-card .card-img-overlay h2 {
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media screen and (min-width: 544px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 1400px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.list-inline-item:not(:last-child) {
  margin-right: 1rem;
}

/*Additional*/

.cover {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

/* Image-as-background (instant) posts: readable text over photo */
.card.cover {
  position: relative;
  overflow: visible;
}
.card.cover .card-txt-body.bg-over {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.4);
  overflow: visible !important;
}
.card.cover .card-txt-body.bg-over:hover {
  background: rgba(0, 0, 0, 0.48);
}
.card.cover .card-txt-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff !important;
}
.card.cover .category {
  position: absolute;
  right: 0;
  top: -15px;
  width: 100%;
  z-index: 10;
  text-align: center;
}
.card.cover .txt-shad,
.card.cover .card-txt-body .txt-shad {
  text-shadow: 0 0 12px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 1), 0 1px 2px #000, 1px 1px 6px #000;
}
.card.cover .card-txt-body h4 {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card.cover .card-txt-body small,
.card.cover .card-txt-body .author,
.card.cover .card-txt-body .card-like,
.card.cover .card-txt-body .card-text {
  text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 1px 3px #000, 1px 1px 4px #000;
}
.card.cover .card-txt-body .card-text {
  line-height: 1.5;
}
.card.cover .card-txt-body .author {
  color: rgba(255, 255, 255, 0.95) !important;
}

.youtube {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
}

.youtube .play-btn {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid #fff;
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.6);
  transition: background-color 0.5s ease;
}

.youtube .play-btn:after {
  position: absolute;
  top: calc(50% - 15px);
  left: calc(50% - 8px);
  display: block;
  content: '';
  box-sizing: border-box;
  border-color: transparent transparent transparent #fff;
  border-style: solid;
  border-width: 15px 0 15px 25px;
}

.bg-cat-1 {
  background-color: #845ec2 !important;
}

.bg-cat-1:hover {
  background-color: #624a8a !important;
}

.bg-cat-2 {
  background-color: #ff847d !important;
}

.bg-cat-2:hover {
  background-color: #ce6f69 !important;
}

.bg-cat-3 {
  background-color: #c2791e !important;
}

.bg-cat-3:hover {
  background-color: #9c713b !important;
}

.bg-cat-4 {
  background-color: #f076d0 !important;
}

.bg-cat-4:hover {
  background-color: #bf5ea6 !important;
}

.bg-cat-5 {
  background-color: #c2a875 !important;
}

.bg-cat-5:hover {
  background-color: #a28d63 !important;
}

.short-select {
  flex: 0 1 100px !important;
}

.cat-bx {
  float: left;
  width: 15px;
  height: 15px;
  margin: 5px;
  border-radius: 2px;
  padding: 15px;
  border-radius: 10px;
}

iframe.twitter-tweet,
.twitter-tweet iframe,
iframe[id^="twitter-widget-"] {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

@-webkit-keyframes heartBlast {
  0% {
    background-position: left;
  }

  100% {
    background-position: right;
  }
}

@keyframes heartBlast {
  0% {
    background-position: left;
  }

  100% {
    background-position: right;
  }
}

.heartAnimation {
  -webkit-animation-name: heartBlast;
  animation-name: heartBlast;
  -webkit-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -webkit-animation-timing-function: steps(28);
  animation-timing-function: steps(28);
  background-position: right;
}

.lesspadding {
  padding-right: 10px;
  padding-left: 10px;
}

/* Cookie popup: above nav (1030) and card labels (100) */
#MainCookie {
  z-index: 1040 !important;
}

.toastdark {
  background-color: rgba(63, 71, 86);
  border-radius: 1rem;
  border: none !important;
}

.toastdarkhead {
  background: none !important;
  border-bottom: none !important;
}

/* Cookie toast: fit on small screens, no overflow */
@media (max-width: 576px) {
  #MainCookie {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem !important;
    display: flex !important;
    justify-content: center;
    align-items: flex-end;
  }
  #MainCookie.d-none {
    display: none !important;
  }
  #CookieToast.toast,
  #MainCookie .toast {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  #CookieToast .toast-body {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/*Responsive*/
@media (max-width: 576px) {
  .jumbotron {
    padding: 2rem 1rem 2rem 1rem;
  }
}

/*Salvattore grid css and Responsive*/
.grid[data-columns]::before {
  content: '3 .column.size-1of3';
}

@media screen and (max-width: 544px) {
  .grid[data-columns]::before {
    content: '1 .column.size-1of1';
  }

  .display-4 {
    font-size: 2rem;
  }

  .header-img-top {
    min-height: 150px;
    object-fit: cover;
  }
}

@media screen and (min-width: 544px) and (max-width: 768px) {
  .grid[data-columns]::before {
    content: '2 .column.size-1of2';
  }

  .display-4 {
    font-size: 2rem;
  }

  .header-img-top {
    min-height: 150px;
    object-fit: cover;
  }
}

@media screen and (min-width: 992px) and (max-width: 1400px) {
  .grid[data-columns]::before {
    content: '3 .column.size-1of3';
  }
}

@media screen and (min-width: 1400px) {
  .grid[data-columns]::before {
    content: '3 .column.size-1of3';
  }
}

.grid {
  display: block;
  width: 100%;
}

.column {
  float: left;
  overflow: visible !important;
}

.size-1of1 {
  width: 100%;
}

.size-1of2 {
  width: 50%;
  padding-right: 18px;
  padding-left: 18px;
}

.size-1of3 {
  width: 33.333%;
  padding-right: 18px;
  padding-left: 18px;
}

.size-1of4 {
  width: 25%;
  padding-right: 18px;
  padding-left: 18px;
}

/*Internet explorer fix*/
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
  .card {
    display: block;
  }
}

/* Custom Placeholder Contrast Fix */
.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.dark .form-control::placeholder {
  color: #adb5bd;
}

/* Custom Tooltip Styling (Bootstrap 5.3 Override) */
.tooltip {
  --bs-tooltip-bg: var(--bs-black);
  --bs-tooltip-color: var(--bs-white);
  --bs-tooltip-opacity: 1;
}

/* Modern Login Page Styles */
.modern-login-form .modern-input {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: inherit !important;
  height: 50px;
  border-radius: 8px;
  padding-left: 15px;
}

.modern-login-form .modern-input:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #3b82f6 !important;
  box-shadow: none !important;
  color: inherit !important;
}

.modern-login-form .modern-input::placeholder {
  color: rgba(128, 128, 128, 0.6);
}

.modern-login-form .modern-btn {
  height: 50px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
}

.modern-login-form .modern-google-btn {
  height: 50px;
  border-radius: 8px;
  font-weight: 500;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  /* Transparent dark */
  transition: all .3s;
}

.modern-login-form .modern-google-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff !important;
}

.modern-login-form .modern-google-btn span {
  color: #fff;
  font-size: 16px;
}

/* OR Separator Lines */
.separator-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.separator-line::before,
.separator-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 10px;
}

.separator-line span {
  color: rgba(255, 255, 255, 0.5);
}

/* Light Mode Overrides */
/* Header Color */
.login-header {
  color: #fff;
}

:root.light .login-header {
  color: #333 !important;
}

/* Input Fields */
:root.light .modern-login-form .modern-input {
  background-color: #f0f2f5 !important;
  border: 1px solid #dcdfe4 !important;
  color: #1c1e21 !important;
}

:root.light .modern-login-form .modern-input:focus {
  background-color: #fff !important;
  border-color: #3b82f6 !important;
}

:root.light .modern-login-form .modern-input::placeholder {
  color: #65676b;
}

/* Separator in Light Mode */
:root.light .separator-line::before,
:root.light .separator-line::after {
  background-color: rgba(0, 0, 0, 0.15);
}

:root.light .separator-line span {
  color: rgba(0, 0, 0, 0.5);
}

/* Google Button in Light Mode */
:root.light .modern-login-form .modern-google-btn {
  background-color: #fff;
  border: 1px solid #dadce0;
}

:root.light .modern-login-form .modern-google-btn:hover {
  background-color: #f7f8fa;
  border-color: #dadce0;
}

:root.light .modern-login-form .modern-google-btn span {
  color: #3c4043;
}

/* Private messages thread — viewport-locked column; composer is in-flow (last row of .pm-chat-shell) */
html:has(body.pm-chat-page) {
  height: 100%;
  overflow: hidden;
}

body.pm-chat-page {
  box-sizing: border-box;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
}

@supports (height: 100dvh) {
  body.pm-chat-page {
    height: 100dvh;
    max-height: 100dvh;
  }
}

body.pm-chat-page > #mainnav,
body.pm-chat-page > .jumbotron,
body.pm-chat-page > .container.mt-3 {
  flex-shrink: 0;
}

/* Fills space under jumbotron; holds scroll + composer in one column (no fixed overlap). */
body.pm-chat-page > .pm-chat-shell {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.pm-chat-page .pm-chat-shell > .pm-chat-scroll {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

body.pm-chat-page .pm-chat-shell > .pm-chat-composer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--bg-input-border, rgba(0, 0, 0, 0.12));
  background: var(--card-bg, #fff);
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

:root.dark body.pm-chat-page .pm-chat-shell > .pm-chat-composer {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pm-msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pm-chat-page .pm-chat-scroll .pm-msg-row {
  animation: pm-msg-in 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  body.pm-chat-page .pm-chat-scroll .pm-msg-row {
    animation: none;
  }
}

body.pm-chat-page .pm-chat-composer.is-pm-sending {
  opacity: 0.88;
  transition: opacity 0.12s ease;
  pointer-events: none;
}

/* Add Post — Janice: Hostinger-style fixed right rail (full viewport height below nav) */
:root {
  --janice-rail-width: 380px;
  --janice-rail-top: 56px; /* matches body padding-top under fixed #mainnav */
}

@media (min-width: 992px) {
  /* Only reserve space when Janice rail is rendered (authorized add-post view) */
  body.janice-add-post-page:has(#janiceBlogPanel) {
    padding-right: var(--janice-rail-width);
  }

  .janice-blog-sidebar--viewport-rail {
    position: fixed;
    top: var(--janice-rail-top);
    right: 0;
    bottom: 0;
    left: auto;
    width: var(--janice-rail-width);
    z-index: 1020;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--bg-input-border, rgba(0, 0, 0, 0.12));
    background: var(--card-bg, #fff);
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.07);
  }

  :root.dark .janice-blog-sidebar--viewport-rail {
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  }

  .janice-blog-sidebar--viewport-rail .janice-blog-messages {
    min-height: 0;
  }

  .janice-blog-sidebar--viewport-rail .janice-blog-card {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

.janice-blog-card {
  background: var(--card-bg);
  color: var(--text-color);
  border: var(--card-brd, 1px solid rgba(124, 58, 237, 0.14));
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transform: none;
  transition: none;
}
.janice-blog-card .card-header,
.janice-blog-card .card-footer {
  background: transparent;
  border-color: var(--bg-input-border, rgba(0, 0, 0, 0.08));
}
.janice-blog-header {
  flex-shrink: 0;
}
.janice-blog-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(124, 58, 237, 0.35);
  background: var(--bg-gray, #f3f4f6);
}
.janice-blog-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.janice-blog-msg-avatar {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  align-self: flex-end;
  margin-bottom: 0.2rem;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: var(--bg-gray, #f3f4f6);
}
.janice-blog-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.janice-blog-msg-avatar--empty {
  opacity: 0.35;
  background: linear-gradient(135deg, var(--cosmos-primary, #7c3aed) 0%, var(--cosmos-secondary, #db2777) 100%);
}
.janice-blog-bubble-stack {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.janice-blog-title {
  font-size: 1rem;
  line-height: 1.2;
}
.janice-blog-sub {
  font-size: 0.72rem;
  line-height: 1.3;
}
.janice-blog-messages {
  flex: 1 1 auto;
  min-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem !important;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.janice-blog-msg {
  display: flex;
  max-width: 100%;
}
.janice-blog-msg-user {
  justify-content: flex-end;
}
.janice-blog-msg-bot {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0.45rem;
}
.janice-blog-bubble {
  max-width: 95%;
  padding: 0.6rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  background: var(--bg-gray);
  color: var(--text-color);
}
.janice-blog-msg-user .janice-blog-bubble {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.janice-blog-bubble-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
}
.janice-blog-footer {
  flex-shrink: 0;
}
.janice-blog-input {
  resize: none;
  min-height: 44px;
  max-height: 120px;
  font-size: 0.9rem;
}
.janice-blog-send {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.janice-blog-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.35rem 0;
}
.janice-blog-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cosmos-primary, #7c3aed);
  opacity: 0.7;
  animation: janiceDot 1.2s infinite ease-in-out;
}
.janice-blog-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.janice-blog-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes janiceDot {
  0%,
  80%,
  100% {
    transform: scale(0.85);
    opacity: 0.45;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}
@media (max-width: 991.98px) {
  body.janice-add-post-page {
    padding-right: 0;
  }

  .janice-blog-sidebar--viewport-rail {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    z-index: auto;
    border-left: none;
    border-top: 1px solid var(--bg-input-border, rgba(0, 0, 0, 0.1));
    box-shadow: none;
    background: transparent;
    padding: 1rem 0.75rem 1.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .janice-blog-sidebar--viewport-rail .janice-blog-card {
    min-height: 380px;
    max-height: min(70vh, 520px);
    border-radius: 0.5rem;
    border: var(--card-brd, 1px solid rgba(124, 58, 237, 0.14));
    height: auto;
  }
}