/* Instant Blog v4.0 – BiFiles clean final */

:root,
:root.dark {
  --bg-color: #1f1d2b;
  --text-color: #f8f9fa;
  --card-bg: #292e3c;
  --card-brd: none;
  --btn-arrow-color: #2d303e;
  --btn-arrow-hover: #242631;
  --bg-user: #292e3c;
  --bg-input: #252836;
  --bg-input-border: #454a62;
  --bg-gray: #3f4756;
  --ql-gray: #b6b3b3;
  --crd-shdw: 0 10px 28px rgba(0, 0, 0, 0.22);
  --code-bg: #23241f;
  --code-color: #f8f8f2;
  --bf-accent: #9d7ad9;
  --bf-accent-soft: #f48fb1;
  --bf-text-soft: rgba(248, 249, 250, 0.72);
  --bf-border-soft: rgba(255, 255, 255, 0.08);
}

:root.light {
  --bg-color: #f6f3f9;
  --text-color: #2b2436;
  --card-bg: #ffffff;
  --card-brd: 1px solid rgba(111, 63, 169, 0.08);
  --btn-arrow-color: #7b5fbf;
  --btn-arrow-hover: #6a4fb0;
  --bg-user: #fbf9fd;
  --bg-input: #ffffff;
  --bg-input-border: #e5dff0;
  --bg-gray: #f1edf7;
  --ql-gray: #5b5368;
  --crd-shdw: 0 10px 30px rgba(61, 34, 95, 0.08);
  --code-bg: #f7f4fb;
  --code-color: #332b42;
  --bf-accent: #7b5fbf;
  --bf-accent-soft: #f06292;
  --bf-text-soft: #746b82;
  --bf-border-soft: rgba(111, 63, 169, 0.08);
}

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

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

html {
  height: 100% !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  letter-spacing: 0.001em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: none;
}

a.text-mode:hover,
.text-mode a:hover {
  color: var(--bf-accent);
  text-decoration: none;
}

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

/* Navigation */
.bg-faded {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-weight: 500;
  border-bottom: 1px solid rgba(111, 63, 169, 0.08);
}

.dark .bg-faded,
:root.dark .bg-faded {
  background-color: rgba(31, 29, 43, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  padding: 0.65rem 1rem;
}

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

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

.navbar-light .navbar-nav .nav-link,
.nav-pro .nav-link {
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.navbar-light .navbar-nav .nav-link:hover,
.nav-pro .nav-link:hover {
  color: var(--bf-accent);
  opacity: 1;
}

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

.nav-pro .nav-link.active {
  color: var(--text-color);
  font-weight: 700;
  border-bottom: 3px solid #7b5fbf;
}

/* 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: 0;
  border-left: 0;
}

blockquote {
  font-size: 1em;
  width: 100%;
  margin: 40px auto;
  font-style: italic;
  color: var(--text-color);
  padding: 1.1em 30px;
  border-left: 5px solid #7b5fbf;
  line-height: 1.7;
  position: relative;
  background: var(--bg-gray);
  border-radius: 14px;
}

blockquote::after {
  content: '';
}

blockquote span {
  display: block;
  color: inherit;
  opacity: 0.85;
  font-style: normal;
  font-weight: 600;
  margin-top: 1em;
}

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

code {
  background-color: var(--code-bg);
  color: var(--code-color);
  padding: 2px 6px;
  border-radius: 8px;
  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;
  border-radius: 12px;
}

.ql-code-block-container {
  background-color: var(--code-bg);
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 12px;
  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 */
#se-pre-con {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 200;
}

/* Border radius */
.border-one {
  border-radius: 1rem !important;
}

.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: #8d93a0;
  pointer-events: none;
  background-color: #3f4756;
  border: none;
}

/* Adsense / sidebar blocks */
.pagesideads {
  max-height: none !important;
  background-color: #2c2f39;
  border-radius: 16px;
}

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

/* Jumbotron styles */
.jumbotron {
  padding: 2.25rem 1rem;
  border-radius: 0;
  color: inherit;
  border-bottom: 1px solid rgba(111, 63, 169, 0.08);
  background: transparent;
}

.display-4,
.header-title,
.jumbotron h1,
.jumbotron h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-footer {
  border-top: 1px solid var(--bf-border-soft);
  margin-top: 2rem;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: inherit;
  opacity: 0.82;
}

:root.light .blog-footer {
  color: #7a7188;
}

:root.dark .blog-footer {
  color: rgba(248, 249, 250, 0.68);
}

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

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

