.blog-page {
    color: #25222a;
}

.blog-header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.blog-kicker {
    color: #2b4ba3;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.blog-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin: 0;
}

.blog-header-copy {
    color: #6e6575;
    margin: 0 auto;
    max-width: 420px;
}

.blog-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(37, 34, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(37, 34, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 16px 34px rgba(37, 34, 42, 0.13);
    transform: translateY(-3px);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    background: #f4efe9;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.blog-card-meta,
.blog-detail-meta {
    color: #0A66FF;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.5rem;
    text-transform: uppercase;
}

.blog-featured {
    background: #fff0d9;
    border-radius: 999px;
    color: #7f4a05;
    padding: 0.1rem 0.45rem;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0.55rem 0;
}

.blog-card-summary {
    color: #5f5864;
    display: -webkit-box;
    line-height: 1.55;
    margin-bottom: 0.8rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card-byline,
.blog-detail-byline {
    color: #6e6575;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.75rem;
    margin-top: auto;
}

.blog-card-footer,
.blog-detail-actions {
    align-items: center;
    border-top: 1px solid rgba(37, 34, 42, 0.08);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.blog-read-button,
.blog-comment-submit {
    background: #0952CC;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    padding: 0.65rem 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blog-read-button:hover,
.blog-comment-submit:hover {
    background: #0952CC;
    transform: translateY(-1px);
}

.blog-social-actions,
.blog-detail-actions {
    display: flex;
    flex-wrap: wrap;
}

.blog-icon-button,
.blog-icon-count {
    align-items: center;
    background: #e0ecf1;
    border: 1px solid rgba(74, 102, 143, 0.15);
    border-radius: 8px;
    color: #1d344e;
    display: inline-flex;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
}

.blog-icon-button {
    cursor: pointer;
}

.blog-icon-button:focus-visible,
.blog-read-button:focus-visible,
.blog-comment-submit:focus-visible,
.blog-page-link:focus-visible {
    outline: 3px solid #e5b75b;
    outline-offset: 2px;
}

.blog-icon-button.is-liked {
    background: #fff1f1;
    border-color: rgba(188, 57, 71, 0.35);
    color: #bc3947;
    font-weight: 800;
}

.blog-icon-button[disabled],
.blog-read-button[disabled],
.blog-comment-submit[disabled] {
    cursor: wait;
    opacity: 0.7;
}

.blog-pagination {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.blog-page-link {
    background: #fff;
    border: 1px solid rgba(37, 34, 42, 0.12);
    border-radius: 8px;
    color: #7d4a8f;
    font-weight: 700;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
}

.blog-empty {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.blog-modal .modal-content {
    border: 0;
    border-radius: 8px;
}

.blog-modal-loading {
    align-items: center;
    color: #6e6575;
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    min-height: 220px;
}

.blog-detail {
    margin: 0 auto;
    max-width: 960px;
}

.blog-detail-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0.6rem 0;
}

.blog-detail-image {
    border-radius: 8px;
    margin: 1.25rem 0;
    max-height: 580px;
    object-fit: contain;
    width: 100%;
}

.blog-detail-content {
    color: #312d36;
    font-size: 1.04rem;
    line-height: 1.8;
    margin: 1.25rem 0 2rem;
}

.blog-detail-content p {
    margin-bottom: 1.1rem;
}

.blog-share-menu {
    background: #fff;
    border: 1px solid rgba(37, 34, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(37, 34, 42, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.75rem;
}

.blog-share-menu[hidden],
.blog-feedback[hidden] {
    display: none;
}

.blog-share-menu a,
.blog-share-menu button {
    background: #f7f2f7;
    border: 1px solid rgba(125, 74, 143, 0.15);
    border-radius: 8px;
    color: #433b49;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
}

.blog-feedback {
    background: #f1f8f1;
    border: 1px solid #bdddbd;
    border-radius: 8px;
    color: #2d632f;
    margin: 0.75rem 0;
    padding: 0.75rem;
}

.blog-feedback.is-error {
    background: #fff2f2;
    border-color: #efb6b6;
    color: #9e3030;
}

.blog-comments {
    border-top: 1px solid rgba(37, 34, 42, 0.1);
    padding-top: 1.25rem;
}

.blog-comments h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-comment {
    background: #fbfaf8;
    border: 1px solid rgba(37, 34, 42, 0.08);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 0.85rem;
}

.blog-comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.blog-comment-head time,
.blog-comment-empty,
.blog-comment-note {
    color: #6e6575;
    font-size: 0.9rem;
}

.blog-comment-form {
    margin-top: 1rem;
}

.blog-comment-textarea {
    border-radius: 8px;
    resize: vertical;
}

.blog-form-errors {
    color: #a83232;
    font-size: 0.9rem;
    margin: 0.45rem 0;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .blog-header {
        align-items: start;
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-footer,
    .blog-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-social-actions {
        justify-content: space-between;
    }
}
