/* Light Mode Styles */
.social-post {
  margin-bottom: 1.5rem !important;
  padding: 0;
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
  0 2px 2px hsl(0deg 0% 0% / 0.075),
  0 4px 4px hsl(0deg 0% 0% / 0.075),
  0 8px 8px hsl(0deg 0% 0% / 0.075),
  0 16px 16px hsl(0deg 0% 0% / 0.075);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

.social-post .card-header {
  background-color: #f8f9fa;
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.social-post .author-picture img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-right: 5px;
}

.social-post .meta {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
}

.social-post .author-name {
  margin: 0;
}

.social-post .date {
  font-size: 0.875rem;
}

.social-post .card-footer {
  background-color: #f8f9fa;
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-align: right;
}

.social-post .interactions .btn {
  margin-right: 0.5rem;
}

.slick-slide img {
  width: 100%;
  border-radius: 5px;
}

.social-post .author-picture img {
  border-radius: 50%;
  width: 50px;
  margin: 0;
  height: 50px;
}

.author-picture {
  pointer-events: none;
}

.node__content {
  margin: 0;
}

.field-category .field__item {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.5rem 1rem;
  background-color: #e3f2fd;
  border-radius: 5px;
  font-size: 0.875rem;
  color: #0d47a1;
}

.field-category .field__item a {
  color: inherit;
  text-decoration: none;
}

.field-category .field__items {
  margin: 0;
}

.field-category .field__item a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

input[type="submit"][value="Reset"] {
  margin-top: 5px;
}

.interactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reactions {
  margin-right: auto;
}

.links-and-count {
  display: inline-block;
}

.links-and-count > * {
  display: inline-block;
}

.purchased-count {
  margin-left: 10px;
  color: #0071b3;
}

.purchased-count span {
  color: #0071b3;
}

.votingapi-reaction-form .form-no-label {
  display: none;
}

.votingapi-reaction-radios {
  margin-bottom: 0 !important;
}

.views-exposed-form {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#edit-actions {
  display: flex;
  justify-content: center;
}

.form-submit {
  margin-left: 2px;
  box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
  0 2px 2px hsl(0deg 0% 0% / 0.075),
  0 4px 4px hsl(0deg 0% 0% / 0.075),
  0 8px 8px hsl(0deg 0% 0% / 0.075),
  0 16px 16px hsl(0deg 0% 0% / 0.075);
}

#edit-title {
  border-left: 5px solid #1379a7;
  border-right: 5px solid #1379a7;
  box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
  0 2px 2px hsl(0deg 0% 0% / 0.075),
  0 4px 4px hsl(0deg 0% 0% / 0.075),
  0 8px 8px hsl(0deg 0% 0% / 0.075),
  0 16px 16px hsl(0deg 0% 0% / 0.075);
  border-top: none;
  border-bottom: none;
}

@media only screen and (max-width: 768px) {
  .links-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .purchased-count {
    padding: 8px 16px;
  }
}

.node-readmore {
  display: none;
}

.comment-add {
  display: none;
}

.custom-view-modal {
  position: absolute;
  transition: background 0.3s ease;
}

.custom-view-modal svg {
  margin: 5px;
}

.custom-view-modal::before {
  content: "\f1e0"; /* Unicode for the Font Awesome share icon */
  font-family: "Font Awesome 5 Free"; /* Replace with your Font Awesome font family */
  font-weight: 900; /* Adjust as needed based on your font weight */
  font-size: 18px; /* Adjust icon size */
}

.custom-view-modal:hover {
  background: #0f638c; /* Darken the background on hover */
}

.custom-popup {
  position: fixed;
  background: rgb(255, 254, 254);
  z-index: 11;
  padding: 25px;
  border-radius: 15px;
  top: 10%;
  left: 50%;
  max-width: 380px;
  width: calc(100% - 40px);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0px 10px 15px rgba(0,0,0,0.1);
  transform: translate(-50%, -50%) scale(1.2);
  transition: top 0s 0.2s ease-in-out,
  opacity 0.2s 0s ease-in-out,
  transform 0.2s 0s ease-in-out;
}

