/* Cegital blog: listing, article and preview styles (Titan theme + seagreen brand). */

.blog {
    --blog-ink: #1f2328;
    --blog-muted: #5f6670;
    --blog-line: #e6e8eb;
    --blog-soft: #f6f8f7;
    --blog-brand: #2e8b57;
    --blog-brand-dark: #22693f;
    color: var(--blog-ink);
}

/* Hero ------------------------------------------------------------------ */
.blog-hero {
    background: linear-gradient(135deg, #111 0%, #1b2a22 100%);
    color: #fff;
    padding: 130px 0 50px;
}
.blog-hero--list { padding-bottom: 40px; }
.blog-title {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    margin: 10px 0 14px;
}
.blog-lede { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 760px; }
.blog-meta { font-size: 14px; color: rgba(255, 255, 255, .72); margin: 0; }
.blog-meta span { display: inline-block; margin-right: 16px; }
.blog-meta strong { color: #fff; }

.blog-breadcrumb { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; }
.blog-breadcrumb li { display: inline; color: rgba(255, 255, 255, .7); }
.blog-breadcrumb li + li:before { content: "/"; padding: 0 8px; color: rgba(255, 255, 255, .4); }
.blog-breadcrumb a { color: rgba(255, 255, 255, .9); }
.blog-breadcrumb a:hover { color: #fff; text-decoration: underline; }

.blog-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(46, 139, 87, .14);
    color: var(--blog-brand-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.blog-hero .blog-chip { background: rgba(46, 139, 87, .9); color: #fff; }
.blog-chip:hover { text-decoration: none; background: var(--blog-brand); color: #fff; }

/* Article body ------------------------------------------------------------ */
.blog-body { padding: 40px 0 70px; }
.blog-featured { margin: 0 0 32px; }
.blog-featured img { width: 100%; height: auto; border-radius: 8px; display: block; }

.blog-content {
    font-family: "Open Sans", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--blog-ink);
    overflow-wrap: break-word;
}
.blog-content > *:first-child { margin-top: 0; }
.blog-content p { margin: 0 0 1.25em; }
.blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    font-family: "Roboto Condensed", sans-serif;
    text-transform: none;
    letter-spacing: 0;
    color: #111;
    line-height: 1.3;
    font-weight: 700;
}
.blog-content h2 { font-size: 28px; margin: 1.8em 0 .6em; }
.blog-content h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.blog-content h4 { font-size: 19px; margin: 1.4em 0 .5em; }
.blog-content a { color: var(--blog-brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.blog-content a:hover { color: var(--blog-brand); }
.blog-content ul, .blog-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.blog-content li { margin-bottom: .4em; }
.blog-content li > p { margin: 0; }
.blog-content blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--blog-brand);
    color: #3a4048;
    font-size: 18px;
    font-style: italic;
}
.blog-content blockquote p:last-child { margin-bottom: 0; }
.blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 18px;
    border-radius: 8px;
    border: 0;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}
.blog-content code { background: var(--blog-soft); color: #b42318; padding: 2px 5px; border-radius: 4px; font-size: .9em; }
.blog-content pre code { background: none; color: inherit; padding: 0; }
.blog-content hr { border: 0; border-top: 1px solid var(--blog-line); margin: 2.2em 0; }
.blog-content img { max-width: 100%; height: auto; border-radius: 6px; }
.blog-content figure { margin: 1.8em 0; }
.blog-content figcaption { font-size: 14px; color: var(--blog-muted); text-align: center; margin-top: 8px; }
.blog-content mark { background: #fff3a3; padding: 0 2px; }

/* Tables scroll horizontally instead of breaking the layout on phones. */
.blog-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 15px;
}
.blog-content th, .blog-content td { border: 1px solid var(--blog-line); padding: 8px 12px; vertical-align: top; min-width: 90px; }
.blog-content th { background: var(--blog-soft); font-weight: 600; text-align: left; }
.blog-content td p, .blog-content th p { margin: 0; }

/* Content written with the previous (Quill) editor. */
.blog-content .ql-align-center { text-align: center; }
.blog-content .ql-align-right { text-align: right; }
.blog-content .ql-align-justify { text-align: justify; }
.blog-content .ql-indent-1 { padding-left: 3em; }
.blog-content .ql-indent-2 { padding-left: 6em; }

/* Tags, share, related ----------------------------------------------------- */
.blog-tags { list-style: none; padding: 0; margin: 32px 0 0; }
.blog-tags li { display: inline-block; margin: 0 6px 6px 0; }
.blog-tags a { display: inline-block; padding: 4px 12px; border: 1px solid var(--blog-line); border-radius: 999px; color: var(--blog-muted); font-size: 13px; }
.blog-tags a:hover { border-color: var(--blog-brand); color: var(--blog-brand-dark); text-decoration: none; }

.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--blog-line); border-bottom: 1px solid var(--blog-line); }
.blog-share-label { font-weight: 600; margin-right: 6px; }
.blog-share a, .blog-share button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 38px; height: 38px; padding: 0 10px;
    border-radius: 999px; border: 1px solid var(--blog-line); background: #fff; color: var(--blog-ink); font-size: 15px;
}
.blog-share a:hover, .blog-share button:hover { background: var(--blog-brand); border-color: var(--blog-brand); color: #fff; text-decoration: none; }
.blog-share button span { font-size: 13px; }

.blog-related { margin-top: 56px; }
.blog-related > h2 { font-family: "Roboto Condensed", sans-serif; font-size: 24px; text-transform: none; letter-spacing: 0; margin: 0 0 20px; }
.blog-back { margin-top: 30px; }
.blog-back a { color: var(--blog-brand-dark); font-weight: 600; }

/* Cards -------------------------------------------------------------------- */
.blog-grid > [class*="col-"] { display: flex; }
.blog-card {
    display: flex; flex-direction: column; width: 100%;
    margin-bottom: 30px; background: #fff;
    border: 1px solid var(--blog-line); border-radius: 10px; overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover { box-shadow: 0 10px 30px rgba(17, 24, 39, .08); transform: translateY(-2px); }
.blog-card-media { display: block; aspect-ratio: 16 / 9; background: var(--blog-soft); overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; color: #b8c2bd; font-size: 34px; }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body .blog-chip { align-self: flex-start; margin-bottom: 8px; }
.blog-card-title { font-family: "Roboto Condensed", sans-serif; font-size: 20px; line-height: 1.3; text-transform: none; letter-spacing: 0; margin: 0 0 8px; }
.blog-card-title a { color: #111; }
.blog-card-title a:hover { color: var(--blog-brand-dark); text-decoration: none; }
.blog-card-excerpt { color: var(--blog-muted); font-size: 14px; line-height: 1.6; margin: 0 0 12px; flex: 1; }
.blog-card-meta { font-size: 12px; color: #8a9199; margin: 0; }

/* Sidebar, empty state, pagination ---------------------------------------- */
.blog-widget { margin-bottom: 30px; padding: 20px; border: 1px solid var(--blog-line); border-radius: 10px; }
.blog-widget-title { display: block; font-family: "Roboto Condensed", sans-serif; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; margin: 0 0 12px; color: #111; }
.blog-widget a { color: var(--blog-brand-dark); }
.blog-cat-list { list-style: none; padding: 0; margin: 0; }
.blog-cat-list li { border-bottom: 1px solid var(--blog-line); }
.blog-cat-list li:last-child { border-bottom: 0; }
.blog-cat-list a { display: block; padding: 8px 0; color: var(--blog-ink); }
.blog-cat-list a[aria-current] { color: var(--blog-brand-dark); font-weight: 700; }
.blog-results { color: var(--blog-muted); margin-bottom: 20px; }
.blog-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--blog-line); border-radius: 10px; }
.blog-empty .fa { font-size: 40px; color: #c5ccc8; }
.blog-empty h2 { font-size: 22px; text-transform: none; letter-spacing: 0; margin: 14px 0 8px; }
.blog-pagination .pagination > .active > span { background: var(--blog-brand); border-color: var(--blog-brand); }
.blog-pagination .pagination a { color: var(--blog-brand-dark); }

/* Admin preview banner ----------------------------------------------------- */
.blog-preview-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    background: #fff8db; color: #5c4400; border-top: 2px solid #f0c000;
    padding: 10px 16px; font-size: 14px; text-align: center;
}
.blog-preview-bar a { margin-left: 10px; font-weight: 700; color: #5c4400; text-decoration: underline; }

@media (max-width: 767px) {
    .blog-hero { padding: 100px 0 32px; }
    .blog-title { font-size: 28px; }
    .blog-lede { font-size: 16px; }
    .blog-content { font-size: 16px; }
    .blog-content h2 { font-size: 23px; }
    .blog-content h3 { font-size: 20px; }
    .blog-share-label { width: 100%; }
}
