/* --- COMMENT FORM WRAPPER --- */
.comment-wall-comment-form,
.comment-form,
.ajax-comments-form-add {position: relative;}

.comment-wall-comment-form .field--name-comment-body label{
  display: none;
}


.comment-wall-comment-form .js-filter-wrapper{
  display: none !important;
}

.comment-wall-comment-form .form-actions input[value="Preview"] {
  display: none;
}

.comment-wall-comment-form .form-actions {
  position: absolute;
  right: 10px;
  bottom: 18px;
  z-index: 99;
}

/* --- LABELS --- */
.comment-wall-comment-form label {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  margin-bottom: 8px;
  display: inline-block;
}

/* --- TEXTAREA --- */
.comment-wall-comment-form textarea {
  width: 100% !important;
    overflow: hidden !important; /* hides scrollbar */

  border: none;
  border-radius: 10px;
  padding: 12px;
  /* font-size: 15px; */
  resize: vertical;
  /* min-height: 120px; */
  transition: border .25s ease, box-shadow .25s ease;
  resize: none;
  height: auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  /* margin-top: 20px; */
  transition: all .3s ease;
}

.comment-wall-comment-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.35);
  outline: none;
}


.node-advotalk-edit-form label[for="edit-field-wall-0-value"]{
    display: none ;
}

.node-advotalk-edit-form .form-type-vertical-tabs,
.node-advotalk-edit-form #edit-field-wall-0-format-help
{
  display: none;
}

/* Post Box Container */
.create-post-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  background-color: var(--color-white);
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.advotalk-wall-feed a.use-ajax {
    background: #f5f3f3;
    width: 100%;
    /* height: 45px; */
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
}

/* Fake Input Style */
.post-input-btn {
  background: #f3f2ef !important;
  border: 1px solid #ddd !important;
  padding: 10px 20px;
  border-radius: 25px !important;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}

.post-input-btn:hover {
  background: #e9e8e5 !important;
}
/* ----------------------------
   WALL FORM HEADING STYLES
----------------------------- */

.node-advotalk-form .form--heading,
.node-advotalk-edit-form .form--heading {
  background: #ffffff;
  padding: 18px 22px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  position: relative;
  border-left: 5px solid #3f51b5; /* Material Primary Color */
}

.node-advotalk-form .form--heading .form__title,
.node-advotalk-edit-form .form--heading .form__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.3px;
}

/* Optional subtle hover effect */
.node-advotalk-form .form--heading:hover,
.node-advotalk-edit-form .form--heading:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: .3s ease-in-out;
}

/* Accent animated bar effect (optional) */
.node-advotalk-form .form--heading::after,
.node-advotalk-edit-form .form--heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 0;
  height: 3px;
  background: #3f51b5;
  transition: width .3s ease;
}

.node-advotalk-form .form--heading:hover::after,
.node-advotalk-edit-form .form--heading:hover::after {
  width: 90%;
}