/* Card styles */
.card {
  margin-bottom: 34px !important;
  border: 0 !important;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: 18px !important;
  overflow: visible;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
}

:root.light .card:hover,
:root.light .card-shadow:hover {
  box-shadow: 0 16px 40px rgba(61, 34, 95, 0.12) !important;
}

:root.dark .card:hover,
:root.dark .card-shadow:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32) !important;
}

.card-img {
  min-height: 200px;
  overflow: visible !important;
}

.card-img-top {
  width: 100%;
  border-radius: 18px 18px 0 0;
  transition: transform 0.35s ease, filter 0.35s ease;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card:hover .card-img-top,
.card:hover .tag-img {
  transform: scale(1.02);
  filter: saturate(1.03);
}

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

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

.card-blog-body {
  flex: 1 1 auto;
  padding: 1.15rem 1.25rem 3.2rem 1.25rem;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card .h1,
.card .h2,
.card .h3,
.card .h4,
.card-title,
.card-blog-body h2,
.card-blog-body h3,
.card-txt-body h2,
.card-txt-body h3 {
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}

.card h2 a,
.card h3 a,
.card h4 a,
.card-title a,
.card-blog-body h2 a,
.card-blog-body h3 a,
.card-txt-body h2 a,
.card-txt-body h3 a {
  color: inherit;
}

.card h2 a:hover,
.card h3 a:hover,
.card h4 a:hover,
.card-title a:hover,
.card-blog-body h2 a:hover,
.card-blog-body h3 a:hover,
.card-txt-body h2 a:hover,
.card-txt-body h3 a:hover {
  color: var(--bf-accent);
}

.card p,
.card-blog-body p,
.card-txt-body p,
.text-muted,
.small,
small {
  color: inherit;
}

:root.light .card p,
:root.light .card-blog-body p,
:root.light .card-txt-body p,
:root.light .text-muted,
:root.light .small,
:root.light small {
  color: var(--bf-text-soft) !important;
}

:root.dark .card p,
:root.dark .card-blog-body p,
:root.dark .card-txt-body p,
:root.dark .text-muted,
:root.dark .small,
:root.dark small {
  color: var(--bf-text-soft) !important;
}

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

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

.card-footer {
  background-color: var(--card-bg);
  padding: 0.9rem 1rem !important;
  border-top: 1px solid rgba(111, 63, 169, 0.08);
  border-radius: 0 0 18px 18px !important;
}

.card-border {
  border-top: 1px solid rgba(111, 63, 169, 0.08);
}

.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 {
  opacity: 0.62;
}

.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;
  gap: 0.35rem;
  font-weight: 500;
}

.author .avatar,
.author .avatar-sm,
.author .avatar-xs {
  border-radius: 999px;
}

.vbadge {
  margin-left: 5px;
}

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

.card .author:hover,
.card .nocolor,
.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,
.likenumber,
.card-date {
  font-size: 14px;
}

.card-count {
  margin-top: 0.8rem;
  margin-left: 2rem;
  color: #a39aac;
}

.stats {
  float: right;
  margin-top: 0.3rem;
}

.bottom-txt {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 4rem;
  z-index: 0;
  padding-right: 0.25rem;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.85);
}

.bottom-txt h1,
.bottom-txt h2,
.bottom-txt h3,
.bottom-txt h4,
.bottom-txt p {
  color: #fff;
}

.txt-shad {
  text-shadow: 1px 1px 5px rgba(52, 58, 64, 0.8);
}

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

.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: 8px;
}

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

.text-ellipsis {
  display: block;
}

.marginlt {
  margin-top: 1.5rem;
}

/* Buttons */
.btn,
.btnhome,
.btn-light,
.btn-arrow,
.btn-grad {
  transition: all 0.22s ease;
}

.btnhome:hover,
.btn-light:hover,
.btn-arrow:hover,
.btn-grad:hover {
  transform: translateY(-1px);
}

.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, #f06292 0%, #7b5fbf 50%, #f06292 100%);
  font-size: 16px;
  font-weight: 700;
  background-size: 200% auto;
  color: #fff !important;
  border: none;
  display: block;
  padding: 0.45rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(123, 95, 191, 0.24);
}

.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;
  border-radius: 10px;
}

.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.5rem;
}

.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;
}

.btn-white-shadow {
  color: #2b2436;
  background-color: #fff;
  border: none;
  border-radius: 100%;
  box-shadow: 0 4px 14px rgba(61, 34, 95, 0.12);
}

.btn-white-shadow:hover,
.btn-white-shadow:focus {
  background-color: #f5f1fa;
  color: #2b2436;
}

