/* --RESET-- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* --VARIABLES-- */
:root {
  --primary-color: #3333cc;
  --secondary-color: #333333;
  --text-primary-color: #333333;
  --text-secondary-color: #797676;
}

.bn45 {
  width: 170px;
  height: 50px;
}

.bn46 {
  width: 150px;
  height: 50px;
}

.wrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.navbar--content {
  width: 100%;
}

.logo__img {
  height: 27px;
}

.logo__img2 {
  height: 26px;
}

.search-bar {
  width: 60%;
}

.search-bar__input {
  width: 100%;
}

.search-bar .search-icon {
  align-items: center;
  position: absolute;
  right: 414px;
  top: 25px;
}

.navbar-btn .navbar-btn__outline {
  padding: 15px 25px;
  font-weight: 600;
  color: var(--primary-color);
  border-radius: 25px;
  outline: auto;
  outline-color: var(--primary-color);
}

.navbar-btn__outline a {
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-btn__fill a {
  color: white;
  text-decoration: none;
}

.navbar-btn .navbar-btn__fill {
  padding: 15px 25px;
  font-weight: 600;
  border-radius: 25px;
  color: white;
  background: var(--primary-color);
}

.navbar-btn .navbar-btn__fill:hover,
.navbar-btn .navbar-btn__fill:active {
  color: white;
  background: var(--primary-color);
}

.navbar-btn .navbar-btn__outline:hover,
.navbar-btn .navbar-btn__outline:active {
  color: var(--primary-color);
  outline: auto;
  outline-color: var(--primary-color);
}

/* .hero {
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
} */

/* .hero__text-content{
  flex: 1;
} */

.hero__text-content h1 {
  font-weight: 700;
  font-size: 47px;
  width: max-content;
}

.hero__text-content span {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 700;
}

.hero__text-content p {
  /* margin: 5px 20px; */
  color: var(--text-secondary-color);
  font-weight: 600;
  margin-top: 28px;
  line-height: normal;
  font-size: 17px;
}

.hero__cta-buttons {
  margin: 20px 0px;
}

.hero__cta-buttons .btn {
  color: white;
  background-color: #ff0000;
  border-radius: 17px;
  padding: 13px 20px;
  font-size: 18px;
  font-weight: 600;
}

.hero__cta-buttons .btn.btn_fill {
  background-color: var(--primary-color);
  color: white;
}

.hero__cta-buttons .btn:hover {
  color: white;
  background-color: var(--primary-color);
}

.hero-image__img {
  width: 100%;
  margin-left: 10%;
}

.download-app {
  margin-top: 1rem;
}

.download--btn {
  /* margin-top: -4%; */
  margin-bottom: 1.5rem;
}

.footer {
  background: #000000b8;
}

.footer__nav {
  padding: 15px 10px;
}

.footer__nav-item {
  text-decoration: none;
  color: var(--text-secondary-color);
  margin-right: 1rem;
}

.footer .list-unstyled a {
  text-decoration: none;
  font-size: 18px;
}

.footer-logo {
  padding: 75px 0px 0px 10px;
}

.footer-logo img {
  width: 35%;
}

.download-app-section {
  padding-top: 100px;
}
.nav__links .bi {
  font-size: 25px;
  /* margin-bottom: -10px; */
}

.nav__links {
  padding-left: 1%;
  gap: 40px;
  list-style: none;
  margin-bottom: -10px;
}

.ai-input-card {
  margin-top: 4rem;
}
.ai-input-card span {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.ai-input-card__card {
  width: 65%;
}

.ai-input-card__input {
  height: 70px;
}

.ai-input-card__input .input {
  border-radius: 15px;
}

.ai-input::placeholder {
  color: #a0a0a0;
  font-style: italic;
  font-size: 15px;
  opacity: 1;
}
.comment-input::placeholder {
  color: #a0a0a0;
  font-style: italic;
  font-size: 15px;
  opacity: 1;
}

.upvote button,
.downvote button {
  border: none;
  background: none;
}

.ai-input-container {
  position: relative;
  width: 100%;
}

.ai-input {
  width: 100%;
  padding-right: 55px !important;
  border-radius: 0.8rem !important;
  box-shadow: none !important;
  height: 70px !important;
  border: none !important;
  max-height: 160px;
}

#view-more {
  color: var(--primary-color) !important;
}
.comment-input {
  width: 100%;
  padding-right: 115px !important;
  border-radius: 0.8rem !important;
  box-shadow: none !important;
  height: 85px !important;
  padding-left: 20px !important;
  padding-bottom: 10px !important;
  padding-top: 10px !important;
  max-height: 160px;
}

.ai-input-btn {
  position: absolute;
  background-color: black !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 10px 15px !important;
  border-radius: 50% !important;
  z-index: 1;
  font-size: 20px !important;
}
.comment-input-btn {
  position: absolute;
  background-color: var(--primary-color) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 10px 15px !important;
  z-index: 1;
  font-size: 15px !important;
}

.load-more-btn {
  background-color: var(--primary-color) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  /* transform: translateY(-50%); */
  padding: 10px 15px !important;
  z-index: 1;
  font-size: 15px !important;
}

.ai-input-card__card-body .btn:hover,
.ai-input-card__card-body .btn:active {
  background-color: black !important;
}

.ai-input-container {
  padding: 20px 0 !important;
}

.ai-input-container p {
  margin: 0;
  opacity: 0.5;
  font-size: 14px;
  text-align: center;
}

.ai-input-card__card-body {
  padding: 10px 10px 5px 15px !important;
}

/* Left Sidebar */
.sidebar {
  display: flex;
  justify-content: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 17px;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.sidebar ul li a:hover {
  color: var(--primary-color);
}

/* Main Feed Content */

.nav-underline {
  border-bottom: 1px solid #ccc;
  width: 100%;
  gap: 45px !important;
}

.nav-underline .nav-link {
  color: #000;
  padding-bottom: 5px !important;
}

.nav-underline .nav-link.active {
  color: var(--primary-color) !important;
}

.feed {
  margin: 0px 5px 30px 5px;
}

.feed__profile-img {
  width: 45px;
  height: 45px;
  overflow: hidden;
  border-radius: 50%;
}

.feed__profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-header {
  display: flex;
  gap: 10px;
  font-weight: bold;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.post-menu__btn.show,
.post-menu__btn:focus {
  outline: 0;
  border: none;
}

.feed-post {
  margin-bottom: 25px;
  border-radius: 10px;
  padding: 15px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.post-title a {
  color: var(--primary-color);
}

.post-title {
  font-size: 25px;
  margin-bottom: 20px;
  font-weight: bold;
}

.post-content {
  display: flex;
  gap: 10px;
  margin: 25px 0;
  align-items: center;
}

.post-content .limited-paragraph {
  -webkit-line-clamp: 3;
}

.post-content .ai-icon {
  background-color: #000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
}

.limited-paragraph {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-footer {
  display: flex;
  gap: 90px;
  color: #555;
  font-size: 14px;
  border-top: 1px solid #ccc;
  padding: 15px 15px 5px 15px;
}

.post-footer span:hover {
  color: #0056b3;
  cursor: pointer;
}

/* Right Sidebar */

.ad-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}

.ad-card img {
  max-width: 100%;
  border-radius: 8px;
}

.ad-content {
  margin: 5px 0;
}

.ad-label {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  display: block;
  border-top: 1px solid #ccc;
}

.thread {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  border-radius: 10px;
  padding: 10px;
}
.thread-title {
  font-size: 1.7rem !important;
}
.thread-content h1,
.thread-content h2,
.thread-content h3,
.thread-content h4,
.thread-content h5,
.thread-content h6 {
  font-size: 1.3rem;
}

.thread-header__details .date {
  opacity: 0.5;
}

.thread-header__details span {
  color: var(--primary-color) !important;
}

.thread-footer {
  display: flex;
  gap: 90px;
  color: #555;
  font-size: 14px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 15px;
}

.thread-footer span:hover {
  color: #0056b3;
  cursor: pointer;
}

.answers .btn,
.answers .btn:focus,
.answers .btn:hover {
  border: none;
  box-shadow: none !important;
}

#text {
  max-height: 150px; /* Limit initial height */
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease; /* Smooth expansion */
}

#text:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px; /* Height of the fade */
  background: linear-gradient(to bottom, transparent, white);
}

#text.expanded {
  max-height: 1000px; /* Set a large height for expanded text */
  transition: max-height 0.5s ease;
}

#text.expanded:after {
  display: none; /* Remove the fade when expanded */
}

