/* ==========================================================================
   MGS Blog Styles
   Brand: beige #b89a84  olive #566b46  dark #1d1d1b  pink #efb6bc
   ========================================================================== */

/* --------------------------------------------------------------------------
   Post list (index / category / tag pages)
   -------------------------------------------------------------------------- */
.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 0;
}

@media (max-width: 767px) {
    .blog-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.blog-list .blog-post {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ede9e6;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-list .blog-post:hover {
    box-shadow: 0 4px 20px rgba(27, 27, 27, 0.08);
    transform: translateY(-2px);
}

.blog-list .blog-post:nth-child(2n+1) {
    clear: none;
}

/* Post thumbnail */
.blog-list .blog-post .post-image {
    margin: 0;
    overflow: hidden;
}

.blog-list .blog-post .post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-list .blog-post:hover .post-image img {
    transform: scale(1.03);
}

/* Post inner info block */
.blog-list .blog-post .post-info {
    display: block;
    padding: 1.25rem 1.5rem 0;
    margin: 0;
    width: 100%;
}

.blog-list .blog-post .post-info .published-by,
.blog-list .blog-post .post-info .post-tags,
.blog-list .blog-post .post-info .comment-link {
    display: inline;
    font-size: 0.75rem;
    color: #9a8a7e;
    letter-spacing: 0.04em;
}

.blog-list .blog-post .post-info .published-by {
    padding-right: 0;
}

.blog-list .blog-post .post-info .post-tags a {
    color: #566b46;
    text-decoration: none;
}

.blog-list .blog-post .post-info .post-tags a:hover {
    text-decoration: underline;
}

/* Post title */
.blog-list .blog-post .post-title {
    margin: 0.5rem 0 0;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog-list .blog-post .post-title a {
    color: #1d1d1b;
    text-decoration: none;
    font-weight: 500;
}

.blog-list .blog-post .post-title a:hover {
    color: #566b46;
}

/* Post date */
.blog-list .blog-post .create-post-time {
    padding: 0.3rem 1.5rem 0;
    font-size: 0.72rem;
    color: #b89a84;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Post excerpt */
.blog-list .blog-post .post-content {
    padding: 0.75rem 1.5rem 1.5rem;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-list .blog-post .post-short-description {
    font-size: 0.875rem;
    color: #4a4a4a;
    line-height: 1.6;
    flex: 1;
}

.blog-list .blog-post .post-link {
    margin-top: 1.25rem;
    text-align: left;
}

/* "Continue Reading" button */
.blog-list .blog-post .post-link .btn,
.blog-list .blog-post .post-link a {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d1d1b;
    border: 1px solid #1d1d1b;
    background: transparent;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-list .blog-post .post-link .btn:hover,
.blog-list .blog-post .post-link a:hover {
    background: #1d1d1b;
    color: #fff;
}

/* Pagination */
.bottom-pagination {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ede9e6;
}

/* --------------------------------------------------------------------------
   Single post view
   -------------------------------------------------------------------------- */
.blog-post-view .blog-post {
    max-width: 860px;
    margin: 0 auto;
}

.blog-post-view .blog-post .post-image {
    margin-bottom: 2rem;
}

.blog-post-view .blog-post .post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-view .blog-post .post-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 400;
}

.blog-post-view .blog-post .post-title a {
    color: #1d1d1b;
    text-decoration: none;
}

/* Post meta row */
.blog-post-view .blog-post .post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid #ede9e6;
    border-bottom: 1px solid #ede9e6;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: #9a8a7e;
}

.blog-post-view .blog-post .post-info > div {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-post-view .blog-post .post-info .post-create-time,
.blog-post-view .blog-post .post-info .published-by {
    font-size: 0.8rem;
    color: #9a8a7e;
}

.blog-post-view .blog-post .post-info .post-tags a {
    color: #566b46;
    text-decoration: none;
    margin-right: 0.35rem;
}

.blog-post-view .blog-post .post-info .post-tags a:hover {
    text-decoration: underline;
}

/* Font-Awesome icon replacement — show a thin separator instead */
.blog-post-view .blog-post .post-info .fa {
    display: none;
}

/* Article body */
.blog-post-view .blog-post .post-content {
    margin-top: 0;
}

.blog-post-view .blog-post .post-short-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #2a2a2a;
}

.blog-post-view .blog-post .post-short-description p {
    margin-bottom: 1.25rem;
}

.blog-post-view .blog-post .post-short-description img {
    max-width: 100%;
    height: auto;
}

/* Prev / Next navigation */
.blog-post-view .blog-post .post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ede9e6;
    font-size: 0.85rem;
}

.blog-post-view .blog-post .post-actions a {
    color: #1d1d1b;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.blog-post-view .blog-post .post-actions a:hover {
    color: #566b46;
}

/* Tags on post view */
.blog-post-view .blog-post .post-tags a,
.block-blog-tags .small {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    margin: 0 4px 4px 0;
    border: 1px solid #b89a84;
    color: #1d1d1b;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.blog-post-view .blog-post .post-tags a:hover,
.block-blog-tags .small:hover {
    background: #b89a84;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar .block-title strong {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1d1d1b;
}

.sidebar .block-blog-posts .post-list .item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ede9e6;
}

.sidebar .block-blog-posts .post-list .item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar .block-blog-posts .post-list .item .short-detail .title a {
    font-size: 0.85rem;
    color: #1d1d1b;
    text-decoration: none;
    line-height: 1.4;
}

.sidebar .block-blog-posts .post-list .item .short-detail .title a:hover {
    color: #566b46;
}

.sidebar .category-list .item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #ede9e6;
}

.sidebar .category-list .item a {
    font-size: 0.875rem;
    color: #1d1d1b;
    text-decoration: none;
}

.sidebar .category-list .item a:hover {
    color: #566b46;
}

/* Tag cloud in sidebar */
.block-blog-tags .btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    margin: 0 4px 6px 0;
    border: 1px solid #ede9e6;
    color: #1d1d1b;
    text-decoration: none;
    background: transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.block-blog-tags .btn:hover {
    border-color: #b89a84;
    color: #566b46;
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.post-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ede9e6;
}

.post-comments .title-comment-content {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #1d1d1b;
}

.comment-list .comment-list-container .item {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #ede9e6;
}

/* ==========================================================================
   Amasty Custom Form — Submit button border
   ========================================================================== */

.amform-form .action.submit.primary,
.amform-form .amcform-submit,
.amform-form .amcform-next,
.amform-form .amcform-prev {
    border: 1px solid #1d1d1b;
    background: transparent;
    color: #1d1d1b;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.amform-form .action.submit.primary:hover:not(:disabled),
.amform-form .amcform-submit:hover:not(:disabled),
.amform-form .amcform-next:hover,
.amform-form .amcform-prev:hover {
    background: #1d1d1b;
    color: #fff;
}

.amform-form .action.submit.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.amform-form .amcform-toolbar {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

/* Form field inputs */
.amform-form .form-control {
    border: 1px solid #d4ccc8;
    padding: 0.5rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    color: #1d1d1b;
    background: #fff;
    transition: border-color 0.15s ease;
}

.amform-form .form-control:focus {
    border-color: #b89a84;
    outline: none;
}

/* Field label */
.amform-form .field .label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: #1d1d1b;
}

.amform-form .field {
    margin-bottom: 1.25rem;
}

/* Success/error messages */
.amform-form .amform-success {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f0f4ec;
    border-left: 3px solid #566b46;
    color: #2a3d1e;
    font-size: 0.875rem;
}

.amform-form .amform-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fdf0f1;
    border-left: 3px solid #e05469;
    color: #7a1a23;
    font-size: 0.875rem;
}
