.heading_block {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    justify-content: space-between;
  }
  
  .double_heading {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .double_heading i {
    width: 50px;
    height: 50px;
    background: var(--color-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(215, 31, 44, 0.3);
  }
  
  .heading_cap {
    display: flex;
    flex-direction: column;
  }
  
  .heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
  }
  
  .second_heading {
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .block_edit_news {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .flex_edit_news {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .edit_news_left {
    width: 33%;
  }
  
  .edit_news_right {
    width: 67%;
  }
  
  .flex_img_edit_full {
    position: relative;
  }
  
  .img_edit_news {
    width: 100%;
    border-radius: 18px;
    height: 246px;
    background-size: cover;
    object-fit: cover;
  }
  
  .flex_edit_img {
    margin-top: -65px;
    position: relative;
    z-index: 2;
  }
  
  .custom_file_padding {
    padding: 20px;
    padding-top: 0;
  }
  
  .custom_file {
    position: relative;
    display: inline-block;
    width: 100%;
  }
  
  .custom-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  
  .custom_file label {
    display: block;
    background: var(--bg-card-light);
    color: var(--text-muted);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .custom_file label:hover {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
  }
  
  .flex_btn_news_img {
    display: flex;
    gap: 10px;
    margin-top: -4px;
  }
  
  .btn_edit_news_img {
    border: none;
    width: 100%;
    background: var(--bg-card-light);
    color: var(--text-muted);
    transition: 0.2s;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .btn_edit_news_img:hover {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
  }
  
  .flex_head_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
  }
  
  .flex_head_l {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .flex_head_l i {
    width: 40px;
    height: 40px;
    background: rgba(215, 31, 44, 0.1);
    color: var(--color-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }
  
  .flex_top_usr {
    display: flex;
    flex-direction: column;
  }
  
  .name_top_usr {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
  }
  
  .desp_top_usr {
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .form-group-custom {
    margin-bottom: 20px;
  }
  
  .custom-input,
  .custom-select {
    position: relative;
    display: block;
  }
  
  .input_error {
      background-color: #ed717121!important
  }
  
  .custom-input input,
  .custom-select select {
    width: 100%;
    background: var(--bg-card-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px 15px 50px;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.3s;
  }
  
  .custom-input input:focus,
  .custom-select select:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 2px rgba(215, 31, 44, 0.2);
  }
  
  .custom-input span,
  .custom-select span {
    position: absolute;
    left: 50px;
    top: 15px;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s;
    pointer-events: none;
    background: var(--bg-card-light);
    padding: 0 5px;
  }
  
  .custom-input input:focus + span,
  .custom-select select:focus + span,
  .custom-input input:not(:placeholder-shown) + span,
  .custom-select select:not([value=""]) + span {
    top: -8px;
    left: 45px;
    font-size: 12px;
    color: var(--color-red);
  }
  
  .error_message, .success_message {
      height: 0;
      margin: 0;
      font-size: 12px;
      position: relative;
      float: right;
      top: -54px;
      right: 55px;
      display: none!important;
  }
  
  .custom-input i,
  .custom-select i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
  }
  
  .send_comment_btn {
    background: var(--color-red);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .send_comment_btn:hover {
    background: var(--color-red-light);
    transform: translateY(-1px);
  }
  
.smile_btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 10px;
}

.smile_btn:hover {
  background: var(--bg-card);
  border-color: var(--color-red);
}

.smile_btn i {
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.smile_btn:hover i {
  color: var(--color-red);
}
  
  /* Стили для textarea */
  #text {
    width: 100%;
    min-height: 300px;
    background: var(--bg-card-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    margin-bottom: 20px;
  }
  
  #text:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 2px rgba(215, 31, 44, 0.2);
  }
  
  /* Стили для результата */
  #new_result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
  }
  
  #new_result.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
  }
  
  #new_result.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
  }
  
  /* Стили для кнопки создания */
  #create_btn {
    background: var(--color-red);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
  }
  
  #create_btn:hover {
    background: var(--color-red-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215, 31, 44, 0.3);
  }
  
  #create_btn:active {
    transform: translateY(0);
  }
  
  #img_result {
    margin-top: 10px;
  }
  
  #input_img {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 12px;
    padding: 5px;
  }
  
