:root {
  --bs-breakpoint-xs: 0;
  --bs-breakpoint-sm: 576px;
  --bs-breakpoint-md: 768px;
  --bs-breakpoint-lg: 1092px;
  --bs-breakpoint-xl: 1300px;
  --bs-breakpoint-xxl: 1700px;
}

hr {
  height: 1px;
}

/* Topbar color */
.topbar {
  background-color: #101b29 !important;
}

.anchor-target {
  scroll-margin-top: 100px; /* Adjust this value based on your header height */
}

[id] {
  scroll-margin-top: 100px; /* Adjust 50px to your header height */
}

.card {
  --bs-card-spacer-y: 20px;
  --bs-card-spacer-x: 20px;
}

.alert {
  text-align: center;
}

.breadcrumbs {
  margin-left: -25px;
  margin-right: -20px;
  padding: 15px 20px 10px 25px;
  margin-bottom: 10px;
}

.lqip-img {
  filter: blur(5px);
  transition: filter 0.5s; 
}

.lqip-img.loaded {
  filter: blur(0);
}

/* Right Sidebar Styles */

/* Dark mode styles */
[data-bs-theme="dark"] .right-sidebar {
  background-color: #152332;
}
/* Light mode styles */
[data-bs-theme="light"] .right-sidebar {
  background: #fff;
}

.text-muted {
  color: #5e708b !important;
}

[data-bs-theme="dark"] a {
  color: #49e4ff;
}

.right-sidebar {
  width: 338px;
  z-index: 12;
  margin-top: 60px;
  padding-top: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;

  /*
  height: 100%;
  box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.03), 0 0 1px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  
  */
}


/* Map container styles - for both iframe and object embeds */
.iframe-container,
.map-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 1rem;
}

.responsive-iframe,
.responsive-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f8f9fa; /* Fallback background */
}

/* Specific styles for object-based maps */
.map-container object {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pt-1a {
  padding-top: 0.35rem !important;
}

.lh-07 {
  line-height: 0.7 !important;
}

.lh-sm135 {
  line-height: 1.35 !important;
}

.nav-hover a {
  position: relative;
  z-index: 1;
}

.nav-hover a::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background-color: transparent;
  border-radius: 9px; /* 6px original + 3px extension */
  z-index: -1;
  transition: background-color 0.2s ease;
}

.nav-hover a:hover::before {
  background-color: rgba(255, 255, 255, 0.05);
}

a:hover {
  color: #fff;
}

.bg-grey {
  background-color: #253440 !important;
}

.bg-dark {
  background-color: #1d2129 !important;
}

.border-dashed {
  border-style: dashed !important;
}

.side-content {
  width: 338px;
  padding: 0px;
  transition: width 0.2s ease; /* Add transition for smooth width change */
}

.side-content.hide-side-content {
  width: 20px;
}

.sticky-sidebar {
  padding-top: 20px;
  padding-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.right-sidebar.show-sidebar {
  transform: translateX(0);
}
.right-sidebar.hide-sidebar {
  transform: translateX(338px);
}

/* Container Padding Widths */
.page-wrapper .body-wrapper > .container-fluid {
  padding: 0px 10px; /* Default for XS */
}

body.right-sidebar-initial-closed .right-sidebar {
  /* display: none !important; */
}

.card {
  --bs-card-spacer-x: 15px;
}

.card-header {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) { /* SM breakpoint */
  .page-wrapper .body-wrapper > .container-fluid {
    padding: 0px 15px;
  }
  .card {
    --bs-card-spacer-x: 20px;
  }

  .card-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 768px) { /* MD breakpoint */
  .page-wrapper .body-wrapper > .container-fluid {
    padding: 0px 20px;
  }
  .card {
    --bs-card-spacer-x: 20px;
  }

  .card-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}


@media (min-width: 1022px) {

  #main-wrapper {
    position: relative;
    overflow: clip;
  }

  .right-sidebar {
    width: 338px;
    z-index: 12;
    margin-top: 60px;
    padding-top: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
   
  }  
  
  .sticky-sidebar {
    position: webkit-sticky;
    position: sticky;
    top:55px;
    height: auto;
    overflow-y: auto;
    transform: translateX(0);
  }


  .main-content { 
    flex:1;
    padding: 0 0 0 20px;
}


}