/* Action Row */
.node-advotalk-form .action-row .action-item,
.node-advotalk-edit-form .action-row .action-item {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.node-advotalk-form .action-row .action-item img,
.node-advotalk-edit-form .action-row .action-item img {
  margin-right: 6px;
  opacity: 0.9;
}

.node-advotalk-form .action-row .action-item:hover,
.node-advotalk-edit-form .action-row .action-item:hover {
  color: #000;
  opacity: 0.9;
}

/* --- Advotalk Form Custom Styles --- */
.node-advotalk-form,
.node-advotalk-edit-form {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e4e4e4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Label Styling */
.node-advotalk-form label,
.node-advotalk-edit-form label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

/* Textarea Styling */
.node-advotalk-form textarea.form-textarea,
.node-advotalk-edit-form textarea.form-textarea {
    border: 1px solid #d5d5d5 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 15px !important;
    background: #fafafa !important;
    transition: all .3s ease-in-out;
}

.node-advotalk-form textarea.form-textarea:focus,
.node-advotalk-edit-form textarea.form-textarea:focus {
    background: #fff !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15) !important;
}

/* CKEditor container fix */
.ode-advotalk-form .ck-editor__editable_inline {
    min-height: 150px !important;
    border-radius: 0;
    padding: 12px !important;
    background: #fafafa !important;
}

.node-advotalk-form .ck-editor__editable_inline,
.node-advotalk-edit-form .ck-editor__editable_inline {
    background: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
}

/* Submit button */
.node-advotalk-form button[type="submit"],
.node-advotalk-form .form-submit,
.node-advotalk-edit-form button[type="submit"],
.node-advotalk-edit-form .form-submit {
    background: #007bff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: .3s;
}

.node-advotalk-form button[type="submit"]:hover,
.node-advotalk-form .form-submit:hover,
.node-advotalk-edit-form button[type="submit"]:hover,
.node-advotalk-edit-form .form-submit:hover {
    background: #0056b3;
}

/* Vertical tabs styling */
.node-advotalk-form .vertical-tabs__panes,
.node-advotalk-edit-form .vertical-tabs__panes {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 10px;
}

.ui-dialog .form--heading{
  display: none;
}

/* Help link */
.node-advotalk-form #edit-field-wall-0-format-help a,
.node-advotalk-edit-form #edit-field-wall-0-format-help a {
    font-size: 13px;
    color: #007bff;
    text-decoration: underline;
}

/* Hide About textarea completely */
a[href="/filter/tips"], .entity-meta, .form-item-field-wall-0-value label, .ck-powered-by {
    display: none !important;
}

/* Modern premium submit button */
.node-advotalk-form .form-submit,
.node-advotalk-form button[type="submit"],
.node-advotalk-edit-form .form-submit,
.node-advotalk-edit-form button[type="submit"] {
    background: linear-gradient(135deg, #4c6ef5, #15aabf);
    color: #fff;
    font-weight: 600;
    padding: 12px 26px;
    font-size: 16px;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: all .25s ease;
    letter-spacing: 0.3px;
    width: 100%;
}

.node-advotalk-form .form-submit:hover,
.node-advotalk-form button[type="submit"]:hover,
.node-advotalk-edit-form .form-submit:hover,
.node-advotalk-edit-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #4263eb, #0ca6b4);
}

.node-advotalk-form .form-submit:active,
.node-advotalk-form button[type="submit"]:active,
.node-advotalk-edit-form .form-submit:active,
.node-advotalk-edit-form button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}