.divider:after,
.divider:before {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}
.h-custom {
  height: calc(100% - 73px);
}
@media (max-width: 450px) {
  .h-custom {
    height: 100%;
  }
}

.form__title {
  font-size: 30px;
}

.form__btn {
  background-color: var(--primary-color) !important;
  border: none !important;
  color: white !important;
  font-weight: bold !important;
  padding: 10px 30px !important;
}
.more_from_user a {
  color: var(--primary-color) !important;
}

.explore_more a {
  color: var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.form-check-input:focus {
  box-shadow: none !important;
  border-color: #ccc !important;
}

.public span {
  font-weight: 700;
  margin-left: 2px;
}

.page-body {
  padding-top: 100px;
  min-height: 100vh;
}

.sidebar,
.sidebar-right {
  position: sticky;
  top: 16%;
}

.footer.loggedIn {
  margin-top: 30px;
  /* position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%; */
}

.sidebar ul li a i {
  color: black;
  font-size: 25px;
}

.nav__links li,
.nav__links-right li {
  cursor: pointer;
}

.post-header .d-flex .m-0.fw-bold.text-decoration-none {
  color: #000;
  font-size: 19px;
}

.thread-header__details .m-0.fw-bold.text-decoration-none {
  color: #000;
  font-size: 19px;
}
.mobile-ui-views {
  display: none;
}
.mobile-add-btn {
  display: none !important;
}

@media (max-width: 767px) {
  .ai-input-container {
    padding: 8px 0 !important;
  }
  .mobile-add-btn {
    display: block !important;
    border-radius: 50% !important;
    background-color: var(--primary-color) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 5px !important;
    height: 38px;
    width: 38px;
  }
  .mobile-add-btn.comment-btn {
    font-size: 18px !important;
  }
  .mobile-add-btn.answer-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 18px !important;
  }
  .load-more-btn {
    position: absolute !important;
    margin-bottom: 0 !important;
  }
  .comment-input-btn,
  .btn-comment {
    display: none !important;
  }
  .mobile-ui-views {
    display: block;
  }
  .desktop-view-ui {
    display: none;
  }
  .thread-content div {
    font-size: 16px !important;
    margin-top: 0px !important;
  }
  .thread-header__details .m-0.fw-bold.text-decoration-none {
    font-size: 16px;
  }
  .thread-title {
    font-size: 20px !important;
    margin-bottom: 10px !important;
  }
  .thread-footer {
    gap: 50px;
    padding: 14px 0px;
  }
  .thread-footer .save,
  .thread-footer .comments .d-flex .comment-text,
  .thread-footer .share .d-flex {
    text-indent: -9999px;
  }
  .sidebar,
  .sidebar-right {
    display: none;
  }
  .ai-input-card__card,
  .ai-input-card .mt-2 {
    width: 100% !important;
  }
  .ai-input-card .mt-2 {
    font-size: 13px;
  }
  .ai-input-card .mt-2 .form-check.form-switch {
    gap: 36px !important;
    padding-left: 15px !important;
  }
  .footer .wrapper {
    overflow: hidden;
  }
  .post-header {
    font-size: 18px !important;
  }
  .post-title {
    font-size: 22px;
  }
  .post-footer {
    gap: 50px;
    font-size: 12px;
    padding: 15px 0px 5px 0px;
  }
  .post-footer .save,
  .post-footer .share .d-flex {
    text-indent: -9999px;
  }
  .wrapper.text-start.p-3 {
    text-align: center !important;
    font-size: 14px;
  }
  .download-app-section {
    margin-bottom: 5px !important;
    padding-top: 0px;
  }
  .download-app-section h5 {
    font-size: 16px;
  }
  .footer a {
    font-size: 15px;
  }
  .footer-logo {
    display: none;
  }
  footer {
    padding-bottom: 65px;
  }
  .navbar-btn.d-flex.gap-3 {
    display: none !important;
  }

  .hero.wrapper .row {
    flex-direction: column-reverse;
  }
  .hero__text-content {
    padding: 0 35px;
  }
  .hero__text-content h1 {
    font-size: 28px;
  }
  .hero__text-content p {
    font-size: 15px;
  }
  .hero-image__img {
    margin-left: 0;
  }
  .hero__cta-buttons .btn {
    padding: 10px 15px;
    font-size: 15px;
  }
  .hero__cta-buttons {
    justify-content: center;
  }
  .wrapper-main {
    overflow-x: hidden;
  }
  .wrapper-main .header .navbar-toggler {
    display: none;
  }
  .wrapper-main .navbar {
    padding-top: 20px;
  }
  .ai-img img {
    height: 32px !important;
  }
}

.ai-img img {
  height: 35px !important;
}
