.article-content p {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0px;
  color: #ffffffcc;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.article-content h2 {
  font-size: 28px;
}

.article-content h3 {
  font-size: 24px;
  font-weight: 600;
}

.article-content h4 {
  font-size: 18px;
}

.article-content h5 {
  font-size: 15px;
}

.article-content h6 {
  font-size: 12px;
}

.article-content a {
  color: #39ff0c;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content strong {
  font-weight: 700;
}

.article-content em {
  font-style: italic;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content ol li {
  padding-left: 3px;
}

.article-content li {
  color: #ffffffcc;
}

.article-content .wp-block-list {
  margin: 0 0 0 24px;
}

.article-content .wp-block-list li {
  font-size: 18px;
}

.article-content .wp-block-image {
  margin: 0;
  text-align: left;
}

.article-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.article-content .wp-block-image figcaption {
  margin-top: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0px;
  color: #ffffff;
  opacity: 0.8;
  position: relative;
  padding-left: 10px;
}

.article-content .wp-block-image figcaption::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ffffff;
  opacity: 0.8;
}

.article-content .wp-block-image :where(figcaption) {
  margin-bottom: 0;
}

.article-content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.article-content .wp-block-quote {
  margin-top: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0px;
  color: #ffffff;
  opacity: 0.8;
  position: relative;
  padding-left: 10px;
}

.article-content .wp-block-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ffffff;
  opacity: 0.8;
}

.article-content .wp-block-table {
  border-radius: 16px;
  border: 1px solid #ffffff4d;
  overflow: hidden;
}

.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0px;
  color: #ffffffcc;
  background-color: transparent;
}

.article-content table thead,
.article-content table tfoot {
  color: #ffffff;
  background-color: #ffffff26;
}

.article-content .wp-block-table td,
.article-content .wp-block-table th {
  border: none;
  padding: 20px;
  text-align: center;
  font-weight: 400;
}

.article-content .wp-block-table td:not(:last-child),
.article-content .wp-block-table th:not(:last-child) {
  border-right: 1px solid #ffffff4d;
}

.article-content .wp-block-table tr th,
.article-content .wp-block-table tr td {
  border-bottom: 1px solid #ffffff4d;
}

.article-content pre {
  background: #1e1e1e;
  color: #f1f1f1;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-content video,
.article-content audio {
  width: 100%;
}

.article-content iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
}

.article-content .wp-block-file {
  margin: 1.5rem 0;
}

.article-content .wp-block-file a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #39ff0c;
}

.article-content .wp-block-file .wp-block-file__button {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.4rem 1rem;
  background: #333;
  color: #fff;
  border-radius: 6px;
}

.article-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.article-content .alignleft {
  float: left;
  margin: 0.5rem 1rem 1rem 0;
}

.article-content .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1rem;
}

.article-content .alignwide {
  width: 100%;
  margin: 2rem 0;
}

.article-content .alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.article-content .wp-block-separator {
  border: none !important;
  background-color: #ffffff4d;
  height: 1px;
}

.article-content .wp-block-separator.is-style-wide {
  border-width: 2px;
}

.article-content .wp-block-button {
  margin: 1.5rem 0;
}

.article-content .wp-block-button__link {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: #333;
  color: #fff;
  border-radius: 6px;
}

.article-content .wp-block-columns {
  display: flex;
  gap: 30px;
  margin: 0;
}

.article-content .wp-block-column {
  flex: 1;
  min-width: 0;
}

/* Article Image Gallery Swiper */
.syndicate-gallery-wrapper .swiper-slide {
  height: auto;
  box-sizing: border-box;

  .slide-content {
    display: flex;
    flex-direction: column;
  }

  img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 16px;
  }

  figcaption {
    margin-top: 8px;
  }
}

.sg-prev,
.sg-next {
  width: 42px !important;
  height: 42px !important;
  background-color: #19181b4d !important;
  border: 1px solid transparent;
  border-radius: 50% !important;

  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 50 !important;

  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.sg-prev {
  left: 10px !important;
}
.sg-next {
  right: 10px !important;
}

.sg-prev img,
.sg-next img {
  pointer-events: none;
}

.sg-prev:hover,
.sg-next:hover {
  border-color: #ffffff4d;
  background-color: #19181b !important;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 36px;
}

.swiper-pagination .swiper-pagination-bullet {
  background-color: #d9d9d9;
  opacity: 0.3;
  transition:
    opacity 0.3s,
    background-color 0.3s;
}

.swiper-pagination .swiper-pagination-bullet-active {
  background-color: #39ff0c;
  opacity: 1;
}

.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet {
  margin: 0 5px;
}

.share-copy-link {
  transition: all 0.3s ease;
}

.share-copy-link.copied {
  border-color: #39ff0c !important;
  background-color: rgba(57, 255, 12, 0.1) !important;
}

/* Mobile Columns Swiper */
.mobile-columns-swiper {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.desktop-columns-wrapper {
  display: none;
}

@media (min-width: 768px) {
  .mobile-columns-swiper {
    display: none !important;
  }
  .desktop-columns-wrapper {
    display: block !important;
  }
}

.mobile-columns-swiper .swiper-wrapper {
  display: flex !important;
  /* width: 100% УДАЛЕНО: Swiper рассчитывает это сам */
}

.mobile-columns-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
  box-sizing: border-box;

  .wp-block-image {
    margin: 0;
    width: 100%;

    img {
      border-radius: 16px;
      width: 100%;
      height: auto;
      display: block;
    }

    figcaption {
      margin-top: 8px;
    }
  }
}

/* Article Video Player */
.custom-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.custom-video-wrapper video::-webkit-media-controls {
  display: none !important;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.play-button-circle {
  width: 56px;
  height: 56px;
  background-color: #7ff200;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.video-overlay:hover .play-button-circle {
  transform: scale(1.25);
}

.custom-video-wrapper.is-playing .video-overlay {
  opacity: 0;
  visibility: hidden;
}

.custom-video-wrapper.is-playing video::-webkit-media-controls {
  display: flex !important;
}

/* Custom Text Formats */
.text-white-bold {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Visibility fix for White Bold text on white background in the editor */
.editor-styles-wrapper .text-white-bold {
  color: #ffffff !important;
  text-shadow: 0px 0px 4px #000000 !important;
}

.text-green-bold {
  color: #39ff0c !important;
  font-weight: 700 !important;
}
