/* Blog styling for custompatches.net.
   Article-body rules are scoped under .blog-post-content; the legacy class
   rules (.process-number, .clear-div, .button, align*) mirror the Stadri
   Emblems theme the imported posts were authored against. */

/* Whisper breadcrumbs: no bar, a light 13px slash trail above the title */
.main-content .breadcrumbs {
    background: transparent;
    margin: 0;
}

.main-content .breadcrumbs p {
    padding: 8px 0 0;
    font-size: 13px;
    color: #9aa3a9;
}

.main-content .breadcrumbs a {
    color: #9aa3a9;
}

.main-content .breadcrumbs a:hover {
    color: #3498db;
}

.main-content .breadcrumbs .blog-crumb-sep {
    margin: 0 3px;
    color: #c8cfd4;
}

.blog-post-title {
    margin-bottom: 5px;
}

.blog-post-meta,
.blog-list-entry .text-muted,
.blog-featured-card .text-muted {
    color: #6a6a6a;
}

.blog-post-meta {
    margin-bottom: 20px;
}

/* --- Shared brand components (flat, square, one-shade-darker hover) --- */
.blog-btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 8px 15px;
    font-weight: 300;
    text-align: center;
    transition: color 0.1s, background 0.2s;
}

.blog-btn:hover,
.blog-btn:focus {
    background: #2980b9;
    color: #fff;
    text-decoration: none;
}

/* Prev/next post navigation buttons */
.blog-btn-nav {
    max-width: 100%;
    text-align: left;
}

.blog-btn-nav-next {
    text-align: right;
}