.field--name-field-wall .show-more-btn {
    display: inline-block;
    margin-top: 12px;
    color: #05f;
    cursor: pointer;
    font-weight: 700;
    border: unset;
    height: 48px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1;
    bottom: 0;
    border-top: 0;
    box-shadow: -3px 4px 10px 19px #0000009c;
    background: #fff;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

span.show-more-btn svg {
    width: 20px;
    fill: #05f
}



.ck-toolbar_grouping {
    border-bottom: 1px solid #ccc !important;
}


/* ------------------------------
   CUSTOM DRUPAL MODAL STYLING
--------------------------------*/
.ui-dialog {
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0px 8px 30px rgba(0,0,0,0.25);
  padding: 0 !important;
  background: #fff;
}

.ui-dialog .node-advotalk-form,
.ui-dialog .node-advotalk-edit-form
{
  padding: 0;
  border: none;
  box-shadow: none;
}

.ui-dialog-titlebar {
  background: #165db5 !important;
  color: #fff !important;
  padding: 12px 16px !important;
  border: none !important;
  border-radius: 8px 8px 0 0 !important;
}

.ui-dialog-titlebar .ui-dialog-title {
  font-size: 18px;
  font-weight: bold;
}

.ui-dialog-titlebar-close {
  background: transparent !important;
  border: none !important;
  text-indent: -9999px;
  width: 20px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.ui-dialog-titlebar-close:before {
  content: "ÃƒÆ’Ã¢â‚¬â€";
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  position: absolute;
  top: -4px;
  left: 3px;
}


/* ------------------------------
   FORM STYLING INSIDE MODAL
--------------------------------*/

.node-advotalk-form .form--heading,
.node-advotalk-edit-form .form--heading
{
  padding: 15px 20px;
  border-bottom: 1px solid #f1f1f1;
}

.node-advotalk-form .form__title,
.node-advotalk-edit-form .form__title
{
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

/* Label styling */
.node-advotalk-form label,
.node-advotalk-edit-form label
{
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #333;
}

/* Textarea / CKEditor wrapper */
.node-advotalk-form .form-textarea-wrapper,
.node-advotalk-edit-form .form-textarea-wrapper
{
  margin-bottom: 20px;
}

.node-advotalk-form .ck-editor ,
.node-advotalk-edit-form .ck-editor
{
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px;
  padding: 0 !important;
}

.node-advotalk-form textarea,
.node-advotalk-edit-form textarea
{
  border: none !important;
  border-radius: 6px;
  font-size: 15px;
  padding: 12px;
}

/* CKEditor toolbar styling */
.node-advotalk-form .ck-toolbar,
.node-advotalk-edit-form .ck-toolbar
{
  border-radius: 6px 6px 0 0 !important;
  background: #f8f9fa !important;
  border-bottom: 1px solid #e1e1e1 !important;
}

/* Submit Button */
.node-advotalk-form .form-actions input[type="submit"],
.node-advotalk-edit-form .form-actions input[type="submit"]
{
  background: #165db5;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

.node-advotalk-form .form-actions input[type="submit"]:hover,
.node-advotalk-edit-form .form-actions input[type="submit"]:hover
{
  background: #0d3f84;
}

/* Modal Content Padding */
.ui-dialog .ui-dialog-content {
  padding: 20px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .ui-dialog {
    width: 95% !important;
    left: 2.5% !important;
  }

  .path-feed .region.region-content {
    /* padding: 10px !important; */
    /* margin-top: 40px; */
  }
  .comment-wall-comment-form .form-actions {
    position: unset;
    /* right: 0; */
    /* bottom: 18px; */
    /* z-index: 99; */
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .comment-wall-comment-form .form-wrapper,
  .comment-wall-comment-form .form-item
  {
    margin-bottom: 5px;
  }


}

/* ========================================
   LINKEDIN-STYLE WALL POST FORM
======================================== */

.advotalk-wall-create-post-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e1e1;
  padding: 20px;
  margin-bottom: 24px;
}

/* User Info Section */
.wall-post-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wall-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.wall-post-user-name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

/* Textarea Container */
.wall-post-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif !important;
  resize: vertical;
  background: #fafafa !important;
  transition: all 0.3s ease !important;
}

.wall-post-textarea:focus {
  background: #fff !important;
  border-color: #0a66c2 !important;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1) !important;
  outline: none !important;
}

/* Rich text editor wrapper */
.wall-post-form-item-post-content {
  margin: 16px 0;
}

.wall-post-form-item-post-content label {
  display: none !important;
}

/* CKEditor in post form */
.advotalk-wall-create-post-form .ck-editor {
  border: 1px solid #d0d0d0 !important;
  border-radius: 8px !important;
}

.advotalk-wall-create-post-form .ck-editor__editable_inline {
  min-height: 100px;
  padding: 12px 16px !important;
  background: #fafafa !important;
  font-size: 15px;
}

.advotalk-wall-create-post-form .ck-editor__editable_inline:focus {
  background: #fff !important;
}

.advotalk-wall-create-post-form .ck-toolbar {
  border-radius: 8px 8px 0 0 !important;
  background: #f8f9fa !important;
  border-bottom: 1px solid #e1e1e1 !important;
}

/* Form Actions */
.wall-post-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

/* Submit Button */
.wall-post-submit-btn {
  background: #0a66c2;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wall-post-submit-btn:hover {
  background: #0854a0;
}

.wall-post-submit-btn:active {
  transform: translateY(1px);
}

.wall-post-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Wrapper container */
#advotalk-wall-create-post-form {
  margin-bottom: 24px;
}

/* Help text and descriptions */
.advotalk-wall-create-post-form .form-item__description {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* Form layout wrapper */
.advotalk-wall-create-post-form .form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Error messages */
.advotalk-wall-create-post-form .form-item--error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
}

/* Responsive design */
@media (max-width: 768px) {
  .advotalk-wall-create-post-form {
    padding: 16px;
  }

  .wall-post-submit-btn {
    width: 100%;
  }

  .wall-post-textarea {
    min-height: 80px !important;
  }
}

/* Hide text format selector in wall post form */
.advotalk-wall-create-post-form .form-item-post-content .filter-type-wrapper {
  display: none !important;
}

/* Alternative selectors to ensure format field is hidden */
#advotalk-wall-create-post-form .form-item-post-content .filter-type-wrapper,
#advotalk-wall-create-post-form [data-drupal-selector="edit-post-content-format"],
.wall-post-form-item-post-content .filter-type-wrapper,
.wall-post-textarea + .filter-type-wrapper {
  display: none !important;
}


/* --- ACTION BUTTONS WRAPPER --- */
.form-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

/* --- PRIMARY BUTTON (SAVE) --- */
.form-actions .button--primary {
  background: #007bff;
  border-radius: 8px;
  padding: 10px 22px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background .3s ease, transform .2s ease;
}

.form-actions .button--primary:hover {
  background: #005fcc;
  transform: translateY(-2px);
}

/* --- SECONDARY BUTTON (PREVIEW) --- */
.form-actions .button {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 22px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: background .3s ease, transform .2s ease;
}

.form-actions .button:hover {
  background: #eaeaea;
  transform: translateY(-2px);
}

/* --- REMOVE UGLY FILTER GUIDELINES --- */
.js-filter-guidelines,
.text-format-wrapper .filter-guidelines-item {
  display: none !important;
}

/* --- CLEAN LINK FOR "About text formats" --- */
.js-text-format-wrapper a {
  font-size: 12px;
  color: #777;
}

/* Parent wrapper */
.advotalk-comment .links.inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  list-style: none;
  margin: 0;
}

/* Reset list items */
.advotalk-comment .links.inline li {
  list-style: none;
  margin: 0;
}

/* Left side: Reply */
.advotalk-comment .links.inline li.comment-reply a {
  font-size: 12px;
  font-weight: 500;
  color: #0a66c2;
  text-decoration: none;
  padding: 0;
  color: #65676b;
}

/* Right side: Edit + Delete wrapper */
.advotalk-comment .links.inline li.comment-edit,
.advotalk-comment .links.inline li.comment-delete {
  margin-left: 16px;
}

/* Make delete + edit go to right */
.advotalk-comment .links.inline {
  display: flex;
  flex-direction: row-reverse;
}

.advotalk-comment .links.inline li.comment-reply {
  margin-right: auto;
}

/* Link Styling */
.advotalk-comment .links.inline a {
  font-size: 13px;
  color: #5e5e5e;
  padding: 4px 6px;
  border-radius: 4px;
  transition: 0.2s ease;
  background: none;
}

.advotalk-comment .links.inline a:hover {
  background: #f3f3f3;
  color: #000;
}

/* Delete link (highlighted subtle red) */
.advotalk-comment .links.inline li.comment-delete a:hover {
  background: #ffecec;
  color: #c62828;
}


.advotalk-comment .comment-wrap {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start !important;!i;!;
}


/* WALL POST CONTAINER */
.node--type-advotalk.node--view-mode-full,
.node--type-advotalk.node--view-mode-advotalk-wall-post
{
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
  /* max-width: 650px; */ /* optional, remove if not needed */
  width: 100%;
  margin: auto;
  background-color: var(--color-white);
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.3sease-in-out;
}

/* PARENT SELECTORS */
.node--type-advotalk.node--view-mode-full .advotalk-post-footer,
.node--type-advotalk.node--view-mode-advotalk-wall-post .advotalk-post-footer {
  /* margin-top: 15px; */
  /* padding-top: 12px; */
  /* border-top: 1px solid #e5e5e5; */
  font-family: Arial, sans-serif;
  /* background: #fafafa; */
}

form.vote-form {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: flex-start;
    align-items: baseline;
}

/* Action buttons row */
.node--type-advotalk.node--view-mode-full .post-actions,
.node--type-advotalk.node--view-mode-advotalk-wall-post .post-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
  align-items: center;
  /* max-height: 15px; */
  /* margin: 0; */
  /* padding: 15px 15px; */
}

