/*
 * Theme Name: Heliy Trading
 * Description: Проект разработан специально для Артема Гелия
 * Theme URI:   https://heliy-trading.ru
 * Author:      Дмитрий Борисов
 * Author URI:  https://t.me/GRAIL01
 * Version: 1.0
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
}

.home-posts {
    padding: 40px 0 60px;
    background: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #ececec;
    overflow: hidden;
}

.post-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 18px 18px 16px;
    flex: 1;
}

.post-card-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 400;
}

.post-card-title a {
    color: #111;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #2a7dbf;
}

.post-card-excerpt {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-top: 1px solid #efefef;
    font-size: 14px;
    color: #999;
}

.post-card-date {
    color: #9a9a9a;
    white-space: nowrap;
}

.post-card-link {
    color: #2a9df4;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
}

.post-card-link:hover {
    text-decoration: underline;
}

.home-posts-empty {
    padding: 30px 0;
    color: #666;
}

.navigation.pagination {
    margin-top: 40px;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    text-decoration: none;
    border-radius: 4px;
}

.navigation.pagination .page-numbers.current {
    border-color: #2a9df4;
    color: #fff;
    background: #2a9df4;
}

@media (max-width: 991px) {
    .home-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .post-card-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .home-posts {
        padding: 24px 0 40px;
    }

    .container {
        padding: 0 16px;
    }

    .home-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card-title {
        font-size: 22px;
    }

    .post-card-meta {
        flex-direction: row;
        align-items: center;
    }
}


.content-page {
    padding: 40px 0 60px;
    background: #f5f5f5;
}

.content-page .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-page-header {
    margin-bottom: 28px;
}

.content-page-meta {
    margin-bottom: 12px;
}

.content-page-date {
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    color: #8a8a8a;
}

.content-page-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 400;
    color: #111;
}

.content-page-body {
    font-size: 18px;
    line-height: 1.75;
    color: #222;
}

.content-page-body > *:first-child {
    margin-top: 0;
}

.content-page-body > *:last-child {
    margin-bottom: 0;
}

.content-page-body p,
.content-page-body ul,
.content-page-body ol,
.content-page-body blockquote,
.content-page-body h2,
.content-page-body h3,
.content-page-body h4 {
    margin: 0 0 20px;
}

.content-page-body h2 {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 400;
    color: #111;
    margin-top: 36px;
}

.content-page-body h3 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 400;
    color: #111;
    margin-top: 32px;
}

.content-page-body a {
    color: #2a9df4;
    text-decoration: none;
}

.content-page-body a:hover {
    text-decoration: underline;
}

.content-page-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-page-body figure {
    margin: 24px 0;
}

.content-page-body ul,
.content-page-body ol {
    padding-left: 22px;
}

.content-page-body blockquote {
    padding: 20px 24px;
    border-left: 3px solid #2a9df4;
    background: #fff;
    color: #444;
}

@media (max-width: 767px) {
    .content-page {
        padding: 24px 0 40px;
    }

    .content-page .container {
        padding: 0 16px;
    }

    .content-page-title {
        font-size: 30px;
    }

    .content-page-body {
        font-size: 16px;
        line-height: 1.7;
    }

    .content-page-body h2 {
        font-size: 24px;
    }

    .content-page-body h3 {
        font-size: 21px;
    }
}



.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.comments-title {
    margin: 0 0 24px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    color: #111;
}

.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.comment-list ol.children {
    list-style: none;
    margin: 20px 0 0 24px;
    padding: 0;
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-style: normal;
    font-weight: 500;
    color: #111;
}

.comment-metadata a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.comment-metadata a:hover {
    text-decoration: underline;
}

.comment-content {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
}

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

.reply {
    margin-top: 12px;
}

.reply a {
    color: #2a9df4;
    text-decoration: none;
    font-size: 14px;
}

.reply a:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 40px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
}

.comment-reply-title {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    color: #111;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    line-height: 1.4;
    color: #111;
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2a9df4;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.comment-form-cookies-consent input {
    margin-top: 3px;
}

.comment-form-submit,
.comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: #2a9df4;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.comment-form-submit:hover,
.comment-form input[type="submit"]:hover {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .comments-title {
        font-size: 24px;
    }

    .comment-reply-title {
        font-size: 22px;
    }

    .comment-respond {
        padding: 18px;
    }

    .comment-list ol.children {
        margin-left: 16px;
    }
}
