/* ===================================================================
   Staunch Technologies — Blog Article Stylesheet
   Used by: why-maritime-erp-implementations-fail.html
   (class names match the conventions already used across
   staunchtec.com blog posts, so this can also sit alongside
   aiml.css / main.purified.css without conflicting)
   =================================================================== */

:root {
    --accent: #0b69ff;
    --accent-dark: #084fc4;
    --ink: #16202b;
    --muted: #5b6b7a;
    --border: #e7edf3;
    --bg-soft: #f6f9fc;
}

body {
    color: var(--ink);
}

.social-links a,
.social-links a:hover {
    text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #0c2a4d 0%, #0b69ff 100%);
    color: #fff;
    padding: 56px 0 44px;
}

.hero-container {
    max-width: 880px;
    margin: 0 auto 20px;
    padding: 0 24px;
}

.breadcrumb {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 6px;
    opacity: .7;
}

.category-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    margin: 0 0 16px;
}

.hero p {
    font-size: 17px;
    line-height: 1.65;
    opacity: .95;
    margin: 0;
}

.meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: .9;
}

.meta-info span i {
    margin-right: 6px;
}

.main-content {
    margin: 20px auto 0 ;
}

/* ---------- Tags ---------- */
.tags-section {
    max-width: 780px;
    margin: 24px auto 0;
    padding: 30px 24px;
    gap: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 999px;
}

/* ---------- Article body ---------- */
.article-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px 8px;
    line-height: 1.75;
    font-size: 16.5px;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin: 42px 0 16px;
    color: var(--ink);
    border-left: 4px solid var(--accent);
    padding-left: 14px;
}

.article-content h3 {
    font-size: 19px;
    margin: 26px 0 10px;
    color: var(--ink);
}

.article-content p {
    margin: 0 0 18px;
    color: #2b3946;
}

.article-content ul {
    margin: 0 0 20px;
    padding-left: 22px;
}

.article-content ul li {
    margin-bottom: 10px;
    color: #2b3946;
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 105, 255, .35);
}

.article-content a:hover {
    border-bottom-color: var(--accent);
}

.article-content strong {
    color: var(--ink);
}

.article-image-showcase {
    margin: 28px 0;
}

.article-image-showcase img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.article-image-showcase figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 36px 0;
}

/* ---------- Info / highlight boxes ---------- */
.info-box,
.highlight-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 24px 0;
}

.highlight-box {
    background: #fff7ec;
    border-color: #f3e2c2;
}

.info-box h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--accent-dark);
}

.info-box i,
.highlight-box i {
    margin-right: 6px;
}

/* ---------- Inline callout links ---------- */
.callout-link {
    background: #e8f3ff;
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    margin: 22px 0;
    font-size: 15px;
}

.callout-link a {
    font-weight: 600;
}

/* ---------- Checklist (bullet list with warning icon) ---------- */
.checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #2b3946;
}

.checklist li::before {
    content: "\26A0";
    position: absolute;
    left: 0;
    top: 0;
    color: #d98c00;
}

/* ---------- Soft inline CTA box ---------- */
.cta-box {
    background: linear-gradient(135deg, #0c2a4d, #0b69ff);
    color: #fff;
    border-radius: 12px;
    padding: 26px 28px;
    margin: 32px 0;
    text-align: center;
}

.cta-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    text-align: center;
}

.cta-box p {
    color: rgba(255, 255, 255, .9);
    margin: 0 0 16px;
    text-align: center;
}

.cta-button,
.cta-button.whatsapp {
    display: inline-block;
    background: #fff;
    color: var(--accent-dark) !important;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    border-bottom: none;
}

/* ---------- Conversion CTA (call/email) ---------- */
.cta-convert {
    padding: 24px;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    margin: 38px 0;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cta-convert .left {
    flex: 1 1 380px;
}

.cta-convert .left h3 {
    margin: 0 0 6px;
    font-family: 'Playfair Display', serif;
}

.cta-convert .left p {
    margin: 0;
    color: var(--muted);
}

.cta-convert .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-convert .btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    border-bottom: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-convert .btn.email-btn {
    background: var(--ink);
}

/* ---------- Author box ---------- */
.author-box {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 40px auto 20px;
    padding: 32px;
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.author-avatar {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    overflow: hidden;
    padding: 16px;
    background: #fff;
    border: 5px solid #12afb0;
    border-radius: 50%;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.author-details {
    min-width: 0;
    flex: 1;
}

.author-details h3 {
    margin: 0 0 4px;
    color: #070d1b;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 26px;
    line-height: 1.35;
}

.author-details h4 {
    margin: 0 0 12px;
    color: #00b5b5;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.author-details p {
    margin: 0;
    color: #172033;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.75;
    text-align: justify;
}

.author-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.author-social a {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #071326;
    background: #f0f2f5;
    border: 0;
    border-radius: 10px;
    font-size: 20px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.author-social a:hover,
.author-social a:focus-visible {
    color: #fff;
    background: #00a9aa;
}

button.scroll-top {
    border: 0;
    padding: 0;
}

/* ---------- Related posts ---------- */
.related-posts {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.rp-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 4px;
}

.rp-intro {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: 14.5px;
}

.rp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rp-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    min-height: 0;
}

.rp-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.rp-thumb-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}

.rp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rp-meta {
    padding: 14px 16px;
}

.rp-article {
    font-size: 15.5px;
    margin: 0 0 6px;
    color: var(--ink);
}

.rp-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ---------- Share section ---------- */
.share-section {
    width: max-content;
    max-width: calc(100% - 48px);
    margin: 18px auto 32px;
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
}

/* ---------- Bottom conversion CTA section ---------- */
.cta-section {
    max-width: 880px;
    margin: 8px auto 40px;
    padding: 30px 24px;
    background: var(--ink);
    color: #fff;
    border-radius: 14px;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 10px;
    font-size: 24px;
    color: #fff;
    border: none;
    padding: 0;
}

.cta-section p {
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
    margin: 0 auto 18px;
}

.cta-section .cta-button {
    background: var(--accent);
    color: #fff !important;
}

.contact-info {
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {

    .related-posts {
        margin-right: 16px;
        margin-left: 16px;
        padding: 20px;
    }

    .rp-list {
        grid-template-columns: 1fr;
    }

    .cta-convert,
    .cta-box {
        text-align: center;
    }

    .cta-convert {
        flex-direction: column;
        align-items: stretch;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        margin-top: 28px;
        padding: 24px;
    }

    .author-details {
        width: 100%;
    }

    .author-avatar {
        width: 130px;
        height: 130px;
        flex-basis: 130px;
    }

    .author-details h3,
    .author-details h4 {
        text-align: center;
    }

    .author-details p {
        font-size: 15px;
        text-align: left;
    }

    .author-social {
        justify-content: center;
    }
}