/* forum-post.css */

.uisnotlgedin .region-content,
.page_community_topic.uisnotlgedin .region-content {
    margin-left: 0px;
  }

.path-community .forum-wrapper {
  padding: 0px 5px;
}

.path-community .forum-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid #e6edf5;
}

.path-community .forum-card a,
.path-community .forum-card a:hover {
  float:right;
  margin-top:5px;
}

.path-community .form-item-record-search {
  margin-bottom:0px;
}

.path-community .forum-header {
  margin-bottom: 30px;
}

.path-community .forum-header h1 {
  margin-top: 0;
  font-size: 34px;
  font-weight: 700;
  color: #1e293b;
}

.path-community .forum-header p {
  color: #64748b;
  font-size: 15px;
  margin-top: 10px;
}

.path-community .form-group label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #334155;
}

.path-community .forum-form .form-control {
  border-radius: 10px;
  border: 1px solid #dbe3ec;
  box-shadow: none;
  padding: 12px 14px;
  height: auto;
  font-size: 15px;
  transition: all 0.2s ease;
}

.path-community .form-control:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66,133,244,0.12);
}

.path-community textarea.form-control {
  resize: vertical;
  min-height: 220px;
}

/* comment field */
.path-community .form-item-comment textarea.form-control {
  resize: vertical;
  min-height: 50px;
  border-radius: 10px;
}

/* comment reply field */
.path-community .form-item-reply-body textarea.form-control {
  resize: vertical;
  min-height: 50px;
  border-radius: 10px;
}




.path-community .character-count {
  margin-top: 8px;
  font-size: 13px;
  color: #94a3b8;
  text-align: right;
}

.path-community .upload-area {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 35px 20px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
  overflow: hidden;
}

.path-community .upload-area:hover {
  border-color: #4285f4;
  background: #f1f7ff;
}

.path-community .upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.path-community .upload-area p {
  margin: 0;
  font-weight: 600;
  color: #334155;
  font-size: 15px;
}

.path-community .upload-area span {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
}


.path-community .custom-checkbox {
  margin-top: 5px;
}

.path-community .custom-checkbox label {
  font-weight: 500;
  color: #475569;
}