/* Individual buttons */
.post-action-btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  /* display: flex; */
  /* align-items: center; */
  gap: 6px;
  display: contents;
  /* align-items: center; */
  /* width: 45px; */
  height: 35px;
  /* background: #ccc; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.post-action-btn .icon i , div.thumbsup-rating-wrapper > div > label.thumbsup-rating-label-up::before{
  display: inline;
  /* content: "\f087"; */
  font-family: FontAwesome, serif;
  font-size: 16px;
  color: #000;
}

.post-action-btn:hover {
  background: #f3f3f3;
  border-radius: 6px;
  color: #000;
}

/* Comment count section */
.post-stats {
  font-size: 13px;
  color: #888;
  padding-left: 2px;
}


.node--type-advotalk.node--view-mode-advotalk-wall-post {
  max-width: unset;
}

/* POST TEXT */
.node--type-advotalk.node--view-mode-full .field--name-field-wall,
.node--type-advotalk.node--view-mode-advotalk-wall-post .field--name-field-wall
{
  /* font-size: 15px; */
  /* line-height: 1.45; */
  color: #1c1e21;
  /* margin-bottom: 0; */
  padding: 15px 0px;
  position: relative;
}

.node--type-advotalk.node--view-mode-advotalk-wall-post .field--name-field-wall.field--type-text-long p {

}