@media (max-width: 1021.98px) {

  #main-wrapper {
    overflow: clip;
  }

  .right-sidebar {
    position: fixed; /* Fixes the sidebar off-canvas */
    right: 0; /* Aligns it to the right */
    top: 0; /* Aligns it to the top */
    height: 100%; /* Full height */
    padding-top: 6px;
    overflow-y: auto; /* Enable scrolling within the sidebar */
    width: 332px;
    transform: translateX(332px);
  }


.main-content { 
    flex:auto;
}

  #main-wrapper[data-layout="vertical"] .page-wrapper {
    width: 100%;
    margin-right: 0;
  }

  /* Ensure content is centered when sidebars are hidden */
  #main-wrapper[data-layout="vertical"] .page-wrapper .container-fluid {
    max-width: 100%;
    margin: 0 auto;
  }

 /* Ensure the scroll container takes full height */
.right-sidebar .scroll-sidebar {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 40px;
}

}

/* Login Modal Styles */

[data-bs-theme="dark"] .input-group-text {
  background-color: #1a3a49 !important;
}

[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
  background-color: #0c131a !important;
  padding: 12px 16px !important;
  color: #b1bbc9;

}

::placeholder, ::-webkit-input-placeholder, :-ms-input-placeholder {
  color: #16355f !important;
}
/*
.form-control::-moz-placeholder, .form-control::placeholder, .form-control::-webkit-input-placeholder, .form-control:-ms-input-placeholder, 
.form-select::-moz-placeholder, .form-select::placeholder, .form-select::-webkit-input-placeholder, .form-select:-ms-input-placeholder {
    color: #16355f !important;
    opacity: 1;
}
    */

.form-control::-moz-placeholder {
      color: #4f6a8f !important;
      opacity: 1;
  }
  .form-control::placeholder {
      color: #4f6a8f !important;
      opacity: 1;
  }
.form-select::-moz-placeholder {
    color: #4f6a8f !important;
    opacity: 1;
}
.form-select::placeholder {
    color: #4f6a8f !important;
    opacity: 1;
}
.select2-search__field::placeholder {
  color: #4f6a8f !important;
  opacity: 1;
}
.select2-search__field::-moz-placeholder {
  color: #4f6a8f !important;
  opacity: 1;
}

body .select2-container .select2-search--inline .select2-search__field {
  height: 28px;
}

/* Date input placeholder styling */
input[type="date"]:not(:focus):not([value=""]) {
  color: inherit;
}

input[type="date"]:not(:focus):in-range::-webkit-datetime-edit {
  color: transparent;
}

input[type="date"]:focus::-webkit-datetime-edit {
  color: inherit;
}

/* Base placeholder styling */
input[type="date"]:not(:focus)::before {
  content: attr(placeholder);
  position: absolute;
  color: #4f6a8f;  
  opacity: 1;
  transition: opacity 0.15s ease-in-out;
}

/* Hide placeholder when focused */
input[type="date"]:focus::before {
  opacity: 0;
}

/* Hide placeholder when date has a value or has-filled class */
input[type="date"].has-filled:not(:focus)::before {
  display: none !important;
}

/* Calendar picker icon styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(50%) sepia(12%) saturate(1080%) hue-rotate(182deg) brightness(86%) contrast(82%);
  cursor: pointer;
  color: #4f6a8f !important;  
  opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}


.modal-header {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  background-color:#1c344d !important;
}

.modal-title {
  color: #72a3cf !important;
}

.modal-body { /*
  padding: 30px 30px 50px 30px !important;
*/
}

#login .nav-pills {
    font-weight: 500;
    border-radius: 12px;
    padding: 8px 20px;
    background-color: #1f3041 !important;
    color: #c1c1d8 !important;
    margin: 0px 0px 20px 0px !important;
}