.path-community .forum-actions {
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.path-community .btn {
  border-radius: 10px;
  padding: 8px 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.path-community .btn-default {
  border-color: #d1d9e6;
  background: #1d4ed8;
  color:#fff;
}

.path-community .topic-stats .btn-default {
  /*border-color: #d1d9e6;*/
  background: #efeded;
  color: #585d67;
  border:0px;
  padding:8px;
  margin-top: -2px;
  box-shadow: none !important;
  outline: none !important;
  border-radius:10px;
}

.path-community .topic-stats .topic-like_alt {
    /* border-color: #d1d9e6; */
    background: #efeded;
    color: #585d67;
    border: 0px;
    padding: 8px;
    margin-top: -2px;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 10px;
}

.path-community .topic-stats span {
  vertical-align:middle;
  /*margin-left: 5px;*/
  color:#585d67;;
}

.path-community .topic-stats .topic-like_alt span {
  font-size:18px;
  color:red;

}

.path-community .topic-stats span.glyphicon-heart {
  vertical-align:middle;
  /*font-size:22px;
  margin-left:5px;*/
}

.path-community .topic-stats .btn-default:hover,
.path-community .topic-stats .btn-default:active,
.path-community .topic-stats .btn-default:focus {
  /*border-color: #d1d9e6;*/
  background: #efeded;
  color: var(--muted);
  border:0px;
  padding-top:8px;
}

.path-community .btn-default:hover, 
.path-community .btn-default:active {
  border-color: #d1d9e6;
  background: #1d4ed8;
  color:#fff;
}

.path-community .btn-success {
  border-color: #d1d9e6;
  background: #1d4ed8;
  color:#fff;
}

.path-community .btn-success:hover, 
.path-community .btn-success:active {
  border-color: #d1d9e6;
  background: #1d4ed8;
  color:#fff;
}



.path-community .btn-primary {
  background: linear-gradient(135deg, #4285f4, #2563eb);
  border: none;
}

.path-community .btn-primary:hover {
  background: linear-gradient(135deg, #357ae8, #1d4ed8);
}

.path-community #edit-description-format {
  display:none;
}

.path-community .topic-stats .topic_replies { 
    background: #efeded;
    color: #585d67;
    border: 0px;
    margin-top: -2px;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 10px;
    /*padding: 8px;*/
    padding-top: 8px;
    padding-right: 8px;
    padding-bottom: 0px !important;
    padding-left: 8px;
    margin-bottom: 15px;
}

.page_community_topic.uisnotlgedin.path-community  .topic-stats .topic_replies {
  background: #efeded;
  color: #585d67;
  border: 0px;
  margin-top: -2px;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 10px;
  padding: 8px;
  padding-top: 8px;
  padding-right: 8px;
  padding-bottom: 0px !important;
  padding-left: 8px;
  margin-bottom: 0px;
}

.path-community .topic-stats .topic_views { 
    background: #efeded;
    color: #585d67;
    border: 0px;
    margin-top: -2px;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 10px;
    /*padding: 8px;*/
    padding-top: 8px;
    padding-right: 8px;
    padding-bottom: 0px !important;
    padding-left: 8px;
    margin-bottom: 15px;
}

.page_community_topic.uisnotlgedin.path-community .topic-stats .topic_views {
  background: #efeded;
  color: #585d67;
  border: 0px;
  margin-top: -2px;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 10px;
  padding: 8px;
  padding-top: 8px;
  padding-right: 8px;
  padding-bottom: 0px !important;
  padding-left: 8px;
  margin-bottom: 0px;
}

.reply-box .form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555555;
  background-color: #fff;
  background-image: none;
  border: 0px solid #ccc;
  border-radius: 0px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  box-shadow: none;
}

.reply-box .form-control:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 767px) {

  .path-community .forum-card {
    padding: 25px 20px;
  }

  .path-community .forum-header h1 {
    font-size: 28px;
  }

  .path-community .forum-actions {
    flex-direction: column;
  }

  .path-community .forum-actions .btn {
    width: 100%;
  }

  .path-community .mobile-left {
    text-align: left !important;
    margin-top: 10px;
  }

}


/*** Radio button for creating category ***/

.jobilties-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hide default radio input */
.jobilties-radio-group .form-item input {
  display: none;
}

/* Turn labels into selectable cards */
.jobilties-radio-group .form-item label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 14px;
  border: 2px solid #dbe4f0;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

/* Hover effect */
.jobilties-radio-group .form-item label:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
}

/* Selected state */
.jobilties-radio-group .form-item:has(input:checked) label {
  /*opacity: 0.6;*/
}

.jobilties-radio-group .form-item .option:has(input:checked) {
  border-color: #2563eb;
  /*box-shadow: 0 14px 28px rgba(37,99,235,0.18);*/
  background:#bfcae2;;
}

.access-jobilties-radio-group {
  margin-top:30px;
}

.access-jobilties-radio-group .form-item {
  display: flex;
  flex-direction: column;
  gap: 10px; 
}

.access-jobilties-radio-group .radio input[type="radio"], 
.access-jobilties-radio-group .radio-inline input[type="radio"], 
.access-jobilties-radio-group .checkbox input[type="checkbox"], 
.access-jobilties-radio-group .checkbox-inline input[type="checkbox"] {
  position: static;
  margin-top: 4px \9;
  margin-left: -20px;
}

/*** this is for post-topic page ***/

#jb-dropdown {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #d9dfe7;
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  z-index: 999;
}

.jb-result-item {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #edf1f5;
  transition: all 0.2s ease;
}

.jb-result-item:hover {
  background: #f4f7fb;
}

.jb-result-name {
  font-weight: 600;
  color: #1f2937;
}

.jb-result-sub {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.jb-selected {
  background: linear-gradient(
    135deg,
    #2563eb,
    #4f46e5
  );
  color: #ffffff;
}

.jb-selected .jb-result-sub {
  color: rgba(255,255,255,0.85);
}

.jb-no-results {
  padding: 14px;
  color: #6b7280;
}

/*********************************************/
/** This is for main community browse page **/
/*******************************************/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.topicauthimg {
  width: 50px;
  height: 50px;
}

.avatar .material-symbols-outlined {
  font-size:50px;
}

.path-community .forum-wrapper-main {
  max-width: 1100px;
  margin: auto;
}

.path-community .forum-card-main {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 25px;
  transition: 0.3s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.03);
}

