/* Blog / News static pages - Acceleration Robotics
   Styles the Ghost-exported article body (kg-* classes) and the index cards,
   matching the main site brand (Gordita fonts, #4d4cf5). */

/* ---------- hero ---------- */
.blog-hero {
    background-color: #000;
    padding-top: 9em;
    padding-bottom: 4em;
}
.blog-hero-title {
    color: #fff;
    font-family: "Gordita-Bold", sans-serif;
    font-size: 2.4em;
    line-height: 1.2;
    margin-top: .3em;
}
.blog-hero-meta { color: #cfcfe8; margin-top: 1em; margin-bottom: 0; }
.blog-hero-tags {
    color: #4d4cf5;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8em;
    font-family: "Gordita-Bold", sans-serif;
    margin-bottom: 0;
    background: rgba(255, 255, 255, .9);
    display: inline-block;
    padding: .25em .8em;
    border-radius: 20px;
}
@media (max-width: 767px) {
    .blog-hero-title { font-size: 1.7em; }
    .blog-hero { padding-top: 7em; }
}

/* ---------- article body ---------- */
.blog-article {
    font-size: 1.08em;
    line-height: 1.75;
    color: #2b2b2b;
}
.blog-article h1, .blog-article h2, .blog-article h3,
.blog-article h4, .blog-article h5 {
    font-family: "Gordita-Bold", sans-serif;
    color: #1e1e1e;
    margin-top: 1.6em;
    margin-bottom: .5em;
    line-height: 1.25;
}
.blog-article h2 { font-size: 1.7em; }
.blog-article h3 { font-size: 1.35em; }
.blog-article h4 { font-size: 1.15em; }
.blog-article p { margin-bottom: 1.2em; }
.blog-article a { color: #4d4cf5; text-decoration: underline; }
.blog-article a:hover { color: #302fd0; }
.blog-article ul, .blog-article ol { margin-bottom: 1.2em; padding-left: 1.4em; }
.blog-article li { margin-bottom: .4em; }

.blog-article img,
.blog-article .kg-image { max-width: 100%; height: auto; border-radius: 6px; }
.blog-article figure { margin: 2em 0; text-align: center; }
.blog-article figure.kg-width-wide { margin-left: -5%; margin-right: -5%; }
.blog-article figcaption {
    font-size: .85em;
    color: #777;
    margin-top: .6em;
    text-align: center;
}
.blog-article blockquote {
    border-left: 4px solid #4d4cf5;
    margin: 1.5em 0;
    padding: .3em 1.2em;
    color: #444;
    font-style: italic;
    background: #f6f6ff;
}
.blog-article hr { border: 0; border-top: 1px solid #e2e2e2; }
.blog-article pre {
    background: #1e1e2e;
    color: #f2f2f2;
    padding: 1em 1.2em;
    border-radius: 8px;
    overflow-x: auto;
    font-size: .9em;
}
.blog-article code {
    font-family: "SourceCodePro-Regular", monospace;
    background: #f0f0f5;
    padding: .1em .35em;
    border-radius: 4px;
    font-size: .9em;
}
.blog-article pre code { background: none; padding: 0; color: inherit; }
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: .92em;
}
.blog-article th, .blog-article td {
    border: 1px solid #e0e0e0;
    padding: .6em .8em;
    text-align: left;
}
.blog-article th { background: #f6f6ff; font-family: "Gordita-Bold", sans-serif; }

/* Koenig cards */
.blog-article .kg-card { margin: 2em 0; }
.blog-article .kg-embed-card,
.blog-article .kg-embed-card iframe { max-width: 100%; }
.blog-article .kg-bookmark-card a.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
}
.blog-article .kg-bookmark-content { padding: 1em 1.2em; flex: 1 1 auto; }
.blog-article .kg-bookmark-title { font-family: "Gordita-Bold", sans-serif; color: #1e1e1e; }
.blog-article .kg-bookmark-description { color: #666; font-size: .9em; }
.blog-article .kg-bookmark-thumbnail { max-width: 30%; }
.blog-article .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.blog-article .kg-gallery-row { display: flex; gap: 10px; margin-bottom: 10px; }
.blog-article .kg-gallery-image img { width: 100%; height: auto; }
.blog-article .kg-button-card a {
    display: inline-block;
    background: #4d4cf5;
    color: #fff;
    padding: .7em 1.6em;
    border-radius: 30px;
    text-decoration: none;
    font-family: "Gordita-Bold", sans-serif;
}

/* ---------- index cards ---------- */
.blog-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
    text-decoration: none;
    color: inherit;
}
.blog-card-img {
    position: relative;
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    background-color: #111;
}
.blog-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #4d4cf5;
    color: #fff;
    font-family: "Gordita-Bold", sans-serif;
    font-size: .68em;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3em .8em;
    border-radius: 20px;
}
.blog-card-featured { box-shadow: 0 4px 14px rgba(77, 76, 245, .22); }
.blog-card-featured:hover { box-shadow: 0 10px 26px rgba(77, 76, 245, .30); }
.blog-card-body { padding: 1.2em 1.3em 1.5em; }
.blog-card-tag {
    color: #4d4cf5;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .72em;
    font-family: "Gordita-Bold", sans-serif;
    margin-bottom: .4em;
    min-height: 1em;
}
.blog-card-title {
    font-family: "Gordita-Bold", sans-serif;
    font-size: 1.18em;
    color: #1e1e1e;
    line-height: 1.3;
    margin-bottom: .5em;
}
.blog-card-excerpt { color: #666; font-size: .9em; line-height: 1.5; margin-bottom: .8em; }
.blog-card-date { color: #999; font-size: .8em; margin-bottom: 0; }

/* ---------- Ghost video cards ----------
   The exported markup expects Ghost's theme CSS + JS player, which aren't
   loaded here. The videos are autoplay/muted/loop so they play on their own —
   render them responsively and hide the dead custom player chrome/overlay. */
.blog-article .kg-video-card { margin: 2em 0; }
.blog-article .kg-video-container { position: relative; width: 100%; max-width: 100%; }
.blog-article .kg-video-card video,
.blog-article video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
    background-size: cover !important;
    background-position: center !important;
}
.blog-article .kg-video-overlay,
.blog-article .kg-video-player-container,
.blog-article .kg-video-play-icon,
.blog-article .kg-video-pause-icon,
.blog-article .kg-video-large-play-icon,
.blog-article .kg-video-seek-slider,
.blog-article .kg-video-player,
.blog-article .kg-video-time,
.blog-article .kg-video-current-time,
.blog-article .kg-video-duration,
.blog-article .kg-video-mute-icon,
.blog-article .kg-video-unmute-icon,
.blog-article .kg-video-volume-slider,
.blog-article .kg-video-playback-rate { display: none !important; }
/* let the muted autoplay video loop cleanly; no pointer UI needed */
.blog-article .kg-video-card video { pointer-events: none; }

/* ---------- keep Ghost wide/full-width cards inside the column ----------
   Without the theme's breakout grid these can render wider than the page. */
.blog-article .kg-card,
.blog-article .kg-width-wide,
.blog-article .kg-width-full { max-width: 100%; }
.blog-article figure.kg-width-wide { margin-left: 0; margin-right: 0; }
.blog-article .kg-gallery-container,
.blog-article .kg-gallery-card { max-width: 100%; }
.blog-article .kg-gallery-row { display: flex; gap: 10px; }
.blog-article .kg-gallery-image { flex: 1 1 0; min-width: 0; }
.blog-article iframe { max-width: 100%; }
