:root {
    --dark-color: #003333;
    --white-color: #fff;
    --hover-dark: #001a1a;
    --focus-glow: rgba(0, 51, 51, 0.2);
    --field-gap: 8px;
}

/* AST Post Styles */
.ast-post-breadcrumbs {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--white-color);
}

.ast-post-breadcrumbs a {
    color: var(--white-color);
    text-decoration: none;
    opacity: 0.9;
}

.ast-post-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.ast-post-header-with-bg {
    position: relative;
    padding: 80px 20px;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
}

.ast-post-header-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 51, 0.85);
    z-index: 1;
}

.ast-post-header-with-bg .breadcrumbs,
.ast-post-header-with-bg h1 {
    position: relative;
    z-index: 2;
}

.ast-post-header-with-bg h1 {
    margin: 20px 0 0;
    font-size: 2.8em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--white-color);
    /* Исправлен цвет заголовка */
}

.ast-post-meta-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.ast-post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    background-color: rgba(0, 51, 51, 0.05);
    border-radius: 12px;
    font-size: 14px;
    color: var(--dark-color);
}

.ast-post-meta-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ast-post-meta-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: var(--dark-color);
}

.ast-post-date {
    display: flex;
    align-items: center;
}

.ast-post-date-label {
    margin-right: 4px;
    font-weight: 500;
}

.ast-post-reading-time {
    display: inline-flex;
    align-items: center;
}

.ast-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.ast-post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: rgba(0, 51, 51, 0.08);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 12px;
    font-size: 12px;
    transition: background-color 0.2s;
}

.ast-post-tags a:hover {
    background-color: rgba(0, 51, 51, 0.15);
}

.ast-post-views {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(0, 51, 51, 0.05);
    border-radius: 16px;
    font-size: 14px;
    color: var(--dark-color);
    margin: 15px 0;
}

.ast-post-content {
    line-height: 1.7;
    font-size: 17px;
    color: #333;
}

.ast-post-content p {
    margin-bottom: 20px;
}

.ast-post-content h2,
.ast-post-content h3,
.ast-post-content h4 {
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.ast-post-content a {
    color: var(--dark-color);
    text-decoration: underline;
}

.ast-post-content a:hover {
    color: var(--hover-dark);
}

/* Адаптивность */
@media (max-width: 768px) {
    .ast-post-header-with-bg {
        padding: 50px 15px;
    }

    .ast-post-header-with-bg h1 {
        font-size: 2em;
    }

    .ast-post-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }

    .ast-post-meta-item {
        white-space: normal;
    }
}