/* Password Toggle Button */
.auth-pass-inputgroup {
    position: relative;
}

.auth-pass-inputgroup .password-addon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--bs-gray-600);
    background: transparent !important;
    border: none;
    font-size: 1.2rem;
}

.auth-pass-inputgroup .password-addon:hover {
    color: var(--bs-primary);
}

.auth-pass-inputgroup .password-addon:focus {
    outline: none;
    box-shadow: none;
}

.auth-pass-inputgroup .form-control {
    padding-right: 2.5rem;
}

/* Input Groups */
.input-group-text {
    background-color: transparent;
    border-right: none;
    color: var(--bs-gray-600);
}


.input-group .form-control:focus {
    border-color: var(--bs-gray-400);
    box-shadow: none;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--bs-gray-400);
}

/* Hide icon wrapper on small screens */
@media (max-width: 575.98px) {
  .input-group-text {
    display: none;
  }
  
  /* Apply rounded corners to inputs when icons are hidden */
  .input-group .form-control {
    border-radius: 0.5rem !important;
  }
}

/* Form Validation */
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--bs-danger);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: var(--bs-success);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-danger);
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/*
.btn-primary:hover {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}
    */

.text-primary {
    color: #8aa9ef !important;
}

/* Responsive adjustments 
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .nav-pills .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
    */

/* Custom animations 
.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}
*/
/* Modal Images 
.modal-image-container {
    height: 100%;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

<div class="col-md-4" style="background-image: url('assets/images/login-modal-desktop.jpg'); background-size: cover; background-position: center; padding: 30px; min-height: 100px;">

.mobile-image-container {
    max-height: 200px;
    overflow: hidden;
}

.mobile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
*/
/* Social Login Buttons */
.btn-lg {
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
}

.btn-facebook {
    color: #fff;
    background-color: #3b5998;
    border-color: #3b5998;
}

.btn-facebook:hover {
    color: #fff;
    background-color: #324c82;
    border-color: #2f477a;
}

.btn-twitter {
    color: #fff;
    background-color: #1da1f2;
    border-color: #1da1f2;
}

.btn-twitter:hover {
    color: #fff;
    background-color: #1991db;
    border-color: #1889ce;
}

.btn-google {
    color: #fff;
    background-color: #ea4335;
    border-color: #ea4335;
}

.btn-google:hover {
    color: #fff;
    background-color: #d73925;
    border-color: #ca3522;
}

.btn-github {
    color: #fff;
    background-color: #24292e;
    border-color: #24292e;
}

.btn-github:hover {
    color: #fff;
    background-color: #1b1f23;
    border-color: #181a1d;
}

/* Social Login Separator */
.position-relative hr {
    border-top: 1px solid var(--bs-gray-300);
    margin: 1.5rem 0;
}

.position-relative span {
    font-size: 0.875rem;
}

.select2-container.error .select2-selection {
  border: 1px solid rgb(105, 0, 0);
}
.select2-container {
  width: 100% !important;
}

[data-bs-theme="dark"].select2-container--classic .select2-dropdown, [data-bs-theme="dark"] .select2-container--classic .select2-selection--single, [data-bs-theme="dark"] .select2-container--default .select2-selection--multiple, [data-bs-theme="dark"] .select2-container--default .select2-selection--single, [data-bs-theme="dark"] .select2-dropdown {

  background-color: #0c131a !important;
  padding: 5px 8px 9px !important;
  font-size: 0.875rem !important;
}

body .select2-container--classic .select2-selection--multiple .select2-selection__choice, body .select2-container--default .select2-selection--multiple .select2-selection__choice, body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  background-color: #173961;
  border-color: #173961;
  color: #e1e1e1;
}

/*
.select2-results__option:hover {  
  background-color: #145bac !important;
  color: #e1e1e1 !important;
}

.select2-results__option[aria-selected="true"] {  
  background-color: #173961 !important;
  color: #e1e1e1 !important;
}

select:-internal-list-box option:checked { 
  background-color: #173961 !important;
  color: #e1e1e1 !important;
}
  */