.path-community .forum-card-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.path-community .forum-left .avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.path-community .forum-content {
  flex: 1;
}

.path-community .forum-top {
  margin-bottom: 10px;
}

.path-community .category {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
}

.path-community .introductions {
  background: #e7f7ef;
  color: #2f9e69;
}

.view-community .material-symbols-outlined {
  vertical-align: bottom;
  font-size: 20px;
}


.page_community_topic .page-actions-rpt {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0;
}

/* Link styled as a button */
.page_community_topic .btn-link {
    /*display: inline-block;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;*/
    font-weight: 600;
    /*border-radius: 8px;
    transition: all 0.25s ease;*/
    margin-right: 10px;
    cursor: pointer;
    text-decoration: none;
}

.page_community_topic .btn-link:hover {
    /*background: #1d4ed8;
    transform: translateY(-2px);*/
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .page_community_topic .page-actions-rpt {
        justify-content: center;
    }

    .page_community_topic .btn-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/****** For My Topics Page *******/
.view-duplicate-of-community .form-group .form-item-status label {
    font-weight: 600;
    margin-bottom: 0px;
    color: #334155;
    margin-left: 10px;
}

.view-duplicate-of-community .view-empty {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* background: linear-gradient(135deg, #f5f7fb, #eef3f8); */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
}


/* ========================================
   Active (Green)
======================================== */

.path-community .mainstatus .active {
    background: #DCFCE7;
    color: #166534;
    border-color: #86EFAC;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ========================================
   Inactive (Gray)
======================================== */

.path-community .mainstatus .inactive {
    background: #F3F4F6;
    color: #6B7280;
    border-color: #D1D5DB;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ========================================
   Draft (Amber)
======================================== */

.path-community .mainstatus .draft {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ========================================
   Under Review (Blue)
======================================== */

.path-community .mainstatus .review {
    background: #DBEAFE;
    color: #1D4ED8;
    border-color: #93C5FD;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ========================================
   Closed (Red)
======================================== */

.path-community .mainstatus .closed {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #FCA5A5;
    padding: 6px 12px;
    border-radius: 20px;
}


.path-community .announcements {
  background: #fff0f4;
  color: #d14b72;
}

.path-community .forum-content h2 {
  font-size: 30px;
  margin-bottom: 5px;
  color: #1a202c;
  font-weight: 700;
  margin-top: 8px;
}

.path-community .meta {
  font-size: 14px;
  color: #718096;
  /*margin-bottom: 12px;*/
}

.path-community .excerpt {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  max-width: 700px;
}

.path-community .datey {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  max-width: 700px;
}

.path-community .forum-right {
  min-width: 160px;
  text-align: right;
}

.path-community .members {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.path-community .members img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.path-community .comments {
  font-size: 15px;
  color: #4a5568;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 768px) {
  .path-community .forum-card-main {
    flex-direction: column;
  }

  .path-community .forum-right {
    width: 100%;
    text-align: left;
  }

  .path-community .members {
    justify-content: flex-start;
  }

  .path-community .forum-content h2 {
    font-size: 24px;
  }
}

/*** This is for the specific topic page ***/

/* breadcrumbs for the topic page */
.path-community a.prevbc,
.path-community a.prevbc:hover,
.path-community a.prevbc:active {
  color:#777;
}

.path-community .commtopicbc {
  margin-left: 10rem;
}


/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   VARIABLES
========================= */

:root {
  --primary: #695cff;
  --primary-dark: #5649e6;
  --bg: #f5f7fc;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #7f8797;
  --border: #e7ebf2;
}

/* =========================
   GLOBAL
========================= */


.community-topic-section .container {
  width: 98%;
  max-width: 1400px;
  margin: auto;
}

.path-community #deletetopic .modal-content {
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    text-align: center;
}


/* =========================
   LAYOUT
========================= */

.community-topic-section .page-layout {
  display: grid;
  grid-template-columns: auto; /* additional "auto" will create a new section"
  /*grid-template-columns: auto auto auto auto;*/
  gap: 10px;
  /*padding: 40px 0;*/
}

/* =========================
   TOPIC CARD
========================= */

.community-topic-section .topic-card {
  background: var(--card);
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.community-topic-section .topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*margin-bottom: 25px;*/
}

.community-topic-section .author-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-topic-section .author-block img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.community-topic-section .author-block h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.community-topic-section .author-block span {
  color: var(--muted);
  font-size: 14px;
}

.community-topic-section .topic-tag {
  background: #ecebff;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.community-topic-section .topic-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.community-topic-section .topic-content p {
  margin-bottom: 22px;
  font-size: 18px;
}

.community-topic-section .topic-content ul {
  margin-left: 25px;
  margin-bottom: 25px;
}

.community-topic-section .topic-content li {
  margin-bottom: 12px;
  font-size: 17px;
}

.community-topic-section .topic-stats {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 1px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.community-topic-section .topic-like form {
  margin: 0;
}

.community-topic-section .topic-like-button {
  background: #efeded;
  color: #585d67;
  border: 0;
  padding: 8px;
  margin-top: -2px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.community-topic-section .topic-like-button.is-liked {
  color: #d93025;
}

.topic-delete-confirm {
  background: #000;
  border: 0px;
  border-radius: 50px;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 600;
  font-size: 16px;
}

/* =========================
   COMMENTS
========================= */

.community-topic-section .comment-card {
  background: white;
  border-radius: 24px;
  padding: 15px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.community-topic-section .comment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.community-topic-section .comment-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1px;
}

.community-topic-section .comment-user {
  display: flex;
  gap: 15px;
  align-items: center;
}

.community-topic-section .comment-user img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.community-topic-section .comment-user span {
  color: var(--muted);
  font-size: 14px;
}

.community-topic-section .comment-user h4 {
  font-size:14px;
}

.community-topic-section .comment-time {
  color: var(--muted);
  font-size: 14px;
}

.community-topic-section .comment-body p {
  margin-bottom: 0px;
  font-size: 16px;
}

.community-topic-section .comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 22px;
}

.community-topic-section .comment-actions button {
  background: #1d4ed8;
  border: none;
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
}

.community-topic-section .comment-actions button:hover {
  background: #1d4ed8;
}

.community-topic-section .topic-edit,
.community-topic-section .topic-delete {
  background: #efeded;
  color: #585d67;
  border: 0px;
  padding: 8px;
  margin-top: -2px;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 10px;
  cursor:pointer;
  margin-bottom: 15px;
}

.community-topic-section .topic-delete {
  color: #b42318;
}

.topic-cat-tag-lbl {
  font-weight:600;
}

#updatetopic .topic-cat-tag,
#deletetopic .topic-cat-tag {
  background: #ecebff;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
  margin-top:5px;
}

.community-topic-section .topic-edit .material-symbols-outlined,
.community-topic-section .topic-delete .material-symbols-outlined {
  font-size: 16px;
  margin-bottom: 4px;
}

.topic-delete-message {
  color: #585d67;
  margin: 16px 0;
}

.topic-delete-actions {
  /*display: flex;*/
  justify-content: flex-end;
  margin-top: 18px;
}

/* =========================
   REPLY BOX
========================= */

.community-topic-section .reply-box {
  background-color: whitesmoke;
  border-radius: 24px;
  padding: 10px;
  border: 1px solid #d7d7d7;
}

.community-topic-section .reply-box h3 {
  margin-bottom: 10px;
}

.community-topic-section .reply-box textarea {
  width: 100%;
  min-height: 0px;
  resize: vertical;
  border: 0px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  font-size: 16px;
  outline: none;
  margin-bottom: 20px;
  height: 75px;
}

.community-topic-section .reply-box textarea:focus {
  border-color: var(--primary);
}

.community-topic-section .reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.community-topic-section .cancel-btn,
.community-topic-section .submit-btn {
  border: none;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.community-topic-section .cancel-btn {
  background: #eef1f7;
}

.community-topic-section .submit-btn {
  background: var(--primary);
  color: white;
}

.community-topic-section .submit-btn:hover {
  background: var(--primary-dark);
}

/* =========================
   SIDEBAR
========================= */

.community-topic-section .sidebar-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.community-topic-section .sidebar-card h3 {
  margin-bottom: 18px;
}

.community-topic-section .member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community-topic-section .member-list img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.community-topic-section .related-topics {
  list-style: none;
}

.community-topic-section .related-topics li {
  margin-bottom: 15px;
}

.community-topic-section .related-topics a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: 0.3s;
}

.community-topic-section .related-topics a:hover {
  color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .community-topic-section .page-layout {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 992px) {

    .page_community_topic.uisnotlgedin div#data-wrapper {
      margin-left: 10rem;
      margin-right: 10rem;
    }

}

@media (max-width: 768px) {

  .community-topic-section .header-container {
    flex-direction: column;
    gap: 20px;
  }

  .community-topic-section .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .community-topic-section .topic-card,
  .community-topic-section .comment-card,
  .community-topic-section .reply-box,
  .community-topic-section .sidebar-card {
    padding: 24px;
  }

  .community-topic-section .topic-title {
    font-size: 34px;
  }

  .community-topic-section .topic-header,
  .community-topic-section .comment-top {
    /*flex-direction: column;*/
    gap: 15px;
  }

  .community-topic-section .reply-actions {
    flex-direction: column;
  }

  .community-topic-section .cancel-btn,
  .community-topic-section .submit-btn {
    width: 100%;
  }

}

/* =========================
   reply comment button
========================= */

#block-jbframework-community-comments-block {
    position: fixed;
    bottom: 0;
}

/*.page_community_topic .modal-backdrop {
  background-color: transparent !important;
}

.page_community_topic .modal.in {
  padding-right: 0px !important;
}*/

.community-topic-section .modal-dialog {
  width: min(700px, calc(100vw - 32px));
  max-width: 700px;
  margin: 6vh auto;
}

.community-topic-section .modal-content {
  max-height: calc(100vh - 12vh);
  overflow-y: auto;
}

@media (max-width: 767px) {
  .community-topic-section .modal-dialog {
    width: calc(100vw - 24px);
    margin: 16px auto;
  }

  .community-topic-section .modal-content {
    max-height: calc(100vh - 32px);
  }
}

#updatetopic .forum-header {
  margin-bottom: 0px;
}

.reply-form {

    margin-top: 20px;

}

.reply-form[hidden] {
    display: none;
}

.reply-form textarea {

    width: 100%;
    min-height: 90px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;

}

.reply-form button {

    margin-top: 8px;
    padding: 5px 10px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;

}

.opencomreply {

    margin-top: 8px;
    margin-bottom: 8px;
    background: transparent;
    border: 0px solid transparent;
    color: #000;
    cursor: pointer;

}

.opencomreply .material-symbols-outlined {
  font-size:18px;
  vertical-align: middle;
}

/* comment replies */
.child-reply {

    margin-left: clamp(1rem, 5vw, 3rem);

    padding: 1rem;

    border-left: 3px solid #0d6efd;

    background: #fafafa;

    border-radius: 8px;

    box-sizing: border-box;

    width: calc(100% - clamp(1rem, 5vw, 3rem));

    overflow-wrap: break-word;

}

/* Tablet */

@media (max-width: 768px) {

    .child-reply {

        margin-left: 1rem;

        width: calc(100% - 1rem);

    }

}

/* Mobile */

@media (max-width: 480px) {

    .child-reply {

        margin-left: 0.5rem;

        padding: 0.75rem;

        width: calc(100% - 0.5rem);

    }

}

/****** TESTING ERROR MESSAGE ***/
/* ---- Reset Drupal's built-in error message styles ---- */
.messages--error,
.messages.messages--error {
  all: unset;
  display: block;
}

/* ---- Banner alert ---- */
.jobilties-alert {
  /*display: flex;*/
  align-items: flex-start;
  gap: 14px;
  border-left: 3px solid #D85A30;
  border: 0.5px solid rgba(240, 149, 133, 0.4);
  border-left-width: 3px;
  /*border-radius: 0 8px 8px 0;*/
  background: #ffffff;
  padding: 16px 20px;
  margin-bottom: 0; /* paired with __actions below */
  font-family: inherit;
}

.jobilties-alert--error {
  border-left-color: #D85A30;
  border-color: rgba(240, 149, 133, 0.4);
  border-left-width: 3px;
}

.jobilties-alert__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #D85A30;
}

.jobilties-alert__body {
  flex: 1;
  min-width: 0;
}

.jobilties-alert__title {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.4;
}

.jobilties-alert__description {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.55;
}

/*.jobilties-alert__actions {
  border-top: 0.5px solid rgba(240, 149, 133, 0.3);
  border-right: 0.5px solid rgba(240, 149, 133, 0.4);
  border-bottom: 0.5px solid rgba(240, 149, 133, 0.4);
  border-left: 3px solid #D85A30;
  border-radius: 0 0 8px 0;
  background: #ffffff;
  margin-top: -1px; 
}*/

.jobilties-alert__back-link {
  font-size: 13px;
  font-weight: 500;
  color: #D85A30;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.jobilties-alert__back-link:hover {
  color: #993C1D;
  text-decoration: underline;
}

.jobilties-alert__back-link svg {
  flex-shrink: 0;
  color: currentColor;
}

/* ---- Inline field error ---- */
.form-item--error input,
.form-item--error select,
.form-item--error textarea {
  border-color: #D85A30 !important;
  background-color: #FAECE7;
  outline: none;
}

.jobilties-field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  color: #993C1D;
  line-height: 1.5;
  font-family: inherit;
}

/* Override Drupal's .form-item--error-message */
.form-item--error-message {
  all: unset;
  display: block;
}

.jobilties-field-error__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: currentColor;
}

.jobilties-field-error__link {
  color: #993C1D;
  font-weight: 500;
  text-decoration: underline;
}

.jobilties-field-error__link:hover {
  color: #D85A30;
}

/* ---- Dark mode ---- */
@media (prefers-color-scheme: dark) {
  .jobilties-alert,
  .jobilties-alert__actions {
    background: #1e1e1e;
  }

  .jobilties-alert__title {
    color: #f0f0f0;
  }

  .jobilties-alert__description {
    color: #aaa;
  }

  .form-item--error input,
  .form-item--error select,
  .form-item--error textarea {
    background-color: #2a1a14;
    border-color: #D85A30 !important;
    color: #f0f0f0;
  }
}

/*** testing success message **/
/* ==========================================
   Drupal 10 Modern Success Message
   ========================================== */

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    animation: fadeIn .25s ease;
}

