/*
Theme Name: eComchain Blog
Description: ecomchain.com/blog. Uses the site's own meta tags, header menu and footer (from the htdocs checkout) so the blog matches ecomchain.com. Lives in git: wordpress/themes/ecomchain-blog.
Version: 1.0
Requires PHP: 8.1
Text Domain: ecomchain-blog
Update URI: false
*/

.ecom-blog {
    font-family: 'Inter', sans-serif;
}

/* Banner below the site's fixed header (.head-container) */
.ecom-blog-hero {
    background: linear-gradient(204deg, #1a5a92, #11426d 60%, #0b2c4a);
    color: #fff;
    padding: 150px 0 50px;
}
.ecom-blog-eyebrow {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 16px;
    padding: 6px 14px;
    text-transform: uppercase;
}
.ecom-blog-eyebrow:hover,
.ecom-blog-eyebrow:focus {
    background: #ff3a46;
    color: #fff;
    text-decoration: none;
}
.ecom-blog-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    max-width: 820px;
}
.ecom-blog-hero-meta {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    margin: 14px 0 0;
}
.ecom-blog-hero-meta a {
    color: #fff;
    text-decoration: underline;
}
@media (max-width: 767px) {
    .ecom-blog-hero {
        padding: 110px 0 35px;
    }
    .ecom-blog-hero h1 {
        font-size: 26px;
    }
}

.ecom-blog-main {
    padding: 50px 0 70px;
}

/* Post list */
.ecom-blog-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}
.ecom-blog-list-header h2 {
    color: #11426d;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}
.ecom-blog-list-header .search-form {
    display: flex;
    gap: 8px;
}
.ecom-blog-list-header .search-form label {
    margin: 0;
}
.ecom-blog-list-header .search-field {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 10px;
}
.ecom-blog-list-header .search-submit {
    background: #11426d;
    border: 0;
    border-radius: 4px;
    color: #fff;
    padding: 6px 14px;
}
.ecom-blog-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.ecom-blog-card {
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.ecom-blog-card:hover {
    box-shadow: 0 10px 30px rgba(17, 66, 109, .12);
    transform: translateY(-2px);
}
.ecom-blog-card a,
.ecom-blog-card a:hover {
    color: inherit;
    display: block;
    text-decoration: none;
}
.ecom-blog-card-media {
    background-position: center;
    background-size: cover;
    height: 180px;
}
.ecom-blog-card-media.no-media {
    background-image: linear-gradient(204deg, #1a5a92, #11426d 60%, #0b2c4a);
}
.ecom-blog-card-body {
    padding: 18px 20px 22px;
}
.ecom-blog-card-date {
    color: #8898aa;
    font-size: 13px;
}
.ecom-blog-card-title {
    color: #11426d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 10px;
}
.ecom-blog-card:hover .ecom-blog-card-title {
    color: #ff3a46;
}
.ecom-blog-card-body p {
    color: #57667e;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Pagination */
.ecom-blog .pagination {
    display: block;
    margin-top: 35px;
    justify-content: center;
}
.ecom-blog .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.ecom-blog .page-numbers {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #11426d;
    padding: 6px 12px;
}
.ecom-blog .page-numbers.current,
.ecom-blog a.page-numbers:hover {
    background: #11426d;
    border-color: #11426d;
    color: #fff;
    text-decoration: none;
}

/* A single post / page */
.ecom-blog-entry {
    max-width: 820px;
    margin: 0 auto;
}
.ecom-blog-entry .entry-featured img {
    border-radius: 4px;
    margin-bottom: 25px;
    width: 100%;
    height: auto;
}
.ecom-blog-entry .entry-content {
    color: #293b5f;
    font-size: 17px;
    line-height: 1.7;
}
.ecom-blog-entry .entry-content h2,
.ecom-blog-entry .entry-content h3,
.ecom-blog-entry .entry-content h4 {
    margin: 1.6em 0 .6em;
}
.ecom-blog-entry .entry-content img {
    max-width: 100%;
    height: auto;
}
.ecom-blog-entry .entry-content a {
    color: #11426d;
    text-decoration: underline;
}
.ecom-blog-entry .entry-content blockquote {
    border-left: 4px solid #11426d;
    color: #57667e;
    margin: 1.5em 0;
    padding: .2em 0 .2em 1.2em;
}
.ecom-blog-entry .entry-content pre {
    background: #f6f9fc;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
}
.ecom-blog-entry .entry-content table {
    border-collapse: collapse;
    margin: 1.5em 0;
    width: 100%;
}
.ecom-blog-entry .entry-content th,
.ecom-blog-entry .entry-content td {
    border: 1px solid #dee2e6;
    padding: 8px 10px;
}
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: #8898aa; font-size: 14px; text-align: center; }
.ecom-blog-entry .entry-footer {
    border-top: 1px solid #e9ecef;
    color: #8898aa;
    font-size: 14px;
    margin-top: 35px;
    padding-top: 15px;
}
.ecom-blog-entry .post-navigation {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
}
.ecom-blog-entry .post-navigation a {
    color: #11426d;
    font-weight: 600;
}
.ecom-blog-entry .comments-area {
    margin-top: 45px;
}
.ecom-blog-entry .comment-list {
    list-style: none;
    padding: 0;
}
.ecom-blog-entry .comment-list .comment {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}
.ecom-blog-entry .comment-form textarea,
.ecom-blog-entry .comment-form input[type="text"],
.ecom-blog-entry .comment-form input[type="email"],
.ecom-blog-entry .comment-form input[type="url"] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    max-width: 100%;
    padding: 8px 10px;
    width: 100%;
}
.ecom-blog-entry .comment-form .submit {
    background: #11426d;
    border: 0;
    border-radius: 4px;
    color: #fff;
    padding: 8px 18px;
}
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}
