@media (max-width: 767px) {
  .up-btn {
    right: 30px;
  }
}

@media (max-width: 767px) {
  .main-empty-box {
    min-height: 150px;
  }
}

@media (max-width: 767px) {
  .list-group.tap-follower .list-group-item {
    padding: 0 20px 10px;
  }
}

@media (max-width: 767px) {
  .option-box .box {
    display: flex !important;
    flex-direction: column;
  }
  .list-wrapers {
    height: auto;
  }
  .box-submit {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  /* Post form: keep ATTACHMENTS and SPLASH aligned on one row */
  .postForm-box .postForm .btn-post {
    align-items: center;
  }

  .postForm-box .postForm .status-btn {
    margin-top: 0;
    margin-bottom: 0;
  }

  .postForm-box .box-submit {
    margin-top: 0;
  }

  .postForm-box .box-submit .post-btn,
  .sec-box.btn-post .box-submit .post-btn {
    white-space: nowrap;
    min-width: 118px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 14px;
    padding-right: 14px;
  }
  .option-box {
    text-align: right;
  }
  .option-p {
    text-align: left;
  }
  .option-popup {
    min-width: calc(100% - 50px);
    margin: 30px 0;
  }
  .option-popup .popup-heading {
    padding: 15px 25px;
  }
  .option-popup .popup-body {
    padding: 20px 25px;
  }
  .option-p.more-option {
    display: none;
  }
}

@media (max-width: 370px) {
  .main-type-box {
    flex-direction: column;
    align-items: self-start;
  }
}

@media (max-width: 1199px) {
  .fourWrap h1 {
    font-size: 10rem;
  }
  .fourWrap p {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  .tabs-area {
    margin-top: 86px;
    margin-bottom: 200px;
  }
  .tabs-area .tab-content {
    position: relative;
  }
  .tabs-area .tab-content .tab-pane {
    width: 452px;
    background: #F7F7F7 0% 0% no-repeat padding-box;
    box-shadow: 2px 2px 14px #24415D4D;
    opacity: 1;
    overflow: hidden;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 12px;
    border-radius: 7px;
    bottom: 13px;
  }
  .tabs-area .tab-content #home {
    margin-left: 0px;
  }
  .tabs-area .tab-content #menu1 {
    margin-left: 50px;
  }
  .tabs-area .tab-content #menu2 {
    margin-left: 100px;
  }
  .tabs-area .tab-content #menu3 {
    margin-left: 150px;
  }
  .tabs-area .tab-content #menu4 {
    margin-left: 200px;
  }
  .tabs-area .tab-content #menu5 {
    margin-left: 450px;
  }
  .tabs-area .tab-content #menu6 {
    margin-left: 500px;
  }
  .tabs-area .tab-content #menu7 {
    margin-left: 650px;
  }
  .tabs-area .nav-tabs {
    border-bottom: none !important;
  }
  .tabs-area .nav-tabs .nav-item {
    margin-right: 23px;
  }
}

@media (max-width: 1199px) {
}

@media (max-width: 991px) {
  .fourWrap h1 {
    font-size: 20px;
  }
  .fourWrap h2 {
    font-size: 20px;
  }
  .fourWrap p {
    font-size: 1.7rem;
    line-height: 2.7rem;
  }
  .fourWrap .btn {
    font-size: 1.4rem;
  }
}

@media (max-width: 767px) {
}

@media (max-width: 767px) {
  .popup-content .forget-p {
    width: 100% !important;
  }
  .popup-content .forget-me-image {
    max-width: 210px;
  }
}

@media (max-width: 767px) {
  .popup-footer.forget .forget-btn {
    width: 180px !important;
  }
}

@media (max-width: 767px) {
  .follow-box .first-box{
    margin: auto;
    width: auto !important;
  }
}

@media (max-width: 320px) {
  .ping-pong .img-box {
    right: 18px;
  }
}

