/* Blog Update Styles - home.php - Mobile First */

/* ===== SEARCH STYLES ===== */
.blog-search-wrapper {
    display: none;
    margin-bottom: 2rem;
}

.blog-search-form {
    display: flex;
    gap: 0.5rem;
}

.blog-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.blog-search-input:focus {
    outline: none;
    border-color: #0389CB;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.blog-search-button {
    padding: 0.75rem 1.5rem;
    background-color: #0389CB;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.blog-search-button:hover {
    background-color: #00a8b5;
}

/* ===== MAIN LAYOUT ===== */
.content-root-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 15px;
    box-sizing: border-box;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    padding: 0 15px;
}

/* ===== BLOG ROOT (Articles) ===== */
.blog-root {
    width: 100%;
}

.article-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 15px 20px;

}

.article-item:hover {
    box-shadow: 0 0 10px #00000010;
}

.article-border {
    height: 3px;
    width: 0;
    background-color: #0389CB;
    margin-bottom: 1rem;
    transition: width 0.3s ease;
    display: none;
}

.article-item:hover .article-border {
    width: 50px;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.title-root {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.updated-at {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
    margin-top: 0.25rem;
}

.article-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;

}

.blog-btn {
    font-size: 16px;
    display: block;
    text-align: center;
    color: #fff;
    background-color: #0389CB;
    border-radius: 5px;
    text-decoration: none;
    padding: 12px 20px;
    transition: .35s ease;
    border: 1px solid transparent;
    max-width: 240px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.additional {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.additional a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.additional a:hover {
    background-color: #0389CB;
    color: white;
}

.additional a.active-category {
    background-color: #0389CB;
    color: white;
    font-weight: 600;
}

.additional a.active-category:hover {
    background-color: #00a8b5;
}

/* ===== RIGHT SIDE (Categories) ===== */
.right-side {
    width: 100%;
}

.lg-down {
    display: block;
}

.lg-up {
    display: none;
}

.right-side-root {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.content-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.categories-chip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories-chip a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.categories-chip a:hover {
    border-color: #0389CB;
    color: #0389CB;
    background-color: #f0f8fa;
}

.categories-chip a.active {
    background-color: #0389CB;
    color: white;
    border-color: #0389CB;
    font-weight: 600;
    order: -1;
}

.categories-chip a.active:hover {
    background-color: #00a8b5;
    border-color: #00a8b5;
}

/* ===== SINGLE PAGE STYLES ===== */
.article-additional {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #999;
    padding: 0 15px;
}

.article-additional .updated-at {
    color: #999;
}

.article-additional .dot {
    width: 4px;
    height: 4px;
    background-color: #ddd;
    border-radius: 50%;
}

.article-additional a {
    color: #0389CB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-additional a:hover {
    color: #00a8b5;
}

/* ===== ARTICLE CONTENT STYLES ===== */
article,
.entry-content,
.post-content {
    font-size: 1.0625rem;
    line-height: 1.4;
    color: #555;
    box-sizing: border-box;
    
    
}

/* Paragraph styles */
article p,
.entry-content p,
.post-content p,
article article p,
.entry-content article p,
.post-content article p {
    margin-bottom: 1.25rem;
    color: #555;
}

/* Heading styles */
article h1,
article h2,
article h3,
article h4,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
article article h1,
article article h2,
article article h3,
article article h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

article h3,
.entry-content h3,
.post-content h3,
article article h3 {
    font-size: 1.3rem;
}

article h2,
.entry-content h2,
.post-content h2,
article article h2 {
    font-size: 1.5rem;
}

article h1,
.entry-content h1,
.post-content h1,
article article h1 {
    font-size: 1.8rem;
}

/* List styles */
article ul,
article ol,
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol,
article article ul,
article article ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

article li,
.entry-content li,
.post-content li,
article article li {
    margin-bottom: 0.75rem;
    color: #555;
}

article li strong,
.entry-content li strong,
.post-content li strong {
    color: #333;
    font-weight: 600;
}

/* Strong text styles */
article strong,
.entry-content strong,
.post-content strong,
article article strong {
    color: #333;
    font-weight: 600;
}

/* Link styles */
article a,
.entry-content a,
.post-content a,
article article a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

article a:hover,
.entry-content a:hover,
.post-content a:hover,
article article a:hover {
    color: #1a7acc;
    text-decoration: underline;
}

/* Blockquote styles */
article blockquote,
.entry-content blockquote,
.post-content blockquote,
article article blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0389CB;
    background-color: #f9f9f9;
    color: #666;
    font-style: italic;
}

/* Code styles */
article code,
.entry-content code,
.post-content code,
article article code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #d63384;
}

/* Table styles */
article table,
.entry-content table,
.post-content table,
article article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

article table th,
article table td,
.entry-content table th,
.entry-content table td,
.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

article table th,
.entry-content table th,
.post-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* Help buttons */
.help-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.help-buttons a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0389CB;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.help-buttons a.button-green {
    background-color: #4caf50;
}

.help-buttons a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== PAGINATION ===== */
.app-paginator {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.app-paginator .wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.app-paginator-root {
    display: flex;
    gap: 0.5rem;
}

.app-paginator-root a {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.app-paginator-root a.current {
    background-color: #0389CB;
    color: white;
    border-color: #0389CB;
}

.app-paginator-root a:hover:not(.current) {
    border-color: #0389CB;
    color: #0389CB;
}

.app-paginator a.no-padding {
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-paginator a.no-padding:hover:not(.disabled) {
    transform: scale(1.1);
}

.app-paginator a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ACCORDION (Mobile Categories) ===== */
.accordion-button {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.accordion-button:hover {
    color: #0389CB;
}

.accordion-collapse {
    overflow: hidden;
}

.accordion-body {
    padding: 1rem;
    background-color: #f9f9f9;
}
.content-root-grid {
    margin-bottom: 40px;
}

/* ===== TABLET STYLES (769px+) ===== */
@media (min-width: 769px) {
    .blog-title {
        font-size: 2rem;
    }

    .content-root-grid {
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 2rem;
    }

    .blog-root {
        flex: 1;
    }

    .right-side {
        flex: 0 0 280px;
    }

    .lg-down {
        display: none;
    }

    .lg-up {
        display: block;
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .title {
        font-size: 1.4rem;
    }

    .article-description {
        font-size: 14px;
    }

    /* Single page tablet styles */
    article,
    .entry-content,
    .post-content {
        font-size: 1.0625rem;
        background: #fff;
    border: 1px solid #00000010;
    padding: 20px;
    border-radius: 15px;
    }

    article h3,
    .entry-content h3,
    .post-content h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }
}

/* ===== DESKTOP STYLES (1025px+) ===== */
@media (min-width: 1025px) {
    .blog-title {
        font-size: 2.25rem;
    }

    .content-root-grid {
        gap: 30px;
    }

    .blog-root {
        flex: 1;
    }

    .right-side {
        flex: 0 0 320px;
    }

    .article-item {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .updated-at {
        font-size: 0.9rem;
    }

    .article-description {
        font-size: 14px;
    }

    .categories-chip a {
        font-size: 1rem;
    }

    /* Single page desktop styles */
    article,
    .entry-content,
    .post-content {
        font-size: 1.0625rem;
        line-height: 1.4;
    }

    article h1,
    .entry-content h1,
    .post-content h1 {
        font-size: 1.8rem;
        margin-top: 1.75rem;
        margin-bottom: 1.25rem;
    }

    article h2,
    .entry-content h2,
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 1.75rem;
        margin-bottom: 1.25rem;
    }

    article h3,
    .entry-content h3,
    .post-content h3 {
        font-size: 1.3rem;
        margin-top: 1.75rem;
        margin-bottom: 1.25rem;
    }

    article p,
    .entry-content p,
    .post-content p {
        margin-bottom: 1.25rem;
    }

    article ul,
    article ol,
    .entry-content ul,
    .entry-content ol,
    .post-content ul,
    .post-content ol {
        margin-bottom: 1.25rem;
        padding-left: 2rem;
    }

    article li,
    .entry-content li,
    .post-content li {
        margin-bottom: 0.75rem;
    }
}

/* ===== SCROLLBAR STYLES ===== */
.lg-up::-webkit-scrollbar {
    width: 6px;
}

.lg-up::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lg-up::-webkit-scrollbar-thumb {
    background: #0389CB;
    border-radius: 10px;
}

.lg-up::-webkit-scrollbar-thumb:hover {
    background: #00a8b5;
}


.cp-breadcrums {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
    overflow-x: auto; /* Скролл на мобилках */
    white-space: nowrap;
    scrollbar-width: none; /* Прячем скроллбар в Firefox */
    padding: 0 15px;
    box-sizing: border-box;
}

.cp-breadcrums::-webkit-scrollbar {
    display: none; /* Прячем скроллбар в Chrome/Safari */
}

.cp-breadcrums a {
    color: #6c757d; /* Серый цвет для ссылок */
    text-decoration: none;
    transition: color 0.2s ease;
}

.cp-breadcrums a:hover {
    color: #007bff; /* Цвет при наведении */
}

/* Стилизация разделителя */
.cp-breadcrums a::after {
    content: "/"; /* Можно заменить на "›" */
    margin-left: 8px;
    color: #adb5bd;
    pointer-events: none;
}

.cp-breadcrums .current {
    color: #212529; /* Темный цвет для текущей страницы */
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Адаптивность для очень длинных заголовков */
@media (max-width: 768px) {
    .cp-breadcrums {
        padding-bottom: 5px;
    }
}

.custom-container {
    max-width: none;
    margin-top: 50px;
}