/* COMMENT WRAPPER LIST */
#node-advotalk-field-comments {
  border-top: 1px solid #e5e7eb;
  /* margin-top: 12px; */
  /* padding-top: 12px; */
}

/* INDIVIDUAL COMMENT */
.advotalk-comment {
  display: flex;
  margin-bottom: 12px;
  gap: 10px;
}

/* COMMENT BODY BUBBLE */
.advotalk-comment .content {
  /* background: #f0f2f5; */
  padding: 5px;
  /* border-radius: 18px; */
  /* max-width: 85%; */
  /* font-size: 14px; */
  /* line-height: 1.4; */
  /* color: #050505; */
}

/* LINK WRAPPER (Reply left, Edit/Delete right) */
.advotalk-comment .links.inline {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  width: 100%;
  padding: 0;
}

/* LEFT PART (Reply) */
.advotalk-comment .comment-reply {
  margin-right: auto !important;
}

/* RIGHT PART (Edit + Delete) */
.advotalk-comment .comment-edit,
.advotalk-comment .comment-delete {
  margin-left: 10px !important;
}

/* LINKS STYLE */
.advotalk-comment .links.inline a {
  color: #65676b;
  text-decoration: none;
  transition: 0.2s;
}
.advotalk-comment .links.inline a:hover {
  text-decoration: underline;
}

/* COMMENT FORM LIKE FACEBOOK */
.comment-wall-comment-form textarea {
  /* background: #f0f2f5; */
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  border-radius: 20px;
  font-size: 14px;
  width: 100%;
  resize: none;
  overflow: hidden;
}

.comment-wall-comment-form input[type=submit] {
  margin-top: 6px;
  border-radius: 18px;
  padding: 6px 15px;
  background: #cccc !important;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px !important;
}

.comment-wall-comment-form .comment-submit-btn:hover {
  background: #166fe5;
}

/* Basic indentation for nested comments */
.indented {
  margin-left: 30px;
}

/* Avoid too much indentation */
.indented > .indented {
  margin-left: 10px !important;
}

/* Optional: add border line for clarity */
.indented article {
  /* border-left: 2px solid #ddd; */
  /* padding-left: 15px; */
}


/* PARENT WRAPPER */
.advotalk-post-author-header {
  padding: 0 !important;!i;
  /* border-bottom: 1px solid #e5e5e5; */
  background: #fff;
  font-family: Arial, sans-serif;
  margin-bottom: 0 !important;!i;!;
}

/* Main row: Avatar + info + options */
.advotalk-post-author-header .author-info-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Avatar and info */
.advotalk-post-author-header .author-profile {
  display: flex;
  align-items: center;
}