.blog-btn-sub {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .blog-btn-nav,
    .blog-btn-nav-next {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
}

.blog-share-label {
    margin-right: 8px;
}

/* Sidebar search: the theme's inputs are 40px, Bootstrap's default btn is 34px */
.blog-item .input-group .btn {
    height: 40px;
    padding: 6px 16px;
}

.blog-chip {
    display: inline-block;
    background: #fff;
    color: #2B2B2B;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 300;
    margin: 0 4px 6px 0;
    transition: color 0.1s, background 0.2s;
}

.blog-chip:hover,
.blog-chip:focus {
    background: #e6e6e6;
    color: #2B2B2B;
    text-decoration: none;
}

/* Pomegranate base (not Alizarin): white 13px text needs >=4.5:1 contrast */
.blog-chip.blog-chip-category {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.blog-chip.blog-chip-category:hover,
.blog-chip.blog-chip-category:focus {
    background: #a33023;
    border-color: #a33023;
    color: #fff;
}

/* Staff-only marker on unpublished posts (Patch Orange, non-interactive) */
.blog-chip-draft {
    display: inline-block;
    background: #f5791f;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Alizarin = "money and action": reserved for the quote CTA */
.blog-btn-quote {
    background: #e74c3c;
}

.blog-btn-quote:hover,
.blog-btn-quote:focus {
    background: #c0392b;
}

.blog-cta {
    background: #34495e;
    color: #fff;
    padding: 20px;
    margin: 30px 0;
}

.blog-cta p {
    margin: 0 0 12px;
    font-size: 18px;
}

/* Featured strip heading: the incumbent 50px bar, as an h2 to keep the outline honest */
.blog-box-heading-orange {
    background: #f5791f;
    color: #fff;
    height: 50px;
    padding: 12px;
    text-transform: uppercase;
    overflow: hidden;
    margin-bottom: 15px;
}

.blog-box-heading-orange h2 {
    margin: 0;
    display: inline-block;
    font-size: 18px;
    line-height: 1.4;
}

.blog-featured-card h3 {
    margin: 10px 0 4px;
    font-size: 18px;
    line-height: 1.35;
}

/* Square, brand-blue pagination (Bootstrap's is rounded) */
.main-content .pagination > li > a,
.main-content .pagination > li > span {
    border-radius: 0;
    color: #3498db;
}

.main-content .pagination > li:first-child > a,
.main-content .pagination > li:first-child > span,
.main-content .pagination > li:last-child > a,
.main-content .pagination > li:last-child > span {
    border-radius: 0;
}

.main-content .pagination > .active > a {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.main-content .pagination > .active > a:hover,
.main-content .pagination > .active > a:focus {
    background: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

/* --- Blog index --- */
.blog-list-entry {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.blog-list-entry:last-of-type {
    border-bottom: 0;
}

.blog-list-entry img {
    width: 100%;
}

.blog-list-title {
    margin: 0 0 5px;
    font-size: 1.5em;
    line-height: 1.3;
}

.blog-featured-card {
    margin-bottom: 20px;
}

.blog-featured-card img {
    width: 100%;
}

.blog-featured-card h4 {
    margin-top: 10px;
    line-height: 1.35;
}

/* Empty state: centered mark + message inside a stitched (dashed) outline */
.blog-empty {
    text-align: center;
    padding: 45px 20px 50px;
    border: 1px dashed #a1aaaf;
}

.blog-empty h2 {
    font-size: 18px;
    font-weight: 400;
    color: #2B2B2B;
    margin: 12px 0 6px;
}

.blog-empty p {
    color: #6a6a6a;
    margin: 0 0 18px;
}

/* --- Article body typography --- */
.blog-post-content {
    font-size: 15px;
    line-height: 1.7;
    color: #2B2B2B;
    /* ~72ch at 15px Roboto; keeps article lines readable */
    max-width: 640px;
}

.blog-post-content p {
    font-size: 1em;
    line-height: 1.7;
    margin: 12px 0;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    font-weight: 400;
    color: #2B2B2B;
    margin: 30px 0 12px;
    line-height: 1.3;
}

.blog-post-content h1 { font-size: 2em; }
.blog-post-content h2 { font-size: 1.8em; }
.blog-post-content h3 { font-size: 1.45em; }
.blog-post-content h4 { font-size: 1.2em; }

.blog-post-content ul,
.blog-post-content ol {
    margin: 12px 0 12px 10px;
    padding-left: 25px;
}

.blog-post-content li {
    margin: 6px 0;
    line-height: 1.6;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
}

.blog-post-content hr {
    margin: 35px 0;
    border: 0;
    border-top: 1px solid #e5e5e5;
}

.blog-post-content blockquote {
    border-left: 4px solid #e5e5e5;
    margin: 20px 0;
    padding: 5px 20px;
    color: #666;
    font-style: italic;
}

.blog-post-content iframe,
.blog-post-content embed,
.blog-post-content video {
    max-width: 100%;
}

.blog-post-content a {
    color: #3498db;
}

.blog-post-content a:hover {
    color: #2980b9;
}

/* --- Legacy Stadri theme classes used inside imported post bodies --- */
.blog-post-content .clear-div {
    height: 25px;
    clear: both;
}

.blog-post-content .process-number {
    width: 66px;
    height: 66px;
    color: #fff;
    background-color: #f5791f;
    text-align: center;
    font-size: 28px;
    border-radius: 50%;
    padding: 13px;
    margin: 0 auto;
}

.blog-post-content .process-text {
    display: table;
    height: 100%;
    margin: 0 auto;
}

.blog-post-content .process-text-elements {
    display: table-cell;
    vertical-align: middle;
    height: 100%;
    text-align: center;
}

.blog-post-content .process-text-elements h2 {
    margin-top: 10px;
}

.blog-post-content .align-center {
    text-align: center;
}

.blog-post-content .button {
    border: 1px solid;
    border-radius: 0;
    font-size: .9em;
    padding: 8px 15px;
    background: #fff;
    border-color: #a1aaaf;
    color: #2B2B2B;
    font-weight: 600;
    letter-spacing: .04em;
    transition: all ease 0.3s;
    display: inline-block;
    line-height: 1.8;
    text-align: center;
    text-decoration: none;
}

.blog-post-content .button.btn_blue {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.blog-post-content .button.btn_blue:hover,
.blog-post-content .button.btn_blue:focus {
    background: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

/* Legacy align="left|right" attributes: keep the wrap, but cap the image at
   half the column so the text never gets starved into a sliver */
.blog-post-content img[align="left"] {
    float: left;
    max-width: 50%;
    margin: 5px 20px 10px 0;
}

.blog-post-content img[align="right"] {
    float: right;
    max-width: 50%;
    margin: 5px 0 10px 20px;
}

/* WordPress-era alignment classes */
.blog-post-content .alignleft {
    float: left;
    margin: 5px 20px 10px 0;
    display: inline-block;
}

.blog-post-content .alignright {
    float: right;
    margin: 5px 0 10px 20px;
    display: inline-block;
}

.blog-post-content .alignnone {
    display: block;
    margin: 25px auto;
}

.blog-post-content .aligncenter {
    display: block;
    margin: 25px auto;
    text-align: center;
}

@media (max-width: 767px) {
    .blog-post-content .alignleft,
    .blog-post-content .alignright,
    .blog-post-content img[align="left"],
    .blog-post-content img[align="right"] {
        max-width: 100%;
        float: none;
        display: block;
        margin: 15px auto;
    }
}