.custom-popup.show {
  top: 50%;
  left: 50%;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: top 0s 0s ease-in-out,
  opacity 0.2s 0s ease-in-out,
  transform 0.2s 0s ease-in-out;
}

.custom-popup :is(header,
.icons,
.custom-field) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-popup header {
  padding-bottom: 15px;
  border-bottom: 1px solid #ebedf9;
}

header .custom-close,
.icons a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

header .custom-close {
  color: #878787;
  font-size: 17px;
  background: #f3f3f3;
  height: 33px;
  width: 33px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease-in-out;
}

header .custom-close:hover {
  background: #ebedf9;
}

.custom-popup .content {
  margin: 20px 0;
}

.custom-popup .icons {
  margin: 15px 0 20px 0;
}

.content p {
  font-size: 16px;
}

.content .icons a {
  height: 50px;
  width: 50px;
  font-size: 20px;
  text-decoration: none;
  border: 1px solid transparent;
}

.icons a i {
  transition: transform 0.3s ease-in-out;
}

.icons a:nth-child(1) {
  color: #1877f2;
  border-color: #b7d4fb;
}

.icons a:nth-child(1):hover {
  background: #1877f2;
}

.icons a:nth-child(2) {
  color: #46c1f6;
  border-color: #b6e7fc;
}

.icons a:nth-child(2):hover {
  background: #46c1f6;
}

.icons a:nth-child(3) {
  color: #e1306c;
  border-color: #f5bccf;
}

.icons a:nth-child(3):hover {
  background: #e1306c;
}

.icons a:nth-child(4) {
  color: #25d366;
  border-color: #bef4d2;
}

.icons a:nth-child(4):hover {
  background: #25d366;
}

.icons a:nth-child(5) {
  color: #0088cc;
  border-color: #b3e6ff;
}

.icons a:nth-child(5):hover {
  background: #0088cc;
}

.icons a:hover {
  color: #fff;
  border-color: transparent;
}

.icons a:hover i {
  transform: scale(1.2);
}

.content .custom-field {
  margin: 12px 0 -5px 0;
  height: 45px;
  border-radius: 4px;
  padding: 0 5px;
  border: 1px solid #757171;
}

.custom-field.active {
  border-color: #1379a7;
}

.custom-field i {
  width: 50px;
  font-size: 18px;
  text-align: center;
}

.custom-field.active i {
  color: #1379a7;
}

.custom-field input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 15px;
}

.custom-field button {
  color: #fff;
  padding: 5px 18px;
  background: #1379a7;
}

.custom-field button:hover {
  background: #1379a7;
}

.top-header {
  position: relative;
}

.top-header .custom-view-modal {
  position: absolute;
  right: 10px; /* Adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  color: #e8e4ee;
  font-size: 18px;
  background: #1379a7;
  padding: 5px 10px;
  display: flex;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pagination {
  display: flex;
  justify-content: center;
}

#sidebar-left {
  position: sticky;
  top: 70px;
  height:fit-content;
  transition: top 0.3s ease-in-out;
  overflow-y: auto;
  padding: 15px; /* Compact padding */
  color: #1f2937; /* Dark text color */
  box-shadow: 0 1px 1px hsl(0deg 0% 0% / 0.075),
  0 2px 2px hsl(0deg 0% 0% / 0.075),
  0 4px 4px hsl(0deg 0% 0% / 0.075),
  0 8px 8px hsl(0deg 0% 0% / 0.075),
  0 16px 16px hsl(0deg 0% 0% / 0.075);
  background-color: #ffffff; /* Ensure the sidebar has a consistent background */
  transition: all 0.3s ease; /* Smooth transition for visual changes */
}

#sidebar-left h2 {
  font-size: 1.25rem; /* Slightly smaller font size */
  font-weight: 600;
  margin-bottom: 15px; /* Reduced margin */
  color: #1f2937; /* Dark text color */
  text-transform: uppercase;
  letter-spacing: 1px; /* Slightly reduced letter spacing */
}

#sidebar-left .view-categories {
  padding: 0.5rem 0; /* Reduced padding for the block content */
  margin-bottom: 1rem; /* Reduced spacing below the block */
}

#sidebar-left .view-categories .views-row {
  margin-bottom: 0.5rem; /* Reduced spacing between categories */
}