.btnadd,
#texteditor {
  border-radius: 0.5rem;
  font-weight: bolder;
  cursor: pointer;
}

.btnhome {
  color: var(--text-color);
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: 999px;
  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);
  border-radius: 999px;
}

.btn-light:hover,
.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);
  border-radius: 999px;
}

.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(123, 95, 191, 0.2);
}

.btnpoint {
  cursor: pointer;
}

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

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

.bg-over:hover {
  background: rgba(0, 0, 0, 0.16);
  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-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: 600;
}

.nav-pills .nav-link {
  border-radius: 999px;
}

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

.tag-img {
  height: 200px;
  border-radius: 1rem;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

/* Post body */
.bg-post {
  border-left: 1px solid rgba(111, 63, 169, 0.08);
  border-right: 1px solid rgba(111, 63, 169, 0.08);
  background-color: #fff !important;
  word-wrap: break-word;
  padding-right: 0;
  padding-left: 0;
  border-radius: 18px;
  overflow: hidden;
}

.bg-post .card,
.bg-post article,
.bg-post .post-body,
.bg-post .ql-editor,
.bg-post .content {
  line-height: 1.75;
}

.bg-post h1,
.bg-post h2,
.bg-post h3 {
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.bg-post p {
  margin-bottom: 1.05rem;
}

.bg-post ul,
.bg-post ol {
  padding-left: 1.25rem;
}

.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%;
  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;
  box-shadow: var(--crd-shdw);
}

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

.admin-item {
  border-bottom: 1px solid rgba(111, 63, 169, 0.08);
  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: inherit;
  display: block;
  margin: 0;
}

.admin-item-text {
  color: inherit;
  opacity: 0.65;
  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;
  opacity: 0.72;
}

.admin-simple-sm {
  background: var(--bg-input);
  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: #7b5fbf !important;
}

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

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

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

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

/* Profile */
.box-profile {
  position: relative;
  border-radius: 18px;
  background: #fff;
  border: solid 1px rgba(111, 63, 169, 0.08);
  margin: 0 0 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(61, 34, 95, 0.06);
}

.profile-card {
  padding-right: 15px;
  padding-top: 6px;
  float: left;
}

.profile-card-photo {
  max-width: 150px;
  border: 5px solid #fff;
  border-radius: 100%;
  box-shadow: 0 8px 24px rgba(61, 34, 95, 0.12);
}

.profile-card-username {
  color: #7a7188;
  font-size: 0.96rem;
  font-weight: 500;
}

.profile-card-points {
  color: #7a7188;
  font-size: 0.8rem;
  margin-top: 0.15rem;
  letter-spacing: 0.01em;
}

.profile-card-name {
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 0.2rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

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

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

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

.profile-links-list {
  padding: 10px 0;
  font-size: 0.9375rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0;
  border-top: 1px solid var(--bf-border-soft);
  margin-top: 0.5rem;
  padding-top: 12px;
}

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

.profile-links-list li a {
  color: inherit;
  opacity: 0.9;
}

.profile-links-list li a:hover {
  color: var(--bf-accent);
  opacity: 1;
}

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

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

.header-img-top {
  width: 100%;
  height: auto;
  max-height: 200px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.box-profile .header-img-top,
.box-profile .cover,
.header-img-top {
  border-bottom: 1px solid var(--bf-border-soft);
}

.header-body {
  padding-top: 1.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(111, 63, 169, 0.08);
}

.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);
}

.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;
}

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

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

.border-comment {
  border-bottom: 1px solid rgba(111, 63, 169, 0.12);
}

#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(111, 63, 169, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(61, 34, 95, 0.12);
}

.dropdown-item {
  color: var(--text-color);
  border-radius: 10px;
}

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

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

.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,
.form-control,
.modern-login-form .modern-input,
.dropdown-menu {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.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);
  border-radius: 12px;
}

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

.form-control:focus {
  color: var(--text-color);
  background-color: var(--bg-input);
  border-color: #cdbfe6;
  box-shadow: 0 0 0 0.15rem rgba(123, 95, 191, 0.1);
}

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

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

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

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

/* Additional */
.cover {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !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;
}

/* Category colors – these remain available if script uses them */
.bg-cat-1 {
  background-color: #7b5fbf !important;
}

.bg-cat-1:hover {
  background-color: #694fa8 !important;
}

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

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

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

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

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

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

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

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

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

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

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 */
.toastdark {
  background-color: rgba(63, 71, 86, 0.95);
  border-radius: 1rem;
  border: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

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

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

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

.column {
  float: left;
}

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

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

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

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

/* Placeholder / tooltip */
.form-control::placeholder {
  color: #7a7188;
  opacity: 1;
}

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

.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: 12px;
  padding-left: 15px;
}