/* Avatar styling */
.advotalk-post-author-header .author-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50px !important;!i;!;
  object-fit: cover;
  border: 1px solid #ddd;
  background: #f5f5f5;
  max-width: 35px;
  max-height: 35px;
}

/* Name + designation + date block */
.advotalk-post-author-header .author-details {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  /* float: unset; */
  width: 100%;
}

/* Author name */
.advotalk-post-author-header .author-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.advotalk-post-author-header .author-name a {
  color: #111;
  text-decoration: none;
}

.advotalk-post-author-header .author-name a:hover {
  text-decoration: underline;
}

/* Designation text */
.advotalk-post-author-header .author-designation {
  font-size: 13px;
  color: #65676b;
  margin: 2px 0 0 0;
}

/* Date text */
.advotalk-post-author-header .post-date {
  font-size: 12px;
  color: #8a8d91;
  margin: 1px 0 0 0;
}

/* Actions (3 dots menu, icons etc.) */
.advotalk-post-author-header .post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* If you want a three-dot menu style */
.advotalk-post-author-header .post-actions .options-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  font-size: 18px;
}


/* Parent wrapper ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â LinkedIn-style card */
.comment-form-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  /* padding: 16px; */
  /* border-radius: 12px; */
  /* background: #ffffff; */
  /* border: 1px solid #e5e7eb; */
  /* box-shadow: 0 1px 3px rgba(0,0,0,0.06); */
}

/* Avatar block */
.comment-form-wrapper .advotalk-user-accessibility {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  margin-bottom: 0 !important;
}

.comment-form-wrapper .user-avatar-container img,
.comment-form-wrapper .user-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

/* Right side form */
.comment-form-wrapper .comment-form {
  flex: 1;
}

/* LinkedIn-style textarea */
.comment-form-wrapper .form-textarea-wrapper .form-textarea {
  width: 100%;
  border-radius: 20px !important;
  padding: 14px 16px !important;
  border: 1px solid #d1d5db !important;
  background: #f9fafb !important;
  font-size: 15px !important;
  line-height: 1.4;
  resize: none;
  min-height: 42px;
  transition: all 0.2s ease;
}

/* Focus effect */
.comment-form-wrapper .form-textarea-wrapper .form-textarea:focus {
  background: #ffffff !important;
  border-color: #0a66c2 !important;
  box-shadow: 0 0 0 2px rgba(10,102,194,0.15) !important;
}

/* Hide Drupal filter/help */
.comment-form-wrapper .js-filter-wrapper,
.comment-form-wrapper .js-filter-guidelines,
.comment-form-wrapper .text-format-wrapper .filter-guidelines-item,
.comment-form-wrapper .text-format-wrapper .tips {
  display: none !important;
}

/* LinkedIn 'Post' button */
.comment-form-wrapper .form-actions .form-submit {
  background: #0a66c2 !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 8px 20px !important;
  border: none !important;
  font-weight: 600 !important;
  cursor: pointer;
  font-size: 14px !important;
  float: right;
  margin-top: 10px;
}

/* Hover effect */
.comment-form-wrapper .form-actions .form-submit:hover {
  background: #004182 !important;
}


/* ========== COMMENT FORM (GitHub Style) ========== */
.comment-form-wrapper {
  margin-bottom: 20px;
}

.comment-form .form-textarea-wrapper textarea {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fafbfc;
  resize: vertical;
}

.comment-submit-btn {
  background: #238636;
  border-color: #238636;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.comment-submit-btn:hover {
  background: #2ea043;
}


/* ========== EACH COMMENT BOX (GitHub Style) ========== */
.advotalk-comment {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  background: #fff;
}