#sidebar-left .view-categories .views-field-name a {
  display: block;
  padding: 0.75rem 1rem; /* Comfortable padding inside each link */
  background-color: #f8f9fa; /* Light background for links */
  border-radius: 6px; /* Rounded corners for links */
  color: #1f2937; /* Dark text color */
  text-decoration: none; /* Remove underline from links */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}

#sidebar-left .view-categories .views-field-name a:hover {
  background-color: #1379a7; /* Blue background on hover */
  color: #ffffff; /* White text color on hover */
  transform: scale(1.03); /* Slightly larger on hover */
}

#sidebar-left .view-categories .views-field-name a.is-active {
  background-color: #1379a7; /* Active state background color */
  color: #ffffff; /* White text color for active link */
  transform: scale(1.02); /* Slightly increase size to indicate it's active */
}

#sidebar-left .view-categories .views-row:last-child {
  margin-bottom: 0;
}

.title {
  display: none !important;
}

#sidebar-left .section {
  margin-top: 15px; /* Reduced top margin for sections */
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  .view-categories .view-header {
    display: flex;
    justify-content: center;
  }

  .view-categories .views-row {
    display: flex;
    justify-content: center;
  }

  #sidebar-left {
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }

  #sidebar-left::-webkit-scrollbar {
      display: none; /* Chrome, Safari, and Opera */
  }

  #sidebar-left {
    position: static;
    height: auto;
    padding: 10px;
    margin-bottom: 20px; /* Add space below the sidebar for smaller screens */
    border-radius: 0; /* Remove border-radius for mobile */
    box-shadow: none; /* Remove shadow on mobile */
  }

  #sidebar-left h2 {
    font-size: 1.125rem; /* Smaller font size for mobile */
    margin-bottom: 10px;
  }

  #sidebar-left .view-categories .views-field-name a {
    padding: 0.5rem 0.75rem; /* Reduce padding for mobile */
  }
}

/* Adjustments for smaller devices */
@media only screen and (max-width: 576px) {
  #sidebar-left {
    padding: 5px;
  }

  #sidebar-left .view-categories .views-field-name a {
    font-size: 0.875rem; /* Smaller font size for links */
    padding: 0.5rem; /* Further reduce padding for smaller screens */
  }
}

.title {
  display: none !important;
}

#sidebar-left .section {
  margin-top: 20px;
}

.image-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-container img {
  object-fit: cover;
}

.image-container.blur-bg {
  filter: blur(10px);
  -webkit-filter: blur(10px);
  -moz-filter: blur(10px);
  -o-filter: blur(10px);
  -ms-filter: blur(10px);
}

.node .field--type-image {
  margin: 0 !important;
}

.node--view-mode-teaser h2 {
  margin-top: 0 !important;
}

.card-body {
  padding: 0 !important;
}

.card-title {
  padding: 10px 10px !important;
  margin-bottom: 0px;
}

.field--name-field-category {
  padding: 10px;
}

.field--type-image img, .field--name-field-user-picture img {
  margin: 0 !important;
}

.block-system-main-block .content .views-element-container .view-frontpage .row {
  display: flex;
  justify-content: center;
}

.layout-main-wrapper .container .row {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .col-md-9 {
      flex: 0 0 auto;
      width: 40%;
  }
}

.featured-question-title {
  color: #333;
  display: flex;
  align-items: center;
}

.featured-question-title::before {
  margin-right: 8px;
}

.featured-question .view-content .views-row {
  padding: 0.5rem;
}

.featured-question .view-content .views-row .views-field-title .field-content a{
  display: block;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  color: #1f2937;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.featured-question .view-content .views-row .views-field-title .field-content a:hover {
  background-color: #1379a7; /* Blue background on hover */
  color: #ffffff; /* White text color on hover */
  transform: scale(1.03); /* Slightly larger on hover */
}

/* Hide Featured Question on Smaller Screens */
@media only screen and (max-width: 768px) {
  .featured-question-right-bar {
    display: none;
  }
}

.comment-forbidden.nav-link:empty {
  display: none;
}

.slick-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
}

.slick-dots li button:before {
  font-size: 10px;
  color: white;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}