@media (max-width: 575px) {
  .primary-button {
    width: 80px;
    height: 29px;
    display: inline;
    font-size: 13px;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .profile-section-redesign .profile-stats-card .follow-p {
    color: rgba(36, 41, 46, 0.5);
  }
  .profile-section-redesign .profile-stats-card .follow-p span {
    color: #3B3F44;
  }
  .profile-section-redesign .profile-stats-card .profile-actions-box #ping,
  .profile-section-redesign .profile-stats-card .profile-actions-box #bell_notification,
  .profile-section-redesign .profile-stats-card .profile-actions-box #moderate-suspended {
    color: #24292E;
  }
  .profile-section-redesign .profile-stats-card .profile-actions-box #unbell_notification {
    color: #24292E;
  }
  .profile-section-redesign .profile-stats-card .profile-actions-box .profile-inline-action.disable {
    opacity: 0.6;
    pointer-events: none;
  }
  .notification-dropdown .box-item .txt-box .txt-hint {
    font-size: 11px;
  }
  .notification-dropdown .box-item .txt-box .txt-p {
    font-size: 11px;
  }
  .ping-pong .txt-box {
    width: 100% !important;
  }
  .ping-pong .img-box .pong-btn {
    width: 40px;
    height: 20px;
    line-height: 18px;
  }
  .ping-pong .img-box {
    right: 24px;
    bottom: 6px;
    font-size: 10px;
  }
}

@media (max-width: 575.98px) {
  .follow-p {
    margin-right: 10px;
  }
  .profile-block p {
    display: block;
  }
}