/* Comment header (avatar + name in one line) */
.advotalk-post-author-header {
  padding: 0;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.advotalk-wall-create-post-form .form-required {
  display: none;
}

.author-profile img.author-avatar {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.author-details .author-name {
  font-size: 14px;
  font-weight: 600;
}

.author-details .author-designation {
  font-size: 12px;
  color: #6e7781;
}


/* ========== COMMENT BODY ========== */
.author-comments .content {
  margin-top: 6px;
}

.field--name-comment-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}


/* ========== REPLY LINK (GitHub style small link) ========== */
.links.inline li a {
  font-size: 12px;
  color: #57606a;
  text-decoration: none;
}

.links.inline li a:hover {
  color: #0969da;
  text-decoration: underline;
}


/* ========== NESTED COMMENTS (GitHub style vertical line) ========== */
.indented {
  margin-left: 32px;
  padding-left: 16px;
  border-left: 2px solid #d0d7de;
}

/* ========== BASE COMMENT CARD (GitHub Style) ========== */
.advotalk-comment {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  background: #fff;
}

/* Avatar */
.author-profile img.author-avatar {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

/* Comment header separator */
.advotalk-post-author-header {
  padding: 0;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

/* ========== NESTED COMMENT AREA (Merged Styling) ========== */
.indented {
  margin-left: 38px;
  padding-left: 24px;

  /* both combined: light background + dotted line */
  border-left: 2px dotted #c6cdd5;
  background: #f8fafc;

  border-radius: 0 8px 8px 0;
  position: relative;
}

/* ========== THREAD DOT (Node Indicator) ========== */
.indented::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -7px;
  width: 10px;
  height: 10px;
  background: #9ca3af;
  border-radius: 50%;
}

/* ========== CURVED CONNECTOR FROM AVATAR ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ THREAD LINE ========== */
.author-profile {
  position: relative;
}

.embed-media iframe {
    width: 100%;
    display: flex;
    margin: auto;
}


.embed-media {
    position: relative; /* Establish a positioning context for the iframe */
    width: 100%; /* Take full width of its parent */
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
    height: 0; /* Collapse the height, padding-bottom will define it */
    overflow: hidden; /* Hide any overflow */
}

.embed-media iframe {
    position: absolute; /* Position the iframe absolutely within its parent */
    top: 0;
    left: 0;
    width: 100%; /* Fill the container's width */
    height: 100%; /* Fill the container's height */
    border: 0; /* Remove default iframe border if desired */
    display: block; /* Overrides the original display: flex */
    margin: auto; /* Overrides the original margin: auto, though not strictly needed with absolute positioning */
}

.facebook-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px; /* optional: modern look */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.facebook-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Post Header --- */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* --- Actions Menu (Three Dots) --- */
.post-actions-menu {
  position: relative;
}

.post-actions-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-actions-toggle:hover {
  background-color: #f0f2f5;
}

.post-actions-toggle svg {
  color: #65676b;
}

/* --- Dropdown Menu --- */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: #000;
}

.dropdown-item.share-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-link .share-label {
  font-weight: 600;
  color: #333;
}

.share-link .share-alias {
  font-size: 12px;
  color: #6b7280;
}

.dropdown-item + .dropdown-item {
  border-top: 1px solid #f0f0f0;
}

/* Optional Hover Polishing */
.indented:hover {
  background: #eef2f6;
  transition: background 0.2s ease;
}


.node--type-advotalk.node--view-mode-full .field--name-field-wall p,
.node--type-advotalk.node--view-mode-advotalk-wall-post .field--name-field-wall p {
  margin: 0;
}

footer span.show-more-btn {
    /* font-weight: 700; */
    /* border: unset; */
    /* height: 48px; */
    /* width: 100%; */
    /* display: flex; */
    justify-content: end;
    align-items: center;
    position: relative;
    /* z-index: 1; */
    /* bottom: 0px; */
    /* border-top: 0; */
    box-shadow: none;
    background: no-repeat;
}

footer span.show-more-btn a {
    color: #05f;
    text-transform: capitalize;
}


.no-feed-card {
  max-width: 480px;
  margin: 20px auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.no-feed-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.no-feed-content p {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.view-feed-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #1e40af;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.view-feed-btn:hover {
  background: #1e3a8a;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  color: #fff;
  text-decoration: underline;
}

.tab-pane .node--type-advotalk.node--view-mode-full, .tab-pane .node--type-advotalk.node--view-mode-advotalk-wall-post {
    background: transparent;
    border: none;
    box-shadow: unset;
}