.table th {
    background-color: #0c1535;
    color: #96c6e9;
    font-size: 16px;
}

.table > tbody > tr.odd {
  background-color: #161d2d;
}

.table > tbody > tr.even {
  background-color: #192135;
}

[data-bs-theme="dark"] .table td, [data-bs-theme="dark"] .table th, [data-bs-theme="dark"] .table tr {
  border-color: #13171e !important;
}

ul.pagination a {
  color:#cccccc !important;

}

/*
.ql-editor ol li:is([data-list='bullet'])::before {
  content: "•";
}
  */

  .quill-editor {
    resize: vertical;
    overflow-y: scroll;
    background-color: #0c131a;
    min-height: 130px;
  }

  .ql-editor {
    height: auto !important;
  }

  .ql-toolbar {
    background-color: #041733 !important;
  }

  .ql-picker-options {
    background-color: #0e0e27 !important;
  }

  .ql-editor.ql-blank::before {
    color: #394557;
    font-size: 1.2em;
    font-style: normal;
  }

.tt-dataset {
    background-color: #0c131a !important;
  }

.tt-menu {
    background-color: #0c131a !important;
    max-height: 650px;  /* Adjust height as needed */
    overflow-y: auto;   /* Enable vertical scrolling */
}


.dropzone .dz-preview.dz-image-preview {
  background: transparent !important;
}


.dropzone {
  display:block !important;
  width: 100% !important;
  height: auto !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  padding: 8px !important;
}

.dz-preview {
  display:block !important;
  margin: 0 !important;
}

.dz-image img {
  width: 100% !important;
}

.dz-message {
  padding: 10px !important;
}

.dz-image {
  border-radius: 8px !important;
  width: 100% !important;
  height: auto !important;
  margin-bottom: 5px !important;
}

.dropzone .dz-preview:hover .dz-image img {
  -webkit-transform: scale(1.0, 1.0);
  -moz-transform: scale(1.0, 1.0);
  -ms-transform: scale(1.0, 1.0);
  -o-transform: scale(1.0, 1.0);
  transform: scale(1.0, 1.0);
  -webkit-filter: none !important;
  filter: none !important;
}

.dz-details { display: none !important; }

.form-label {
  /* margin-bottom: 0.1 rem; */
  font-weight: 600;
  color: #6c757d;
  display: inline;
  margin-left: 8px;
}

.hide-empty:empty, form label:empty, form small:empty  {
  display: none;
}

.form-text {
  margin-left: 10px;
}

[data-bs-theme="dark"] .text-bg-light {
  background-color: #131925 !important;
  color: #677c91 !important;
}  

[data-bs-theme="dark"] .btn-dark {
  --bs-btn-bg: #131925 !important;
  --bs-btn-hover-bg: #202a33 !important;
  --bs-btn-hover-border-color: #4e5963 !important;
  color: #8195aa !important;
}  

[data-bs-theme="dark"] .btn-link:hover {
 --bs-btn-hover-color: #99c4f5 !important;
}

.hover-bg-light:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
  transition: background-color 0.2s ease !important;
}

.dropdown-item {
  color: #bdbdbd !important;
}

.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: #e07b07;
  --bs-btn-border-color: #e07b07;
  --bs-btn-hover-color: #FFF;
  --bs-btn-hover-bg: #f7b336;
  --bs-btn-hover-border-color: #f7b336;
  --bs-btn-focus-shadow-rgb: 209, 163, 0;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #f7b336;
  --bs-btn-active-border-color: #f7b336;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #e07b07;
  --bs-btn-disabled-border-color: #e07b07;
}

:root {
  --bs-primary: #1448b9;
  --bs-secondary: #43ced7;
  --bs-success: #2cd07e;
  --bs-info: #2cabe3;
  --bs-warning: #e07b07;
  --bs-danger: #f8285a;
  --bs-light: #cccccc;
  --bs-dark: #3a4752;
  --bs-muted: #768b9e;
}

[data-bs-theme="dark"] .tooltip-inner {
  color: #e7e7e7 !important;
  --bs-tooltip-bg: #1a1a1a;
  --bs-tooltip-color: #e7e7e7 !important;
}