@media (max-width: 800px) {
  .text-truncate-150-media {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 150px;
    }
  .text-truncate-100-media {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100px;
  }
  .post-footer .box {
    margin-right: 10px;
  }
  .form-sec {
    padding: 0;
  }
  .text-truncate-100 {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    width: 100px;
  }
  .text-truncate-150 {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    width: 150px;
  }
  .fourWrap h2 {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .block-item p {
    font-size: 12px !important;
  }
  .block-item p.newsroom-title{
    font-size: 16px !important;
  }
}

@media (max-width: 992px) {
  .logo-box {
    margin-right: 25px;
  }
  .form-sec {
    min-height: calc(100vh - 128px);
  }
  .form-sec .img-box {
    display: none;
  }
  .auth-centered-page .row {
    align-items: center;
  }
  .auth-centered-page .col-lg-7.d-flex {
    justify-content: center;
  }
  .auth-centered-page .img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 22px;
    text-align: center;
  }
  .auth-centered-page .img-box img {
    display: block;
    width: min(78vw, 340px);
    max-height: 320px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
  .footer-box {
    display: block;
    text-align: center;
  }
  .footer-list {
    margin-right: unset;
  }
  .footer-list li {
    margin-bottom: 5px;
  }
}

@media (max-width: 767px) {
  .custom-checkbox {
    margin-bottom: 10px;
  }

  .header-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
  }

  .header-nav .logo-box {
    grid-column: 1;
    justify-self: start;
  }

  .header-nav .authenticated-user-box {
    grid-column: 3;
    justify-self: end;
  }

  .header-nav .custom-search {
    grid-column: 2;
    justify-self: center;
  }

  .authenticated-user-img {
    margin-left: 0;
  }
  .authenticated-user-img img {
    width: 39px;
    height: 39px;
  }
  .notification-dropdown {
    right: 6px;
    left: auto;
    min-width: unset;
    width: min(94vw, 350px);
    max-width: 94vw;
  }
  .noti-box.profile-noti .notification-dropdown {
    right: 6px;
    left: auto;
    max-width: 94vw;
  }
  .notification-dropdown .box-header {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .notification-dropdown .box-header .header-p,
  .notification-dropdown .box-header .mark-p {
    flex: 1 1 auto;
    min-width: 0;
  }
  .notification-dropdown .box-header .mark-p {
    text-align: right;
  }
  .notification-dropdown .box-header .mark-p a {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .notification-dropdown .box-item {
    gap: 10px;
    min-width: 0;
  }
  .notification-dropdown .box-item .txt-box {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-right: 0;
  }
  .notification-dropdown .box-item .txt-box > a {
    display: block;
    max-width: 100%;
    min-width: 0;
  }
  .notification-dropdown .parag,
  .notification-dropdown .box-item .txt-box .txt-hint,
  .notification-dropdown .box-item .txt-box .txt-hint span,
  .notification-dropdown .box-item .txt-box .txt-p,
  .notification-dropdown .box-item .txt-box .txt-p span {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .notification-dropdown .box-item .img-box {
    flex: 0 0 44px;
    min-width: 44px;
  }
  .notification-dropdown::after,
  .notification-dropdown::before {
    right: 24px;
  }
  .auth-centered-page .img-box {
    margin-bottom: 16px;
  }
  .auth-centered-page .img-box img {
    width: min(84vw, 300px);
    max-height: 260px;
  }
  .custom-search {
    flex-grow: 1;
    position: static;
    top: auto;
    left: auto;
    height: auto;
    width: auto;
    z-index: auto;
    align-items: normal;
    justify-content: normal;
    display: block;
    background-color: transparent;
  }
  .header-nav .custom-search {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-nav .custom-search form {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .header-nav .custom-search .search-box {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }
  .header-nav .custom-search .search-box input {
    width: 100%;
    max-width: 240px;
  }
  .custom-search .custom-ex {
    display: none;
  }
  .custom-search form {
    flex-grow: 1;
    margin: 0;
    min-width: 0;
  }
  .custom-search .search-box {
    width: 100%;
    min-width: 0;
  }
  .custom-search .search-box input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 34px;
    padding-right: 8px;
    font-size: 12px;
  }
  .custom-search .search-box input::placeholder {
    font-size: 11px;
    letter-spacing: 0.4px;
  }
  .custom-search .search-box button {
    left: 4px;
  }
  .custom-search input::placeholder {
    color: #FFFFFF;
  }
  .box-list ul li {
    margin-right: 15px;
  }
  .box-list ul li a {
    padding-left: unset;
  }
  .box-list ul li a::after {
    display: none;
  }
  .form-sec {
    min-height: calc(100vh - 157px);
  }
  .post-header {
    align-items: flex-start;
  }
  .post-header .first-box {
    max-width: calc(100% - 122px);
    padding-bottom: 10px;
  }
  .post-header .sec-box {
    min-width: 112px;
    max-width: 112px;
    flex: 0 0 112px;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .post-header .sec-box .post-inline-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .post-header .sec-box .post-inline-actions .post-inline-action {
    white-space: nowrap;
    font-size: 11px;
    line-height: normal;
  }
  .post-header .sec-box .post-inline-actions .primary-button.btn-mini {
    min-width: 0;
    padding: 0 6px;
    font-size: 10px;
  }
  .footer-list li {
    margin-right: 25px;
  }
  .footer-list li::after {
    right: -14px;
  }
}

@media (max-width: 420px) {
  .auth-centered-page .img-box img {
    width: min(88vw, 270px);
    max-height: 230px;
  }
}

@media (max-width: 380px) {
  .header-nav .logo-box {
    margin-right: 0;
  }
  .header-nav .authenticated-user-img {
    margin-left: 0;
  }
  .authenticated-user-img img {
    width: 40px;
    height: 40px;
  }
  .notification-dropdown {
    right: 4px;
    left: auto;
    width: min(95vw, 320px);
    max-width: 95vw;
  }
  .noti-box.profile-noti .notification-dropdown {
    right: 4px;
    left: auto;
    max-width: 95vw;
  }
  .notification-dropdown::after,
  .notification-dropdown::before {
    right: 22px;
  }
}

@media (max-width: 320px) {
  .box-list ul li {
    margin-right: 10px;
  }
}

@media (max-width: 992px) {
  .form-box .nav-tabs .nav-item {
    margin-right: 140px;
  }
}

@media (max-width: 767px) {
  .step-heading {
    font-size: 16px;
  }
  .form-box .nav-tabs {
    padding: 30px 30px 10px;
  }
  .form-box .nav-tabs .nav-item {
    margin-right: 55px;
  }
  .form-box .nav-tabs .nav-item .header-p {
    white-space: nowrap;
    display: none;
  }
  .form-box .sw-container.tab-content {
    padding: 20px 30px 30px;
  }
}

@media (max-width: 400px) {
  .form-box .nav-tabs .nav-item {
    margin-right: 30px;
  }
}

@media (max-width: 320px) {
  .post-body .post-p {
    line-height: 15px !important;
  }
}

@media (max-width: 375px) and (min-width:321px) {
  .post-body .post-p {
    line-height: 18px !important;
  }
  .post-body .post-p a {
    white-space: nowrap;
  }
  .link-container .p-title {
    font-size: 14px;
    line-height: 16px !important;
  }
}

@media (max-width: 767px) and (min-width:376px) {
  .post-body .post-p a {
    white-space: nowrap;
  }
  .link-container .p-title {
    font-size: 14px;
    line-height: 16px !important;
  }
  .post-body .post-p a img {
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .post-body .post-p a.custom-link {
    white-space: nowrap;
    overflow: hidden;
    width: 124px;
  }
  .link-container .p-title {
    line-height: 16px !important;
  }
  .fourWrap h2 {
    font-size: 25px;
  }
}

@media (max-width: 992px) {
  .main-sec {
    min-height: calc(100vh - 128px);
  }
}

@media (max-width: 767px) {
  .main-post-box {
    min-height: 150px;
  }
  .main-sec {
    min-height: calc(100vh - 157px);
  }
  .post-header .first-box {
    max-width: 59%;
  }
  .post-header .sec-box {
    max-width: 100%;
  }
  .post-body .post-img {
    min-height: 120px;
  }
  .user-img {
    margin-right: 10px;
  }
  .user-img img {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 767px) {
  .info-box .profile-img {
    min-width: 110px;
  }
  .info-box .profile-img img {
    width: 110px;
    height: 110px;
  }
  .profile-box .follow-box {
    padding-left: 0;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
    gap: 10px;
  }

  .profile-box .follow-box .first-box.profile-block,
  .profile-box .follow-box .first-box.d-flex {
    flex-wrap: wrap;
    white-space: normal;
    gap: 10px;
  }

  .profile-box .follow-box .profile-actions-box {
    width: 100%;
    margin-top: 0;
    gap: 8px;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    white-space: normal;
  }

  .profile-box .follow-box .profile-actions-box #ping,
  .profile-box .follow-box .profile-actions-box #bell_notification,
  .profile-box .follow-box .profile-actions-box #unbell_notification {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
  }

  .profile-box .follow-box .profile-actions-box #moderate-suspended {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
  }

  .profile-box .follow-box .follow-p,
  .profile-box .follow-box .profile-actions-box .profile-inline-action {
    margin-right: 0;
  }

  .profile-box .follow-box .profile-actions-box .profile-inline-action:last-child {
    margin-right: 0;
  }
  .profile-box .details-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .follow-p {
    font-size: 12px;
  }
  .follow-p span {
    font-size: 14px;
  }
  .profile-profile-img:not(.profile-header-card) {
    padding-left: 0px !important;
    margin-bottom: 10px;
  }

  .profile-section-redesign .profile-stats-card .profile-actions-box {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
  }

  .profile-section-redesign .profile-stats-card .profile-actions-box #ping,
  .profile-section-redesign .profile-stats-card .profile-actions-box #bell_notification,
  .profile-section-redesign .profile-stats-card .profile-actions-box #unbell_notification {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
  }

  .profile-section-redesign .profile-stats-card .profile-actions-box #moderate-suspended {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
  }

}

@media (max-width: 767px) {
  .btn-a {
    font-size: 11px;
    padding: 4px 10px;
    min-width: 75px;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
  .col-md-9 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 75%;
    flex: 0 0 39% !important;
    max-width: 100%;
  }
  .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: nowrap;
    margin-right: -15px;
    margin-left: -15px;
  }
}

.profile-section-redesign {
  margin-bottom: 16px;
}

.profile-section-redesign .profile-header-card {
  margin: 0 0 12px;
  padding: 16px 18px;
  align-items: center;
  flex-wrap: nowrap;
  background-color: #F7F7F7;
  border-radius: 12px;
  box-shadow: 1px 4px 8px 3px rgba(36, 41, 46, 0.08);
}

.profile-section-redesign .profile-main-content {
  min-width: 0;
  flex: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.profile-section-redesign .profile-header-card .profile-img {
  margin-right: 14px;
  min-width: 96px;
}

.profile-section-redesign .profile-header-card .profile-img img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}

.profile-section-redesign .profile-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-section-redesign .profile-identity-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-section-redesign .profile-name-row {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-section-redesign .profile-name-row .validation {
  margin-left: 0;
}

.profile-section-redesign .profile-hash-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.profile-section-redesign .profile-name-row h3 {
  margin: 0;
  line-height: 1.2;
}

.profile-section-redesign .profile-identity h3 {
  margin-bottom: 0;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-section-redesign .profile-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.profile-section-redesign .profile-meta-row .profile-stat {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-section-redesign .profile-meta-row .profile-stat::after {
  display: none;
}

.profile-section-redesign .profile-user-hash {
  font-size: 13px;
  font-weight: 400;
  color: #24292E;
  margin: 0;
  line-height: 1.2;
}

.profile-section-redesign .profile-meta-row .validation {
  margin-left: 0;
}

.profile-section-redesign .profile-stats-card {
  padding: 0;
  margin-top: 0;
}

.profile-section-redesign .profile-stats-card .follow-box {
  padding-left: 0;
  margin-bottom: 0;
}

.profile-section-redesign .profile-stats-card .first-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-section-redesign .profile-stats-card .profile-stat {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-section-redesign .profile-stats-card .profile-stat::after {
  display: none;
}

.profile-section-redesign .profile-stats-card .profile-actions-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

.profile-section-redesign .profile-stats-card .follow-p {
  color: rgba(36, 41, 46, 0.5);
  font-weight: 400;
}

.profile-section-redesign .profile-stats-card .follow-p span {
  color: #3B3F44;
  font-weight: 700;
}

.profile-section-redesign .profile-stats-card .follow-p::after,
.profile-section-redesign .profile-stats-card .follow-p:hover::after {
  display: none;
  width: 0;
}

.profile-section-redesign .profile-header-actions .first-box {
  margin: 0;
}

.profile-section-redesign .profile-stats-card .profile-actions-box .profile-inline-action:not(.primary-button) {
  color: #3B3F44;
  font-weight: 400;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-section-redesign .profile-stats-card .profile-actions-box #ping,
.profile-section-redesign .profile-stats-card .profile-actions-box #bell_notification,
.profile-section-redesign .profile-stats-card .profile-actions-box #moderate-suspended {
  color: #24292E;
}

.profile-section-redesign .profile-stats-card .profile-actions-box #unbell_notification {
  color: #24292E;
}

.profile-section-redesign .profile-stats-card .profile-actions-box .profile-inline-action.disable {
  opacity: 0.6;
  pointer-events: none;
}

.profile-section-redesign .profile-signup-toggle-form {
  margin: 0;
}

/* Profile: suspended state message spacing + centering */
.profile-suspended-wrap {
  margin-top: 14px;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .profile-section-redesign .profile-header-card {
    padding: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-section-redesign .profile-header-card .profile-img {
    min-width: 84px;
  }

  .profile-section-redesign .profile-header-card .profile-img img {
    width: 84px;
    height: 84px;
  }

  .profile-section-redesign .profile-main-content {
    width: 100%;
    gap: 8px;
  }

  .profile-section-redesign .profile-stats-card .first-box,
  .profile-section-redesign .profile-stats-card .profile-actions-box {
    gap: 8px;
  }
}