.modern-login-form .modern-input:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #7b5fbf !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: 12px;
  font-weight: 600;
  font-size: 16px;
}

.modern-login-form .modern-google-btn {
  height: 50px;
  border-radius: 12px;
  font-weight: 500;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.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;
}

/* Separator */
.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 login overrides */
.login-header {
  color: #fff;
}

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

:root.light .modern-login-form .modern-input {
  background-color: #f4eff9 !important;
  border: 1px solid #e0d7ec !important;
  color: #1c1e21 !important;
}

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

:root.light .modern-login-form .modern-input::placeholder {
  color: #7a7188;
}

: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);
}

: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;
}

/* ===== Final category labels ===== */
.category {
  position: absolute;
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  width: auto !important;
  z-index: 10;
  text-align: left !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.category a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 11px;
  border: none !important;
  border-radius: 999px;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(61, 34, 95, 0.16);
  backdrop-filter: none !important;
}

.category a:hover {
  color: #ffffff !important;
  opacity: 0.92;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(61, 34, 95, 0.16);
}

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

  .card {
    margin-bottom: 26px !important;
  }

  .card-blog-body {
    padding: 1rem 1rem 3rem 1rem;
  }

  .category {
    top: 12px !important;
    left: 12px !important;
  }

  .category a {
    min-height: 24px;
    padding: 0 10px;
    font-size: 10px;
  }

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

  /* Mobile sidebar / widget buttons */
  .pagesideads,
  .betads {
    max-height: none !important;
    padding: 0 !important;
  }

  .pagesideads a,
  .pagesideads .btnhome,
  .pagesideads .btn-light,
  .pagesideads .btn-grad,
  .pagesideads button {
    display: block;
    width: 100%;
    margin: 0 0 10px 0 !important;
  }

  .pagesideads a:last-child,
  .pagesideads .btnhome:last-child,
  .pagesideads .btn-light:last-child,
  .pagesideads .btn-grad:last-child,
  .pagesideads button:last-child {
    margin-bottom: 0 !important;
  }

  .pagesideads br {
    display: none;
  }

  .btn-arrow {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding-right: 18px;
    padding-left: 18px;
  }

  .profile-card-photo {
    max-width: 120px;
  }

  .profile-card-name {
    font-size: 1.2rem;
  }

  .profile-links-list {
    font-size: 0.9rem;
  }

  .card-blog-body,
  .card-txt-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Sidebar buttons on tablet/mobile */
  .pagesideads a,
  .pagesideads .btnhome,
  .pagesideads .btn-light,
  .pagesideads .btn-grad,
  .pagesideads button {
    border-radius: 14px;
  }
}

@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: '4 .column.size-1of4';
  }
}

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

/* Focus states */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
}


/* ===== Text readability upgrade for light mode ===== */
:root.light {
  --bf-text-soft: #5f566d;
}

/* Single post + page body darker */
:root.light .bg-post,
:root.light .bg-post .card,
:root.light .bg-post article,
:root.light .bg-post .post-body,
:root.light .bg-post .ql-editor,
:root.light .bg-post .content,
:root.light .bg-post p,
:root.light .bg-post li,
:root.light .bg-post blockquote,
:root.light .bg-post span,
:root.light .bg-post div {
  color: #4a4258 !important;
}

/* Single post/page meta and small text slightly darker */
:root.light .bg-post .text-muted,
:root.light .bg-post small,
:root.light .bg-post .small,
:root.light .bg-post .card-date,
:root.light .bg-post .card-count,
:root.light .bg-post .likenumber {
  color: #756c83 !important;
  opacity: 1 !important;
}

/* Static pages like Privacy / Terms darker too */
:root.light .box-white p,
:root.light .box-white li,
:root.light .box-white span,
:root.light .box-white div {
  color: #4a4258 !important;
}

/* Blog card excerpts a bit darker */
:root.light .card p,
:root.light .card-blog-body p,
:root.light .card-txt-body p {
  color: #675e75 !important;
}

/* Keep headings strong */
:root.light .bg-post h1,
:root.light .bg-post h2,
:root.light .bg-post h3,
:root.light .bg-post h4,
:root.light .box-white h1,
:root.light .box-white h2,
:root.light .box-white h3,
:root.light .box-white h4 {
  color: #2b2436 !important;
}