.success-card {
    width: 460px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 18px;
    padding: 38px;
    text-align: center;

    box-shadow:
        0 20px 60px rgba(15,23,42,.15),
        0 5px 15px rgba(15,23,42,.08);

    animation: slideUp .35s ease;
}

/* Icon */

.success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;

    border-radius: 50%;
    background: linear-gradient(135deg,#dcfce7,#bbf7d0);

    display: flex;
    justify-content: center;
    align-items: center;

    color: #16a34a;
    font-size: 42px;
    font-weight: bold;

    box-shadow:
        0 10px 25px rgba(22,163,74,.18);
}

/* Heading */

.success-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

/* Description */

.success-text {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 30px;
}

/* Divider */

.success-divider {
    height: 1px;
    background: #edf2f7;
    margin: 28px 0;
}

/* Footer */

.success-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    color: #475569;
    font-size: 15px;
}

/* Buttons */

.success-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.success-btn {
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s;
    cursor: pointer;
}

.success-btn-primary {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    color: #fff;
    box-shadow: 0 10px 25px rgba(22,163,74,.30);
}

.success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(22,163,74,.35);
}

.success-btn-primary-one {
    /*background: linear-gradient(135deg,#22c55e,#16a34a);*/
    border: 1px solid linear-gradient(135deg,#22c55e,#16a34a);
    background:transparent
    color: #fff;
    box-shadow: 0 10px 25px rgba(22,163,74,.30);
}

.success-btn-primary-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(22,163,74,.35);
}

.success-btn-secondary {
    background: #f4f6f9;
    color: #374151;
}

.success-btn-secondary:hover {
    background: #e8edf2;
}

/* Optional animated pulse */

.success-icon::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(34,197,94,.25);
    animation: pulse 2s infinite;
}

/* Animations */

@keyframes slideUp {

    from {
        opacity: 0;
        transform: translateY(25px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes pulse {

    0% {
        transform: scale(1);
        opacity: .8;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }

}

@media (max-width:600px){

    .success-card{
        padding:28px;
    }

    .success-title{
        font-size:24px;
    }

    .success-actions{
        flex-direction:column;
    }

}