section.blog p {
    line-height: 24px;
    margin-bottom: 20px;
}

section.blog h2,
h3,
h4,
h5 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.tags-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.tag-wrapper {
    background-color: var(--lightBlue);
    border-radius: 10px;
    padding: 5px 10px;
    transition: background-color 0.3s ease-out;
}

.tag-wrapper:hover {
    background-color: var(--middleBlue);
}

.tags-accordion-item {
    max-height: 78px;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.tags-accordion-item.active {
    max-height: 900px;
}

.tags-accordion-icon-wrapper {
    cursor: pointer;
    margin: auto;
    background: var(--lightBlue);
    border-radius: 25px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease-out;
}

.tags-accordion-icon-wrapper svg {
    max-width: 18px;
    max-height: 100%;
}

.tags-accordion-icon-wrapper:hover {
    background-color: var(--middleBlue);
}

section.blog {
    table {
        border: none;
        border-collapse: collapse;
        empty-cells: show;
        max-width: 100%;
        margin-bottom: 10px;

        th {
            background: #e6e6e6;
            border: 1px solid #ddd;
            padding: 5px;
            text-align: left;
        }

        td {
            border: 1px solid #ddd;
            padding: 5px;
        }
    }
}

section.blog ul {
    margin-bottom: 15px;
    padding-inline-start: 40px;
}

section.blog ul li {
    list-style: disc !important;
    line-height: 1.5;
}

section.blog ol li {
    list-style: decimal; 
    line-height: 1.5;
}

.post-preview-img {
    aspect-ratio: 3/2;
    object-fit: cover;
}

@media (max-width: 767px) {
    .tags-container {
        margin-top: 50px;
    }

    .tags-accordion-item {
        max-height: 170px;
    }

    .tags-accordion-item.active {
        max-height: 100%;
    }
}


/* ---- Стили для всех ссылок внутри #w70 только в секции blog.hero_services_without_margin ---- */
section.blog.hero_services_without_margin #w70 a,
section.blog.hero_services_without_margin #w70 p a,
section.blog.hero_services_without_margin #w70 h2 a,
section.blog.hero_services_without_margin #w70 h3 a,
section.blog.hero_services_without_margin #w70 li a {
  color: var(--linkColor, #0b66c3);
  text-decoration: none;
  transition: color .18s ease, opacity .12s ease, box-shadow .12s ease;
  cursor: pointer;
}

/* hover / focus */
section.blog.hero_services_without_margin #w70 a:hover,
section.blog.hero_services_without_margin #w70 a:focus,
section.blog.hero_services_without_margin #w70 a:focus-visible {
  color: var(--linkHoverColor, #084a8a);
  text-decoration: underline;
  outline: none;
}

/* Хорошая фокус-видимость для клавиатуры */
section.blog.hero_services_without_margin #w70 a:focus-visible {
  box-shadow: 0 0 0 4px rgba(11,102,195,0.12);
  border-radius: 4px;
}

/* visited / active */
section.blog.hero_services_without_margin #w70 a:visited {
  color: var(--linkVisitedColor, #5a88b6);
}
section.blog.hero_services_without_margin #w70 a:active {
  opacity: 0.9;
}

/* Немного увеличить кликабельную зону внутри параграфа */
section.blog.hero_services_without_margin #w70 p a {
  display: inline-block;
  padding: 2px 0;
}

/* Blog Pagination Styles */
.blog-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: var(--lightBlue, #f0f4f8);
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-link:hover {
    background-color: var(--middleBlue, #d0dae4);
    color: #000;
    text-decoration: none;
}

.pagination-link.pagination-current {
    background-color: #1a1a1a;
    color: #fff;
    cursor: default;
}

.pagination-link.pagination-prev,
.pagination-link.pagination-next {
    font-weight: 700;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #666;
    font-size: 16px;
}

@media (max-width: 767px) {
    .pagination-nav {
        gap: 6px;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 14px;
    }

    .pagination-ellipsis {
        min-width: 30px;
        height: 36px;
    }
}

/* =====================================================
   AUTHOR STYLES
   ===================================================== */

/* Authors intro text */
.authors-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Authors Grid - List Page */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.author-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.author-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.author-card__avatar {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--lightBlue, #f0f4f8);
}

.author-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card__info {
    padding: 20px;
}

.author-card__name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.author-card__position {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px;
}

.author-card__status {
    font-size: 13px;
    color: #0b66c3;
    font-weight: 500;
    margin: 0 0 12px;
}

.author-card__bio {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 12px;
}

.author-card__posts-count {
    display: inline-block;
    font-size: 13px;
    color: #888;
    padding: 4px 10px;
    background: var(--lightBlue, #f0f4f8);
    border-radius: 20px;
}

/* Author Profile Page */
.author-profile {
    max-width: 900px;
}

.author-profile__header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.author-profile__avatar {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--lightBlue, #f0f4f8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.author-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile__main {
    flex: 1;
}

.author-profile__name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.author-profile__position {
    font-size: 18px;
    color: #555;
    margin: 0 0 4px;
}

.author-profile__status {
    font-size: 16px;
    color: #0b66c3;
    font-weight: 500;
    margin: 0 0 12px;
}

.author-profile__specialization {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.author-profile__section {
    margin-bottom: 30px;
}

.author-profile__section h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lightBlue, #f0f4f8);
}

.author-profile__section p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Author Social Links */
.author-profile__social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.author-social-link svg {
    width: 20px;
    height: 20px;
}

.author-social-link--linkedin {
    background: #0077b5;
    color: #fff;
}

.author-social-link--linkedin:hover {
    background: #005e93;
    transform: translateY(-2px);
}

.author-social-link--telegram {
    background: #0088cc;
    color: #fff;
}

.author-social-link--telegram:hover {
    background: #006da3;
    transform: translateY(-2px);
}

.author-social-link--vk {
    background: #4a76a8;
    color: #fff;
}

.author-social-link--vk:hover {
    background: #3a5f87;
    transform: translateY(-2px);
}

/* Author Posts List */
.author-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-posts-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.author-posts-list li:last-child {
    border-bottom: none;
}

.author-posts-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    flex: 1;
    padding-right: 15px;
}

.author-posts-list a:hover {
    color: #0b66c3;
}

.author-posts-list__date {
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}

/* Post Author Badge (in blog post) */
.post-author-badge {
    margin-top: 20px;
}

.post-author-badge__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: var(--lightBlue, #f0f4f8);
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-author-badge__link:hover {
    background: var(--middleBlue, #d0dae4);
}

.post-author-badge__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-badge__name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Responsive Styles for Authors */
@media (max-width: 991px) {
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .authors-grid {
        grid-template-columns: 1fr;
    }

    .author-profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-profile__avatar {
        width: 150px;
        height: 150px;
    }

    .author-profile__name {
        font-size: 26px;
    }

    .author-profile__social {
        justify-content: center;
    }

    .author-posts-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .author-posts-list a {
        padding-right: 0;
    }
}