/* Dark Mode Styles */
body.darkmode--activated .social-post {
  background-color: #2c2c2c;
  color: #f1f1f1;
  box-shadow: 0 1px 1px hsl(0deg 0% 100% / 0.075),
  0 2px 2px hsl(0deg 0% 100% / 0.075),
  0 4px 4px hsl(0deg 0% 100% / 0.075),
  0 8px 8px hsl(0deg 0% 100% / 0.075),
  0 16px 16px hsl(0deg 0% 100% / 0.075);
}

body.darkmode--activated .social-post .card-header {
  background-color: #444;
}

body.darkmode--activated .social-post .card-footer {
  background-color: #444;
}

body.darkmode--activated .social-post .author-picture img {
  border-radius: 50%;
  width: 50px;
  margin: 0;
  height: 50px;
}

body.darkmode--activated .social-post .author-name,
body.darkmode--activated .social-post .date {
  color: #e0e0e0;
}

body.darkmode--activated .field-category .field__item {
  background-color: #555;
  color: #e0e0e0;
}

body.darkmode--activated .field-category .field__item a {
  color: inherit;
}

body.darkmode--activated .field-category .field__item a:hover {
  color: #b3d4ff;
}

body.darkmode--activated .form-submit {
  background-color: #555;
  color: #e0e0e0;
  box-shadow: 0 1px 1px hsl(0deg 0% 100% / 0.075),
  0 2px 2px hsl(0deg 0% 100% / 0.075),
  0 4px 4px hsl(0deg 0% 100% / 0.075),
  0 8px 8px hsl(0deg 0% 100% / 0.075),
  0 16px 16px hsl(0deg 0% 100% / 0.075);
}

body.darkmode--activated #edit-title {
  border-left-color: #444;
  border-right-color: #444;
  background-color: #333;
  color: #e0e0e0;
}

body.darkmode--activated .custom-view-modal {
  background: #444;
  color: #e0e0e0;
}

body.darkmode--activated .custom-view-modal:hover {
  background: #666;
}

body.darkmode--activated .custom-popup {
  background: #444;
  color: #e0e0e0;
}

body.darkmode--activated .custom-popup header .custom-close {
  background: #555;
  color: #ddd;
}

body.darkmode--activated .custom-popup header .custom-close:hover {
  background: #666;
}

body.darkmode--activated .custom-popup .icons a {
  background: transparent;
  border-color: #666;
}

body.darkmode--activated #header {
  background-color: #666;
}

body.darkmode--activated .custom-popup .icons a:hover {
  background: #666;
  color: #fff;
}

body.darkmode--activated .content .custom-field {
  border-color: #666;
  background-color: #555;
  color: #e0e0e0;
}

body.darkmode--activated .content .custom-field.active {
  border-color: #999;
}

body.darkmode--activated #sidebar-left {
  background-color: #333;
  color: #e0e0e0;
}

body.darkmode--activated #sidebar-left h2 {
  color: #e0e0e0;
}

body.darkmode--activated #sidebar-left .view-categories .views-field-name a {
  background-color: #555;
  color: #e0e0e0;
}

body.darkmode--activated #sidebar-left .view-categories .views-field-name a:hover {
  background-color: #777;
}

body.darkmode--activated #sidebar-left .view-categories .views-field-name a.is-active {
  background-color: #999;
  color: #fff;
}

body.darkmode--activated .image-container.blur-bg {
  background-color: #333;
}

body.darkmode--activated .featured-question-title {
  color: white;
}

body.darkmode--activated .featured-question .view-content .views-row .views-field-title .field-content a {
  background-color: #555;
  color: #e0e0e0;
}

@media only screen and (max-width: 768px) {
  body.darkmode--activated #sidebar-left {
    background-color: #333;
    color: #e0e0e0;
  }

  body.darkmode--activated #sidebar-left .view-categories .views-field-name a {
    background-color: #555;
    color: #e0e0e0;
  }

  body.darkmode--activated #sidebar-left .view-categories .views-field-name a:hover {
    background-color: #777;
  }

  body.darkmode--activated #sidebar-left .view-categories .views-field-name a.is-active {
    background-color: #999;
    color: #fff;
  }
}