.news_flex {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.left_news {
  width: 30%;
}

.block_content_new {
  width: 70%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-block-imgg {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.news-block-imgg span {
  color: #fff;
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-block-imgg span i {
  font-size: 14px;
}

.name_news_img {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.head_news {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.flex_head_news {
  display: flex;
  align-items: center;
  gap: 15px;
}

.flex_head_news i {
  width: 40px;
  height: 40px;
  background: rgba(215, 31, 44, 0.1);
  color: var(--color-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.flex_info_head_news {
  display: flex;
  flex-direction: column;
}

.text_news_info {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
}

.desp_news_info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.head_news_btn {
  display: flex;
  gap: 10px;
}

.edit_news_btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
  text-decoration: none;
}

.edit_news_btn:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  text-decoration: none;
}

.edit_news_btn i {
  font-size: 14px;
}

.with_code {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 14px;
}

.with_code h1, .with_code h2, .with_code h3, .with_code h4, .with_code h5, .with_code h6 {
  color: var(--text-light);
  margin: 20px 0 10px 0;
}

.with_code p {
  margin-bottom: 15px;
}

.with_code img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}

.with_code blockquote {
  border-left: 4px solid var(--color-red);
  padding-left: 15px;
  margin: 20px 0;
  background: var(--bg-card-light);
  padding: 15px;
  border-radius: 0 8px 8px 0;
}

.with_code code {
  background: var(--bg-card-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--color-red);
}

.with_code pre {
  background: var(--bg-card-light);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 15px 0;
}

.with_code pre code {
  background: none;
  padding: 0;
  color: var(--text-light);
}

.block_comments {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.block_comments textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s;
  margin-bottom: 15px;
}

.block_comments textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px rgba(215, 31, 44, 0.2);
}

/* Стили для комментариев */
.comments {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.comment {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 12px;
  margin-top: 7px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment > a {
  display: block;
  flex-shrink: 0;
}

.comment > a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.comment:hover > a img {
  border-color: var(--color-red);
}

.comment .message {
  flex: 1;
  position: relative;
  word-wrap: break-word;
  overflow: hidden;
}

.comment .message .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  height: 20px;
}

.comment .message .info .author {
  font-weight: 600;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.comment .message .info .author:hover {
  color: var(--color-red);
}

.comment .message .info .date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.comment .message .with_code {
  background: var(--bg-card-light);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment .message .with_code img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 5px 0;
}

.comment .message .with_code p {
  margin: 0 0 10px 0;
}

.comment .message .with_code p:last-child {
  margin-bottom: 0;
}

.comment .dell_message {
  position: absolute;
  top: 2px;
  right: 0px;
  width: 24px;
  height: 24px;
  background: var(--color-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
  opacity: 0;
  text-decoration: none;
}

.comment:hover .dell_message {
  opacity: 1;
}

.comment .dell_message:hover {
  background: var(--color-red-light);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(215, 31, 44, 0.3);
  text-decoration: none;
  color: #fff;
}

/* Стили для иконки m-icon icon-trash */
.comment .dell_message.m-icon.icon-trash {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
}

.comment .dell_message.m-icon.icon-trash:before {
  content: "\f1f8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #fff;
}

.comment .dell_message i {
  font-size: 10px;
  color: #fff;
}

/* Альтернативные стили для других иконок удаления */
.comment .dell_message.fa-trash:before,
.comment .dell_message.fa-solid.fa-trash:before {
  content: "\f1f8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #fff;
}

.comment .dell_message.fa-trash-alt:before,
.comment .dell_message.fa-solid.fa-trash-alt:before {
  content: "\f2ed";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #fff;
}

/* Стили для загрузчика комментариев */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.loader::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(215, 31, 44, 0.3);
  border-top: 2px solid var(--color-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
  .flex_edit_news {
    flex-direction: column;
  }
  
  .edit_news_left {
    width: 100%;
  }
  
  .edit_news_right {
    width: 100%;
  }
  
  .img_edit_news {
    height: 180px;
  }
  
  .double_heading i {
    min-width: 45px;
  }
  
  .flex_head_block {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .news_flex {
    flex-direction: column;
  }
  
  .left_news {
    width: 100%;
  }
  
  .block_content_new {
    width: 100%;
  }
  
  .news-block-imgg {
    height: 150px;
  }
  
  .head_news {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .comment {
    padding: 12px;
    gap: 10px;
  }
  
  .comment > a img {
    width: 35px;
    height: 35px;
  }
  
  .comment .message .info {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 5px;
  }
  
  .comment .dell_message {
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
  }
}
  