.tooltip-inner {
  color: #e7e7e7 !important;
  --bs-tooltip-bg: #1a1a1a;
  --bs-tooltip-color: #e7e7e7 !important;
}

.voter {
  position: relative;
}
.reaction-modal {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 45%;
  transform: translateX(-30%);
  z-index: 1000;
  display: none;


}

.reaction-pill {
  display: flex;
  background-color: #0e1927;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reaction-btn {
  margin: 0 4px;
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.reaction-btn:hover {
  transform: scale(1.1);
}

.reaction-btn.active {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

/* Vote Tally Animation */
@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vote-animation-wrapper {
  position: relative;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.vote-tally-old {
  position: absolute;
  left: 0;
  top: 0;
  animation: fadeOutUp 1.1s forwards;
  z-index: 1;
  white-space: nowrap;
}

.vote-tally-new {
  position: relative;
  animation: fadeInUp 1.1s forwards;
  z-index: 2;
  white-space: nowrap;
}

.voted-vote {
  color: #7c8fac;
}

.voted-liked {
  color: #61a9ff !important;
}

.voted-loved {
  color: #e96e8c !important;
}

.voted-disliked {
color: #9e62ff !important;
}

.voted-flagged {
  color: #f7b336 !important;
}


.imgtitle {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
}

.imgtitle-div {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.ba-avatar-initials {
  --avatar-size: 64px; /* default, can be overridden inline */
  width: var(--avatar-size) !important;
  min-width: var(--avatar-size) !important;
  height: var(--avatar-size) !important;
  min-height: var(--avatar-size) !important;
  padding-top: 1px;
  aspect-ratio: 1/1 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: sans-serif;
  font-weight: bold;
  font-size: calc(var(--avatar-size) * 0.5 - 5px );
  user-select: none;
  background: #ccc; /* fallback */
  transition: background 0.3s;
  
}




/* COMMENT THREAD BRANCH LINES */
  
  /* Base styles for all comments */
  .comment, .comment-container, .cmt-wrap,
  .cmt-lvl-1, .cmt-lvl-2, .cmt-lvl-3,
  .cmt-div-1, .cmt-div-2   {
    position: relative; 
    z-index: 0; 
  }

  .cmt-lvl-2, .cmt-lvl-3 {
    margin-left: 30px;
  }

  /* Vertical Lines from Avatar to First Child L Connector */
  .cmt-div-1:has(+ .cmt-wrap)::after,
  .cmt-div-2:has(+ .cmt-wrap)::after {
    content: "";
    position: absolute;
    top: 60px; /* Start below the avatar */
    left: 18px;
    width: 2px;
    pointer-events: none; /* Allow clicks through the line */
    background-color: #263443;
    z-index: -1; /* Keep behind other elements */
    bottom: -20px;
  }
  
  /* L-shaped connector for level 2,3 comments */
  .cmt-lvl-2::before, .cmt-lvl-3::before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px; /* Position to the left of the comment */
    width: 15px;
    height: 20px;
    border-bottom-left-radius: 6px;
    border-left: 2px solid #263443;
    border-bottom: 2px solid #263443;
  }
  
  /* Vertical line extender connecting level 2,3 siblings */
  .cmt-lvl-2::after, .cmt-lvl-3::after {
    content: "";
    position: absolute;
    top: -10px; /* Extend slightly above the comment */
    left: -12px;
    width: 2px;
    height: calc(100% + 30px); /* Ensure it connects to the next sibling */
    background-color: #263443;
    z-index: -1;
  }
  
  /* Adjust line height for last comments in each group */
  .cmt-lvl-2:last-of-type::after,
  .cmt-lvl-3:last-of-type::after {
    height: 10px; /* Shorter line for last comment */
  }

  .cmt-lvl-1 {
    padding-bottom: 15px;
  }

  .cmt-lvl-2 {
    padding-top: 5px;
  }
  

textarea.form-control {
  field-sizing: content;
  min-height: 100px;
  max-height: 300px;
}

.text-bg-darker {
  color: #bbb !important;
  background-color: #212f41 !important;
}

.moderated-comment {
  border-color: #656565;
  border-width: 2px;
  border-style: dashed;
}

.card-header {
 --bs-card-cap-bg: #243343;
}
  
.badge-subdued {
  color: #8990a5;
  background-color: #1c3045;
}

.text-subdued {
  color: #84a4bf;
}


/* START: Responsive styles */
.responsive-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.responsive-column {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.responsive-column {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.responsive-column h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.responsive-column img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}


.font {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.responsive-column h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* END: Responsive styles */


/* Responsive font size classes - scaled down */
.rfs-1 { font-size: clamp(0.55rem, 1.0vw, 0.625rem) !important; }
.rfs-2 { font-size: clamp(0.65rem, 1.2vw, 0.75rem) !important; }
.rfs-3 { font-size: clamp(0.75rem, 1.4vw, 0.875rem) !important; }
.rfs-4 { font-size: clamp(0.85rem, 1.6vw, 1rem) !important; }
.rfs-5 { font-size: clamp(0.95rem, 1.8vw, 1.125rem) !important; }
.rfs-6 { font-size: clamp(1.05rem, 2.0vw, 1.25rem) !important; }
.rfs-7 { font-size: clamp(1.1rem, 2.2vw, 1.275rem) !important; }
.rfs-8 { font-size: clamp(1.15rem, 2.4vw, 1.3125rem) !important; }
.rfs-9 { font-size: clamp(1.25rem, 2.6vw, 1.35rem) !important; }



/* Responsive font size classes - scaled down */
.fs-1 { font-size: clamp(0.55rem, 1.0vw, 0.625rem) !important; }
.fs-2 { font-size: clamp(0.65rem, 1.2vw, 0.75rem) !important; }
.fs-3 { font-size: clamp(0.75rem, 1.4vw, 0.875rem) !important; }
.fs-4 { font-size: clamp(0.85rem, 1.6vw, 1rem) !important; }
.fs-5 { font-size: clamp(0.95rem, 1.8vw, 1.125rem) !important; }
.fs-6 { font-size: clamp(1.05rem, 2.0vw, 1.25rem) !important; }
.fs-7 { font-size: clamp(1.1rem, 2.2vw, 1.275rem) !important; }
.fs-8 { font-size: clamp(1.15rem, 2.4vw, 1.3125rem) !important; }
.fs-9 { font-size: clamp(1.25rem, 2.6vw, 1.35rem) !important; }


/* Plan feature links */
a.hover-text-light {
  color: inherit !important;
}

a.hover-text-light:hover {
  color: #eeeeee !important;
  text-decoration: none !important;
}

/* Minimal custom styles for testimonials */
.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.quote-icon {
  position: absolute;
  right: 15px;
  bottom: 15px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
  line-height: 1;
}

.testimonial-body {
  position: relative;
}

.vendor-reply {
  padding: 1rem;
  margin-top: -1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0e1927;
}

.testimonial-footer {
  padding: 0;
  background-color: transparent;
  border-top: none;
}




  /*
  Vertical Ticker Styles
  - Creates a seamless, infinite vertical scrolling ticker.
  - Pauses on hover.
  - Dynamically adjusts speed via JavaScript.
*/

.vertical-ticker-wrapper {
  --ticker-height: 500px; /* Default height */
  --ticker-min-height: 150px; /* Default min-height */
  height: var(--ticker-height);
  min-height: var(--ticker-min-height);
  overflow: hidden;
  position: relative;
}

.vertical-ticker {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  width: 100%;
  animation: verticalTickerAnim linear infinite;
  animation-play-state: running;
}

/* Hover-pause is now handled by JavaScript to avoid conflicts with Read More */
.vertical-ticker-content {
  display: flex;
  flex-direction: column;
}

/*
  The animation works by duplicating the content.
  It translates the container by half its height, which corresponds
  to the height of the original content, creating a seamless loop.
*/
@keyframes verticalTickerAnim {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}


/* When a ticker has a .no-ticker element, let its height be determined by its content. */
.vertical-ticker-wrapper:has(.no-ticker) {
  height: auto !important;
  min-height: 0 !important;
  --ticker-height: auto;
  --ticker-min-height: auto;
}

/* For the static case, take the ticker out of absolute positioning and stop the animation. */
.vertical-ticker-wrapper:has(.no-ticker) .vertical-ticker {
  position: static;
  animation: none;
}


/* Read More Component */
.read-more-container {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.read-more-container.collapsed {
  max-height: 150px; /* Adjust based on your needs */
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  
}

.read-more-container.expanded {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
  overflow-y: auto;
}

/* Scrollbar Styling */
.read-more-container.expanded::-webkit-scrollbar {
  width: 6px;
}

.read-more-container.expanded::-webkit-scrollbar-track {
  background: transparent;
}

.read-more-container.expanded::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.read-more-btn {
  background: none;
  border: none;
  text-decoration: none;
  color: #7963bb;
  cursor: pointer;
  padding: 5px 0;
  text-align: left;
  font-size: 0.85rem;
  margin-top: 8px;
  display: inline-block;
}

.read-more-btn:hover {
  font-size: 0.85rem;
  text-decoration: none !important;
  color: #a78fee;;
}

.search-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.search-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.55), rgba(2,6,23,0.78));
  z-index: 1;
}
.search-hero .inner {
  position: relative; z-index: 2;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.search-hero .form-panel { width: 700px; max-width: 98%; }
.search-hero .form-card {
  background: rgba(19,27,37,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-radius: .75rem;
}
.search-hero .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.modal-body > .search-hero:first-child {
  margin-top: -1rem;      /* offset pt-3 */
  margin-right: -1.5rem;  /* offset p-4 */
  margin-bottom: -1.5rem; /* offset p-4 */
  margin-left: -1.5rem;   /* offset p-4 */
  border-radius: inherit; /* match modal rounded corners */
}

/* Ensure corners clip cleanly if not already set */
/* Keep the hero bleed with negative margins (already added) */
.modal-body > .search-hero:first-child {
  /* keep your negative margins + border-radius if desired */
  overflow: visible; /* allow dropdowns/menus to escape */
}

/* Clip only the background layers to match modal radius */
.search-hero::before,
.search-hero .bg-img {
  border-radius: var(--bs-modal-border-radius); /* Bootstrap 5 var */
  /* optional fallback if needed: border-radius: .5rem; */
  pointer-events: none; /* ensure bg layers never block UI */
}

.search-hero .hero-headings h4 { color: #f1f5f9; text-shadow: 0 2px 10px rgba(0,0,0,0.35); letter-spacing: 0.2px; }
.search-hero .hero-headings p { color: #94a3b8; }

@media (max-width: 575.98px) {
  .search-hero { min-height: 520px; }
  .search-hero .inner { align-items: center; padding-bottom: 0; }
}

/* BLURBS: Hide image container when no src or empty src */
.blurb-img:not([src]), 
.blurb-img[src=""] {
    display: none;
}
/* Make content full width when no image */
.blurb-row:has(.blurb-img:not([src])) .blurb-content,
.blurb-row:has(.blurb-img[src=""]) .blurb-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 2.2rem !important;
    padding-right: 2rem !important;
}
/* Hide image wrapper when no image */
.blurb-row:has(.blurb-img:not([src])) .blurb-image-col,
.blurb-row:has(.blurb-img[src=""]) .blurb-image-col {
    display: none;
}

/* Boxcoin Colors */
.bxc-box {
  color: #bbbbbb !important;
  background-color: #0c1524 !important;  
}
.bxc-text {
  color: #71c0c0 !important;
}
.bxc-btn.bxc-btn-border {
  border: 1px solid #78dada !important;
  color: #78dada !important;
}

.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 380px;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--bs-border-color);
}

.cookie-consent p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--bs-body-color);
}

.cookie-consent a {
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent .btn {
  margin-top: 10px;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .cookie-consent {
    max-width: calc(100% - 40px);
  }
}